blob: 8858ad242dde8698596a2b64bfb32d0d1841af46 [file] [log] [blame]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001#! /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002# Guess values for system-dependent variables and create Makefiles.
Alexandre Julliardf85d8da2002-05-10 03:14:24 +00003# Generated by GNU Autoconf 2.53 for Wine 20020509.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004#
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006# Free Software Foundation, Inc.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12else
13 as_expr=false
14fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017## --------------------- ##
18## M4sh Initialization. ##
19## --------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27fi
28
Alexandre Julliarddaa28862002-04-11 21:54:01 +000029# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33else
34 as_unset=false
35fi
36
37(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
Alexandre Julliardf5818d22002-02-14 19:47:29 +000063# Name of the executable.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000064as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147done
148;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191else
192 as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
205 fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208else
209 as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000217
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS=" $as_nl"
227
228# CDPATH.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000242ac_default_prefix=/usr/local
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000243cross_compiling=no
244subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000245MFLAGS=
246MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000247SHELL=${CONFIG_SHELL-/bin/sh}
248
249# Maximum number of lines to put in a shell here document.
250# This variable seems obsolete. It should probably be removed, and
251# only ac_max_sed_lines should be used.
252: ${ac_max_here_lines=38}
253
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000254# Identity of this package.
255PACKAGE_NAME='Wine'
256PACKAGE_TARNAME='wine'
Alexandre Julliardf85d8da2002-05-10 03:14:24 +0000257PACKAGE_VERSION='20020509'
258PACKAGE_STRING='Wine 20020509'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000259PACKAGE_BUGREPORT=''
260
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000261ac_unique_file="server/atom.c"
262# Factoring default headers for most tests.
263ac_includes_default="\
264#include <stdio.h>
265#if HAVE_SYS_TYPES_H
266# include <sys/types.h>
267#endif
268#if HAVE_SYS_STAT_H
269# include <sys/stat.h>
270#endif
271#if STDC_HEADERS
272# include <stdlib.h>
273# include <stddef.h>
274#else
275# if HAVE_STDLIB_H
276# include <stdlib.h>
277# endif
278#endif
279#if HAVE_STRING_H
280# if !STDC_HEADERS && HAVE_MEMORY_H
281# include <memory.h>
282# endif
283# include <string.h>
284#endif
285#if HAVE_STRINGS_H
286# include <strings.h>
287#endif
288#if HAVE_INTTYPES_H
289# include <inttypes.h>
290#else
291# if HAVE_STDINT_H
292# include <stdint.h>
293# endif
294#endif
295#if HAVE_UNISTD_H
296# include <unistd.h>
297#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000298
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000299
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000300# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000301ac_init_help=
302ac_init_version=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000303# The variables have the same names as the options, with
304# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000305cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000306exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000307no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000308no_recursion=
309prefix=NONE
310program_prefix=NONE
311program_suffix=NONE
312program_transform_name=s,x,x,
313silent=
314site=
315srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000316verbose=
317x_includes=NONE
318x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000319
320# Installation directory options.
321# These are left unexpanded so users can "make install exec_prefix=/foo"
322# and all the variables that are supposed to be based on exec_prefix
323# by default will actually change.
324# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000337
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000338ac_prev=
339for ac_option
340do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
346 fi
347
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000352 case $ac_option in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000353
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000357 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000358
359 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000360 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000362 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000363
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000373
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000378 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000379
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000380 -disable-* | --disable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000382 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000388
389 -enable-* | --enable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000391 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000398 *) ac_optarg=yes ;;
399 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000400 eval "enable_$ac_feature='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000401
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000409 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000421
422 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000423 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000424 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000425 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000426
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000432 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000437 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000442 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000443
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000449 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000450
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000458 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000463 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000464
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
468
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000470 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000471 no_create=yes ;;
472
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
476
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000484 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000485
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000489 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000490
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000496 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000497
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000503 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000504
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000520 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000521
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
525
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000530 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000531
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000541 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000542
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000546 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000551 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000552
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000558 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000559
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000560 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000561 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000563 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000570
571 -with-* | --with-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000573 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000577 ac_package=`echo $ac_package| sed 's/-/_/g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000580 *) ac_optarg=yes ;;
581 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000582 eval "with_$ac_package='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000583
584 -without-* | --without-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000586 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000592
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
596
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000602 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000603
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000609 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000610
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000614 ;;
615
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
625
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000626 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000632 ;;
633
634 esac
635done
636
637if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000641fi
642
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000643# Be sure to have absolute paths.
644for ac_var in exec_prefix prefix
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000645do
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000650 { (exit 1); exit 1; }; };;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000651 esac
652done
653
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000654# Be sure to have absolute paths.
655for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
657do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000662 { (exit 1); exit 1; }; };;
663 esac
664done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000665
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000666# There might be people who depend on the old broken behavior: `$host'
667# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000668# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000669build=$build_alias
670host=$host_alias
671target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000672
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000673# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000674if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
681 fi
682fi
683
684ac_tool_prefix=
685test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000688
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000689
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000690# Find the source files, if location was not specified.
691if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710else
711 ac_srcdir_defaulted=no
712fi
713if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000716 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000717 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000719 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000720 fi
721fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000722srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723ac_env_build_alias_set=${build_alias+set}
724ac_env_build_alias_value=$build_alias
725ac_cv_env_build_alias_set=${build_alias+set}
726ac_cv_env_build_alias_value=$build_alias
727ac_env_host_alias_set=${host_alias+set}
728ac_env_host_alias_value=$host_alias
729ac_cv_env_host_alias_set=${host_alias+set}
730ac_cv_env_host_alias_value=$host_alias
731ac_env_target_alias_set=${target_alias+set}
732ac_env_target_alias_value=$target_alias
733ac_cv_env_target_alias_set=${target_alias+set}
734ac_cv_env_target_alias_value=$target_alias
735ac_env_CC_set=${CC+set}
736ac_env_CC_value=$CC
737ac_cv_env_CC_set=${CC+set}
738ac_cv_env_CC_value=$CC
739ac_env_CFLAGS_set=${CFLAGS+set}
740ac_env_CFLAGS_value=$CFLAGS
741ac_cv_env_CFLAGS_set=${CFLAGS+set}
742ac_cv_env_CFLAGS_value=$CFLAGS
743ac_env_LDFLAGS_set=${LDFLAGS+set}
744ac_env_LDFLAGS_value=$LDFLAGS
745ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746ac_cv_env_LDFLAGS_value=$LDFLAGS
747ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748ac_env_CPPFLAGS_value=$CPPFLAGS
749ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751ac_env_CPP_set=${CPP+set}
752ac_env_CPP_value=$CPP
753ac_cv_env_CPP_set=${CPP+set}
754ac_cv_env_CPP_value=$CPP
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000755
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000756#
757# Report the --help message.
758#
759if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000762 cat <<_ACEOF
Alexandre Julliardf85d8da2002-05-10 03:14:24 +0000763\`configure' configures Wine 20020509 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000764
765Usage: $0 [OPTION]... [VAR=VALUE]...
766
767To assign environment variables (e.g., CC, CFLAGS...), specify them as
768VAR=VALUE. See below for descriptions of some of the useful variables.
769
770Defaults for the options are specified in brackets.
771
772Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
782
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000783_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000784
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000785 cat <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000786Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
791
792By default, \`make install' will install all the files in
793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795for instance \`--prefix=\$HOME'.
796
797For better control, use the options below.
798
799Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000812_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000813
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000814 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000815
816X features:
817 --x-includes=DIR X include files are in DIR
818 --x-libraries=DIR X library files are in DIR
819
820System types:
821 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000822 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000823_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000824fi
825
826if test -n "$ac_init_help"; then
827 case $ac_init_help in
Alexandre Julliardf85d8da2002-05-10 03:14:24 +0000828 short | recursive ) echo "Configuration of Wine 20020509:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000829 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000830 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000831
832Optional Features:
833 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
834 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
835 --disable-debug compile out all debugging messages
836 --disable-trace compile out TRACE messages
837 --enable-opengl force usage of OpenGL even if the latter is
838 thread-safe via pthread
839
840Optional Packages:
841 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
842 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
843 --without-curses do not use curses
Alexandre Julliardfc01b722002-05-12 03:16:39 +0000844 --with-wine-tools=<dir> use Wine tools from directory <dir>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000845 --with-x use the X Window System
846
847Some influential environment variables:
848 CC C compiler command
849 CFLAGS C compiler flags
850 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
851 nonstandard directory <lib dir>
852 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
853 headers in a nonstandard directory <include dir>
854 CPP C preprocessor
855
856Use these variables to override the choices made by `configure' or to help
857it to find libraries and programs with nonstandard names/locations.
858
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000859_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000860fi
861
862if test "$ac_init_help" = "recursive"; then
863 # If there are subdirs, report their specific --help.
864 ac_popdir=`pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000865 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866 test -d $ac_dir || continue
867 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000868
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000869if test "$ac_dir" != .; then
870 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
871 # A "../" for each directory in $ac_dir_suffix.
872 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
873else
874 ac_dir_suffix= ac_top_builddir=
875fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000876
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000877case $srcdir in
878 .) # No --srcdir option. We are building in place.
879 ac_srcdir=.
880 if test -z "$ac_top_builddir"; then
881 ac_top_srcdir=.
882 else
883 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
884 fi ;;
885 [\\/]* | ?:[\\/]* ) # Absolute path.
886 ac_srcdir=$srcdir$ac_dir_suffix;
887 ac_top_srcdir=$srcdir ;;
888 *) # Relative path.
889 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890 ac_top_srcdir=$ac_top_builddir$srcdir ;;
891esac
892# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
893# absolute.
894ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
895ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
896ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
897ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
898
899 cd $ac_dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000900 # Check for guested configure; otherwise get Cygnus style configure.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000901 if test -f $ac_srcdir/configure.gnu; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000902 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000903 $SHELL $ac_srcdir/configure.gnu --help=recursive
904 elif test -f $ac_srcdir/configure; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000905 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000906 $SHELL $ac_srcdir/configure --help=recursive
907 elif test -f $ac_srcdir/configure.ac ||
908 test -f $ac_srcdir/configure.in; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000909 echo
910 $ac_configure --help
911 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000912 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000913 fi
914 cd $ac_popdir
915 done
916fi
917
918test -n "$ac_init_help" && exit 0
919if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000920 cat <<\_ACEOF
Alexandre Julliardf85d8da2002-05-10 03:14:24 +0000921Wine configure 20020509
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000922generated by GNU Autoconf 2.53
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000923
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000924Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000925Free Software Foundation, Inc.
926This configure script is free software; the Free Software Foundation
927gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000928_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000929 exit 0
930fi
931exec 5>config.log
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000932cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000933This file contains any messages produced by compilers while
934running configure, to aid debugging if configure makes a mistake.
935
Alexandre Julliardf85d8da2002-05-10 03:14:24 +0000936It was created by Wine $as_me 20020509, which was
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000937generated by GNU Autoconf 2.53. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000938
939 $ $0 $@
940
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000941_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000942{
943cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000944## --------- ##
945## Platform. ##
946## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000947
948hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949uname -m = `(uname -m) 2>/dev/null || echo unknown`
950uname -r = `(uname -r) 2>/dev/null || echo unknown`
951uname -s = `(uname -s) 2>/dev/null || echo unknown`
952uname -v = `(uname -v) 2>/dev/null || echo unknown`
953
954/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
955/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
956
957/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
958/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
959/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
960hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
961/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
962/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
963/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
964
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000965_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000966
967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
968for as_dir in $PATH
969do
970 IFS=$as_save_IFS
971 test -z "$as_dir" && as_dir=.
972 echo "PATH: $as_dir"
973done
974
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000975} >&5
976
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000977cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000978
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000979
980## ----------- ##
981## Core tests. ##
982## ----------- ##
983
984_ACEOF
985
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000986
987# Keep a trace of the command line.
988# Strip out --no-create and --no-recursion so they do not pile up.
989# Also quote any args containing shell meta-characters.
990ac_configure_args=
991ac_sep=
992for ac_arg
993do
994 case $ac_arg in
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000996 | --no-cr | --no-c | -n ) continue ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 continue ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001000 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001001 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1002 esac
1003 case " $ac_configure_args " in
1004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1005 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1006 ac_sep=" " ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001007 esac
1008 # Get rid of the leading space.
1009done
1010
1011# When interrupted or exit'd, cleanup temporary files, and complete
1012# config.log. We remove comments because anyway the quotes in there
1013# would cause problems or look ugly.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001014# WARNING: Be sure not to use single quotes in there, as some shells,
1015# such as our DU 5.0 friend, will then `close' the trap.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001016trap 'exit_status=$?
1017 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001018 {
1019 echo
1020 cat <<\_ASBOX
1021## ---------------- ##
1022## Cache variables. ##
1023## ---------------- ##
1024_ASBOX
1025 echo
1026 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001027{
1028 (set) 2>&1 |
1029 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1030 *ac_space=\ *)
1031 sed -n \
1032 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1034 ;;
1035 *)
1036 sed -n \
1037 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1038 ;;
1039 esac;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001040}
1041 echo
1042 if test -s confdefs.h; then
1043 cat <<\_ASBOX
1044## ----------- ##
1045## confdefs.h. ##
1046## ----------- ##
1047_ASBOX
1048 echo
1049 sed "/^$/d" confdefs.h
1050 echo
1051 fi
1052 test "$ac_signal" != 0 &&
1053 echo "$as_me: caught signal $ac_signal"
1054 echo "$as_me: exit $exit_status"
1055 } >&5
1056 rm -f core core.* *.core &&
1057 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001058 exit $exit_status
1059 ' 0
1060for ac_signal in 1 2 13 15; do
1061 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1062done
1063ac_signal=0
1064
1065# confdefs.h avoids OS command line length limits that DEFS can exceed.
1066rm -rf conftest* confdefs.h
1067# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1068echo >confdefs.h
1069
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001070# Predefined preprocessor variables.
1071
1072cat >>confdefs.h <<_ACEOF
1073#define PACKAGE_NAME "$PACKAGE_NAME"
1074_ACEOF
1075
1076
1077cat >>confdefs.h <<_ACEOF
1078#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1079_ACEOF
1080
1081
1082cat >>confdefs.h <<_ACEOF
1083#define PACKAGE_VERSION "$PACKAGE_VERSION"
1084_ACEOF
1085
1086
1087cat >>confdefs.h <<_ACEOF
1088#define PACKAGE_STRING "$PACKAGE_STRING"
1089_ACEOF
1090
1091
1092cat >>confdefs.h <<_ACEOF
1093#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1094_ACEOF
1095
1096
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001097# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001098# Prefer explicitly selected file to automatically selected ones.
1099if test -z "$CONFIG_SITE"; then
1100 if test "x$prefix" != xNONE; then
1101 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1102 else
1103 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1104 fi
1105fi
1106for ac_site_file in $CONFIG_SITE; do
1107 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001108 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001109echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001110 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001111 . "$ac_site_file"
1112 fi
1113done
1114
1115if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001116 # Some versions of bash will fail to source /dev/null (special
1117 # files actually), so we avoid doing that.
1118 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001119 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001120echo "$as_me: loading cache $cache_file" >&6;}
1121 case $cache_file in
1122 [\\/]* | ?:[\\/]* ) . $cache_file;;
1123 *) . ./$cache_file;;
1124 esac
1125 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001126else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001127 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001128echo "$as_me: creating cache $cache_file" >&6;}
1129 >$cache_file
1130fi
1131
1132# Check that the precious variables saved in the cache have kept the same
1133# value.
1134ac_cache_corrupted=false
1135for ac_var in `(set) 2>&1 |
1136 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1137 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1138 eval ac_new_set=\$ac_env_${ac_var}_set
1139 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1140 eval ac_new_val="\$ac_env_${ac_var}_value"
1141 case $ac_old_set,$ac_new_set in
1142 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001143 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001144echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1145 ac_cache_corrupted=: ;;
1146 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001147 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001148echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1149 ac_cache_corrupted=: ;;
1150 ,);;
1151 *)
1152 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001153 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001154echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001155 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001156echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001157 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001158echo "$as_me: current value: $ac_new_val" >&2;}
1159 ac_cache_corrupted=:
1160 fi;;
1161 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001162 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001163 if test "$ac_new_set" = set; then
1164 case $ac_new_val in
1165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001166 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1167 *) ac_arg=$ac_var=$ac_new_val ;;
1168 esac
1169 case " $ac_configure_args " in
1170 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1171 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001172 esac
1173 fi
1174done
1175if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001176 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001177echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001178 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001179echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1180 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001181fi
1182
1183ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001184ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1187ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001188
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001214
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001215ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001216
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001217ac_aux_dir=
1218for ac_dir in tools $srcdir/tools; do
1219 if test -f $ac_dir/install-sh; then
1220 ac_aux_dir=$ac_dir
1221 ac_install_sh="$ac_aux_dir/install-sh -c"
1222 break
1223 elif test -f $ac_dir/install.sh; then
1224 ac_aux_dir=$ac_dir
1225 ac_install_sh="$ac_aux_dir/install.sh -c"
1226 break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001227 elif test -f $ac_dir/shtool; then
1228 ac_aux_dir=$ac_dir
1229 ac_install_sh="$ac_aux_dir/shtool install -c"
1230 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001231 fi
1232done
1233if test -z "$ac_aux_dir"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001234 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001235echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1236 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001237fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001238ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1239ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1240ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Howard Abrams13277481999-07-10 13:16:29 +00001241
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001242
1243
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00001244LIBEXT=so # library type .so or .a
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001245
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001246# Check whether --enable-debug or --disable-debug was given.
1247if test "${enable_debug+set}" = set; then
1248 enableval="$enable_debug"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001249
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001250fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001251# Check whether --enable-trace or --disable-trace was given.
1252if test "${enable_trace+set}" = set; then
1253 enableval="$enable_trace"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001254
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001255fi;
1256# Check whether --enable-opengl or --disable-opengl was given.
1257if test "${enable_opengl+set}" = set; then
1258 enableval="$enable_opengl"
1259
1260fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001261
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001262# Check whether --with-curses or --without-curses was given.
1263if test "${with_curses+set}" = set; then
1264 withval="$with_curses"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001265
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001266fi;
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001267
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001268# Check whether --with-wine-tools or --without-wine-tools was given.
1269if test "${with_wine_tools+set}" = set; then
1270 withval="$with_wine_tools"
1271
1272fi;
1273
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001274
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001275if test "x$enable_debug" = "xno"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001276then
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001277
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001278cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001279#define NO_DEBUG_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001280_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001281
1282fi
1283if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001284then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001285
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001286cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001287#define NO_TRACE_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001288_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001289
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001290fi
1291
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001292
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001293# Make sure we can run config.sub.
1294$ac_config_sub sun4 >/dev/null 2>&1 ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001295 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001296echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1297 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001298
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001299echo "$as_me:$LINENO: checking build system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001300echo $ECHO_N "checking build system type... $ECHO_C" >&6
1301if test "${ac_cv_build+set}" = set; then
1302 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001303else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001304 ac_cv_build_alias=$build_alias
1305test -z "$ac_cv_build_alias" &&
1306 ac_cv_build_alias=`$ac_config_guess`
1307test -z "$ac_cv_build_alias" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001308 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001309echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1310 { (exit 1); exit 1; }; }
1311ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001312 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1313echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001314 { (exit 1); exit 1; }; }
1315
1316fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001317echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001318echo "${ECHO_T}$ac_cv_build" >&6
1319build=$ac_cv_build
1320build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1321build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1322build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1323
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001324
1325echo "$as_me:$LINENO: checking host system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001326echo $ECHO_N "checking host system type... $ECHO_C" >&6
1327if test "${ac_cv_host+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1329else
1330 ac_cv_host_alias=$host_alias
1331test -z "$ac_cv_host_alias" &&
1332 ac_cv_host_alias=$ac_cv_build_alias
1333ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001334 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001335echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1336 { (exit 1); exit 1; }; }
1337
1338fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001339echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001340echo "${ECHO_T}$ac_cv_host" >&6
1341host=$ac_cv_host
1342host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1343host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1344host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1345
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001346
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001347echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001348echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1349set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1350if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1352else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001353 cat >conftest.make <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001354all:
1355 @echo 'ac_maketemp="${MAKE}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001356_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001357# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001358eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001359if test -n "$ac_maketemp"; then
1360 eval ac_cv_prog_make_${ac_make}_set=yes
1361else
1362 eval ac_cv_prog_make_${ac_make}_set=no
1363fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001364rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001365fi
1366if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001367 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001368echo "${ECHO_T}yes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001369 SET_MAKE=
1370else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001371 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001372echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001373 SET_MAKE="MAKE=${MAKE-make}"
1374fi
1375
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001376ac_ext=c
1377ac_cpp='$CPP $CPPFLAGS'
1378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1380ac_compiler_gnu=$ac_cv_c_compiler_gnu
1381if test -n "$ac_tool_prefix"; then
1382 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1383set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001384echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1386if test "${ac_cv_prog_CC+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001388else
1389 if test -n "$CC"; then
1390 ac_cv_prog_CC="$CC" # Let the user override the test.
1391else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1393for as_dir in $PATH
1394do
1395 IFS=$as_save_IFS
1396 test -z "$as_dir" && as_dir=.
1397 for ac_exec_ext in '' $ac_executable_extensions; do
1398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1399 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401 break 2
1402 fi
1403done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001404done
1405
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001406fi
1407fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001408CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001409if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001410 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001411echo "${ECHO_T}$CC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001412else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001413 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001414echo "${ECHO_T}no" >&6
1415fi
1416
1417fi
1418if test -z "$ac_cv_prog_CC"; then
1419 ac_ct_CC=$CC
1420 # Extract the first word of "gcc", so it can be a program name with args.
1421set dummy gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001422echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1426else
1427 if test -n "$ac_ct_CC"; then
1428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1429else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431for as_dir in $PATH
1432do
1433 IFS=$as_save_IFS
1434 test -z "$as_dir" && as_dir=.
1435 for ac_exec_ext in '' $ac_executable_extensions; do
1436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1437 ac_cv_prog_ac_ct_CC="gcc"
1438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1439 break 2
1440 fi
1441done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001442done
1443
1444fi
1445fi
1446ac_ct_CC=$ac_cv_prog_ac_ct_CC
1447if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001448 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001449echo "${ECHO_T}$ac_ct_CC" >&6
1450else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001451 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001452echo "${ECHO_T}no" >&6
1453fi
1454
1455 CC=$ac_ct_CC
1456else
1457 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001458fi
1459
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001460if test -z "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001461 if test -n "$ac_tool_prefix"; then
1462 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1463set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001464echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001468else
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1471else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473for as_dir in $PATH
1474do
1475 IFS=$as_save_IFS
1476 test -z "$as_dir" && as_dir=.
1477 for ac_exec_ext in '' $ac_executable_extensions; do
1478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1479 ac_cv_prog_CC="${ac_tool_prefix}cc"
1480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1481 break 2
1482 fi
1483done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001484done
1485
1486fi
1487fi
1488CC=$ac_cv_prog_CC
1489if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001490 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001491echo "${ECHO_T}$CC" >&6
1492else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001493 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001494echo "${ECHO_T}no" >&6
1495fi
1496
1497fi
1498if test -z "$ac_cv_prog_CC"; then
1499 ac_ct_CC=$CC
1500 # Extract the first word of "cc", so it can be a program name with args.
1501set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001502echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506else
1507 if test -n "$ac_ct_CC"; then
1508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511for as_dir in $PATH
1512do
1513 IFS=$as_save_IFS
1514 test -z "$as_dir" && as_dir=.
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_prog_ac_ct_CC="cc"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 break 2
1520 fi
1521done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001522done
1523
1524fi
1525fi
1526ac_ct_CC=$ac_cv_prog_ac_ct_CC
1527if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001528 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001529echo "${ECHO_T}$ac_ct_CC" >&6
1530else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001531 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001532echo "${ECHO_T}no" >&6
1533fi
1534
1535 CC=$ac_ct_CC
1536else
1537 CC="$ac_cv_prog_CC"
1538fi
1539
1540fi
1541if test -z "$CC"; then
1542 # Extract the first word of "cc", so it can be a program name with args.
1543set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001544echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546if test "${ac_cv_prog_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 if test -n "$CC"; then
1550 ac_cv_prog_CC="$CC" # Let the user override the test.
1551else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001552 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554for as_dir in $PATH
1555do
1556 IFS=$as_save_IFS
1557 test -z "$as_dir" && as_dir=.
1558 for ac_exec_ext in '' $ac_executable_extensions; do
1559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1560 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1561 ac_prog_rejected=yes
1562 continue
1563 fi
1564 ac_cv_prog_CC="cc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 break 2
1567 fi
1568done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001569done
1570
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001571if test $ac_prog_rejected = yes; then
1572 # We found a bogon in the path, so make sure we never use it.
1573 set dummy $ac_cv_prog_CC
1574 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001575 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001576 # We chose a different compiler from the bogus one.
1577 # However, it has the same basename, so the bogon will be chosen
1578 # first if we set CC to just the basename; use the full file name.
1579 shift
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001580 set dummy "$as_dir/$ac_word" ${1+"$@"}
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001581 shift
1582 ac_cv_prog_CC="$@"
1583 fi
1584fi
1585fi
1586fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001587CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001588if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001589 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001590echo "${ECHO_T}$CC" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001591else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001592 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001593echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001594fi
1595
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001596fi
1597if test -z "$CC"; then
1598 if test -n "$ac_tool_prefix"; then
1599 for ac_prog in cl
1600 do
1601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1602set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001603echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001607else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612for as_dir in $PATH
1613do
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1621 fi
1622done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001623done
1624
Eric Pouech18ad24a2000-01-16 22:16:33 +00001625fi
1626fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001627CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00001628if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001629 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001630echo "${ECHO_T}$CC" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001631else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001632 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001633echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001634fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001635
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001636 test -n "$CC" && break
1637 done
1638fi
1639if test -z "$CC"; then
1640 ac_ct_CC=$CC
1641 for ac_prog in cl
1642do
1643 # Extract the first word of "$ac_prog", so it can be a program name with args.
1644set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001645echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1649else
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654for as_dir in $PATH
1655do
1656 IFS=$as_save_IFS
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="$ac_prog"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 break 2
1663 fi
1664done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001665done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001666
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001667fi
1668fi
1669ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001672echo "${ECHO_T}$ac_ct_CC" >&6
1673else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001674 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001675echo "${ECHO_T}no" >&6
1676fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001677
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001678 test -n "$ac_ct_CC" && break
1679done
Eric Pouech18ad24a2000-01-16 22:16:33 +00001680
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001681 CC=$ac_ct_CC
1682fi
1683
1684fi
1685
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001686
1687test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1688echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001689 { (exit 1); exit 1; }; }
1690
1691# Provide some information about the compiler.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001692echo "$as_me:$LINENO:" \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001693 "checking for C compiler version" >&5
1694ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001695{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001696 (eval $ac_compiler --version </dev/null >&5) 2>&5
1697 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001699 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001700{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001701 (eval $ac_compiler -v </dev/null >&5) 2>&5
1702 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001704 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001705{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001706 (eval $ac_compiler -V </dev/null >&5) 2>&5
1707 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001709 (exit $ac_status); }
1710
1711cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001712#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001713#include "confdefs.h"
Eric Pouech18ad24a2000-01-16 22:16:33 +00001714
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001715#ifdef F77_DUMMY_MAIN
1716# ifdef __cplusplus
1717 extern "C"
1718# endif
1719 int F77_DUMMY_MAIN() { return 1; }
1720#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001721int
1722main ()
1723{
1724
1725 ;
1726 return 0;
1727}
1728_ACEOF
1729ac_clean_files_save=$ac_clean_files
1730ac_clean_files="$ac_clean_files a.out a.exe"
1731# Try to create an executable without -o first, disregard a.out.
1732# It will help us diagnose broken compilers, and finding out an intuition
1733# of exeext.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001734echo "$as_me:$LINENO: checking for C compiler default output" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001735echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1736ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001737if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001738 (eval $ac_link_default) 2>&5
1739 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001741 (exit $ac_status); }; then
1742 # Find the output, starting from the most likely. This scheme is
1743# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1744# resort.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001745
1746# Be careful to initialize this variable, since it used to be cached.
1747# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1748ac_cv_exeext=
1749for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001750 ls a.out conftest 2>/dev/null;
1751 ls a.* conftest.* 2>/dev/null`; do
1752 case $ac_file in
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001753 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001754 a.out ) # We found the default executable, but exeext='' is most
1755 # certainly right.
1756 break;;
1757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1759 export ac_cv_exeext
1760 break;;
1761 * ) break;;
1762 esac
1763done
1764else
1765 echo "$as_me: failed program was:" >&5
1766cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001767{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001768echo "$as_me: error: C compiler cannot create executables" >&2;}
1769 { (exit 77); exit 77; }; }
1770fi
1771
1772ac_exeext=$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001773echo "$as_me:$LINENO: result: $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001774echo "${ECHO_T}$ac_file" >&6
1775
1776# Check the compiler produces executables we can run. If not, either
1777# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001778echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001779echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1780# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1781# If not cross compiling, check that we can run a simple program.
1782if test "$cross_compiling" != yes; then
1783 if { ac_try='./$ac_file'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001785 (eval $ac_try) 2>&5
1786 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001788 (exit $ac_status); }; }; then
1789 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001790 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001791 if test "$cross_compiling" = maybe; then
1792 cross_compiling=yes
1793 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001794 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001795If you meant to cross compile, use \`--host'." >&5
1796echo "$as_me: error: cannot run C compiled programs.
1797If you meant to cross compile, use \`--host'." >&2;}
1798 { (exit 1); exit 1; }; }
1799 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001800 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001801fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001802echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001803echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001804
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001805rm -f a.out a.exe conftest$ac_cv_exeext
1806ac_clean_files=$ac_clean_files_save
1807# Check the compiler produces executables we can run. If not, either
1808# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001809echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001810echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001811echo "$as_me:$LINENO: result: $cross_compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001812echo "${ECHO_T}$cross_compiling" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001813
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001814echo "$as_me:$LINENO: checking for suffix of executables" >&5
1815echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001817 (eval $ac_link) 2>&5
1818 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001820 (exit $ac_status); }; then
1821 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1822# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1823# work properly (i.e., refer to `conftest.exe'), while it won't with
1824# `rm'.
1825for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1826 case $ac_file in
1827 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1828 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1829 export ac_cv_exeext
1830 break;;
1831 * ) break;;
1832 esac
1833done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001834else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001835 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1836echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001837 { (exit 1); exit 1; }; }
1838fi
1839
1840rm -f conftest$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001841echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001842echo "${ECHO_T}$ac_cv_exeext" >&6
1843
1844rm -f conftest.$ac_ext
1845EXEEXT=$ac_cv_exeext
1846ac_exeext=$EXEEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001847echo "$as_me:$LINENO: checking for suffix of object files" >&5
1848echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001849if test "${ac_cv_objext+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1851else
1852 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001853#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001854#include "confdefs.h"
1855
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001856#ifdef F77_DUMMY_MAIN
1857# ifdef __cplusplus
1858 extern "C"
1859# endif
1860 int F77_DUMMY_MAIN() { return 1; }
1861#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001862int
1863main ()
1864{
1865
1866 ;
1867 return 0;
1868}
1869_ACEOF
1870rm -f conftest.o conftest.obj
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001872 (eval $ac_compile) 2>&5
1873 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001875 (exit $ac_status); }; then
1876 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1877 case $ac_file in
1878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1879 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1880 break;;
1881 esac
1882done
1883else
1884 echo "$as_me: failed program was:" >&5
1885cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001886{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1887echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001888 { (exit 1); exit 1; }; }
1889fi
1890
1891rm -f conftest.$ac_cv_objext conftest.$ac_ext
1892fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001893echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001894echo "${ECHO_T}$ac_cv_objext" >&6
1895OBJEXT=$ac_cv_objext
1896ac_objext=$OBJEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001897echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001898echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1899if test "${ac_cv_c_compiler_gnu+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1901else
1902 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001903#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001904#include "confdefs.h"
1905
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001906#ifdef F77_DUMMY_MAIN
1907# ifdef __cplusplus
1908 extern "C"
1909# endif
1910 int F77_DUMMY_MAIN() { return 1; }
1911#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001912int
1913main ()
1914{
1915#ifndef __GNUC__
1916 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001917#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001918
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001919 ;
1920 return 0;
1921}
1922_ACEOF
1923rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001925 (eval $ac_compile) 2>&5
1926 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001928 (exit $ac_status); } &&
1929 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001931 (eval $ac_try) 2>&5
1932 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001934 (exit $ac_status); }; }; then
1935 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00001936else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001937 echo "$as_me: failed program was:" >&5
1938cat conftest.$ac_ext >&5
1939ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00001940fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001941rm -f conftest.$ac_objext conftest.$ac_ext
1942ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00001943
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001944fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001945echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001946echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1947GCC=`test $ac_compiler_gnu = yes && echo yes`
1948ac_test_CFLAGS=${CFLAGS+set}
1949ac_save_CFLAGS=$CFLAGS
1950CFLAGS="-g"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001951echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001952echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1953if test "${ac_cv_prog_cc_g+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001955else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001956 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001957#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001958#include "confdefs.h"
1959
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001960#ifdef F77_DUMMY_MAIN
1961# ifdef __cplusplus
1962 extern "C"
1963# endif
1964 int F77_DUMMY_MAIN() { return 1; }
1965#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001966int
1967main ()
1968{
1969
1970 ;
1971 return 0;
1972}
1973_ACEOF
1974rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001976 (eval $ac_compile) 2>&5
1977 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001979 (exit $ac_status); } &&
1980 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001982 (eval $ac_try) 2>&5
1983 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001985 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001986 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001987else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001988 echo "$as_me: failed program was:" >&5
1989cat conftest.$ac_ext >&5
1990ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001991fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001992rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001993fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001994echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001995echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001996if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001997 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00001998elif test $ac_cv_prog_cc_g = yes; then
1999 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002000 CFLAGS="-g -O2"
2001 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002002 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002003 fi
2004else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002005 if test "$GCC" = yes; then
2006 CFLAGS="-O2"
2007 else
2008 CFLAGS=
2009 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002010fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002011# Some people use a C++ compiler to compile C. Since we use `exit',
2012# in C++ we need to declare it. In case someone uses the same compiler
2013# for both compiling C and C++ we need to have the C++ compiler decide
2014# the declaration of exit, since it's the most demanding environment.
2015cat >conftest.$ac_ext <<_ACEOF
2016#ifndef __cplusplus
2017 choke me
2018#endif
2019_ACEOF
2020rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002022 (eval $ac_compile) 2>&5
2023 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002025 (exit $ac_status); } &&
2026 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002028 (eval $ac_try) 2>&5
2029 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002031 (exit $ac_status); }; }; then
2032 for ac_declaration in \
2033 ''\
2034 '#include <stdlib.h>' \
2035 'extern "C" void std::exit (int) throw (); using std::exit;' \
2036 'extern "C" void std::exit (int); using std::exit;' \
2037 'extern "C" void exit (int) throw ();' \
2038 'extern "C" void exit (int);' \
2039 'void exit (int);'
2040do
2041 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002042#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002043#include "confdefs.h"
2044#include <stdlib.h>
2045$ac_declaration
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002046#ifdef F77_DUMMY_MAIN
2047# ifdef __cplusplus
2048 extern "C"
2049# endif
2050 int F77_DUMMY_MAIN() { return 1; }
2051#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002052int
2053main ()
2054{
2055exit (42);
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002062 (eval $ac_compile) 2>&5
2063 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002065 (exit $ac_status); } &&
2066 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002068 (eval $ac_try) 2>&5
2069 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002071 (exit $ac_status); }; }; then
2072 :
2073else
2074 echo "$as_me: failed program was:" >&5
2075cat conftest.$ac_ext >&5
2076continue
2077fi
2078rm -f conftest.$ac_objext conftest.$ac_ext
2079 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002080#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002081#include "confdefs.h"
2082$ac_declaration
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002083#ifdef F77_DUMMY_MAIN
2084# ifdef __cplusplus
2085 extern "C"
2086# endif
2087 int F77_DUMMY_MAIN() { return 1; }
2088#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002089int
2090main ()
2091{
2092exit (42);
2093 ;
2094 return 0;
2095}
2096_ACEOF
2097rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002099 (eval $ac_compile) 2>&5
2100 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002102 (exit $ac_status); } &&
2103 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002105 (eval $ac_try) 2>&5
2106 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002108 (exit $ac_status); }; }; then
2109 break
2110else
2111 echo "$as_me: failed program was:" >&5
2112cat conftest.$ac_ext >&5
2113fi
2114rm -f conftest.$ac_objext conftest.$ac_ext
2115done
2116rm -f conftest*
2117if test -n "$ac_declaration"; then
2118 echo '#ifdef __cplusplus' >>confdefs.h
2119 echo $ac_declaration >>confdefs.h
2120 echo '#endif' >>confdefs.h
2121fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002122
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002123else
2124 echo "$as_me: failed program was:" >&5
2125cat conftest.$ac_ext >&5
2126fi
2127rm -f conftest.$ac_objext conftest.$ac_ext
2128ac_ext=c
2129ac_cpp='$CPP $CPPFLAGS'
2130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2132ac_compiler_gnu=$ac_cv_c_compiler_gnu
2133
2134ac_ext=c
2135ac_cpp='$CPP $CPPFLAGS'
2136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002139echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002140echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002141# On Suns, sometimes $CPP names a directory.
2142if test -n "$CPP" && test -d "$CPP"; then
2143 CPP=
2144fi
2145if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002146 if test "${ac_cv_prog_CPP+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002148else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002149 # Double quotes because CPP needs to be expanded
2150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2151 do
2152 ac_preproc_ok=false
2153for ac_c_preproc_warn_flag in '' yes
2154do
2155 # Use a header file that comes with gcc, so configuring glibc
2156 # with a fresh cross-compiler works.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002157 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002158 # not just through cpp. "Syntax error" is here to catch this case.
2159 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002160#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002161#include "confdefs.h"
2162#include <assert.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002163 Syntax error
2164_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2167 ac_status=$?
2168 egrep -v '^ *\+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002172 (exit $ac_status); } >/dev/null; then
2173 if test -s conftest.err; then
2174 ac_cpp_err=$ac_c_preproc_warn_flag
2175 else
2176 ac_cpp_err=
2177 fi
2178else
2179 ac_cpp_err=yes
2180fi
2181if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002182 :
2183else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002184 echo "$as_me: failed program was:" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002185 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002186 # Broken: fails on valid input.
2187continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002188fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002189rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002190
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002191 # OK, works on sane cases. Now check whether non-existent headers
2192 # can be detected and how.
2193 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002194#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002195#include "confdefs.h"
2196#include <ac_nonexistent.h>
2197_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2200 ac_status=$?
2201 egrep -v '^ *\+' conftest.er1 >conftest.err
2202 rm -f conftest.er1
2203 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002205 (exit $ac_status); } >/dev/null; then
2206 if test -s conftest.err; then
2207 ac_cpp_err=$ac_c_preproc_warn_flag
2208 else
2209 ac_cpp_err=
2210 fi
2211else
2212 ac_cpp_err=yes
2213fi
2214if test -z "$ac_cpp_err"; then
2215 # Broken: success on invalid input.
2216continue
2217else
2218 echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 # Passes both tests.
2221ac_preproc_ok=:
2222break
2223fi
2224rm -f conftest.err conftest.$ac_ext
2225
2226done
2227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2228rm -f conftest.err conftest.$ac_ext
2229if $ac_preproc_ok; then
2230 break
2231fi
2232
2233 done
2234 ac_cv_prog_CPP=$CPP
2235
2236fi
2237 CPP=$ac_cv_prog_CPP
2238else
2239 ac_cv_prog_CPP=$CPP
2240fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002241echo "$as_me:$LINENO: result: $CPP" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002242echo "${ECHO_T}$CPP" >&6
2243ac_preproc_ok=false
2244for ac_c_preproc_warn_flag in '' yes
2245do
2246 # Use a header file that comes with gcc, so configuring glibc
2247 # with a fresh cross-compiler works.
2248 # On the NeXT, cc -E runs the code through the compiler's parser,
2249 # not just through cpp. "Syntax error" is here to catch this case.
2250 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002251#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002252#include "confdefs.h"
2253#include <assert.h>
2254 Syntax error
2255_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2258 ac_status=$?
2259 egrep -v '^ *\+' conftest.er1 >conftest.err
2260 rm -f conftest.er1
2261 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002263 (exit $ac_status); } >/dev/null; then
2264 if test -s conftest.err; then
2265 ac_cpp_err=$ac_c_preproc_warn_flag
2266 else
2267 ac_cpp_err=
2268 fi
2269else
2270 ac_cpp_err=yes
2271fi
2272if test -z "$ac_cpp_err"; then
2273 :
2274else
2275 echo "$as_me: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 # Broken: fails on valid input.
2278continue
2279fi
2280rm -f conftest.err conftest.$ac_ext
2281
2282 # OK, works on sane cases. Now check whether non-existent headers
2283 # can be detected and how.
2284 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002285#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002286#include "confdefs.h"
2287#include <ac_nonexistent.h>
2288_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2291 ac_status=$?
2292 egrep -v '^ *\+' conftest.er1 >conftest.err
2293 rm -f conftest.er1
2294 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002296 (exit $ac_status); } >/dev/null; then
2297 if test -s conftest.err; then
2298 ac_cpp_err=$ac_c_preproc_warn_flag
2299 else
2300 ac_cpp_err=
2301 fi
2302else
2303 ac_cpp_err=yes
2304fi
2305if test -z "$ac_cpp_err"; then
2306 # Broken: success on invalid input.
2307continue
2308else
2309 echo "$as_me: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 # Passes both tests.
2312ac_preproc_ok=:
2313break
2314fi
2315rm -f conftest.err conftest.$ac_ext
2316
2317done
2318# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2319rm -f conftest.err conftest.$ac_ext
2320if $ac_preproc_ok; then
2321 :
2322else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002323 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002324echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2325 { (exit 1); exit 1; }; }
2326fi
2327
2328ac_ext=c
2329ac_cpp='$CPP $CPPFLAGS'
2330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002334
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002335echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2336echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2337if test "${wine_cv_toolsdir+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339else
2340 if test -z "$with_wine_tools"; then
2341 if test "$cross_compiling" = "yes"; then
2342 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2343echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2344 { (exit 1); exit 1; }; }
2345 else
2346 wine_cv_toolsdir="\$(TOPOBJDIR)"
2347 fi
2348 elif test -d "$with_wine_tools/tools/winebuild"; then
2349 case $with_wine_tools in
2350 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2351 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2352 esac
2353 else
2354 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2355echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2356 { (exit 1); exit 1; }; }
2357 fi
2358fi
2359echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2360echo "${ECHO_T}$wine_cv_toolsdir" >&6
2361TOOLSDIR=$wine_cv_toolsdir
2362
2363
2364
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002365
2366echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002367echo $ECHO_N "checking for X... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002368
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002369
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002370# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002371if test "${with_x+set}" = set; then
2372 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002373
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002374fi;
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002375# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002376if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002377 # The user explicitly disabled X.
2378 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002379else
2380 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002381 # Both variables are already set.
2382 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002383 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002384 if test "${ac_cv_have_x+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002386else
2387 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002388ac_x_includes=no ac_x_libraries=no
2389rm -fr conftest.dir
2390if mkdir conftest.dir; then
2391 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002392 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002393 cat >Imakefile <<'_ACEOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002394acfindx:
2395 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002396_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002397 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002398 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002399 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002400 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2401 for ac_extension in a so sl; do
2402 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002403 test -f $ac_im_libdir/libX11.$ac_extension; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002404 ac_im_usrlibdir=$ac_im_libdir; break
2405 fi
2406 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002407 # Screen out bogus values from the imake configuration. They are
2408 # bogus both because they are the default anyway, and because
2409 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002410 case $ac_im_incroot in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002411 /usr/include) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002412 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002413 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002414 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002415 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002416 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002417 esac
2418 fi
2419 cd ..
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002420 rm -fr conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002421fi
2422
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002423# Standard set of common directories for X headers.
2424# Check X11 before X11Rn because it is often a symlink to the current release.
2425ac_x_header_dirs='
2426/usr/X11/include
2427/usr/X11R6/include
2428/usr/X11R5/include
2429/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002430
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002431/usr/include/X11
2432/usr/include/X11R6
2433/usr/include/X11R5
2434/usr/include/X11R4
2435
2436/usr/local/X11/include
2437/usr/local/X11R6/include
2438/usr/local/X11R5/include
2439/usr/local/X11R4/include
2440
2441/usr/local/include/X11
2442/usr/local/include/X11R6
2443/usr/local/include/X11R5
2444/usr/local/include/X11R4
2445
2446/usr/X386/include
2447/usr/x386/include
2448/usr/XFree86/include/X11
2449
2450/usr/include
2451/usr/local/include
2452/usr/unsupported/include
2453/usr/athena/include
2454/usr/local/x11r5/include
2455/usr/lpp/Xamples/include
2456
2457/usr/openwin/include
2458/usr/openwin/share/include'
2459
2460if test "$ac_x_includes" = no; then
2461 # Guess where to find include files, by looking for Intrinsic.h.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002462 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002463 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002464#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002465#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002466#include <X11/Intrinsic.h>
2467_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2470 ac_status=$?
2471 egrep -v '^ *\+' conftest.er1 >conftest.err
2472 rm -f conftest.er1
2473 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002475 (exit $ac_status); } >/dev/null; then
2476 if test -s conftest.err; then
2477 ac_cpp_err=$ac_c_preproc_warn_flag
2478 else
2479 ac_cpp_err=
2480 fi
2481else
2482 ac_cpp_err=yes
2483fi
2484if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002485 # We can compile using X headers with no special include directory.
2486ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002487else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002488 echo "$as_me: failed program was:" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002489 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002490 for ac_dir in $ac_x_header_dirs; do
2491 if test -r "$ac_dir/X11/Intrinsic.h"; then
2492 ac_x_includes=$ac_dir
2493 break
2494 fi
2495done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002496fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002497rm -f conftest.err conftest.$ac_ext
2498fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002499
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002500if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002501 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002502 # See if we find them without any special options.
2503 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002504 ac_save_LIBS=$LIBS
2505 LIBS="-lXt $LIBS"
2506 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002507#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002508#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002509#include <X11/Intrinsic.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002510#ifdef F77_DUMMY_MAIN
2511# ifdef __cplusplus
2512 extern "C"
2513# endif
2514 int F77_DUMMY_MAIN() { return 1; }
2515#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002516int
2517main ()
2518{
2519XtMalloc (0)
2520 ;
2521 return 0;
2522}
2523_ACEOF
2524rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002526 (eval $ac_link) 2>&5
2527 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002529 (exit $ac_status); } &&
2530 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002532 (eval $ac_try) 2>&5
2533 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002535 (exit $ac_status); }; }; then
2536 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002537# We can link X programs with no special library path.
2538ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002539else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002540 echo "$as_me: failed program was:" >&5
2541cat conftest.$ac_ext >&5
2542LIBS=$ac_save_LIBS
2543for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002544do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002545 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002546 for ac_extension in a so sl; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002547 if test -r $ac_dir/libXt.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002548 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002549 break 2
2550 fi
2551 done
2552done
2553fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2555fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002556
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002557if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002558 # Didn't find X anywhere. Cache the known absence of X.
2559 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002560else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002561 # Record where we found X for the cache.
2562 ac_cv_have_x="have_x=yes \
2563 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002564fi
2565fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002566
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002567 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002568 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002569fi # $with_x != no
2570
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002571if test "$have_x" != yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002572 echo "$as_me:$LINENO: result: $have_x" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002573echo "${ECHO_T}$have_x" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002574 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002575else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002576 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002577 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2578 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002579 # Update the cache value to reflect the command line values.
2580 ac_cv_have_x="have_x=yes \
2581 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002582 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002583echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002584fi
2585
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002586if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002587 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002588
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002589cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002590#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002591_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002592
2593 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002594else
2595 if test -n "$x_includes"; then
2596 X_CFLAGS="$X_CFLAGS -I$x_includes"
2597 fi
2598
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002599 # It would also be nice to do this for all -L options, not just this one.
2600 if test -n "$x_libraries"; then
2601 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002602 # For Solaris; some versions of Sun CC require a space after -R and
2603 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002604 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002605 "SunOS 5"*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002606 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002607echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2608 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2609 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002610#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002611#include "confdefs.h"
2612
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002613#ifdef F77_DUMMY_MAIN
2614# ifdef __cplusplus
2615 extern "C"
2616# endif
2617 int F77_DUMMY_MAIN() { return 1; }
2618#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002619int
2620main ()
2621{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002622
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002623 ;
2624 return 0;
2625}
2626_ACEOF
2627rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002629 (eval $ac_link) 2>&5
2630 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002632 (exit $ac_status); } &&
2633 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002635 (eval $ac_try) 2>&5
2636 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002638 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002639 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002640else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002641 echo "$as_me: failed program was:" >&5
2642cat conftest.$ac_ext >&5
2643ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002644fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002645rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002646 if test $ac_R_nospace = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002647 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002648echo "${ECHO_T}no" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002649 X_LIBS="$X_LIBS -R$x_libraries"
2650 else
2651 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002652 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002653#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002654#include "confdefs.h"
2655
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002656#ifdef F77_DUMMY_MAIN
2657# ifdef __cplusplus
2658 extern "C"
2659# endif
2660 int F77_DUMMY_MAIN() { return 1; }
2661#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002662int
2663main ()
2664{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002665
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002666 ;
2667 return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002672 (eval $ac_link) 2>&5
2673 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002675 (exit $ac_status); } &&
2676 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002678 (eval $ac_try) 2>&5
2679 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002681 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002682 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002683else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002684 echo "$as_me: failed program was:" >&5
2685cat conftest.$ac_ext >&5
2686ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002687fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002688rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002689 if test $ac_R_space = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002690 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002691echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002692 X_LIBS="$X_LIBS -R $x_libraries"
2693 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002694 echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002695echo "${ECHO_T}neither works" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002696 fi
2697 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002698 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002699 esac
2700 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002701
2702 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002703 # Do this before checking for the system-independent R6 libraries
2704 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002705
2706 if test "$ISC" = yes; then
2707 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2708 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002709 # Martyn Johnson says this is needed for Ultrix, if the X
2710 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002711 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002712 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2713 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002714#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002715#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002716
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002717/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002718#ifdef __cplusplus
2719extern "C"
2720#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002721/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002722 builtin and then its argument prototype would still apply. */
2723char XOpenDisplay ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002724#ifdef F77_DUMMY_MAIN
2725# ifdef __cplusplus
2726 extern "C"
2727# endif
2728 int F77_DUMMY_MAIN() { return 1; }
2729#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002730int
2731main ()
2732{
2733XOpenDisplay ();
2734 ;
2735 return 0;
2736}
2737_ACEOF
2738rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002740 (eval $ac_link) 2>&5
2741 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002743 (exit $ac_status); } &&
2744 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002746 (eval $ac_try) 2>&5
2747 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002749 (exit $ac_status); }; }; then
2750 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002751else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002752 echo "$as_me: failed program was:" >&5
2753cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002754echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002755echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2756if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758else
2759 ac_check_lib_save_LIBS=$LIBS
2760LIBS="-ldnet $LIBS"
2761cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002762#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002763#include "confdefs.h"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002764
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002765/* Override any gcc2 internal prototype to avoid an error. */
2766#ifdef __cplusplus
2767extern "C"
2768#endif
2769/* We use char because int might match the return type of a gcc2
2770 builtin and then its argument prototype would still apply. */
2771char dnet_ntoa ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002772#ifdef F77_DUMMY_MAIN
2773# ifdef __cplusplus
2774 extern "C"
2775# endif
2776 int F77_DUMMY_MAIN() { return 1; }
2777#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002778int
2779main ()
2780{
2781dnet_ntoa ();
2782 ;
2783 return 0;
2784}
2785_ACEOF
2786rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002788 (eval $ac_link) 2>&5
2789 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002791 (exit $ac_status); } &&
2792 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002794 (eval $ac_try) 2>&5
2795 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002797 (exit $ac_status); }; }; then
2798 ac_cv_lib_dnet_dnet_ntoa=yes
2799else
2800 echo "$as_me: failed program was:" >&5
2801cat conftest.$ac_ext >&5
2802ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002803fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2805LIBS=$ac_check_lib_save_LIBS
2806fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002807echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002808echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2809if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002810 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002811fi
2812
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002813 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002814 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002815echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2816if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002818else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002819 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002820LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002821cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002822#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002823#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002824
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002825/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002826#ifdef __cplusplus
2827extern "C"
2828#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002829/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002830 builtin and then its argument prototype would still apply. */
2831char dnet_ntoa ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002832#ifdef F77_DUMMY_MAIN
2833# ifdef __cplusplus
2834 extern "C"
2835# endif
2836 int F77_DUMMY_MAIN() { return 1; }
2837#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002838int
2839main ()
2840{
2841dnet_ntoa ();
2842 ;
2843 return 0;
2844}
2845_ACEOF
2846rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002848 (eval $ac_link) 2>&5
2849 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002851 (exit $ac_status); } &&
2852 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002854 (eval $ac_try) 2>&5
2855 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002857 (exit $ac_status); }; }; then
2858 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002859else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002860 echo "$as_me: failed program was:" >&5
2861cat conftest.$ac_ext >&5
2862ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002863fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002864rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2865LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002866fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002867echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002868echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2869if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002870 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002871fi
2872
2873 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002874fi
2875rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2876 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002877
2878 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2879 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002880 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002881 # needs -lnsl.
2882 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002883 # on Irix 5.2, according to T.E. Dickey.
2884 # The functions gethostbyname, getservbyname, and inet_addr are
2885 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002886 echo "$as_me:$LINENO: checking for gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002887echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2888if test "${ac_cv_func_gethostbyname+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002890else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002891 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002892#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002893#include "confdefs.h"
2894/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002895 which can conflict with char gethostbyname (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002896#include <assert.h>
2897/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002898#ifdef __cplusplus
2899extern "C"
2900#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002901/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002902 builtin and then its argument prototype would still apply. */
2903char gethostbyname ();
2904char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002905
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002906#ifdef F77_DUMMY_MAIN
2907# ifdef __cplusplus
2908 extern "C"
2909# endif
2910 int F77_DUMMY_MAIN() { return 1; }
2911#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002912int
2913main ()
2914{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002915/* The GNU C library defines this for functions which it implements
2916 to always fail with ENOSYS. Some functions are actually named
2917 something starting with __ and the normal name is an alias. */
2918#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2919choke me
2920#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002921f = gethostbyname;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002922#endif
2923
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002924 ;
2925 return 0;
2926}
2927_ACEOF
2928rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002930 (eval $ac_link) 2>&5
2931 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002933 (exit $ac_status); } &&
2934 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002936 (eval $ac_try) 2>&5
2937 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002939 (exit $ac_status); }; }; then
2940 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002941else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002942 echo "$as_me: failed program was:" >&5
2943cat conftest.$ac_ext >&5
2944ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002945fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002947fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002948echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002949echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002950
2951 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002952 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002953echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2954if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002956else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002957 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002958LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002959cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002960#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002961#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002962
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002963/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002964#ifdef __cplusplus
2965extern "C"
2966#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002967/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002968 builtin and then its argument prototype would still apply. */
2969char gethostbyname ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002970#ifdef F77_DUMMY_MAIN
2971# ifdef __cplusplus
2972 extern "C"
2973# endif
2974 int F77_DUMMY_MAIN() { return 1; }
2975#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002976int
2977main ()
2978{
2979gethostbyname ();
2980 ;
2981 return 0;
2982}
2983_ACEOF
2984rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002986 (eval $ac_link) 2>&5
2987 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002989 (exit $ac_status); } &&
2990 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002992 (eval $ac_try) 2>&5
2993 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002995 (exit $ac_status); }; }; then
2996 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002997else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002998 echo "$as_me: failed program was:" >&5
2999cat conftest.$ac_ext >&5
3000ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003001fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3003LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003004fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003005echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003006echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3007if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003009fi
3010
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003011 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003012 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003013echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3014if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016else
3017 ac_check_lib_save_LIBS=$LIBS
3018LIBS="-lbsd $LIBS"
3019cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003020#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003021#include "confdefs.h"
3022
3023/* Override any gcc2 internal prototype to avoid an error. */
3024#ifdef __cplusplus
3025extern "C"
3026#endif
3027/* We use char because int might match the return type of a gcc2
3028 builtin and then its argument prototype would still apply. */
3029char gethostbyname ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003030#ifdef F77_DUMMY_MAIN
3031# ifdef __cplusplus
3032 extern "C"
3033# endif
3034 int F77_DUMMY_MAIN() { return 1; }
3035#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003036int
3037main ()
3038{
3039gethostbyname ();
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003046 (eval $ac_link) 2>&5
3047 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003049 (exit $ac_status); } &&
3050 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003052 (eval $ac_try) 2>&5
3053 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003055 (exit $ac_status); }; }; then
3056 ac_cv_lib_bsd_gethostbyname=yes
3057else
3058 echo "$as_me: failed program was:" >&5
3059cat conftest.$ac_ext >&5
3060ac_cv_lib_bsd_gethostbyname=no
3061fi
3062rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3063LIBS=$ac_check_lib_save_LIBS
3064fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003065echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003066echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3067if test $ac_cv_lib_bsd_gethostbyname = yes; then
3068 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3069fi
3070
3071 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003072 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003073
3074 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003075 # socket/setsockopt and other routines are undefined under SCO ODT
3076 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003077 # on later versions), says Simon Leinen: it contains gethostby*
3078 # variants that don't use the nameserver (or something). -lsocket
3079 # must be given before -lnsl if both are needed. We assume that
3080 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003081 echo "$as_me:$LINENO: checking for connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003082echo $ECHO_N "checking for connect... $ECHO_C" >&6
3083if test "${ac_cv_func_connect+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003085else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003086 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003087#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003088#include "confdefs.h"
3089/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003090 which can conflict with char connect (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003091#include <assert.h>
3092/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003093#ifdef __cplusplus
3094extern "C"
3095#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003096/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003097 builtin and then its argument prototype would still apply. */
3098char connect ();
3099char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003100
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003101#ifdef F77_DUMMY_MAIN
3102# ifdef __cplusplus
3103 extern "C"
3104# endif
3105 int F77_DUMMY_MAIN() { return 1; }
3106#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003107int
3108main ()
3109{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003110/* The GNU C library defines this for functions which it implements
3111 to always fail with ENOSYS. Some functions are actually named
3112 something starting with __ and the normal name is an alias. */
3113#if defined (__stub_connect) || defined (__stub___connect)
3114choke me
3115#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003116f = connect;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003117#endif
3118
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003119 ;
3120 return 0;
3121}
3122_ACEOF
3123rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003125 (eval $ac_link) 2>&5
3126 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003128 (exit $ac_status); } &&
3129 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003131 (eval $ac_try) 2>&5
3132 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003134 (exit $ac_status); }; }; then
3135 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003136else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003137 echo "$as_me: failed program was:" >&5
3138cat conftest.$ac_ext >&5
3139ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003140fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003142fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003143echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003144echo "${ECHO_T}$ac_cv_func_connect" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003145
3146 if test $ac_cv_func_connect = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003147 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003148echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3149if test "${ac_cv_lib_socket_connect+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003151else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003152 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003153LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003154cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003155#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003156#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003157
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003158/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003159#ifdef __cplusplus
3160extern "C"
3161#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003162/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003163 builtin and then its argument prototype would still apply. */
3164char connect ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003165#ifdef F77_DUMMY_MAIN
3166# ifdef __cplusplus
3167 extern "C"
3168# endif
3169 int F77_DUMMY_MAIN() { return 1; }
3170#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003171int
3172main ()
3173{
3174connect ();
3175 ;
3176 return 0;
3177}
3178_ACEOF
3179rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003181 (eval $ac_link) 2>&5
3182 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003184 (exit $ac_status); } &&
3185 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003187 (eval $ac_try) 2>&5
3188 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003190 (exit $ac_status); }; }; then
3191 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003192else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003193 echo "$as_me: failed program was:" >&5
3194cat conftest.$ac_ext >&5
3195ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003196fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3198LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003199fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003200echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003201echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3202if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003203 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003204fi
3205
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003206 fi
3207
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003208 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003209 echo "$as_me:$LINENO: checking for remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003210echo $ECHO_N "checking for remove... $ECHO_C" >&6
3211if test "${ac_cv_func_remove+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003213else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003214 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003215#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003216#include "confdefs.h"
3217/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003218 which can conflict with char remove (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003219#include <assert.h>
3220/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003221#ifdef __cplusplus
3222extern "C"
3223#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003224/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003225 builtin and then its argument prototype would still apply. */
3226char remove ();
3227char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003228
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003229#ifdef F77_DUMMY_MAIN
3230# ifdef __cplusplus
3231 extern "C"
3232# endif
3233 int F77_DUMMY_MAIN() { return 1; }
3234#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003235int
3236main ()
3237{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003238/* The GNU C library defines this for functions which it implements
3239 to always fail with ENOSYS. Some functions are actually named
3240 something starting with __ and the normal name is an alias. */
3241#if defined (__stub_remove) || defined (__stub___remove)
3242choke me
3243#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003244f = remove;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003245#endif
3246
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003247 ;
3248 return 0;
3249}
3250_ACEOF
3251rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003253 (eval $ac_link) 2>&5
3254 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003256 (exit $ac_status); } &&
3257 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003259 (eval $ac_try) 2>&5
3260 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003262 (exit $ac_status); }; }; then
3263 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003264else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003265 echo "$as_me: failed program was:" >&5
3266cat conftest.$ac_ext >&5
3267ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003268fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003269rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003270fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003271echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003272echo "${ECHO_T}$ac_cv_func_remove" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003273
3274 if test $ac_cv_func_remove = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003275 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003276echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3277if test "${ac_cv_lib_posix_remove+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003279else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003280 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003281LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003282cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003283#line $LINENO "configure"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003284#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003285
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003286/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003287#ifdef __cplusplus
3288extern "C"
3289#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003290/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003291 builtin and then its argument prototype would still apply. */
3292char remove ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003293#ifdef F77_DUMMY_MAIN
3294# ifdef __cplusplus
3295 extern "C"
3296# endif
3297 int F77_DUMMY_MAIN() { return 1; }
3298#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003299int
3300main ()
3301{
3302remove ();
3303 ;
3304 return 0;
3305}
3306_ACEOF
3307rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003309 (eval $ac_link) 2>&5
3310 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003312 (exit $ac_status); } &&
3313 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003315 (eval $ac_try) 2>&5
3316 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003318 (exit $ac_status); }; }; then
3319 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003320else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003321 echo "$as_me: failed program was:" >&5
3322cat conftest.$ac_ext >&5
3323ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003324fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003325rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3326LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003327fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003328echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003329echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3330if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003331 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003332fi
3333
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003334 fi
3335
3336 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003337 echo "$as_me:$LINENO: checking for shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003338echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3339if test "${ac_cv_func_shmat+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003341else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003342 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003343#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003344#include "confdefs.h"
3345/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003346 which can conflict with char shmat (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003347#include <assert.h>
3348/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003349#ifdef __cplusplus
3350extern "C"
3351#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003352/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003353 builtin and then its argument prototype would still apply. */
3354char shmat ();
3355char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003356
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003357#ifdef F77_DUMMY_MAIN
3358# ifdef __cplusplus
3359 extern "C"
3360# endif
3361 int F77_DUMMY_MAIN() { return 1; }
3362#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003363int
3364main ()
3365{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003366/* The GNU C library defines this for functions which it implements
3367 to always fail with ENOSYS. Some functions are actually named
3368 something starting with __ and the normal name is an alias. */
3369#if defined (__stub_shmat) || defined (__stub___shmat)
3370choke me
3371#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003372f = shmat;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003373#endif
3374
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003375 ;
3376 return 0;
3377}
3378_ACEOF
3379rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003381 (eval $ac_link) 2>&5
3382 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003384 (exit $ac_status); } &&
3385 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003387 (eval $ac_try) 2>&5
3388 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003390 (exit $ac_status); }; }; then
3391 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003392else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003393 echo "$as_me: failed program was:" >&5
3394cat conftest.$ac_ext >&5
3395ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003396fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003398fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003399echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003400echo "${ECHO_T}$ac_cv_func_shmat" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003401
3402 if test $ac_cv_func_shmat = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003403 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003404echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3405if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003407else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003408 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003409LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003410cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003411#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003412#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003413
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003414/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003415#ifdef __cplusplus
3416extern "C"
3417#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003418/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003419 builtin and then its argument prototype would still apply. */
3420char shmat ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003421#ifdef F77_DUMMY_MAIN
3422# ifdef __cplusplus
3423 extern "C"
3424# endif
3425 int F77_DUMMY_MAIN() { return 1; }
3426#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003427int
3428main ()
3429{
3430shmat ();
3431 ;
3432 return 0;
3433}
3434_ACEOF
3435rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003437 (eval $ac_link) 2>&5
3438 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003440 (exit $ac_status); } &&
3441 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003443 (eval $ac_try) 2>&5
3444 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003446 (exit $ac_status); }; }; then
3447 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003448else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003449 echo "$as_me: failed program was:" >&5
3450cat conftest.$ac_ext >&5
3451ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003452fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3454LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003455fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003456echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003457echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3458if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003459 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003460fi
3461
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003462 fi
3463 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003464
3465 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003466 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003467 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3468 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3469 # check for ICE first), but we must link in the order -lSM -lICE or
3470 # we get undefined symbols. So assume we have SM if we have ICE.
3471 # These have to be linked with before -lX11, unlike the other
3472 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003473 # John Interrante, Karl Berry
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003474 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003475echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3476if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003478else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003479 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003480LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003481cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003482#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003483#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003484
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003485/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003486#ifdef __cplusplus
3487extern "C"
3488#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003489/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003490 builtin and then its argument prototype would still apply. */
3491char IceConnectionNumber ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003492#ifdef F77_DUMMY_MAIN
3493# ifdef __cplusplus
3494 extern "C"
3495# endif
3496 int F77_DUMMY_MAIN() { return 1; }
3497#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003498int
3499main ()
3500{
3501IceConnectionNumber ();
3502 ;
3503 return 0;
3504}
3505_ACEOF
3506rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003508 (eval $ac_link) 2>&5
3509 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003511 (exit $ac_status); } &&
3512 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003514 (eval $ac_try) 2>&5
3515 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003517 (exit $ac_status); }; }; then
3518 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003519else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003520 echo "$as_me: failed program was:" >&5
3521cat conftest.$ac_ext >&5
3522ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003523fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3525LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003526fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003527echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003528echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3529if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003530 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003531fi
3532
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003533 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003534
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003535fi
3536
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003537for ac_prog in 'bison -y' byacc
3538do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003539 # Extract the first word of "$ac_prog", so it can be a program name with args.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003540set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003541echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543if test "${ac_cv_prog_YACC+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003545else
3546 if test -n "$YACC"; then
3547 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3548else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_YACC="$ac_prog"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3559 fi
3560done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003561done
3562
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003563fi
3564fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003565YACC=$ac_cv_prog_YACC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003566if test -n "$YACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003567 echo "$as_me:$LINENO: result: $YACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003568echo "${ECHO_T}$YACC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003569else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003570 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003571echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003572fi
3573
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003574 test -n "$YACC" && break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003575done
3576test -n "$YACC" || YACC="yacc"
3577
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003578for ac_prog in flex lex
3579do
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003582echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3584if test "${ac_cv_prog_LEX+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003586else
3587 if test -n "$LEX"; then
3588 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3589else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_LEX="$ac_prog"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3600 fi
3601done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003602done
3603
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003604fi
3605fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003606LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003607if test -n "$LEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003608 echo "$as_me:$LINENO: result: $LEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003609echo "${ECHO_T}$LEX" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003610else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003611 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003612echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003613fi
3614
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003615 test -n "$LEX" && break
3616done
3617test -n "$LEX" || LEX=":"
3618
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003619if test -z "$LEXLIB"
3620then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003621 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003622echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3623if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003625else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003626 ac_check_lib_save_LIBS=$LIBS
3627LIBS="-lfl $LIBS"
3628cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003629#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003630#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003631
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003632/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003633#ifdef __cplusplus
3634extern "C"
3635#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003636/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003637 builtin and then its argument prototype would still apply. */
3638char yywrap ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003639#ifdef F77_DUMMY_MAIN
3640# ifdef __cplusplus
3641 extern "C"
3642# endif
3643 int F77_DUMMY_MAIN() { return 1; }
3644#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003645int
3646main ()
3647{
3648yywrap ();
3649 ;
3650 return 0;
3651}
3652_ACEOF
3653rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003655 (eval $ac_link) 2>&5
3656 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003658 (exit $ac_status); } &&
3659 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003661 (eval $ac_try) 2>&5
3662 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003664 (exit $ac_status); }; }; then
3665 ac_cv_lib_fl_yywrap=yes
3666else
3667 echo "$as_me: failed program was:" >&5
3668cat conftest.$ac_ext >&5
3669ac_cv_lib_fl_yywrap=no
3670fi
3671rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3672LIBS=$ac_check_lib_save_LIBS
3673fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003674echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003675echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3676if test $ac_cv_lib_fl_yywrap = yes; then
3677 LEXLIB="-lfl"
3678else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003679 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003680echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3681if test "${ac_cv_lib_l_yywrap+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683else
3684 ac_check_lib_save_LIBS=$LIBS
3685LIBS="-ll $LIBS"
3686cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003687#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003688#include "confdefs.h"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003689
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003690/* Override any gcc2 internal prototype to avoid an error. */
3691#ifdef __cplusplus
3692extern "C"
3693#endif
3694/* We use char because int might match the return type of a gcc2
3695 builtin and then its argument prototype would still apply. */
3696char yywrap ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003697#ifdef F77_DUMMY_MAIN
3698# ifdef __cplusplus
3699 extern "C"
3700# endif
3701 int F77_DUMMY_MAIN() { return 1; }
3702#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003703int
3704main ()
3705{
3706yywrap ();
3707 ;
3708 return 0;
3709}
3710_ACEOF
3711rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003713 (eval $ac_link) 2>&5
3714 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003716 (exit $ac_status); } &&
3717 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003719 (eval $ac_try) 2>&5
3720 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003722 (exit $ac_status); }; }; then
3723 ac_cv_lib_l_yywrap=yes
3724else
3725 echo "$as_me: failed program was:" >&5
3726cat conftest.$ac_ext >&5
3727ac_cv_lib_l_yywrap=no
3728fi
3729rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3730LIBS=$ac_check_lib_save_LIBS
3731fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003732echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003733echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3734if test $ac_cv_lib_l_yywrap = yes; then
3735 LEXLIB="-ll"
3736fi
3737
3738fi
3739
3740fi
3741
3742if test "x$LEX" != "x:"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003743 echo "$as_me:$LINENO: checking lex output file root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003744echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3745if test "${ac_cv_prog_lex_root+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747else
3748 # The minimal lex program is just a single line: %%. But some broken lexes
3749# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003750cat >conftest.l <<_ACEOF
3751%%
3752%%
3753_ACEOF
3754{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3755 (eval $LEX conftest.l) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003759if test -f lex.yy.c; then
3760 ac_cv_prog_lex_root=lex.yy
3761elif test -f lexyy.c; then
3762 ac_cv_prog_lex_root=lexyy
3763else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003764 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003765echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3766 { (exit 1); exit 1; }; }
3767fi
3768fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003769echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003770echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003771rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003772LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3773
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003774echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003775echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3776if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 # POSIX says lex can declare yytext either as a pointer or an array; the
3780# default is implementation-dependent. Figure out which it is, since
3781# not all implementations provide the %pointer and %array declarations.
3782ac_cv_prog_lex_yytext_pointer=no
3783echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3784ac_save_LIBS=$LIBS
3785LIBS="$LIBS $LEXLIB"
3786cat >conftest.$ac_ext <<_ACEOF
3787`cat $LEX_OUTPUT_ROOT.c`
3788_ACEOF
3789rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003791 (eval $ac_link) 2>&5
3792 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003794 (exit $ac_status); } &&
3795 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003797 (eval $ac_try) 2>&5
3798 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003800 (exit $ac_status); }; }; then
3801 ac_cv_prog_lex_yytext_pointer=yes
3802else
3803 echo "$as_me: failed program was:" >&5
3804cat conftest.$ac_ext >&5
3805fi
3806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3807LIBS=$ac_save_LIBS
3808rm -f "${LEX_OUTPUT_ROOT}.c"
3809
3810fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003811echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003812echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3813if test $ac_cv_prog_lex_yytext_pointer = yes; then
3814
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003815cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003816#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003817_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003818
3819fi
3820
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003821fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003822
3823for ac_prog in $YACC bison yacc
3824do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003825 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003826set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003827echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3829if test "${ac_cv_prog_XYACC+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003831else
3832 if test -n "$XYACC"; then
3833 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3834else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 ac_cv_prog_XYACC="$ac_prog"
3843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3845 fi
3846done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003847done
3848
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003849fi
3850fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003851XYACC=$ac_cv_prog_XYACC
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003852if test -n "$XYACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003853 echo "$as_me:$LINENO: result: $XYACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003854echo "${ECHO_T}$XYACC" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003855else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003856 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003857echo "${ECHO_T}no" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003858fi
3859
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003860 test -n "$XYACC" && break
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003861done
3862test -n "$XYACC" || XYACC="none"
3863
3864if test "$XYACC" = "none"
3865then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003866 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003867echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3868 { (exit 1); exit 1; }; }
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003869fi
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003870for ac_prog in $LEX flex lex
3871do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003872 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003873set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003874echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3876if test "${ac_cv_prog_XLEX+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003878else
3879 if test -n "$XLEX"; then
3880 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3881else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883for as_dir in $PATH
3884do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889 ac_cv_prog_XLEX="$ac_prog"
3890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3892 fi
3893done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003894done
3895
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003896fi
3897fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003898XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003899if test -n "$XLEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003900 echo "$as_me:$LINENO: result: $XLEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003901echo "${ECHO_T}$XLEX" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003902else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003903 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003904echo "${ECHO_T}no" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003905fi
3906
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003907 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003908done
3909test -n "$XLEX" || XLEX="none"
3910
3911if test "$XLEX" = "none"
3912then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003913 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003914echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3915 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003916fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00003917
3918if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3920set dummy ${ac_tool_prefix}ar; ac_word=$2
3921echo "$as_me:$LINENO: checking for $ac_word" >&5
3922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3923if test "${ac_cv_prog_AR+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926 if test -n "$AR"; then
3927 ac_cv_prog_AR="$AR" # Let the user override the test.
3928else
3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH
3931do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_AR="${ac_tool_prefix}ar"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 break 2
3939 fi
3940done
3941done
3942
3943fi
3944fi
3945AR=$ac_cv_prog_AR
3946if test -n "$AR"; then
3947 echo "$as_me:$LINENO: result: $AR" >&5
3948echo "${ECHO_T}$AR" >&6
3949else
3950 echo "$as_me:$LINENO: result: no" >&5
3951echo "${ECHO_T}no" >&6
3952fi
3953
3954fi
3955if test -z "$ac_cv_prog_AR"; then
3956 ac_ct_AR=$AR
3957 # Extract the first word of "ar", so it can be a program name with args.
3958set dummy ar; ac_word=$2
3959echo "$as_me:$LINENO: checking for $ac_word" >&5
3960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3962 echo $ECHO_N "(cached) $ECHO_C" >&6
3963else
3964 if test -n "$ac_ct_AR"; then
3965 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_AR="ar"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3977 fi
3978done
3979done
3980
3981 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3982fi
3983fi
3984ac_ct_AR=$ac_cv_prog_ac_ct_AR
3985if test -n "$ac_ct_AR"; then
3986 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3987echo "${ECHO_T}$ac_ct_AR" >&6
3988else
3989 echo "$as_me:$LINENO: result: no" >&5
3990echo "${ECHO_T}no" >&6
3991fi
3992
3993 AR=$ac_ct_AR
3994else
3995 AR="$ac_cv_prog_AR"
3996fi
3997
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003998if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4000set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004001echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003if test "${ac_cv_prog_RANLIB+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004005else
4006 if test -n "$RANLIB"; then
4007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4008else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH
4011do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4019 fi
4020done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004021done
4022
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004023fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004024fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004025RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004026if test -n "$RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004027 echo "$as_me:$LINENO: result: $RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004028echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004029else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004030 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004031echo "${ECHO_T}no" >&6
4032fi
4033
4034fi
4035if test -z "$ac_cv_prog_RANLIB"; then
4036 ac_ct_RANLIB=$RANLIB
4037 # Extract the first word of "ranlib", so it can be a program name with args.
4038set dummy ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004039echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043else
4044 if test -n "$ac_ct_RANLIB"; then
4045 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4046else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048for as_dir in $PATH
4049do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054 ac_cv_prog_ac_ct_RANLIB="ranlib"
4055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 break 2
4057 fi
4058done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004059done
4060
4061 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4062fi
4063fi
4064ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4065if test -n "$ac_ct_RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004066 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004067echo "${ECHO_T}$ac_ct_RANLIB" >&6
4068else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004069 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004070echo "${ECHO_T}no" >&6
4071fi
4072
4073 RANLIB=$ac_ct_RANLIB
4074else
4075 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004076fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004077
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004078if test -n "$ac_tool_prefix"; then
4079 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4080set dummy ${ac_tool_prefix}strip; ac_word=$2
4081echo "$as_me:$LINENO: checking for $ac_word" >&5
4082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083if test "${ac_cv_prog_STRIP+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4085else
4086 if test -n "$STRIP"; then
4087 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4088else
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 break 2
4099 fi
4100done
4101done
4102
4103fi
4104fi
4105STRIP=$ac_cv_prog_STRIP
4106if test -n "$STRIP"; then
4107 echo "$as_me:$LINENO: result: $STRIP" >&5
4108echo "${ECHO_T}$STRIP" >&6
4109else
4110 echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
4112fi
4113
4114fi
4115if test -z "$ac_cv_prog_STRIP"; then
4116 ac_ct_STRIP=$STRIP
4117 # Extract the first word of "strip", so it can be a program name with args.
4118set dummy strip; ac_word=$2
4119echo "$as_me:$LINENO: checking for $ac_word" >&5
4120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4121if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123else
4124 if test -n "$ac_ct_STRIP"; then
4125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4126else
4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_ac_ct_STRIP="strip"
4135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4137 fi
4138done
4139done
4140
4141 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4142fi
4143fi
4144ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4145if test -n "$ac_ct_STRIP"; then
4146 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4147echo "${ECHO_T}$ac_ct_STRIP" >&6
4148else
4149 echo "$as_me:$LINENO: result: no" >&5
4150echo "${ECHO_T}no" >&6
4151fi
4152
4153 STRIP=$ac_ct_STRIP
4154else
4155 STRIP="$ac_cv_prog_STRIP"
4156fi
4157
4158if test -n "$ac_tool_prefix"; then
4159 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4160set dummy ${ac_tool_prefix}windres; ac_word=$2
4161echo "$as_me:$LINENO: checking for $ac_word" >&5
4162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4163if test "${ac_cv_prog_WINDRES+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165else
4166 if test -n "$WINDRES"; then
4167 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4168else
4169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170for as_dir in $PATH
4171do
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4179 fi
4180done
4181done
4182
4183fi
4184fi
4185WINDRES=$ac_cv_prog_WINDRES
4186if test -n "$WINDRES"; then
4187 echo "$as_me:$LINENO: result: $WINDRES" >&5
4188echo "${ECHO_T}$WINDRES" >&6
4189else
4190 echo "$as_me:$LINENO: result: no" >&5
4191echo "${ECHO_T}no" >&6
4192fi
4193
4194fi
4195if test -z "$ac_cv_prog_WINDRES"; then
4196 ac_ct_WINDRES=$WINDRES
4197 # Extract the first word of "windres", so it can be a program name with args.
4198set dummy windres; ac_word=$2
4199echo "$as_me:$LINENO: checking for $ac_word" >&5
4200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204 if test -n "$ac_ct_WINDRES"; then
4205 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4206else
4207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208for as_dir in $PATH
4209do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214 ac_cv_prog_ac_ct_WINDRES="windres"
4215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 break 2
4217 fi
4218done
4219done
4220
4221 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4222fi
4223fi
4224ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4225if test -n "$ac_ct_WINDRES"; then
4226 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4227echo "${ECHO_T}$ac_ct_WINDRES" >&6
4228else
4229 echo "$as_me:$LINENO: result: no" >&5
4230echo "${ECHO_T}no" >&6
4231fi
4232
4233 WINDRES=$ac_ct_WINDRES
4234else
4235 WINDRES="$ac_cv_prog_WINDRES"
4236fi
4237
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004238# Find a good install program. We prefer a C program (faster),
4239# so one script is as good as another. But avoid the broken or
4240# incompatible versions:
4241# SysV /etc/install, /usr/sbin/install
4242# SunOS /usr/etc/install
4243# IRIX /sbin/install
4244# AIX /bin/install
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004245# AmigaOS /C/install, which installs bootblocks on floppy discs
Eric Pouech18ad24a2000-01-16 22:16:33 +00004246# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004247# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4248# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4249# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004250echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4251echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004252if test -z "$INSTALL"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004253if test "${ac_cv_path_install+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004255else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257for as_dir in $PATH
4258do
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 # Account for people who put trailing slashes in PATH elements.
4262case $as_dir/ in
4263 ./ | .// | /cC/* | \
4264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4265 /usr/ucb/* ) ;;
4266 *)
4267 # OSF1 and SCO ODT 3.0 have their own names for install.
4268 # Don't use installbsd from OSF since it installs stuff as root
4269 # by default.
4270 for ac_prog in ginstall scoinst install; do
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4273 if test $ac_prog = install &&
4274 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4275 # AIX install. It has an incompatible calling convention.
4276 :
4277 elif test $ac_prog = install &&
4278 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4279 # program-specific install script used by HP pwplus--don't use.
4280 :
4281 else
4282 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4283 break 3
4284 fi
4285 fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004286 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004287 done
4288 ;;
4289esac
4290done
4291
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004292
4293fi
4294 if test "${ac_cv_path_install+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004295 INSTALL=$ac_cv_path_install
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004296 else
4297 # As a last resort, use the slow shell script. We don't cache a
4298 # path for INSTALL within a source directory, because that will
4299 # break other packages using the cache if that directory is
4300 # removed, or if the path is relative.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004301 INSTALL=$ac_install_sh
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004302 fi
4303fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004304echo "$as_me:$LINENO: result: $INSTALL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004305echo "${ECHO_T}$INSTALL" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004306
4307# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4308# It thinks the first close brace ends the variable substitution.
4309test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4310
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004311test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Eric Pouech18ad24a2000-01-16 22:16:33 +00004312
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004313test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4314
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004315echo "$as_me:$LINENO: checking whether ln -s works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004316echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4317LN_S=$as_ln_s
4318if test "$LN_S" = "ln -s"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004319 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004320echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004321else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004322 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004323echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004324fi
4325
Alexandre Julliarddf234a92002-05-22 02:10:39 +00004326echo "$as_me:$LINENO: checking whether ln works" >&5
4327echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4328rm -f conf$$ conf$$.file
4329echo >conf$$.file
4330if ln conf$$.file conf$$ 2>/dev/null; then
4331 LN=ln
4332
4333 echo "$as_me:$LINENO: result: yes" >&5
4334echo "${ECHO_T}yes" >&6
4335else
4336 LN="cp -p"
4337
4338 echo "$as_me:$LINENO: result: no, using $LN" >&5
4339echo "${ECHO_T}no, using $LN" >&6
4340fi
4341rm -f conf$$ conf$$.file
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004342# Extract the first word of "c2man", so it can be a program name with args.
4343set dummy c2man; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004344echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4346if test "${ac_cv_prog_C2MAN+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004348else
4349 if test -n "$C2MAN"; then
4350 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4351else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH
4354do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359 ac_cv_prog_C2MAN="c2man"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4362 fi
4363done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004364done
4365
Mike McCormacke0df32f2000-08-11 21:15:21 +00004366 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004367fi
4368fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004369C2MAN=$ac_cv_prog_C2MAN
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004370if test -n "$C2MAN"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004371 echo "$as_me:$LINENO: result: $C2MAN" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004372echo "${ECHO_T}$C2MAN" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004373else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004374 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004375echo "${ECHO_T}no" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004376fi
4377
James Juranffe6b761999-06-12 08:21:57 +00004378# Extract the first word of "ldconfig", so it can be a program name with args.
4379set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004380echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4382if test "${ac_cv_path_LDCONFIG+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00004384else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004385 case $LDCONFIG in
4386 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004387 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4388 ;;
4389 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004391for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004392do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4400 fi
4401done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004402done
4403
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004404 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004405 ;;
4406esac
4407fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004408LDCONFIG=$ac_cv_path_LDCONFIG
4409
James Juranffe6b761999-06-12 08:21:57 +00004410if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004411 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004412echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00004413else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004414 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004415echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00004416fi
4417
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004418
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004419case $host_os in
4420 cygwin*|mingw32*)
4421 if test -n "$ac_tool_prefix"; then
4422 # Extract the first word of "${ac_tool_prefix}ld -r --enable-stdcall-fixup", so it can be a program name with args.
4423set dummy ${ac_tool_prefix}ld -r --enable-stdcall-fixup; ac_word=$2
4424echo "$as_me:$LINENO: checking for $ac_word" >&5
4425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426if test "${ac_cv_prog_LDCOMBINE+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4428else
4429 if test -n "$LDCOMBINE"; then
4430 ac_cv_prog_LDCOMBINE="$LDCOMBINE" # Let the user override the test.
4431else
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439 ac_cv_prog_LDCOMBINE="${ac_tool_prefix}ld -r --enable-stdcall-fixup"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4442 fi
4443done
4444done
4445
4446fi
4447fi
4448LDCOMBINE=$ac_cv_prog_LDCOMBINE
4449if test -n "$LDCOMBINE"; then
4450 echo "$as_me:$LINENO: result: $LDCOMBINE" >&5
4451echo "${ECHO_T}$LDCOMBINE" >&6
4452else
4453 echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6
4455fi
4456
4457fi
4458if test -z "$ac_cv_prog_LDCOMBINE"; then
4459 ac_ct_LDCOMBINE=$LDCOMBINE
4460 # Extract the first word of "ld -r --enable-stdcall-fixup", so it can be a program name with args.
4461set dummy ld -r --enable-stdcall-fixup; ac_word=$2
4462echo "$as_me:$LINENO: checking for $ac_word" >&5
4463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4464if test "${ac_cv_prog_ac_ct_LDCOMBINE+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466else
4467 if test -n "$ac_ct_LDCOMBINE"; then
4468 ac_cv_prog_ac_ct_LDCOMBINE="$ac_ct_LDCOMBINE" # Let the user override the test.
4469else
4470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_prog_ac_ct_LDCOMBINE="ld -r --enable-stdcall-fixup"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4480 fi
4481done
4482done
4483
4484 test -z "$ac_cv_prog_ac_ct_LDCOMBINE" && ac_cv_prog_ac_ct_LDCOMBINE="ld -r --enable-stdcall-fixup"
4485fi
4486fi
4487ac_ct_LDCOMBINE=$ac_cv_prog_ac_ct_LDCOMBINE
4488if test -n "$ac_ct_LDCOMBINE"; then
4489 echo "$as_me:$LINENO: result: $ac_ct_LDCOMBINE" >&5
4490echo "${ECHO_T}$ac_ct_LDCOMBINE" >&6
4491else
4492 echo "$as_me:$LINENO: result: no" >&5
4493echo "${ECHO_T}no" >&6
4494fi
4495
4496 LDCOMBINE=$ac_ct_LDCOMBINE
4497else
4498 LDCOMBINE="$ac_cv_prog_LDCOMBINE"
4499fi
4500 ;;
4501 *)
4502 if test -n "$ac_tool_prefix"; then
4503 # Extract the first word of "${ac_tool_prefix}ld -r", so it can be a program name with args.
4504set dummy ${ac_tool_prefix}ld -r; ac_word=$2
4505echo "$as_me:$LINENO: checking for $ac_word" >&5
4506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4507if test "${ac_cv_prog_LDCOMBINE+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509else
4510 if test -n "$LDCOMBINE"; then
4511 ac_cv_prog_LDCOMBINE="$LDCOMBINE" # Let the user override the test.
4512else
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_prog_LDCOMBINE="${ac_tool_prefix}ld -r"
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4523 fi
4524done
4525done
4526
4527fi
4528fi
4529LDCOMBINE=$ac_cv_prog_LDCOMBINE
4530if test -n "$LDCOMBINE"; then
4531 echo "$as_me:$LINENO: result: $LDCOMBINE" >&5
4532echo "${ECHO_T}$LDCOMBINE" >&6
4533else
4534 echo "$as_me:$LINENO: result: no" >&5
4535echo "${ECHO_T}no" >&6
4536fi
4537
4538fi
4539if test -z "$ac_cv_prog_LDCOMBINE"; then
4540 ac_ct_LDCOMBINE=$LDCOMBINE
4541 # Extract the first word of "ld -r", so it can be a program name with args.
4542set dummy ld -r; ac_word=$2
4543echo "$as_me:$LINENO: checking for $ac_word" >&5
4544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4545if test "${ac_cv_prog_ac_ct_LDCOMBINE+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547else
4548 if test -n "$ac_ct_LDCOMBINE"; then
4549 ac_cv_prog_ac_ct_LDCOMBINE="$ac_ct_LDCOMBINE" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4558 ac_cv_prog_ac_ct_LDCOMBINE="ld -r"
4559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4561 fi
4562done
4563done
4564
4565 test -z "$ac_cv_prog_ac_ct_LDCOMBINE" && ac_cv_prog_ac_ct_LDCOMBINE="ld -r"
4566fi
4567fi
4568ac_ct_LDCOMBINE=$ac_cv_prog_ac_ct_LDCOMBINE
4569if test -n "$ac_ct_LDCOMBINE"; then
4570 echo "$as_me:$LINENO: result: $ac_ct_LDCOMBINE" >&5
4571echo "${ECHO_T}$ac_ct_LDCOMBINE" >&6
4572else
4573 echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6
4575fi
4576
4577 LDCOMBINE=$ac_ct_LDCOMBINE
4578else
4579 LDCOMBINE="$ac_cv_prog_LDCOMBINE"
4580fi
4581 ;;
4582esac
4583
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004584for ac_prog in lclint lint
4585do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004586 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004587set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004588echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4590if test "${ac_cv_prog_LINT+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004592else
4593 if test -n "$LINT"; then
4594 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4595else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4603 ac_cv_prog_LINT="$ac_prog"
4604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 break 2
4606 fi
4607done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004608done
4609
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004610fi
4611fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004612LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004613if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004614 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004615echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004616else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004617 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004618echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004619fi
4620
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004621 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004622done
4623
4624if test "$LINT" = "lint"
4625then
4626 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4627 fi
4628
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004629
4630
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004631
4632
4633echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004634echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4635if test "${ac_cv_lib_m_sqrt+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00004637else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004638 ac_check_lib_save_LIBS=$LIBS
Howard Abrams13277481999-07-10 13:16:29 +00004639LIBS="-lm $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004640cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004641#line $LINENO "configure"
Howard Abrams13277481999-07-10 13:16:29 +00004642#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004643
Howard Abrams13277481999-07-10 13:16:29 +00004644/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004645#ifdef __cplusplus
4646extern "C"
4647#endif
Howard Abrams13277481999-07-10 13:16:29 +00004648/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004649 builtin and then its argument prototype would still apply. */
4650char sqrt ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004651#ifdef F77_DUMMY_MAIN
4652# ifdef __cplusplus
4653 extern "C"
4654# endif
4655 int F77_DUMMY_MAIN() { return 1; }
4656#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004657int
4658main ()
4659{
4660sqrt ();
4661 ;
4662 return 0;
4663}
4664_ACEOF
4665rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004667 (eval $ac_link) 2>&5
4668 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004670 (exit $ac_status); } &&
4671 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004673 (eval $ac_try) 2>&5
4674 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004676 (exit $ac_status); }; }; then
4677 ac_cv_lib_m_sqrt=yes
Howard Abrams13277481999-07-10 13:16:29 +00004678else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004679 echo "$as_me: failed program was:" >&5
4680cat conftest.$ac_ext >&5
4681ac_cv_lib_m_sqrt=no
Howard Abrams13277481999-07-10 13:16:29 +00004682fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004683rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4684LIBS=$ac_check_lib_save_LIBS
Howard Abrams13277481999-07-10 13:16:29 +00004685fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004686echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004687echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4688if test $ac_cv_lib_m_sqrt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004689 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004690#define HAVE_LIBM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004691_ACEOF
Howard Abrams13277481999-07-10 13:16:29 +00004692
4693 LIBS="-lm $LIBS"
4694
Howard Abrams13277481999-07-10 13:16:29 +00004695fi
4696
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004697
4698echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004699echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4700if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00004702else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004703 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00004704LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004705cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004706#line $LINENO "configure"
Alexandre Julliard902da691995-11-05 14:39:02 +00004707#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004708
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004709/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004710#ifdef __cplusplus
4711extern "C"
4712#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004713/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004714 builtin and then its argument prototype would still apply. */
4715char i386_set_ldt ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004716#ifdef F77_DUMMY_MAIN
4717# ifdef __cplusplus
4718 extern "C"
4719# endif
4720 int F77_DUMMY_MAIN() { return 1; }
4721#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004722int
4723main ()
4724{
4725i386_set_ldt ();
4726 ;
4727 return 0;
4728}
4729_ACEOF
4730rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004732 (eval $ac_link) 2>&5
4733 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004735 (exit $ac_status); } &&
4736 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004738 (eval $ac_try) 2>&5
4739 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004741 (exit $ac_status); }; }; then
4742 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00004743else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004744 echo "$as_me: failed program was:" >&5
4745cat conftest.$ac_ext >&5
4746ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00004747fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004748rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4749LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00004750fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004751echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004752echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4753if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004754 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004755#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004756_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00004757
4758 LIBS="-li386 $LIBS"
4759
Alexandre Julliard02e90081998-01-04 17:49:09 +00004760fi
4761
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004762
4763echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004764echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4765if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00004767else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004768 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00004769LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004770cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004771#line $LINENO "configure"
Todd Vierlingecc76691998-12-15 17:49:02 +00004772#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004773
Todd Vierlingecc76691998-12-15 17:49:02 +00004774/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004775#ifdef __cplusplus
4776extern "C"
4777#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00004778/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004779 builtin and then its argument prototype would still apply. */
4780char _oss_ioctl ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004781#ifdef F77_DUMMY_MAIN
4782# ifdef __cplusplus
4783 extern "C"
4784# endif
4785 int F77_DUMMY_MAIN() { return 1; }
4786#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004787int
4788main ()
4789{
4790_oss_ioctl ();
4791 ;
4792 return 0;
4793}
4794_ACEOF
4795rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004797 (eval $ac_link) 2>&5
4798 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004800 (exit $ac_status); } &&
4801 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004803 (eval $ac_try) 2>&5
4804 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004806 (exit $ac_status); }; }; then
4807 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00004808else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004809 echo "$as_me: failed program was:" >&5
4810cat conftest.$ac_ext >&5
4811ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00004812fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004813rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4814LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00004815fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004816echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004817echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4818if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004819 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004820#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004821_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00004822
4823 LIBS="-lossaudio $LIBS"
4824
Todd Vierlingecc76691998-12-15 17:49:02 +00004825fi
4826
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004827
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004828for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00004829do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004831echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4833if eval "test \"\${$as_ac_var+set}\" = set"; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00004835else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004836 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004837#line $LINENO "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00004838#include "confdefs.h"
4839/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004840 which can conflict with char $ac_func (); below. */
Patrik Stridvallea584721998-11-01 16:22:07 +00004841#include <assert.h>
4842/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004843#ifdef __cplusplus
4844extern "C"
4845#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00004846/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004847 builtin and then its argument prototype would still apply. */
4848char $ac_func ();
4849char (*f) ();
Patrik Stridvallea584721998-11-01 16:22:07 +00004850
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004851#ifdef F77_DUMMY_MAIN
4852# ifdef __cplusplus
4853 extern "C"
4854# endif
4855 int F77_DUMMY_MAIN() { return 1; }
4856#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004857int
4858main ()
4859{
Patrik Stridvallea584721998-11-01 16:22:07 +00004860/* The GNU C library defines this for functions which it implements
4861 to always fail with ENOSYS. Some functions are actually named
4862 something starting with __ and the normal name is an alias. */
4863#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4864choke me
4865#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004866f = $ac_func;
Patrik Stridvallea584721998-11-01 16:22:07 +00004867#endif
4868
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004869 ;
4870 return 0;
4871}
4872_ACEOF
4873rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004875 (eval $ac_link) 2>&5
4876 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004878 (exit $ac_status); } &&
4879 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004881 (eval $ac_try) 2>&5
4882 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004884 (exit $ac_status); }; }; then
4885 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004886else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004887 echo "$as_me: failed program was:" >&5
4888cat conftest.$ac_ext >&5
4889eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004890fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004891rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004892fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4895if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004896 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004898_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004899
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004900else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004901
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004902echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004903echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4904if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004906else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004907 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004908LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004909cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004910#line $LINENO "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004911#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004912
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004913/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004914#ifdef __cplusplus
4915extern "C"
4916#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004917/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004918 builtin and then its argument prototype would still apply. */
4919char iswalnum ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004920#ifdef F77_DUMMY_MAIN
4921# ifdef __cplusplus
4922 extern "C"
4923# endif
4924 int F77_DUMMY_MAIN() { return 1; }
4925#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004926int
4927main ()
4928{
4929iswalnum ();
4930 ;
4931 return 0;
4932}
4933_ACEOF
4934rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004936 (eval $ac_link) 2>&5
4937 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004939 (exit $ac_status); } &&
4940 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004942 (eval $ac_try) 2>&5
4943 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004945 (exit $ac_status); }; }; then
4946 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004947else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004948 echo "$as_me: failed program was:" >&5
4949cat conftest.$ac_ext >&5
4950ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004951fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004952rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4953LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004954fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004955echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004956echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4957if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004958 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004959#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004960_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004961
4962 LIBS="-lw $LIBS"
4963
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004964fi
4965
4966fi
4967done
4968
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004969
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004970for ac_func in gethostbyname
4971do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004973echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4975if eval "test \"\${$as_ac_var+set}\" = set"; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004977else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004978 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004979#line $LINENO "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004980#include "confdefs.h"
4981/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004982 which can conflict with char $ac_func (); below. */
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004983#include <assert.h>
4984/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004985#ifdef __cplusplus
4986extern "C"
4987#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004988/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004989 builtin and then its argument prototype would still apply. */
4990char $ac_func ();
4991char (*f) ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004992
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004993#ifdef F77_DUMMY_MAIN
4994# ifdef __cplusplus
4995 extern "C"
4996# endif
4997 int F77_DUMMY_MAIN() { return 1; }
4998#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004999int
5000main ()
5001{
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005002/* The GNU C library defines this for functions which it implements
5003 to always fail with ENOSYS. Some functions are actually named
5004 something starting with __ and the normal name is an alias. */
5005#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5006choke me
5007#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005008f = $ac_func;
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005009#endif
5010
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005011 ;
5012 return 0;
5013}
5014_ACEOF
5015rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005017 (eval $ac_link) 2>&5
5018 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005020 (exit $ac_status); } &&
5021 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005023 (eval $ac_try) 2>&5
5024 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005026 (exit $ac_status); }; }; then
5027 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00005028else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005029 echo "$as_me: failed program was:" >&5
5030cat conftest.$ac_ext >&5
5031eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00005032fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005033rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00005034fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005036echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5037if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005038 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005040_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00005041
Patrik Stridvallea584721998-11-01 16:22:07 +00005042else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005043
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005044echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005045echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5046if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005048else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005049 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005050LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005051cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005052#line $LINENO "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00005053#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005054
Patrik Stridvallea584721998-11-01 16:22:07 +00005055/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005056#ifdef __cplusplus
5057extern "C"
5058#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005059/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005060 builtin and then its argument prototype would still apply. */
5061char gethostbyname ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005062#ifdef F77_DUMMY_MAIN
5063# ifdef __cplusplus
5064 extern "C"
5065# endif
5066 int F77_DUMMY_MAIN() { return 1; }
5067#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005068int
5069main ()
5070{
5071gethostbyname ();
5072 ;
5073 return 0;
5074}
5075_ACEOF
5076rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005078 (eval $ac_link) 2>&5
5079 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005081 (exit $ac_status); } &&
5082 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005084 (eval $ac_try) 2>&5
5085 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005087 (exit $ac_status); }; }; then
5088 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00005089else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005090 echo "$as_me: failed program was:" >&5
5091cat conftest.$ac_ext >&5
5092ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00005093fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005094rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5095LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00005096fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005097echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005098echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5099if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005100 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005101#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005102_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00005103
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005104 LIBS="-lnsl $LIBS"
5105
Ron Recorde977d6c1999-09-05 12:32:05 +00005106fi
5107
Patrik Stridvallea584721998-11-01 16:22:07 +00005108fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005109done
5110
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005111
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005112for ac_func in connect
5113do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005114as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005115echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5117if eval "test \"\${$as_ac_var+set}\" = set"; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005119else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005120 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005121#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005122#include "confdefs.h"
5123/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005124 which can conflict with char $ac_func (); below. */
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005125#include <assert.h>
5126/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005127#ifdef __cplusplus
5128extern "C"
5129#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005130/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005131 builtin and then its argument prototype would still apply. */
5132char $ac_func ();
5133char (*f) ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005134
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005135#ifdef F77_DUMMY_MAIN
5136# ifdef __cplusplus
5137 extern "C"
5138# endif
5139 int F77_DUMMY_MAIN() { return 1; }
5140#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005141int
5142main ()
5143{
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005144/* The GNU C library defines this for functions which it implements
5145 to always fail with ENOSYS. Some functions are actually named
5146 something starting with __ and the normal name is an alias. */
5147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5148choke me
5149#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005150f = $ac_func;
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005151#endif
5152
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005153 ;
5154 return 0;
5155}
5156_ACEOF
5157rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005159 (eval $ac_link) 2>&5
5160 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005162 (exit $ac_status); } &&
5163 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005165 (eval $ac_try) 2>&5
5166 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005168 (exit $ac_status); }; }; then
5169 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005170else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005171 echo "$as_me: failed program was:" >&5
5172cat conftest.$ac_ext >&5
5173eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005174fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005176fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005178echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5179if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005180 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005182_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005183
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005184else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005185
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005186echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005187echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5188if test "${ac_cv_lib_socket_connect+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005190else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005191 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005192LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005193cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005194#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005195#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005196
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005197/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005198#ifdef __cplusplus
5199extern "C"
5200#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005201/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005202 builtin and then its argument prototype would still apply. */
5203char connect ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005204#ifdef F77_DUMMY_MAIN
5205# ifdef __cplusplus
5206 extern "C"
5207# endif
5208 int F77_DUMMY_MAIN() { return 1; }
5209#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005210int
5211main ()
5212{
5213connect ();
5214 ;
5215 return 0;
5216}
5217_ACEOF
5218rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005220 (eval $ac_link) 2>&5
5221 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005223 (exit $ac_status); } &&
5224 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005226 (eval $ac_try) 2>&5
5227 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005229 (exit $ac_status); }; }; then
5230 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005231else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005232 echo "$as_me: failed program was:" >&5
5233cat conftest.$ac_ext >&5
5234ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005235fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005236rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5237LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005238fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005239echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005240echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5241if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005242 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005243#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005244_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005245
5246 LIBS="-lsocket $LIBS"
5247
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005248fi
5249
5250fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005251done
5252
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005253
Alexandre Julliardc5552742002-04-03 20:24:44 +00005254for ac_func in inet_aton
5255do
5256as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005257echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005258echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5259if eval "test \"\${$as_ac_var+set}\" = set"; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005263#line $LINENO "configure"
Alexandre Julliardc5552742002-04-03 20:24:44 +00005264#include "confdefs.h"
5265/* System header to define __stub macros and hopefully few prototypes,
5266 which can conflict with char $ac_func (); below. */
5267#include <assert.h>
5268/* Override any gcc2 internal prototype to avoid an error. */
5269#ifdef __cplusplus
5270extern "C"
5271#endif
5272/* We use char because int might match the return type of a gcc2
5273 builtin and then its argument prototype would still apply. */
5274char $ac_func ();
5275char (*f) ();
5276
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005277#ifdef F77_DUMMY_MAIN
5278# ifdef __cplusplus
5279 extern "C"
5280# endif
5281 int F77_DUMMY_MAIN() { return 1; }
5282#endif
Alexandre Julliardc5552742002-04-03 20:24:44 +00005283int
5284main ()
5285{
5286/* The GNU C library defines this for functions which it implements
5287 to always fail with ENOSYS. Some functions are actually named
5288 something starting with __ and the normal name is an alias. */
5289#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5290choke me
5291#else
5292f = $ac_func;
5293#endif
5294
5295 ;
5296 return 0;
5297}
5298_ACEOF
5299rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005301 (eval $ac_link) 2>&5
5302 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005304 (exit $ac_status); } &&
5305 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005307 (eval $ac_try) 2>&5
5308 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005310 (exit $ac_status); }; }; then
5311 eval "$as_ac_var=yes"
5312else
5313 echo "$as_me: failed program was:" >&5
5314cat conftest.$ac_ext >&5
5315eval "$as_ac_var=no"
5316fi
5317rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5318fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005320echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5321if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005322 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005323#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005324_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005325
5326else
5327
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005328echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005329echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5330if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333 ac_check_lib_save_LIBS=$LIBS
5334LIBS="-lresolv $LIBS"
5335cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005336#line $LINENO "configure"
Francois Gouget3b943bc2002-04-01 21:05:15 +00005337#include "confdefs.h"
5338
5339/* Override any gcc2 internal prototype to avoid an error. */
5340#ifdef __cplusplus
5341extern "C"
5342#endif
5343/* We use char because int might match the return type of a gcc2
5344 builtin and then its argument prototype would still apply. */
5345char inet_aton ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005346#ifdef F77_DUMMY_MAIN
5347# ifdef __cplusplus
5348 extern "C"
5349# endif
5350 int F77_DUMMY_MAIN() { return 1; }
5351#endif
Francois Gouget3b943bc2002-04-01 21:05:15 +00005352int
5353main ()
5354{
5355inet_aton ();
5356 ;
5357 return 0;
5358}
5359_ACEOF
5360rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005362 (eval $ac_link) 2>&5
5363 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005365 (exit $ac_status); } &&
5366 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005368 (eval $ac_try) 2>&5
5369 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005371 (exit $ac_status); }; }; then
5372 ac_cv_lib_resolv_inet_aton=yes
5373else
5374 echo "$as_me: failed program was:" >&5
5375cat conftest.$ac_ext >&5
5376ac_cv_lib_resolv_inet_aton=no
5377fi
5378rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5379LIBS=$ac_check_lib_save_LIBS
5380fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005381echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005382echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5383if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005384 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005385#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005386_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005387
5388 LIBS="-lresolv $LIBS"
5389
5390fi
5391
Alexandre Julliardc5552742002-04-03 20:24:44 +00005392fi
5393done
5394
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005395
5396echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005397echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5398if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005400else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005401 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005402LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005403cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005404#line $LINENO "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005405#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005406
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005407/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005408#ifdef __cplusplus
5409extern "C"
5410#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005411/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005412 builtin and then its argument prototype would still apply. */
5413char _xpg4_setrunelocale ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005414#ifdef F77_DUMMY_MAIN
5415# ifdef __cplusplus
5416 extern "C"
5417# endif
5418 int F77_DUMMY_MAIN() { return 1; }
5419#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005420int
5421main ()
5422{
5423_xpg4_setrunelocale ();
5424 ;
5425 return 0;
5426}
5427_ACEOF
5428rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005430 (eval $ac_link) 2>&5
5431 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005433 (exit $ac_status); } &&
5434 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005436 (eval $ac_try) 2>&5
5437 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005439 (exit $ac_status); }; }; then
5440 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005441else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005442 echo "$as_me: failed program was:" >&5
5443cat conftest.$ac_ext >&5
5444ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005445fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5447LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005448fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005449echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005450echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5451if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005452 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005453#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005454_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005455
5456 LIBS="-lxpg4 $LIBS"
5457
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005458fi
5459
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005460
5461echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005462echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5463if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005465else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005466 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005467LIBS="-lmmap $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005468cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005469#line $LINENO "configure"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005470#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005471
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005472/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005473#ifdef __cplusplus
5474extern "C"
5475#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005476/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005477 builtin and then its argument prototype would still apply. */
5478char mmap ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005479#ifdef F77_DUMMY_MAIN
5480# ifdef __cplusplus
5481 extern "C"
5482# endif
5483 int F77_DUMMY_MAIN() { return 1; }
5484#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005485int
5486main ()
5487{
5488mmap ();
5489 ;
5490 return 0;
5491}
5492_ACEOF
5493rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005495 (eval $ac_link) 2>&5
5496 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005498 (exit $ac_status); } &&
5499 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005501 (eval $ac_try) 2>&5
5502 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005504 (exit $ac_status); }; }; then
5505 ac_cv_lib_mmap_mmap=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005506else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005507 echo "$as_me: failed program was:" >&5
5508cat conftest.$ac_ext >&5
5509ac_cv_lib_mmap_mmap=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005510fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5512LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005513fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005514echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005515echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5516if test $ac_cv_lib_mmap_mmap = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005517 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005518#define HAVE_LIBMMAP 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005519_ACEOF
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005520
5521 LIBS="-lmmap $LIBS"
5522
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005523fi
5524
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005525
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00005526JPEGLIB=""
Alexandre Julliard562089b2001-12-31 22:28:35 +00005527
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005528echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5529echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5530if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005531 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005532else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005533 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005534#line $LINENO "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00005535#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005536#include <stdlib.h>
5537#include <stdarg.h>
5538#include <string.h>
5539#include <float.h>
5540
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005541_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5544 ac_status=$?
5545 egrep -v '^ *\+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005549 (exit $ac_status); } >/dev/null; then
5550 if test -s conftest.err; then
5551 ac_cpp_err=$ac_c_preproc_warn_flag
5552 else
5553 ac_cpp_err=
5554 fi
Marcus Meissner2d7be871999-12-05 23:06:40 +00005555else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005556 ac_cpp_err=yes
5557fi
5558if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005559 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005560else
5561 echo "$as_me: failed program was:" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00005562 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005563 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005564fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005565rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005566
5567if test $ac_cv_header_stdc = yes; then
5568 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5569 cat >conftest.$ac_ext <<_ACEOF
5570#line $LINENO "configure"
5571#include "confdefs.h"
5572#include <string.h>
5573
5574_ACEOF
5575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5576 egrep "memchr" >/dev/null 2>&1; then
5577 :
5578else
5579 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005580fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005581rm -f conftest*
5582
5583fi
5584
5585if test $ac_cv_header_stdc = yes; then
5586 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5587 cat >conftest.$ac_ext <<_ACEOF
5588#line $LINENO "configure"
5589#include "confdefs.h"
5590#include <stdlib.h>
5591
5592_ACEOF
5593if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5594 egrep "free" >/dev/null 2>&1; then
5595 :
5596else
5597 ac_cv_header_stdc=no
5598fi
5599rm -f conftest*
5600
5601fi
5602
5603if test $ac_cv_header_stdc = yes; then
5604 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5605 if test "$cross_compiling" = yes; then
5606 :
5607else
5608 cat >conftest.$ac_ext <<_ACEOF
5609#line $LINENO "configure"
5610#include "confdefs.h"
5611#include <ctype.h>
5612#if ((' ' & 0x0FF) == 0x020)
5613# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5614# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5615#else
5616# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5617 || ('j' <= (c) && (c) <= 'r') \
5618 || ('s' <= (c) && (c) <= 'z'))
5619# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5620#endif
5621
5622#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5623int
5624main ()
5625{
5626 int i;
5627 for (i = 0; i < 256; i++)
5628 if (XOR (islower (i), ISLOWER (i))
5629 || toupper (i) != TOUPPER (i))
5630 exit(2);
5631 exit (0);
5632}
5633_ACEOF
5634rm -f conftest$ac_exeext
5635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636 (eval $ac_link) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 (eval $ac_try) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 :
5646else
5647 echo "$as_me: program exited with status $ac_status" >&5
5648echo "$as_me: failed program was:" >&5
5649cat conftest.$ac_ext >&5
5650( exit $ac_status )
5651ac_cv_header_stdc=no
5652fi
5653rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5654fi
5655fi
5656fi
5657echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5658echo "${ECHO_T}$ac_cv_header_stdc" >&6
5659if test $ac_cv_header_stdc = yes; then
5660
5661cat >>confdefs.h <<\_ACEOF
5662#define STDC_HEADERS 1
5663_ACEOF
5664
5665fi
5666
5667# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5678 inttypes.h stdint.h unistd.h
5679do
5680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5681echo "$as_me:$LINENO: checking for $ac_header" >&5
5682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5683if eval "test \"\${$as_ac_Header+set}\" = set"; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685else
5686 cat >conftest.$ac_ext <<_ACEOF
5687#line $LINENO "configure"
5688#include "confdefs.h"
5689$ac_includes_default
5690
5691#include <$ac_header>
5692_ACEOF
5693rm -f conftest.$ac_objext
5694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695 (eval $ac_compile) 2>&5
5696 ac_status=$?
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try='test -s conftest.$ac_objext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 (eval $ac_try) 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 eval "$as_ac_Header=yes"
5706else
5707 echo "$as_me: failed program was:" >&5
5708cat conftest.$ac_ext >&5
5709eval "$as_ac_Header=no"
5710fi
5711rm -f conftest.$ac_objext conftest.$ac_ext
5712fi
5713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5715if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005716 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005717#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005718_ACEOF
5719
5720fi
5721
5722done
5723
5724
5725
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005726for ac_header in jpeglib.h
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005727do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005729if eval "test \"\${$as_ac_Header+set}\" = set"; then
5730 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5732if eval "test \"\${$as_ac_Header+set}\" = set"; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005734fi
5735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005737else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005738 # Is the header compilable?
5739echo "$as_me:$LINENO: checking $ac_header usability" >&5
5740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5741cat >conftest.$ac_ext <<_ACEOF
5742#line $LINENO "configure"
5743#include "confdefs.h"
5744$ac_includes_default
5745#include <$ac_header>
5746_ACEOF
5747rm -f conftest.$ac_objext
5748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5749 (eval $ac_compile) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } &&
5753 { ac_try='test -s conftest.$ac_objext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 (eval $ac_try) 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 ac_header_compiler=yes
5760else
5761 echo "$as_me: failed program was:" >&5
5762cat conftest.$ac_ext >&5
5763ac_header_compiler=no
5764fi
5765rm -f conftest.$ac_objext conftest.$ac_ext
5766echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5767echo "${ECHO_T}$ac_header_compiler" >&6
5768
5769# Is the header present?
5770echo "$as_me:$LINENO: checking $ac_header presence" >&5
5771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5772cat >conftest.$ac_ext <<_ACEOF
5773#line $LINENO "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005774#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005775#include <$ac_header>
5776_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005777if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5779 ac_status=$?
5780 egrep -v '^ *\+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005784 (exit $ac_status); } >/dev/null; then
5785 if test -s conftest.err; then
5786 ac_cpp_err=$ac_c_preproc_warn_flag
5787 else
5788 ac_cpp_err=
5789 fi
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005790else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005791 ac_cpp_err=yes
5792fi
5793if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005794 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005795else
5796 echo "$as_me: failed program was:" >&5
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005797 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005798 ac_header_preproc=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005799fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005800rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005801echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5802echo "${ECHO_T}$ac_header_preproc" >&6
5803
5804# So? What about this header?
5805case $ac_header_compiler:$ac_header_preproc in
5806 yes:no )
5807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5808echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5811 no:yes )
5812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5818esac
5819echo "$as_me:$LINENO: checking for $ac_header" >&5
5820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5821if eval "test \"\${$as_ac_Header+set}\" = set"; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824 eval "$as_ac_Header=$ac_header_preproc"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005825fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005827echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005828
5829fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005830if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005831 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005832#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005833_ACEOF
5834 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005835echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5836if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005838else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005839 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005840LIBS="-ljpeg $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005841cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005842#line $LINENO "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005843#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005844
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005845/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005846#ifdef __cplusplus
5847extern "C"
5848#endif
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005849/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005850 builtin and then its argument prototype would still apply. */
5851char jpeg_start_decompress ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005852#ifdef F77_DUMMY_MAIN
5853# ifdef __cplusplus
5854 extern "C"
5855# endif
5856 int F77_DUMMY_MAIN() { return 1; }
5857#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005858int
5859main ()
5860{
5861jpeg_start_decompress ();
5862 ;
5863 return 0;
5864}
5865_ACEOF
5866rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005868 (eval $ac_link) 2>&5
5869 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005871 (exit $ac_status); } &&
5872 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005874 (eval $ac_try) 2>&5
5875 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005877 (exit $ac_status); }; }; then
5878 ac_cv_lib_jpeg_jpeg_start_decompress=yes
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005879else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005880 echo "$as_me: failed program was:" >&5
5881cat conftest.$ac_ext >&5
5882ac_cv_lib_jpeg_jpeg_start_decompress=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005883fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005884rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5885LIBS=$ac_check_lib_save_LIBS
5886fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005887echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005888echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5889if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005890
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005891cat >>confdefs.h <<\_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005892#define HAVE_LIBJPEG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005893_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005894
5895 JPEGLIB="-ljpeg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005896
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005897fi
5898
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005899
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005900fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005901
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005902done
5903
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005904
5905
5906
5907
Patrik Stridvall2941a212000-04-25 20:34:22 +00005908XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00005909
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00005910OPENGLFILES=""
5911
Marcus Meissnerb63ab442001-06-08 19:02:57 +00005912GLU32FILES=""
Patrik Stridvallea584721998-11-01 16:22:07 +00005913if test "$have_x" = "yes"
5914then
Patrik Stridvall24110281999-02-04 10:09:54 +00005915 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00005916 ac_save_CPPFLAGS="$CPPFLAGS"
5917 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00005918
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005919
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005920for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005921do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005922as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005923if eval "test \"\${$as_ac_Header+set}\" = set"; then
5924 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5926if eval "test \"\${$as_ac_Header+set}\" = set"; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005928fi
5929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005931else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005932 # Is the header compilable?
5933echo "$as_me:$LINENO: checking $ac_header usability" >&5
5934echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5935cat >conftest.$ac_ext <<_ACEOF
5936#line $LINENO "configure"
5937#include "confdefs.h"
5938$ac_includes_default
5939#include <$ac_header>
5940_ACEOF
5941rm -f conftest.$ac_objext
5942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5943 (eval $ac_compile) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_header_compiler=yes
5954else
5955 echo "$as_me: failed program was:" >&5
5956cat conftest.$ac_ext >&5
5957ac_header_compiler=no
5958fi
5959rm -f conftest.$ac_objext conftest.$ac_ext
5960echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5961echo "${ECHO_T}$ac_header_compiler" >&6
5962
5963# Is the header present?
5964echo "$as_me:$LINENO: checking $ac_header presence" >&5
5965echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5966cat >conftest.$ac_ext <<_ACEOF
5967#line $LINENO "configure"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005968#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005969#include <$ac_header>
5970_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5973 ac_status=$?
5974 egrep -v '^ *\+' conftest.er1 >conftest.err
5975 rm -f conftest.er1
5976 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005978 (exit $ac_status); } >/dev/null; then
5979 if test -s conftest.err; then
5980 ac_cpp_err=$ac_c_preproc_warn_flag
5981 else
5982 ac_cpp_err=
5983 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005984else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005985 ac_cpp_err=yes
5986fi
5987if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005988 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005989else
5990 echo "$as_me: failed program was:" >&5
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005991 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005992 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005993fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005994rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005995echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5996echo "${ECHO_T}$ac_header_preproc" >&6
5997
5998# So? What about this header?
5999case $ac_header_compiler:$ac_header_preproc in
6000 yes:no )
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6002echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6005 no:yes )
6006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6007echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6009echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6011echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6012esac
6013echo "$as_me:$LINENO: checking for $ac_header" >&5
6014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6018 eval "$as_ac_Header=$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006019fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006022
6023fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006024if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006025 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006027_ACEOF
6028
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006029
6030for ac_header in X11/XKBlib.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006031do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006033if eval "test \"\${$as_ac_Header+set}\" = set"; then
6034 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6036if eval "test \"\${$as_ac_Header+set}\" = set"; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006038fi
6039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006041else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006042 # Is the header compilable?
6043echo "$as_me:$LINENO: checking $ac_header usability" >&5
6044echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6045cat >conftest.$ac_ext <<_ACEOF
6046#line $LINENO "configure"
6047#include "confdefs.h"
6048$ac_includes_default
6049#include <$ac_header>
6050_ACEOF
6051rm -f conftest.$ac_objext
6052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6053 (eval $ac_compile) 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6057 { ac_try='test -s conftest.$ac_objext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6063 ac_header_compiler=yes
6064else
6065 echo "$as_me: failed program was:" >&5
6066cat conftest.$ac_ext >&5
6067ac_header_compiler=no
6068fi
6069rm -f conftest.$ac_objext conftest.$ac_ext
6070echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6071echo "${ECHO_T}$ac_header_compiler" >&6
6072
6073# Is the header present?
6074echo "$as_me:$LINENO: checking $ac_header presence" >&5
6075echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6076cat >conftest.$ac_ext <<_ACEOF
6077#line $LINENO "configure"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006078#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006079#include <$ac_header>
6080_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6083 ac_status=$?
6084 egrep -v '^ *\+' conftest.er1 >conftest.err
6085 rm -f conftest.er1
6086 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006088 (exit $ac_status); } >/dev/null; then
6089 if test -s conftest.err; then
6090 ac_cpp_err=$ac_c_preproc_warn_flag
6091 else
6092 ac_cpp_err=
6093 fi
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006094else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006095 ac_cpp_err=yes
6096fi
6097if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006098 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006099else
6100 echo "$as_me: failed program was:" >&5
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006101 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006102 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006103fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006104rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006105echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6106echo "${ECHO_T}$ac_header_preproc" >&6
6107
6108# So? What about this header?
6109case $ac_header_compiler:$ac_header_preproc in
6110 yes:no )
6111 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6112echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6114echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6115 no:yes )
6116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6117echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6119echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6122esac
6123echo "$as_me:$LINENO: checking for $ac_header" >&5
6124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6125if eval "test \"\${$as_ac_Header+set}\" = set"; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6127else
6128 eval "$as_ac_Header=$ac_header_preproc"
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006129fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006132
6133fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006134if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006135 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006137_ACEOF
6138 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006139echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6140if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006142else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006143 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00006144LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006145cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006146#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006147#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006148
Patrik Stridvall24110281999-02-04 10:09:54 +00006149/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006150#ifdef __cplusplus
6151extern "C"
6152#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006153/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006154 builtin and then its argument prototype would still apply. */
6155char XkbQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006156#ifdef F77_DUMMY_MAIN
6157# ifdef __cplusplus
6158 extern "C"
6159# endif
6160 int F77_DUMMY_MAIN() { return 1; }
6161#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006162int
6163main ()
6164{
6165XkbQueryExtension ();
6166 ;
6167 return 0;
6168}
6169_ACEOF
6170rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006172 (eval $ac_link) 2>&5
6173 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006175 (exit $ac_status); } &&
6176 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006178 (eval $ac_try) 2>&5
6179 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006181 (exit $ac_status); }; }; then
6182 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006183else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006184 echo "$as_me: failed program was:" >&5
6185cat conftest.$ac_ext >&5
6186ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006187fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006188rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6189LIBS=$ac_check_lib_save_LIBS
6190fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006191echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006192echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6193if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006194
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006195cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006196#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006197_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006198
Patrik Stridvall24110281999-02-04 10:09:54 +00006199fi
6200
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006201
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006202else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006203 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006204echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
6205
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006206fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006207
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006208done
6209
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006210
6211
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006212for ac_header in X11/extensions/XShm.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006213do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006214as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006215echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6217if eval "test \"\${$as_ac_Header+set}\" = set"; then
6218 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006219else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006220 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006221#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006222#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006223#include <X11/Xlib.h>
6224
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006225#include <$ac_header>
6226_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006227rm -f conftest.$ac_objext
6228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6229 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006230 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try='test -s conftest.$ac_objext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 (eval $ac_try) 2>&5
6236 ac_status=$?
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006239 eval "$as_ac_Header=yes"
6240else
6241 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006242cat conftest.$ac_ext >&5
6243eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006244fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006245rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006246fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6249if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006250 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006252_ACEOF
6253 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006254echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6255if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006257else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006258 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00006259LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006260cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006261#line $LINENO "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006262#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006263
Francois Jacques5b6879c2000-07-28 23:04:54 +00006264/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006265#ifdef __cplusplus
6266extern "C"
6267#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00006268/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006269 builtin and then its argument prototype would still apply. */
6270char XShmQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006271#ifdef F77_DUMMY_MAIN
6272# ifdef __cplusplus
6273 extern "C"
6274# endif
6275 int F77_DUMMY_MAIN() { return 1; }
6276#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006277int
6278main ()
6279{
6280XShmQueryExtension ();
6281 ;
6282 return 0;
6283}
6284_ACEOF
6285rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006287 (eval $ac_link) 2>&5
6288 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006290 (exit $ac_status); } &&
6291 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006293 (eval $ac_try) 2>&5
6294 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006296 (exit $ac_status); }; }; then
6297 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00006298else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006299 echo "$as_me: failed program was:" >&5
6300cat conftest.$ac_ext >&5
6301ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00006302fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006303rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6304LIBS=$ac_check_lib_save_LIBS
6305fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006306echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006307echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6308if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00006309
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006310cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006311#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006312_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00006313
Francois Jacques5b6879c2000-07-28 23:04:54 +00006314fi
6315
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006316
Francois Jacques5b6879c2000-07-28 23:04:54 +00006317else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006318 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006319echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
Francois Jacques5b6879c2000-07-28 23:04:54 +00006320fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006321
Francois Jacques5b6879c2000-07-28 23:04:54 +00006322done
6323
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006324
6325
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006326for ac_header in X11/extensions/shape.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00006327do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006329echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6331if eval "test \"\${$as_ac_Header+set}\" = set"; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006333else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006334 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006335#line $LINENO "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006336#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006337#include <X11/Xlib.h>
6338
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006339#include <$ac_header>
6340_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006341rm -f conftest.$ac_objext
6342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006344 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -s conftest.$ac_objext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006353 eval "$as_ac_Header=yes"
6354else
6355 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006356cat conftest.$ac_ext >&5
6357eval "$as_ac_Header=no"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006358fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006359rm -f conftest.$ac_objext conftest.$ac_ext
Francois Jacques5b6879c2000-07-28 23:04:54 +00006360fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6363if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006364 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006365#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006366_ACEOF
6367 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006368echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6369if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00006371else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006372 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00006373LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006374cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006375#line $LINENO "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006376#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006377
Ove Kaavenc90fb252001-01-02 22:39:14 +00006378/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006379#ifdef __cplusplus
6380extern "C"
6381#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00006382/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006383 builtin and then its argument prototype would still apply. */
6384char XShapeQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006385#ifdef F77_DUMMY_MAIN
6386# ifdef __cplusplus
6387 extern "C"
6388# endif
6389 int F77_DUMMY_MAIN() { return 1; }
6390#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006391int
6392main ()
6393{
6394XShapeQueryExtension ();
6395 ;
6396 return 0;
6397}
6398_ACEOF
6399rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006401 (eval $ac_link) 2>&5
6402 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006404 (exit $ac_status); } &&
6405 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006407 (eval $ac_try) 2>&5
6408 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006410 (exit $ac_status); }; }; then
6411 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00006412else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006413 echo "$as_me: failed program was:" >&5
6414cat conftest.$ac_ext >&5
6415ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00006416fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006417rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6418LIBS=$ac_check_lib_save_LIBS
6419fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006420echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006421echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6422if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00006423
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006424cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006425#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006426_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006427
Ove Kaavenc90fb252001-01-02 22:39:14 +00006428fi
6429
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006430
Ove Kaavenc90fb252001-01-02 22:39:14 +00006431else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006432 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006433echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
Ove Kaavenc90fb252001-01-02 22:39:14 +00006434fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006435
Ove Kaavenc90fb252001-01-02 22:39:14 +00006436done
6437
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006438
6439
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006440for ac_header in X11/extensions/xf86dga.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00006441do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006443echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6445if eval "test \"\${$as_ac_Header+set}\" = set"; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00006447else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006448 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006449#line $LINENO "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006450#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006451#include <X11/Xlib.h>
6452
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006453#include <$ac_header>
6454_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006455rm -f conftest.$ac_objext
6456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6457 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006458 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } &&
6461 { ac_try='test -s conftest.$ac_objext'
6462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463 (eval $ac_try) 2>&5
6464 ac_status=$?
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006467 eval "$as_ac_Header=yes"
6468else
6469 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006470cat conftest.$ac_ext >&5
6471eval "$as_ac_Header=no"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006472fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006473rm -f conftest.$ac_objext conftest.$ac_ext
Ove Kaavenc90fb252001-01-02 22:39:14 +00006474fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006476echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6477if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006478 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006480_ACEOF
6481 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006482echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6483if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006485else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006486 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006487LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006488 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006489cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006490#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006491#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006492
Patrik Stridvall24110281999-02-04 10:09:54 +00006493/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006494#ifdef __cplusplus
6495extern "C"
6496#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006497/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006498 builtin and then its argument prototype would still apply. */
6499char XDGAQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006500#ifdef F77_DUMMY_MAIN
6501# ifdef __cplusplus
6502 extern "C"
6503# endif
6504 int F77_DUMMY_MAIN() { return 1; }
6505#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006506int
6507main ()
6508{
6509XDGAQueryExtension ();
6510 ;
6511 return 0;
6512}
6513_ACEOF
6514rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006516 (eval $ac_link) 2>&5
6517 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006519 (exit $ac_status); } &&
6520 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006522 (eval $ac_try) 2>&5
6523 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006525 (exit $ac_status); }; }; then
6526 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006527else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006528 echo "$as_me: failed program was:" >&5
6529cat conftest.$ac_ext >&5
6530ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006531fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006532rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6533LIBS=$ac_check_lib_save_LIBS
6534fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006535echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006536echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6537if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006538
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006539cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006540#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006541_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006542
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006543 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006544
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006545else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006546 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006547echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6548if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006550else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006551 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006552LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6553 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006554cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006555#line $LINENO "configure"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006556#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006557
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006558/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006559#ifdef __cplusplus
6560extern "C"
6561#endif
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006562/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006563 builtin and then its argument prototype would still apply. */
6564char XF86DGAQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006565#ifdef F77_DUMMY_MAIN
6566# ifdef __cplusplus
6567 extern "C"
6568# endif
6569 int F77_DUMMY_MAIN() { return 1; }
6570#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006571int
6572main ()
6573{
6574XF86DGAQueryExtension ();
6575 ;
6576 return 0;
6577}
6578_ACEOF
6579rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006581 (eval $ac_link) 2>&5
6582 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006584 (exit $ac_status); } &&
6585 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006587 (eval $ac_try) 2>&5
6588 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006590 (exit $ac_status); }; }; then
6591 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006592else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006593 echo "$as_me: failed program was:" >&5
6594cat conftest.$ac_ext >&5
6595ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006596fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6598LIBS=$ac_check_lib_save_LIBS
6599fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006600echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006601echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6602if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006603
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006604cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006605#define HAVE_LIBXXF86DGA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006606_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006607
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006608 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006609
Patrik Stridvall24110281999-02-04 10:09:54 +00006610fi
6611
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006612
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006613fi
Patrik Stridvall24110281999-02-04 10:09:54 +00006614
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006615
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006616else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006617 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006618echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006619fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006620
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006621done
6622
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006623
6624
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006625for ac_header in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006626do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006628echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6630if eval "test \"\${$as_ac_Header+set}\" = set"; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006632else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006633 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006634#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006635#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006636#include <X11/Xlib.h>
6637
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006638#include <$ac_header>
6639_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006640rm -f conftest.$ac_objext
6641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006643 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
6646 { ac_try='test -s conftest.$ac_objext'
6647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 (eval $ac_try) 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006652 eval "$as_ac_Header=yes"
6653else
6654 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006655cat conftest.$ac_ext >&5
6656eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006657fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006658rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006659fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6662if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006663 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006665_ACEOF
6666 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006667echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6668if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006670else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006671 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006672LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6673 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006674cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006675#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006676#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006677
Patrik Stridvall24110281999-02-04 10:09:54 +00006678/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006679#ifdef __cplusplus
6680extern "C"
6681#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006682/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006683 builtin and then its argument prototype would still apply. */
6684char XF86VidModeQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006685#ifdef F77_DUMMY_MAIN
6686# ifdef __cplusplus
6687 extern "C"
6688# endif
6689 int F77_DUMMY_MAIN() { return 1; }
6690#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006691int
6692main ()
6693{
6694XF86VidModeQueryExtension ();
6695 ;
6696 return 0;
6697}
6698_ACEOF
6699rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006701 (eval $ac_link) 2>&5
6702 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006704 (exit $ac_status); } &&
6705 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006707 (eval $ac_try) 2>&5
6708 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006710 (exit $ac_status); }; }; then
6711 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006712else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006713 echo "$as_me: failed program was:" >&5
6714cat conftest.$ac_ext >&5
6715ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006716fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6718LIBS=$ac_check_lib_save_LIBS
6719fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006720echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006721echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6722if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006723
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006724cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006725#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006726_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006727
6728 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006729
Patrik Stridvall24110281999-02-04 10:09:54 +00006730fi
6731
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006732
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006733else
6734 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6735echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006736fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006737
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006738done
Lionel Ulmer5c085701999-02-28 19:48:53 +00006739
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006740
6741
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006742for ac_header in X11/extensions/Xvlib.h
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006743do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006745echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6747if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006749else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006750 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006751#line $LINENO "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006752#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006753#include <X11/Xlib.h>
6754
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006755#include <$ac_header>
6756_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006757rm -f conftest.$ac_objext
6758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6759 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006760 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try='test -s conftest.$ac_objext'
6764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6765 (eval $ac_try) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006769 eval "$as_ac_Header=yes"
6770else
6771 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006772cat conftest.$ac_ext >&5
6773eval "$as_ac_Header=no"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006774fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006775rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006776fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6779if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006780 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006782_ACEOF
6783 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006784echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6785if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006787else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006788 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006789LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6790 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006791cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006792#line $LINENO "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006793#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006794
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006795/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006796#ifdef __cplusplus
6797extern "C"
6798#endif
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006799/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006800 builtin and then its argument prototype would still apply. */
6801char XvShmCreateImage ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006802#ifdef F77_DUMMY_MAIN
6803# ifdef __cplusplus
6804 extern "C"
6805# endif
6806 int F77_DUMMY_MAIN() { return 1; }
6807#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006808int
6809main ()
6810{
6811XvShmCreateImage ();
6812 ;
6813 return 0;
6814}
6815_ACEOF
6816rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006818 (eval $ac_link) 2>&5
6819 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006821 (exit $ac_status); } &&
6822 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006824 (eval $ac_try) 2>&5
6825 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006827 (exit $ac_status); }; }; then
6828 ac_cv_lib_Xv_XvShmCreateImage=yes
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006829else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006830 echo "$as_me: failed program was:" >&5
6831cat conftest.$ac_ext >&5
6832ac_cv_lib_Xv_XvShmCreateImage=no
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006833fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006834rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6835LIBS=$ac_check_lib_save_LIBS
6836fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006837echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006838echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6839if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006840
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006841cat >>confdefs.h <<\_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006842#define HAVE_XVIDEO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006843_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006844
6845 X_PRE_LIBS="$X_PRE_LIBS -lXv"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006846
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006847fi
6848
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006849
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006850else
6851 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6852echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006853fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006854
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006855done
6856
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006857
6858
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006859for ac_header in X11/extensions/Xrender.h
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006860do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006861as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006862echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6864if eval "test \"\${$as_ac_Header+set}\" = set"; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006866else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006867 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006868#line $LINENO "configure"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006869#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006870#include <X11/Xlib.h>
6871
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006872#include <$ac_header>
6873_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006874rm -f conftest.$ac_objext
6875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006877 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -s conftest.$ac_objext'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006886 eval "$as_ac_Header=yes"
6887else
6888 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006889cat conftest.$ac_ext >&5
6890eval "$as_ac_Header=no"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006891fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006892rm -f conftest.$ac_objext conftest.$ac_ext
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006893fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6896if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006897 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006898#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006899_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006900
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006901fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006902
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006903done
6904
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006905
6906
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006907fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006908
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006909done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006910
6911 if test "x$enable_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006912 then
Francois Gouget42dcd972002-01-29 17:52:28 +00006913 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00006914 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006915 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006916This prevents linking to OpenGL. Delete the file and restart configure." >&5
6917echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6918This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6919 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00006920 fi
6921
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006922
6923
6924for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006925do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006926as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006927if eval "test \"\${$as_ac_Header+set}\" = set"; then
6928 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6930if eval "test \"\${$as_ac_Header+set}\" = set"; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006932fi
6933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6934echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006935else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006936 # Is the header compilable?
6937echo "$as_me:$LINENO: checking $ac_header usability" >&5
6938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6939cat >conftest.$ac_ext <<_ACEOF
6940#line $LINENO "configure"
6941#include "confdefs.h"
6942$ac_includes_default
6943#include <$ac_header>
6944_ACEOF
6945rm -f conftest.$ac_objext
6946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947 (eval $ac_compile) 2>&5
6948 ac_status=$?
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } &&
6951 { ac_try='test -s conftest.$ac_objext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6957 ac_header_compiler=yes
6958else
6959 echo "$as_me: failed program was:" >&5
6960cat conftest.$ac_ext >&5
6961ac_header_compiler=no
6962fi
6963rm -f conftest.$ac_objext conftest.$ac_ext
6964echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6965echo "${ECHO_T}$ac_header_compiler" >&6
6966
6967# Is the header present?
6968echo "$as_me:$LINENO: checking $ac_header presence" >&5
6969echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6970cat >conftest.$ac_ext <<_ACEOF
6971#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006972#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006973#include <$ac_header>
6974_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6977 ac_status=$?
6978 egrep -v '^ *\+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006982 (exit $ac_status); } >/dev/null; then
6983 if test -s conftest.err; then
6984 ac_cpp_err=$ac_c_preproc_warn_flag
6985 else
6986 ac_cpp_err=
6987 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00006988else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006989 ac_cpp_err=yes
6990fi
6991if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006992 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006993else
6994 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00006995 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006996 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006997fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006998rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006999echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7000echo "${ECHO_T}$ac_header_preproc" >&6
7001
7002# So? What about this header?
7003case $ac_header_compiler:$ac_header_preproc in
7004 yes:no )
7005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7006echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7008echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7009 no:yes )
7010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7011echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7013echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7015echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7016esac
7017echo "$as_me:$LINENO: checking for $ac_header" >&5
7018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7019if eval "test \"\${$as_ac_Header+set}\" = set"; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007023fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007026
Patrik Stridvall24110281999-02-04 10:09:54 +00007027fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007028if test `eval echo '${'$as_ac_Header'}'` = yes; then
7029 cat >>confdefs.h <<_ACEOF
7030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7031_ACEOF
7032
7033fi
7034
Patrik Stridvall24110281999-02-04 10:09:54 +00007035done
7036
Marcus Meissner22a969b2000-08-08 20:46:50 +00007037 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007038 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007039
7040for ac_header in GL/glext.h
7041do
7042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7043echo "$as_me:$LINENO: checking for $ac_header" >&5
7044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7045if eval "test \"\${$as_ac_Header+set}\" = set"; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047else
7048 cat >conftest.$ac_ext <<_ACEOF
7049#line $LINENO "configure"
7050#include "confdefs.h"
7051#include <GL/glx.h>
7052
7053#include <$ac_header>
7054_ACEOF
7055rm -f conftest.$ac_objext
7056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057 (eval $ac_compile) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try='test -s conftest.$ac_objext'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 (eval $ac_try) 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; }; then
7067 eval "$as_ac_Header=yes"
7068else
7069 echo "$as_me: failed program was:" >&5
7070cat conftest.$ac_ext >&5
7071eval "$as_ac_Header=no"
7072fi
7073rm -f conftest.$ac_objext conftest.$ac_ext
7074fi
7075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7077if test `eval echo '${'$as_ac_Header'}'` = yes; then
7078 cat >>confdefs.h <<_ACEOF
7079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7080_ACEOF
7081
7082fi
7083
7084done
7085
7086 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007087echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7088if test "${wine_cv_opengl_version_OK+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00007090else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007091 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007092#line $LINENO "configure"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007093#include "confdefs.h"
7094#include <GL/gl.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007095#ifdef F77_DUMMY_MAIN
7096# ifdef __cplusplus
7097 extern "C"
7098# endif
7099 int F77_DUMMY_MAIN() { return 1; }
7100#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007101int
7102main ()
7103{
Lionel Ulmer5c085701999-02-28 19:48:53 +00007104GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007105 ;
7106 return 0;
7107}
7108_ACEOF
7109rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007111 (eval $ac_compile) 2>&5
7112 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007114 (exit $ac_status); } &&
7115 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007117 (eval $ac_try) 2>&5
7118 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007120 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007121 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007122else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007123 echo "$as_me: failed program was:" >&5
7124cat conftest.$ac_ext >&5
7125wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007126
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007127fi
7128rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00007129
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007130fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007131echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007132echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7133
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007134 echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007135echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
7136if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007138else
7139 saved_libs=$LIBS
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007140 LIBS="$X_LIBS -lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007141 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007142#line $LINENO "configure"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007143#include "confdefs.h"
7144
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007145#ifdef F77_DUMMY_MAIN
7146# ifdef __cplusplus
7147 extern "C"
7148# endif
7149 int F77_DUMMY_MAIN() { return 1; }
7150#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007151int
7152main ()
7153{
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007154pthread_getspecific();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007155 ;
7156 return 0;
7157}
7158_ACEOF
7159rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007161 (eval $ac_link) 2>&5
7162 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007164 (exit $ac_status); } &&
7165 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007167 (eval $ac_try) 2>&5
7168 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007170 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007171 wine_cv_opengl_version_threadsafe="yes"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007172else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007173 echo "$as_me: failed program was:" >&5
7174cat conftest.$ac_ext >&5
7175wine_cv_opengl_version_threadsafe="no"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007176fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007177rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007178 LIBS=$saved_libs
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007179
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007180fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007181echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007182echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007183
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007184 if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \)
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007185 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007186 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007187echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7188if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007190else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007191 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00007192LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007193cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007194#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00007195#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007196
Patrik Stridvall24110281999-02-04 10:09:54 +00007197/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007198#ifdef __cplusplus
7199extern "C"
7200#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007201/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007202 builtin and then its argument prototype would still apply. */
7203char glXCreateContext ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007204#ifdef F77_DUMMY_MAIN
7205# ifdef __cplusplus
7206 extern "C"
7207# endif
7208 int F77_DUMMY_MAIN() { return 1; }
7209#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007210int
7211main ()
7212{
7213glXCreateContext ();
7214 ;
7215 return 0;
7216}
7217_ACEOF
7218rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007220 (eval $ac_link) 2>&5
7221 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007223 (exit $ac_status); } &&
7224 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007226 (eval $ac_try) 2>&5
7227 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007229 (exit $ac_status); }; }; then
7230 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007231else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007232 echo "$as_me: failed program was:" >&5
7233cat conftest.$ac_ext >&5
7234ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007235fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007236rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7237LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00007238fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007239echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007240echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7241if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007242 X_PRE_LIBS="$X_PRE_LIBS -lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00007243
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007244fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007245
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007246
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007247 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00007248 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00007249 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007250
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007251cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007252#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007253_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007254
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007255
7256 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007257echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7258if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007260else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007261 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007262LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007263cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007264#line $LINENO "configure"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007265#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007266
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007267/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007268#ifdef __cplusplus
7269extern "C"
7270#endif
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007271/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007272 builtin and then its argument prototype would still apply. */
7273char glXGetProcAddressARB ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007274#ifdef F77_DUMMY_MAIN
7275# ifdef __cplusplus
7276 extern "C"
7277# endif
7278 int F77_DUMMY_MAIN() { return 1; }
7279#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007280int
7281main ()
7282{
7283glXGetProcAddressARB ();
7284 ;
7285 return 0;
7286}
7287_ACEOF
7288rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007290 (eval $ac_link) 2>&5
7291 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007293 (exit $ac_status); } &&
7294 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007296 (eval $ac_try) 2>&5
7297 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007299 (exit $ac_status); }; }; then
7300 ac_cv_lib_GL_glXGetProcAddressARB=yes
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007301else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007302 echo "$as_me: failed program was:" >&5
7303cat conftest.$ac_ext >&5
7304ac_cv_lib_GL_glXGetProcAddressARB=no
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007305fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007306rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7307LIBS=$ac_check_lib_save_LIBS
7308fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007309echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007310echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7311if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007312
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007313cat >>confdefs.h <<\_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007314#define HAVE_GLX_GETPROCADDRESS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007315_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007316
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007317fi
7318
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007319
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007320 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007321 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007322 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007323echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7324if test "${wine_cv_extension_prototypes+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer1434d872000-07-23 14:23:31 +00007326else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007327 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007328#line $LINENO "configure"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007329#include "confdefs.h"
7330#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007331 #ifdef HAVE_GL_GLEXT_H
7332 # include <GL/glext.h>
7333 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007334
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007335#ifdef F77_DUMMY_MAIN
7336# ifdef __cplusplus
7337 extern "C"
7338# endif
7339 int F77_DUMMY_MAIN() { return 1; }
7340#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007341int
7342main ()
7343{
Lionel Ulmer1434d872000-07-23 14:23:31 +00007344PFNGLCOLORTABLEEXTPROC test_proc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007345 ;
7346 return 0;
7347}
7348_ACEOF
7349rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007351 (eval $ac_compile) 2>&5
7352 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007354 (exit $ac_status); } &&
7355 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007357 (eval $ac_try) 2>&5
7358 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007360 (exit $ac_status); }; }; then
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007361 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007362else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007363 echo "$as_me: failed program was:" >&5
7364cat conftest.$ac_ext >&5
7365wine_cv_extension_prototypes="no"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007366
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007367fi
7368rm -f conftest.$ac_objext conftest.$ac_ext
7369
7370fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007371echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007372echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007373 if test "$wine_cv_extension_prototypes" = "yes"
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007374 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007375
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007376cat >>confdefs.h <<\_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007377#define HAVE_GLEXT_PROTOTYPES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007378_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007379
7380 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007381 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00007382
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007383 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007384 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007385echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7386if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007388else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007389 ac_check_lib_save_LIBS=$LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007390LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7391 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007392cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007393#line $LINENO "configure"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007394#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007395
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007396/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007397#ifdef __cplusplus
7398extern "C"
7399#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007400/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007401 builtin and then its argument prototype would still apply. */
7402char gluLookAt ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007403#ifdef F77_DUMMY_MAIN
7404# ifdef __cplusplus
7405 extern "C"
7406# endif
7407 int F77_DUMMY_MAIN() { return 1; }
7408#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007409int
7410main ()
7411{
7412gluLookAt ();
7413 ;
7414 return 0;
7415}
7416_ACEOF
7417rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007419 (eval $ac_link) 2>&5
7420 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007422 (exit $ac_status); } &&
7423 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007425 (eval $ac_try) 2>&5
7426 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007428 (exit $ac_status); }; }; then
7429 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007430else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007431 echo "$as_me: failed program was:" >&5
7432cat conftest.$ac_ext >&5
7433ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007434fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7436LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007437fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007438echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007439echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7440if test $ac_cv_lib_GLU_gluLookAt = yes; then
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007441 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7442 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007443
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007444fi
7445
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007446 fi
7447 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007448 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00007449
7450 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00007451 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00007452else
7453 XLIB=""
7454 X_CFLAGS=""
7455 X_LIBS=""
7456fi
Alexandre Julliard902da691995-11-05 14:39:02 +00007457
Alexandre Julliard48957682001-12-26 23:08:31 +00007458CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007459if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00007460then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007461
7462for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007463do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007464as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007465if eval "test \"\${$as_ac_Header+set}\" = set"; then
7466 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007467echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7468if eval "test \"\${$as_ac_Header+set}\" = set"; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007470fi
7471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007473else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007474 # Is the header compilable?
7475echo "$as_me:$LINENO: checking $ac_header usability" >&5
7476echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7477cat >conftest.$ac_ext <<_ACEOF
7478#line $LINENO "configure"
7479#include "confdefs.h"
7480$ac_includes_default
7481#include <$ac_header>
7482_ACEOF
7483rm -f conftest.$ac_objext
7484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485 (eval $ac_compile) 2>&5
7486 ac_status=$?
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); } &&
7489 { ac_try='test -s conftest.$ac_objext'
7490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491 (eval $ac_try) 2>&5
7492 ac_status=$?
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); }; }; then
7495 ac_header_compiler=yes
7496else
7497 echo "$as_me: failed program was:" >&5
7498cat conftest.$ac_ext >&5
7499ac_header_compiler=no
7500fi
7501rm -f conftest.$ac_objext conftest.$ac_ext
7502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7503echo "${ECHO_T}$ac_header_compiler" >&6
7504
7505# Is the header present?
7506echo "$as_me:$LINENO: checking $ac_header presence" >&5
7507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7508cat >conftest.$ac_ext <<_ACEOF
7509#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00007510#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007511#include <$ac_header>
7512_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7515 ac_status=$?
7516 egrep -v '^ *\+' conftest.er1 >conftest.err
7517 rm -f conftest.er1
7518 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007520 (exit $ac_status); } >/dev/null; then
7521 if test -s conftest.err; then
7522 ac_cpp_err=$ac_c_preproc_warn_flag
7523 else
7524 ac_cpp_err=
7525 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007526else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007527 ac_cpp_err=yes
7528fi
7529if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007530 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007531else
7532 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00007533 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007534 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007535fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007536rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007537echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7538echo "${ECHO_T}$ac_header_preproc" >&6
7539
7540# So? What about this header?
7541case $ac_header_compiler:$ac_header_preproc in
7542 yes:no )
7543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7547 no:yes )
7548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7549echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7551echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7553echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7554esac
7555echo "$as_me:$LINENO: checking for $ac_header" >&5
7556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7557if eval "test \"\${$as_ac_Header+set}\" = set"; then
7558 echo $ECHO_N "(cached) $ECHO_C" >&6
7559else
7560 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007561fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007564
7565fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007566if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007567 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007569_ACEOF
7570 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007571echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7572if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007574else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007575 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007576LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007577cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007578#line $LINENO "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007579#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007580
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007581/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007582#ifdef __cplusplus
7583extern "C"
7584#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007585/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007586 builtin and then its argument prototype would still apply. */
7587char waddch ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007588#ifdef F77_DUMMY_MAIN
7589# ifdef __cplusplus
7590 extern "C"
7591# endif
7592 int F77_DUMMY_MAIN() { return 1; }
7593#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007594int
7595main ()
7596{
7597waddch ();
7598 ;
7599 return 0;
7600}
7601_ACEOF
7602rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007604 (eval $ac_link) 2>&5
7605 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007607 (exit $ac_status); } &&
7608 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007610 (eval $ac_try) 2>&5
7611 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007613 (exit $ac_status); }; }; then
7614 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007615else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007616 echo "$as_me: failed program was:" >&5
7617cat conftest.$ac_ext >&5
7618ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007619fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007620rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7621LIBS=$ac_check_lib_save_LIBS
7622fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007623echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007624echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7625if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007626
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007627cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00007628#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007629_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007630
Alexandre Julliard48957682001-12-26 23:08:31 +00007631 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007632else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007633
7634for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007635do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007637if eval "test \"\${$as_ac_Header+set}\" = set"; then
7638 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7640if eval "test \"\${$as_ac_Header+set}\" = set"; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007642fi
7643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007645else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007646 # Is the header compilable?
7647echo "$as_me:$LINENO: checking $ac_header usability" >&5
7648echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7649cat >conftest.$ac_ext <<_ACEOF
7650#line $LINENO "configure"
7651#include "confdefs.h"
7652$ac_includes_default
7653#include <$ac_header>
7654_ACEOF
7655rm -f conftest.$ac_objext
7656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7657 (eval $ac_compile) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try='test -s conftest.$ac_objext'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7663 (eval $ac_try) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; }; then
7667 ac_header_compiler=yes
7668else
7669 echo "$as_me: failed program was:" >&5
7670cat conftest.$ac_ext >&5
7671ac_header_compiler=no
7672fi
7673rm -f conftest.$ac_objext conftest.$ac_ext
7674echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7675echo "${ECHO_T}$ac_header_compiler" >&6
7676
7677# Is the header present?
7678echo "$as_me:$LINENO: checking $ac_header presence" >&5
7679echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7680cat >conftest.$ac_ext <<_ACEOF
7681#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00007682#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007683#include <$ac_header>
7684_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7687 ac_status=$?
7688 egrep -v '^ *\+' conftest.er1 >conftest.err
7689 rm -f conftest.er1
7690 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007692 (exit $ac_status); } >/dev/null; then
7693 if test -s conftest.err; then
7694 ac_cpp_err=$ac_c_preproc_warn_flag
7695 else
7696 ac_cpp_err=
7697 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007698else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007699 ac_cpp_err=yes
7700fi
7701if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007702 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007703else
7704 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00007705 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007706 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007707fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007708rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007709echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7710echo "${ECHO_T}$ac_header_preproc" >&6
7711
7712# So? What about this header?
7713case $ac_header_compiler:$ac_header_preproc in
7714 yes:no )
7715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7716echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7718echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7719 no:yes )
7720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7726esac
7727echo "$as_me:$LINENO: checking for $ac_header" >&5
7728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7729if eval "test \"\${$as_ac_Header+set}\" = set"; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731else
7732 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007733fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007735echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007736
7737fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007738if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007739 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007740#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007741_ACEOF
7742 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007743echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7744if test "${ac_cv_lib_curses_waddch+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007746else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007747 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007748LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007749cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007750#line $LINENO "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007751#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007752
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007753/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007754#ifdef __cplusplus
7755extern "C"
7756#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007757/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007758 builtin and then its argument prototype would still apply. */
7759char waddch ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007760#ifdef F77_DUMMY_MAIN
7761# ifdef __cplusplus
7762 extern "C"
7763# endif
7764 int F77_DUMMY_MAIN() { return 1; }
7765#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007766int
7767main ()
7768{
7769waddch ();
7770 ;
7771 return 0;
7772}
7773_ACEOF
7774rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007776 (eval $ac_link) 2>&5
7777 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007779 (exit $ac_status); } &&
7780 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007782 (eval $ac_try) 2>&5
7783 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007785 (exit $ac_status); }; }; then
7786 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007787else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007788 echo "$as_me: failed program was:" >&5
7789cat conftest.$ac_ext >&5
7790ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007791fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7793LIBS=$ac_check_lib_save_LIBS
7794fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007795echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007796echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7797if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007798
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007799cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00007800#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007801_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007802
Alexandre Julliard48957682001-12-26 23:08:31 +00007803 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007804fi
7805
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007806fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007807
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007808done
7809
7810fi
Alexandre Julliard48957682001-12-26 23:08:31 +00007811
Alexandre Julliard48957682001-12-26 23:08:31 +00007812fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007813
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007814done
7815
Alexandre Julliard48957682001-12-26 23:08:31 +00007816 saved_libs="$LIBS"
7817 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007818
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007819
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007820for ac_func in getbkgd resizeterm
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007821do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007823echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7825if eval "test \"\${$as_ac_var+set}\" = set"; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard638f1691999-01-17 16:32:32 +00007827else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007828 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007829#line $LINENO "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007830#include "confdefs.h"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007831/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007832 which can conflict with char $ac_func (); below. */
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007833#include <assert.h>
Alexandre Julliard638f1691999-01-17 16:32:32 +00007834/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007835#ifdef __cplusplus
7836extern "C"
7837#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00007838/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007839 builtin and then its argument prototype would still apply. */
7840char $ac_func ();
7841char (*f) ();
Alexandre Julliard638f1691999-01-17 16:32:32 +00007842
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007843#ifdef F77_DUMMY_MAIN
7844# ifdef __cplusplus
7845 extern "C"
7846# endif
7847 int F77_DUMMY_MAIN() { return 1; }
7848#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007849int
7850main ()
7851{
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007852/* The GNU C library defines this for functions which it implements
7853 to always fail with ENOSYS. Some functions are actually named
7854 something starting with __ and the normal name is an alias. */
7855#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7856choke me
7857#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007858f = $ac_func;
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007859#endif
7860
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007861 ;
7862 return 0;
7863}
7864_ACEOF
7865rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007867 (eval $ac_link) 2>&5
7868 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007870 (exit $ac_status); } &&
7871 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007873 (eval $ac_try) 2>&5
7874 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007876 (exit $ac_status); }; }; then
7877 eval "$as_ac_var=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007878else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007879 echo "$as_me: failed program was:" >&5
7880cat conftest.$ac_ext >&5
7881eval "$as_ac_var=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007882fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard638f1691999-01-17 16:32:32 +00007884fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7887if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007888 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007890_ACEOF
Alexandre Julliard638f1691999-01-17 16:32:32 +00007891
Alexandre Julliard638f1691999-01-17 16:32:32 +00007892fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007893done
Alexandre Julliard638f1691999-01-17 16:32:32 +00007894
Alexandre Julliard48957682001-12-26 23:08:31 +00007895 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007896fi
7897
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007898
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007899CUPSLIBS=""
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007900wine_cv_warn_cups_h=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007901echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007902echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7903if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007905else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007906 ac_check_lib_save_LIBS=$LIBS
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007907LIBS="-lcups $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007908cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007909#line $LINENO "configure"
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007910#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007911
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007912/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007913#ifdef __cplusplus
7914extern "C"
7915#endif
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007916/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007917 builtin and then its argument prototype would still apply. */
7918char cupsGetPPD ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007919#ifdef F77_DUMMY_MAIN
7920# ifdef __cplusplus
7921 extern "C"
7922# endif
7923 int F77_DUMMY_MAIN() { return 1; }
7924#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007925int
7926main ()
7927{
7928cupsGetPPD ();
7929 ;
7930 return 0;
7931}
7932_ACEOF
7933rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007935 (eval $ac_link) 2>&5
7936 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007938 (exit $ac_status); } &&
7939 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007941 (eval $ac_try) 2>&5
7942 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007944 (exit $ac_status); }; }; then
7945 ac_cv_lib_cups_cupsGetPPD=yes
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007946else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007947 echo "$as_me: failed program was:" >&5
7948cat conftest.$ac_ext >&5
7949ac_cv_lib_cups_cupsGetPPD=no
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007950fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007951rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7952LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007953fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007954echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007955echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7956if test $ac_cv_lib_cups_cupsGetPPD = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007957 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7958 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007959echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7960if test "${ac_cv_header_cups_cups_h+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007962fi
7963echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7964echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007965else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007966 # Is the header compilable?
7967echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7968echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7969cat >conftest.$ac_ext <<_ACEOF
7970#line $LINENO "configure"
7971#include "confdefs.h"
7972$ac_includes_default
7973#include <cups/cups.h>
7974_ACEOF
7975rm -f conftest.$ac_objext
7976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977 (eval $ac_compile) 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -s conftest.$ac_objext'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7987 ac_header_compiler=yes
7988else
7989 echo "$as_me: failed program was:" >&5
7990cat conftest.$ac_ext >&5
7991ac_header_compiler=no
7992fi
7993rm -f conftest.$ac_objext conftest.$ac_ext
7994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7995echo "${ECHO_T}$ac_header_compiler" >&6
7996
7997# Is the header present?
7998echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7999echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
8000cat >conftest.$ac_ext <<_ACEOF
8001#line $LINENO "configure"
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00008002#include "confdefs.h"
8003#include <cups/cups.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008004_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008005if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8007 ac_status=$?
8008 egrep -v '^ *\+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008012 (exit $ac_status); } >/dev/null; then
8013 if test -s conftest.err; then
8014 ac_cpp_err=$ac_c_preproc_warn_flag
8015 else
8016 ac_cpp_err=
8017 fi
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00008018else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008019 ac_cpp_err=yes
8020fi
8021if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008022 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008023else
8024 echo "$as_me: failed program was:" >&5
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00008025 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008026 ac_header_preproc=no
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00008027fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008028rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8030echo "${ECHO_T}$ac_header_preproc" >&6
8031
8032# So? What about this header?
8033case $ac_header_compiler:$ac_header_preproc in
8034 yes:no )
8035 { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
8036echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8037 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
8038echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
8039 no:yes )
8040 { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
8041echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
8042 { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
8043echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
8044 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
8045echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
8046esac
8047echo "$as_me:$LINENO: checking for cups/cups.h" >&5
8048echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
8049if test "${ac_cv_header_cups_cups_h+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052 ac_cv_header_cups_cups_h=$ac_header_preproc
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00008053fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008054echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008055echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008056
8057fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008058if test $ac_cv_header_cups_cups_h = yes; then
8059
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008060cat >>confdefs.h <<\_ACEOF
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00008061#define HAVE_CUPS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008062_ACEOF
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00008063
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00008064 CUPSLIBS="-lcups"
8065else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008066 wine_cv_warn_cups_h=yes
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00008067fi
8068
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008069
8070
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00008071fi
8072
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008073
8074
Shi Quan He6b0720f2002-03-21 02:58:39 +00008075# Extract the first word of "sane-config", so it can be a program name with args.
8076set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008077echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8079if test "${ac_cv_prog_sane_devel+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8081else
8082 if test -n "$sane_devel"; then
8083 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8084else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_sane_devel="sane-config"
8093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8095 fi
8096done
Shi Quan He6b0720f2002-03-21 02:58:39 +00008097done
8098
8099 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8100fi
8101fi
8102sane_devel=$ac_cv_prog_sane_devel
8103if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008104 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008105echo "${ECHO_T}$sane_devel" >&6
8106else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008107 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008108echo "${ECHO_T}no" >&6
8109fi
8110
8111if test "$sane_devel" = "no"
8112then
8113 SANELIBS=""
8114 SANEINCL=""
8115else
8116 SANELIBS="`$sane_devel --libs`"
8117 SANEINCL="`$sane_devel --cflags`"
8118 ac_save_CPPFLAGS="$CPPFLAGS"
8119 ac_save_LIBS="$LIBS"
8120 CPPFLAGS="$CPPFLAGS $SANEINCL"
8121 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008122 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8123 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008124echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8125if test "${ac_cv_header_sane_sane_h+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008127fi
8128echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8129echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00008130else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008131 # Is the header compilable?
8132echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8133echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8134cat >conftest.$ac_ext <<_ACEOF
8135#line $LINENO "configure"
8136#include "confdefs.h"
8137$ac_includes_default
8138#include <sane/sane.h>
8139_ACEOF
8140rm -f conftest.$ac_objext
8141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142 (eval $ac_compile) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -s conftest.$ac_objext'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; }; then
8152 ac_header_compiler=yes
8153else
8154 echo "$as_me: failed program was:" >&5
8155cat conftest.$ac_ext >&5
8156ac_header_compiler=no
8157fi
8158rm -f conftest.$ac_objext conftest.$ac_ext
8159echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8160echo "${ECHO_T}$ac_header_compiler" >&6
8161
8162# Is the header present?
8163echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8164echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8165cat >conftest.$ac_ext <<_ACEOF
8166#line $LINENO "configure"
Shi Quan He6b0720f2002-03-21 02:58:39 +00008167#include "confdefs.h"
8168#include <sane/sane.h>
8169_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8172 ac_status=$?
8173 egrep -v '^ *\+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008177 (exit $ac_status); } >/dev/null; then
8178 if test -s conftest.err; then
8179 ac_cpp_err=$ac_c_preproc_warn_flag
8180 else
8181 ac_cpp_err=
8182 fi
8183else
8184 ac_cpp_err=yes
8185fi
8186if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008187 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +00008188else
8189 echo "$as_me: failed program was:" >&5
8190 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008191 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +00008192fi
8193rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008194echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8195echo "${ECHO_T}$ac_header_preproc" >&6
8196
8197# So? What about this header?
8198case $ac_header_compiler:$ac_header_preproc in
8199 yes:no )
8200 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8201echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8203echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8204 no:yes )
8205 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8206echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8208echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8210echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8211esac
8212echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8213echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8214if test "${ac_cv_header_sane_sane_h+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8216else
8217 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +00008218fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008219echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008220echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008221
8222fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008223if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008224 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008225echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8226if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229 ac_check_lib_save_LIBS=$LIBS
8230LIBS="-lsane $LIBS"
8231cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008232#line $LINENO "configure"
Shi Quan He6b0720f2002-03-21 02:58:39 +00008233#include "confdefs.h"
8234
8235/* Override any gcc2 internal prototype to avoid an error. */
8236#ifdef __cplusplus
8237extern "C"
8238#endif
8239/* We use char because int might match the return type of a gcc2
8240 builtin and then its argument prototype would still apply. */
8241char sane_open ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008242#ifdef F77_DUMMY_MAIN
8243# ifdef __cplusplus
8244 extern "C"
8245# endif
8246 int F77_DUMMY_MAIN() { return 1; }
8247#endif
Shi Quan He6b0720f2002-03-21 02:58:39 +00008248int
8249main ()
8250{
8251sane_open ();
8252 ;
8253 return 0;
8254}
8255_ACEOF
8256rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008258 (eval $ac_link) 2>&5
8259 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008261 (exit $ac_status); } &&
8262 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008264 (eval $ac_try) 2>&5
8265 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008267 (exit $ac_status); }; }; then
8268 ac_cv_lib_sane_sane_open=yes
8269else
8270 echo "$as_me: failed program was:" >&5
8271cat conftest.$ac_ext >&5
8272ac_cv_lib_sane_sane_open=no
8273fi
8274rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8275LIBS=$ac_check_lib_save_LIBS
8276fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008277echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008278echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8279if test $ac_cv_lib_sane_sane_open = yes; then
8280
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008281cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008282#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008283_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008284
8285else
8286 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +00008287 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00008288fi
8289
Alexandre Julliard96328b32002-03-31 19:23:41 +00008290else
8291 SANELIBS=""
8292 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00008293fi
8294
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008295
Shi Quan He6b0720f2002-03-21 02:58:39 +00008296 LIBS="$ac_save_LIBS"
8297 CPPFLAGS="$ac_save_CPPFLAGS"
8298fi
8299
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008300
8301
8302echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008303echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8304if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008306else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008307 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00008308LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008309cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008310#line $LINENO "configure"
Ian Pilcher563598d2001-05-16 20:56:05 +00008311#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008312
Ian Pilcher563598d2001-05-16 20:56:05 +00008313/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008314#ifdef __cplusplus
8315extern "C"
8316#endif
Ian Pilcher563598d2001-05-16 20:56:05 +00008317/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008318 builtin and then its argument prototype would still apply. */
8319char FT_Init_FreeType ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008320#ifdef F77_DUMMY_MAIN
8321# ifdef __cplusplus
8322 extern "C"
8323# endif
8324 int F77_DUMMY_MAIN() { return 1; }
8325#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008326int
8327main ()
8328{
8329FT_Init_FreeType ();
8330 ;
8331 return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008336 (eval $ac_link) 2>&5
8337 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008339 (exit $ac_status); } &&
8340 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008342 (eval $ac_try) 2>&5
8343 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008345 (exit $ac_status); }; }; then
8346 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +00008347else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008348 echo "$as_me: failed program was:" >&5
8349cat conftest.$ac_ext >&5
8350ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +00008351fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008352rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8353LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +00008354fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008355echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008356echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8357if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +00008358 ft_lib=yes
8359else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008360 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +00008361fi
8362
8363if test "$ft_lib" = "no"
8364then
Ian Pilcher563598d2001-05-16 20:56:05 +00008365 FREETYPEINCL=""
8366 wine_cv_msg_freetype=no
8367else
8368 # Extract the first word of "freetype-config", so it can be a program name with args.
8369set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008370echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8372if test "${ac_cv_prog_ft_devel+set}" = set; then
8373 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008374else
8375 if test -n "$ft_devel"; then
8376 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8377else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379for as_dir in $PATH
8380do
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8385 ac_cv_prog_ft_devel="freetype-config"
8386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 break 2
8388 fi
8389done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008390done
8391
Ian Pilcher563598d2001-05-16 20:56:05 +00008392 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8393fi
8394fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008395ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +00008396if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008397 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008398echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008399else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008400 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008401echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008402fi
8403
8404 if test "$ft_devel" = "no"
8405 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008406 # Extract the first word of "freetype2-config", so it can be a program name with args.
8407set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008408echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8410if test "${ac_cv_prog_ft_devel2+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008412else
8413 if test -n "$ft_devel2"; then
8414 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8415else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417for as_dir in $PATH
8418do
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423 ac_cv_prog_ft_devel2="freetype2-config"
8424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 break 2
8426 fi
8427done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008428done
8429
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008430 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8431fi
8432fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008433ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008434if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008435 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008436echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008437else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008438 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008439echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008440fi
8441
8442 if test "$ft_devel2" = "freetype2-config"
8443 then
8444 ft_devel=$ft_devel2
8445 fi
8446 fi
8447 if test "$ft_devel" = "no"
8448 then
Ian Pilcher563598d2001-05-16 20:56:05 +00008449 FREETYPEINCL=""
8450 wine_cv_msg_freetype=yes
8451 else
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008452 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +00008453 ac_save_CPPFLAGS="$CPPFLAGS"
8454 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008455
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008456
8457
8458
8459
8460
8461
8462
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008463for ac_header in freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +00008464 freetype/ftglyph.h \
8465 freetype/tttables.h \
8466 freetype/ftnames.h \
8467 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +00008468 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +00008469 freetype/ftoutln.h \
8470 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +00008471do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008472as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008473if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474 echo "$as_me:$LINENO: checking for $ac_header" >&5
8475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8476if eval "test \"\${$as_ac_Header+set}\" = set"; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478fi
8479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8481else
8482 # Is the header compilable?
8483echo "$as_me:$LINENO: checking $ac_header usability" >&5
8484echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8485cat >conftest.$ac_ext <<_ACEOF
8486#line $LINENO "configure"
8487#include "confdefs.h"
8488$ac_includes_default
8489#include <$ac_header>
8490_ACEOF
8491rm -f conftest.$ac_objext
8492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8493 (eval $ac_compile) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -s conftest.$ac_objext'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 ac_header_compiler=yes
8504else
8505 echo "$as_me: failed program was:" >&5
8506cat conftest.$ac_ext >&5
8507ac_header_compiler=no
8508fi
8509rm -f conftest.$ac_objext conftest.$ac_ext
8510echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8511echo "${ECHO_T}$ac_header_compiler" >&6
8512
8513# Is the header present?
8514echo "$as_me:$LINENO: checking $ac_header presence" >&5
8515echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8516cat >conftest.$ac_ext <<_ACEOF
8517#line $LINENO "configure"
8518#include "confdefs.h"
8519#include <$ac_header>
8520_ACEOF
8521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8523 ac_status=$?
8524 egrep -v '^ *\+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } >/dev/null; then
8529 if test -s conftest.err; then
8530 ac_cpp_err=$ac_c_preproc_warn_flag
8531 else
8532 ac_cpp_err=
8533 fi
8534else
8535 ac_cpp_err=yes
8536fi
8537if test -z "$ac_cpp_err"; then
8538 ac_header_preproc=yes
8539else
8540 echo "$as_me: failed program was:" >&5
8541 cat conftest.$ac_ext >&5
8542 ac_header_preproc=no
8543fi
8544rm -f conftest.err conftest.$ac_ext
8545echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8546echo "${ECHO_T}$ac_header_preproc" >&6
8547
8548# So? What about this header?
8549case $ac_header_compiler:$ac_header_preproc in
8550 yes:no )
8551 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8552echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8554echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8555 no:yes )
8556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8559echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8562esac
8563echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8565if eval "test \"\${$as_ac_Header+set}\" = set"; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher40432fe2001-06-06 21:05:23 +00008567else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008568 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008569fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008572
Ian Pilcher40432fe2001-06-06 21:05:23 +00008573fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008574if test `eval echo '${'$as_ac_Header'}'` = yes; then
8575 cat >>confdefs.h <<_ACEOF
8576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8577_ACEOF
8578
8579fi
8580
Ian Pilcher40432fe2001-06-06 21:05:23 +00008581done
8582
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008583 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008584#line $LINENO "configure"
Alexandre Julliard18d75732002-01-29 03:02:50 +00008585#include "confdefs.h"
8586#include <ft2build.h>
8587 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008588_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8591 ac_status=$?
8592 egrep -v '^ *\+' conftest.er1 >conftest.err
8593 rm -f conftest.er1
8594 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008596 (exit $ac_status); } >/dev/null; then
8597 if test -s conftest.err; then
8598 ac_cpp_err=$ac_c_preproc_warn_flag
8599 else
8600 ac_cpp_err=
8601 fi
8602else
8603 ac_cpp_err=yes
8604fi
8605if test -z "$ac_cpp_err"; then
8606
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008607cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00008608#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008609_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00008610
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008611 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +00008612else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008613 echo "$as_me: failed program was:" >&5
Alexandre Julliard18d75732002-01-29 03:02:50 +00008614 cat conftest.$ac_ext >&5
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008615 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +00008616fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008617rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +00008618 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008619 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008620 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008621
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008622cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008623#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008624_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008625
8626 wine_cv_msg_freetype=no
8627 else
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008628 FREETYPEINCL=""
8629 wine_cv_msg_freetype=yes
8630 fi
Ian Pilcher563598d2001-05-16 20:56:05 +00008631 fi
8632fi
8633
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008634
8635echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008636echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8637if test "${ac_cv_c_ppdev+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00008639else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008640 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008641#line $LINENO "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00008642#include "confdefs.h"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008643#include <linux/ppdev.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008644#ifdef F77_DUMMY_MAIN
8645# ifdef __cplusplus
8646 extern "C"
8647# endif
8648 int F77_DUMMY_MAIN() { return 1; }
8649#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008650int
8651main ()
8652{
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008653ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008654 ;
8655 return 0;
8656}
8657_ACEOF
8658rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008660 (eval $ac_compile) 2>&5
8661 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008663 (exit $ac_status); } &&
8664 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008666 (eval $ac_try) 2>&5
8667 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008669 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008670 ac_cv_c_ppdev="yes"
8671else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008672 echo "$as_me: failed program was:" >&5
8673cat conftest.$ac_ext >&5
8674ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008675fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008676rm -f conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008677
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008678fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008679echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008680echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008681if test "$ac_cv_c_ppdev" = "yes"
8682then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008683
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008684cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008685#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008686_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008687
8688fi
8689
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008690echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008691echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8692if test "${ac_cv_c_ipx_gnu+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008694else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008695 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008696#line $LINENO "configure"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008697#include "confdefs.h"
Pavel Roskin94d99641998-12-26 11:52:51 +00008698#include <sys/socket.h>
8699 #include <netipx/ipx.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008700#ifdef F77_DUMMY_MAIN
8701# ifdef __cplusplus
8702 extern "C"
8703# endif
8704 int F77_DUMMY_MAIN() { return 1; }
8705#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008706int
8707main ()
8708{
Pavel Roskin94d99641998-12-26 11:52:51 +00008709((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008710 ;
8711 return 0;
8712}
8713_ACEOF
8714rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008716 (eval $ac_compile) 2>&5
8717 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008719 (exit $ac_status); } &&
8720 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008722 (eval $ac_try) 2>&5
8723 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008725 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00008726 ac_cv_c_ipx_gnu="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00008727else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008728 echo "$as_me: failed program was:" >&5
8729cat conftest.$ac_ext >&5
8730ac_cv_c_ipx_gnu="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00008731fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008732rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00008733
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008734fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008735echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008736echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00008737if test "$ac_cv_c_ipx_gnu" = "yes"
8738then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008739
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008740cat >>confdefs.h <<\_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008741#define HAVE_IPX_GNU 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008742_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008743
8744fi
Pavel Roskin94d99641998-12-26 11:52:51 +00008745
8746if test "$ac_cv_c_ipx_gnu" = "no"
8747then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008748 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008749echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8750if test "${ac_cv_c_ipx_linux+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00008752else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008753 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008754#line $LINENO "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00008755#include "confdefs.h"
8756#include <sys/socket.h>
8757 #include <asm/types.h>
8758 #include <linux/ipx.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008759#ifdef F77_DUMMY_MAIN
8760# ifdef __cplusplus
8761 extern "C"
8762# endif
8763 int F77_DUMMY_MAIN() { return 1; }
8764#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008765int
8766main ()
8767{
Pavel Roskin94d99641998-12-26 11:52:51 +00008768((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008769 ;
8770 return 0;
8771}
8772_ACEOF
8773rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008775 (eval $ac_compile) 2>&5
8776 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008778 (exit $ac_status); } &&
8779 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008781 (eval $ac_try) 2>&5
8782 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008784 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00008785 ac_cv_c_ipx_linux="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00008786else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008787 echo "$as_me: failed program was:" >&5
8788cat conftest.$ac_ext >&5
8789ac_cv_c_ipx_linux="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00008790fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008791rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00008792
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008793fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008794echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008795echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00008796 if test "$ac_cv_c_ipx_linux" = "yes"
8797 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008798
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008799cat >>confdefs.h <<\_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008800#define HAVE_IPX_LINUX 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008801_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008802
8803 fi
Pavel Roskin94d99641998-12-26 11:52:51 +00008804fi
8805
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008806
8807
8808
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008809for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008810do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008812if eval "test \"\${$as_ac_Header+set}\" = set"; then
8813 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8815if eval "test \"\${$as_ac_Header+set}\" = set"; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008817fi
8818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008820else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008821 # Is the header compilable?
8822echo "$as_me:$LINENO: checking $ac_header usability" >&5
8823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8824cat >conftest.$ac_ext <<_ACEOF
8825#line $LINENO "configure"
8826#include "confdefs.h"
8827$ac_includes_default
8828#include <$ac_header>
8829_ACEOF
8830rm -f conftest.$ac_objext
8831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8832 (eval $ac_compile) 2>&5
8833 ac_status=$?
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -s conftest.$ac_objext'
8837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 (eval $ac_try) 2>&5
8839 ac_status=$?
8840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841 (exit $ac_status); }; }; then
8842 ac_header_compiler=yes
8843else
8844 echo "$as_me: failed program was:" >&5
8845cat conftest.$ac_ext >&5
8846ac_header_compiler=no
8847fi
8848rm -f conftest.$ac_objext conftest.$ac_ext
8849echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8850echo "${ECHO_T}$ac_header_compiler" >&6
8851
8852# Is the header present?
8853echo "$as_me:$LINENO: checking $ac_header presence" >&5
8854echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8855cat >conftest.$ac_ext <<_ACEOF
8856#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008857#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008858#include <$ac_header>
8859_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8862 ac_status=$?
8863 egrep -v '^ *\+' conftest.er1 >conftest.err
8864 rm -f conftest.er1
8865 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008867 (exit $ac_status); } >/dev/null; then
8868 if test -s conftest.err; then
8869 ac_cpp_err=$ac_c_preproc_warn_flag
8870 else
8871 ac_cpp_err=
8872 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008873else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008874 ac_cpp_err=yes
8875fi
8876if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008877 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008878else
8879 echo "$as_me: failed program was:" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008880 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008881 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008882fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008883rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8885echo "${ECHO_T}$ac_header_preproc" >&6
8886
8887# So? What about this header?
8888case $ac_header_compiler:$ac_header_preproc in
8889 yes:no )
8890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8893echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8894 no:yes )
8895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8898echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8900echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8901esac
8902echo "$as_me:$LINENO: checking for $ac_header" >&5
8903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8904if eval "test \"\${$as_ac_Header+set}\" = set"; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8906else
8907 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008908fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008911
8912fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008913if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008914 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008916_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00008917 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008918fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008919
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008920done
8921
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008922
8923echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008924echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8925if test "${ac_cv_c_opensoundsystem+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008927else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008928 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008929#line $LINENO "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008930#include "confdefs.h"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008931
Todd Vierlingecc76691998-12-15 17:49:02 +00008932 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008933 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00008934 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008935 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00008936 #elif defined(HAVE_SOUNDCARD_H)
8937 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008938 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008939
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008940#ifdef F77_DUMMY_MAIN
8941# ifdef __cplusplus
8942 extern "C"
8943# endif
8944 int F77_DUMMY_MAIN() { return 1; }
8945#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008946int
8947main ()
8948{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008949
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008950
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00008951/* check for one of the Open Sound System specific SNDCTL_ defines */
8952#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008953#error No open sound system
8954#endif
8955
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008956 ;
8957 return 0;
8958}
8959_ACEOF
8960rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008962 (eval $ac_compile) 2>&5
8963 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008965 (exit $ac_status); } &&
8966 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008968 (eval $ac_try) 2>&5
8969 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008971 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008972 ac_cv_c_opensoundsystem="yes"
8973else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008974 echo "$as_me: failed program was:" >&5
8975cat conftest.$ac_ext >&5
8976ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008977fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008978rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008979fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008980echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008981echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008982
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00008983if test "$ac_cv_c_opensoundsystem" = "yes"
8984then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008985
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008986cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00008987#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008988_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00008989
8990fi
8991
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008992echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008993echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8994if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00008996else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008997 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008998#line $LINENO "configure"
Eric Pouech338d3b21999-05-22 18:52:21 +00008999#include "confdefs.h"
9000
9001 #if defined(HAVE_SYS_SOUNDCARD_H)
9002 #include <sys/soundcard.h>
9003 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9004 #include <machine/soundcard.h>
9005 #elif defined(HAVE_SOUNDCARD_H)
9006 #include <soundcard.h>
9007 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +00009008
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009009#ifdef F77_DUMMY_MAIN
9010# ifdef __cplusplus
9011 extern "C"
9012# endif
9013 int F77_DUMMY_MAIN() { return 1; }
9014#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009015int
9016main ()
9017{
Eric Pouech338d3b21999-05-22 18:52:21 +00009018
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009019
Eric Pouech338d3b21999-05-22 18:52:21 +00009020/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9021#if !defined(SNDCTL_SEQ_SYNC)
9022#error No open sound system MIDI interface
9023#endif
9024
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009025 ;
9026 return 0;
9027}
9028_ACEOF
9029rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009031 (eval $ac_compile) 2>&5
9032 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009034 (exit $ac_status); } &&
9035 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009037 (eval $ac_try) 2>&5
9038 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009040 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +00009041 ac_cv_c_opensoundsystem_midi="yes"
9042else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009043 echo "$as_me: failed program was:" >&5
9044cat conftest.$ac_ext >&5
9045ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +00009046fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009047rm -f conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +00009048fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009049echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009050echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00009051
9052if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9053then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009054
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009055cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +00009056#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009057_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +00009058
9059fi
9060
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009061# Extract the first word of "artsc-config", so it can be a program name with args.
9062set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009063echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9065if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9067else
9068 case $ARTSCCONFIG in
9069 [\\/]* | ?:[\\/]*)
9070 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9071 ;;
9072 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9074for as_dir in $PATH
9075do
9076 IFS=$as_save_IFS
9077 test -z "$as_dir" && as_dir=.
9078 for ac_exec_ext in '' $ac_executable_extensions; do
9079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9080 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 break 2
9083 fi
9084done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009085done
9086
9087 ;;
9088esac
9089fi
9090ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9091
9092if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009093 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009094echo "${ECHO_T}$ARTSCCONFIG" >&6
9095else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009096 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009097echo "${ECHO_T}no" >&6
9098fi
9099
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009100echo "$as_me:$LINENO: checking for aRts Sound server" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009101echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9102if test "${ac_cv_c_artsserver+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9104else
9105 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9106 then
9107 ac_cv_c_artsserver=no
9108 else
9109 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9110 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9111 ac_cv_c_artsserver=no
9112 save_CFLAGS="$CFLAGS"
9113 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9114 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009115#line $LINENO "configure"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009116#include "confdefs.h"
9117
9118 #include <artsc.h>
9119
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009120#ifdef F77_DUMMY_MAIN
9121# ifdef __cplusplus
9122 extern "C"
9123# endif
9124 int F77_DUMMY_MAIN() { return 1; }
9125#endif
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009126int
9127main ()
9128{
9129
9130 arts_stream_t stream;
9131
9132 ;
9133 return 0;
9134}
9135_ACEOF
9136rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009138 (eval $ac_compile) 2>&5
9139 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009141 (exit $ac_status); } &&
9142 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009144 (eval $ac_try) 2>&5
9145 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009147 (exit $ac_status); }; }; then
9148
9149 ac_cv_c_artsserver=yes
9150
9151else
9152 echo "$as_me: failed program was:" >&5
9153cat conftest.$ac_ext >&5
9154fi
9155rm -f conftest.$ac_objext conftest.$ac_ext
9156 CFLAGS="$save_CFLAGS"
9157 fi
9158fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009159echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009160echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9161
9162if test "$ac_cv_c_artsserver" = "yes"
9163then
9164 ARTSLIBS=$ARTSC_LIBS
9165
9166 ARTSINCL=$ARTSC_CFLAGS
9167
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009168
9169
9170cat >>confdefs.h <<\_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009171#define HAVE_ARTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009172_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009173
9174fi
9175
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009176
9177echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009178echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9179if test "${ac_cv_mmap64_works+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009181else
9182 if test "$cross_compiling" = yes; then
9183 ac_cv_mmap64_works="no"
9184else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009185 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009186#line $LINENO "configure"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009187#include "confdefs.h"
9188
9189 #define _FILE_OFFSET_BITS 64
9190 #include <stdio.h>
9191 #include <unistd.h>
9192 #include <fcntl.h>
9193 #include <sys/mman.h>
9194 #include <errno.h>
9195
9196 int main(int argc,char **argv) {
9197 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9198 if (fd == -1) exit(1);
9199
9200 unlink("conftest.map");
9201
9202 write(fd,"test",4);
9203
9204 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9205 (errno == EINVAL)
9206 ) {
9207 exit(1);
9208 }
9209 close(fd);
9210 fprintf(stderr,"success!\n");
9211 exit(0);
9212 }
9213
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009214
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009215_ACEOF
9216rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009218 (eval $ac_link) 2>&5
9219 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009223 (eval $ac_try) 2>&5
9224 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009226 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009227 ac_cv_mmap64_works="yes"
9228else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009229 echo "$as_me: program exited with status $ac_status" >&5
9230echo "$as_me: failed program was:" >&5
9231cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009232( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009233ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009234fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009235rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009236fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009237fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009238echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009239echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009240
9241if test "$ac_cv_mmap64_works" = "yes"
9242then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009243
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009244cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009245#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009246_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009247
9248fi
9249
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009250
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009251if test "x${GCC}" = "xyes"
9252then
9253 CFLAGS="$CFLAGS -Wall"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009254 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009255echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9256if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009258else
9259 if test "$cross_compiling" = yes; then
9260 ac_cv_c_gcc_strength_bug="yes"
9261else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009262 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009263#line $LINENO "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009264#include "confdefs.h"
9265
Eric Pouech5aee80f2000-11-11 00:31:39 +00009266int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009267int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00009268 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009269 unsigned int B = 3;
9270 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00009271 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +00009272 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9273 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009274
Eric Pouech5aee80f2000-11-11 00:31:39 +00009275 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009276}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009277_ACEOF
9278rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009280 (eval $ac_link) 2>&5
9281 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009285 (eval $ac_try) 2>&5
9286 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009288 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009289 ac_cv_c_gcc_strength_bug="no"
9290else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009291 echo "$as_me: program exited with status $ac_status" >&5
9292echo "$as_me: failed program was:" >&5
9293cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009294( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009295ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009296fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009297rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009298fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009299fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009300echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009301echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009302 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9303 then
9304 CFLAGS="$CFLAGS -fno-strength-reduce"
9305 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009306
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009307 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009308echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9309if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009311else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009312 ac_wine_try_cflags_saved=$CFLAGS
9313CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9314cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009315#line $LINENO "configure"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009316#include "confdefs.h"
9317
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009318#ifdef F77_DUMMY_MAIN
9319# ifdef __cplusplus
9320 extern "C"
9321# endif
9322 int F77_DUMMY_MAIN() { return 1; }
9323#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009324int
9325main ()
9326{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009327
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009328 ;
9329 return 0;
9330}
9331_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009332rm -f conftest.$ac_objext conftest$ac_exeext
9333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9334 (eval $ac_link) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009335 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009337 (exit $ac_status); } &&
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009338 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009340 (eval $ac_try) 2>&5
9341 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009343 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009344 ac_cv_c_gcc_stack_boundary="yes"
9345else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009346 echo "$as_me: failed program was:" >&5
9347cat conftest.$ac_ext >&5
9348ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009349fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9351CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009352fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009353echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009354echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009355 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9356 then
9357 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9358 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009359fi
9360
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009361
9362echo "$as_me:$LINENO: checking whether .type must sit inside a .def directive" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009363echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6
9364if test "${ac_cv_c_type_in_def+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009366else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009367 ac_try_asm_link_saved_libs=$LIBS
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009368LIBS="conftest_asm.s $LIBS"
9369cat > conftest_asm.s <<EOF
9370 .globl _ac_test
9371 .def _ac_test; .scl 2; .type 32; .endef
9372_ac_test:
9373 .long 0
9374EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009375cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009376#line $LINENO "configure"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009377#include "confdefs.h"
9378
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009379#ifdef F77_DUMMY_MAIN
9380# ifdef __cplusplus
9381 extern "C"
9382# endif
9383 int F77_DUMMY_MAIN() { return 1; }
9384#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009385int
9386main ()
9387{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009388
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009389 ;
9390 return 0;
9391}
9392_ACEOF
9393rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009395 (eval $ac_link) 2>&5
9396 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009398 (exit $ac_status); } &&
9399 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009401 (eval $ac_try) 2>&5
9402 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009404 (exit $ac_status); }; }; then
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009405 ac_cv_c_type_in_def="yes"
9406else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009407 echo "$as_me: failed program was:" >&5
9408cat conftest.$ac_ext >&5
9409ac_cv_c_type_in_def="no"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009410fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009411rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009412rm -f conftest_asm.s
9413LIBS=$ac_try_asm_link_saved_libs
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009414fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009415echo "$as_me:$LINENO: result: $ac_cv_c_type_in_def" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009416echo "${ECHO_T}$ac_cv_c_type_in_def" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009417if test "$ac_cv_c_type_in_def" = "yes"
9418then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009419
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009420cat >>confdefs.h <<\_ACEOF
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009421#define NEED_TYPE_IN_DEF 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009422_ACEOF
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009423
9424fi
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009425
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009426
9427echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009428echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9429if test "${ac_cv_c_extern_prefix+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009431else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009432 ac_try_asm_link_saved_libs=$LIBS
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009433LIBS="conftest_asm.s $LIBS"
9434cat > conftest_asm.s <<EOF
9435 .globl _ac_test
9436_ac_test:
9437 .long 0
9438EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009439cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009440#line $LINENO "configure"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009441#include "confdefs.h"
9442extern int ac_test;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009443#ifdef F77_DUMMY_MAIN
9444# ifdef __cplusplus
9445 extern "C"
9446# endif
9447 int F77_DUMMY_MAIN() { return 1; }
9448#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009449int
9450main ()
9451{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009452if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009453 ;
9454 return 0;
9455}
9456_ACEOF
9457rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009459 (eval $ac_link) 2>&5
9460 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009462 (exit $ac_status); } &&
9463 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009465 (eval $ac_try) 2>&5
9466 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009468 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009469 ac_cv_c_extern_prefix="yes"
9470else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009471 echo "$as_me: failed program was:" >&5
9472cat conftest.$ac_ext >&5
9473ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009474fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009475rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009476rm -f conftest_asm.s
9477LIBS=$ac_try_asm_link_saved_libs
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009478fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009479echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009480echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009481if test "$ac_cv_c_extern_prefix" = "yes"
9482then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009483
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009484cat >>confdefs.h <<\_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009485#define NEED_UNDERSCORE_PREFIX 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009486_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009487
9488fi
9489
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009490
9491echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009492echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9493if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009495else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009496 ac_try_asm_link_saved_libs=$LIBS
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009497LIBS="conftest_asm.s $LIBS"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009498cat > conftest_asm.s <<EOF
9499 .globl _ac_test@0
9500_ac_test@0:
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009501 .globl ac_test@0
9502ac_test@0:
9503EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009504cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009505#line $LINENO "configure"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009506#include "confdefs.h"
9507extern void __attribute__((__stdcall__)) ac_test(void);
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009508#ifdef F77_DUMMY_MAIN
9509# ifdef __cplusplus
9510 extern "C"
9511# endif
9512 int F77_DUMMY_MAIN() { return 1; }
9513#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009514int
9515main ()
9516{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009517ac_test()
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009518 ;
9519 return 0;
9520}
9521_ACEOF
9522rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009524 (eval $ac_link) 2>&5
9525 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009527 (exit $ac_status); } &&
9528 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009530 (eval $ac_try) 2>&5
9531 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009533 (exit $ac_status); }; }; then
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009534 ac_cv_c_stdcall_decoration="yes"
9535else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009536 echo "$as_me: failed program was:" >&5
9537cat conftest.$ac_ext >&5
9538ac_cv_c_stdcall_decoration="no"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009539fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009540rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009541rm -f conftest_asm.s
9542LIBS=$ac_try_asm_link_saved_libs
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009543fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009544echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009545echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009546if test "$ac_cv_c_stdcall_decoration" = "yes"
9547then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009548
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009549cat >>confdefs.h <<\_ACEOF
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009550#define NEED_STDCALL_DECORATION 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009551_ACEOF
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009552
9553fi
9554
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009555
9556echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009557echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9558if test "${ac_cv_c_asm_string+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009560else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009561 ac_try_asm_link_saved_libs=$LIBS
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009562LIBS="conftest_asm.s $LIBS"
9563cat > conftest_asm.s <<EOF
9564 .string "test"
9565EOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009566cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009567#line $LINENO "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009568#include "confdefs.h"
9569
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009570#ifdef F77_DUMMY_MAIN
9571# ifdef __cplusplus
9572 extern "C"
9573# endif
9574 int F77_DUMMY_MAIN() { return 1; }
9575#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009576int
9577main ()
9578{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009579
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009580 ;
9581 return 0;
9582}
9583_ACEOF
9584rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009586 (eval $ac_link) 2>&5
9587 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009589 (exit $ac_status); } &&
9590 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009592 (eval $ac_try) 2>&5
9593 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009595 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009596 ac_cv_c_asm_string="yes"
9597else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009598 echo "$as_me: failed program was:" >&5
9599cat conftest.$ac_ext >&5
9600ac_cv_c_asm_string="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009601fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009603rm -f conftest_asm.s
9604LIBS=$ac_try_asm_link_saved_libs
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009605fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009606echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009607echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009608if test "$ac_cv_c_asm_string" = "yes"
9609then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009610
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009611cat >>confdefs.h <<\_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009612#define HAVE_ASM_STRING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009613_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009614
9615fi
9616
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009617
Todd Vierling4b992b01998-12-15 15:26:27 +00009618LDSHARED=""
Alexandre Julliard4354cda2000-11-09 20:27:45 +00009619LDDLLFLAGS=""
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00009620DLLIBS=""
9621
Alexandre Julliardfc01b722002-05-12 03:16:39 +00009622case $host_os in
9623 cygwin*|mingw32*)
9624 if test -n "$ac_tool_prefix"; then
9625 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
9626set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +00009627echo "$as_me:$LINENO: checking for $ac_word" >&5
9628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9629if test "${ac_cv_prog_DLLWRAP+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9631else
9632 if test -n "$DLLWRAP"; then
9633 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
9634else
9635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636for as_dir in $PATH
9637do
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00009642 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +00009643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9644 break 2
9645 fi
9646done
9647done
9648
Alexandre Julliard466ae142002-05-07 18:33:47 +00009649fi
9650fi
9651DLLWRAP=$ac_cv_prog_DLLWRAP
9652if test -n "$DLLWRAP"; then
9653 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
9654echo "${ECHO_T}$DLLWRAP" >&6
9655else
9656 echo "$as_me:$LINENO: result: no" >&5
9657echo "${ECHO_T}no" >&6
9658fi
9659
Alexandre Julliardfc01b722002-05-12 03:16:39 +00009660fi
9661if test -z "$ac_cv_prog_DLLWRAP"; then
9662 ac_ct_DLLWRAP=$DLLWRAP
9663 # Extract the first word of "dllwrap", so it can be a program name with args.
9664set dummy dllwrap; ac_word=$2
9665echo "$as_me:$LINENO: checking for $ac_word" >&5
9666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9667if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9669else
9670 if test -n "$ac_ct_DLLWRAP"; then
9671 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
9672else
9673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674for as_dir in $PATH
9675do
9676 IFS=$as_save_IFS
9677 test -z "$as_dir" && as_dir=.
9678 for ac_exec_ext in '' $ac_executable_extensions; do
9679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9680 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
9681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9682 break 2
9683 fi
9684done
9685done
9686
9687 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
9688fi
9689fi
9690ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
9691if test -n "$ac_ct_DLLWRAP"; then
9692 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
9693echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
9694else
9695 echo "$as_me:$LINENO: result: no" >&5
9696echo "${ECHO_T}no" >&6
9697fi
9698
9699 DLLWRAP=$ac_ct_DLLWRAP
9700else
9701 DLLWRAP="$ac_cv_prog_DLLWRAP"
9702fi
9703
9704 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00009705 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +00009706 else
9707 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00009708 fi
9709 ;;
9710 *)
9711
9712for ac_header in dlfcn.h
9713do
9714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9715if eval "test \"\${$as_ac_Header+set}\" = set"; then
9716 echo "$as_me:$LINENO: checking for $ac_header" >&5
9717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9718if eval "test \"\${$as_ac_Header+set}\" = set"; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9720fi
9721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9723else
9724 # Is the header compilable?
9725echo "$as_me:$LINENO: checking $ac_header usability" >&5
9726echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9727cat >conftest.$ac_ext <<_ACEOF
9728#line $LINENO "configure"
9729#include "confdefs.h"
9730$ac_includes_default
9731#include <$ac_header>
9732_ACEOF
9733rm -f conftest.$ac_objext
9734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9735 (eval $ac_compile) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -s conftest.$ac_objext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 ac_header_compiler=yes
9746else
9747 echo "$as_me: failed program was:" >&5
9748cat conftest.$ac_ext >&5
9749ac_header_compiler=no
9750fi
9751rm -f conftest.$ac_objext conftest.$ac_ext
9752echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9753echo "${ECHO_T}$ac_header_compiler" >&6
9754
9755# Is the header present?
9756echo "$as_me:$LINENO: checking $ac_header presence" >&5
9757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9758cat >conftest.$ac_ext <<_ACEOF
9759#line $LINENO "configure"
9760#include "confdefs.h"
9761#include <$ac_header>
9762_ACEOF
9763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9765 ac_status=$?
9766 egrep -v '^ *\+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } >/dev/null; then
9771 if test -s conftest.err; then
9772 ac_cpp_err=$ac_c_preproc_warn_flag
9773 else
9774 ac_cpp_err=
9775 fi
9776else
9777 ac_cpp_err=yes
9778fi
9779if test -z "$ac_cpp_err"; then
9780 ac_header_preproc=yes
9781else
9782 echo "$as_me: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9784 ac_header_preproc=no
9785fi
9786rm -f conftest.err conftest.$ac_ext
9787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9788echo "${ECHO_T}$ac_header_preproc" >&6
9789
9790# So? What about this header?
9791case $ac_header_compiler:$ac_header_preproc in
9792 yes:no )
9793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9797 no:yes )
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9799echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9801echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9804esac
9805echo "$as_me:$LINENO: checking for $ac_header" >&5
9806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9807if eval "test \"\${$as_ac_Header+set}\" = set"; then
9808 echo $ECHO_N "(cached) $ECHO_C" >&6
9809else
9810 eval "$as_ac_Header=$ac_header_preproc"
9811fi
9812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9814
9815fi
9816if test `eval echo '${'$as_ac_Header'}'` = yes; then
9817 cat >>confdefs.h <<_ACEOF
9818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9819_ACEOF
9820
9821for ac_func in dlopen
9822do
9823as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9824echo "$as_me:$LINENO: checking for $ac_func" >&5
9825echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9826if eval "test \"\${$as_ac_var+set}\" = set"; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828else
9829 cat >conftest.$ac_ext <<_ACEOF
9830#line $LINENO "configure"
9831#include "confdefs.h"
9832/* System header to define __stub macros and hopefully few prototypes,
9833 which can conflict with char $ac_func (); below. */
9834#include <assert.h>
9835/* Override any gcc2 internal prototype to avoid an error. */
9836#ifdef __cplusplus
9837extern "C"
9838#endif
9839/* We use char because int might match the return type of a gcc2
9840 builtin and then its argument prototype would still apply. */
9841char $ac_func ();
9842char (*f) ();
9843
9844#ifdef F77_DUMMY_MAIN
9845# ifdef __cplusplus
9846 extern "C"
9847# endif
9848 int F77_DUMMY_MAIN() { return 1; }
9849#endif
9850int
9851main ()
9852{
9853/* The GNU C library defines this for functions which it implements
9854 to always fail with ENOSYS. Some functions are actually named
9855 something starting with __ and the normal name is an alias. */
9856#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9857choke me
9858#else
9859f = $ac_func;
9860#endif
9861
9862 ;
9863 return 0;
9864}
9865_ACEOF
9866rm -f conftest.$ac_objext conftest$ac_exeext
9867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9868 (eval $ac_link) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -s conftest$ac_exeext'
9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874 (eval $ac_try) 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 eval "$as_ac_var=yes"
9879else
9880 echo "$as_me: failed program was:" >&5
9881cat conftest.$ac_ext >&5
9882eval "$as_ac_var=no"
9883fi
9884rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9885fi
9886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9887echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9888if test `eval echo '${'$as_ac_var'}'` = yes; then
9889 cat >>confdefs.h <<_ACEOF
9890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9891_ACEOF
9892
9893else
9894 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9895echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9896if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898else
9899 ac_check_lib_save_LIBS=$LIBS
9900LIBS="-ldl $LIBS"
9901cat >conftest.$ac_ext <<_ACEOF
9902#line $LINENO "configure"
9903#include "confdefs.h"
9904
9905/* Override any gcc2 internal prototype to avoid an error. */
9906#ifdef __cplusplus
9907extern "C"
9908#endif
9909/* We use char because int might match the return type of a gcc2
9910 builtin and then its argument prototype would still apply. */
9911char dlopen ();
9912#ifdef F77_DUMMY_MAIN
9913# ifdef __cplusplus
9914 extern "C"
9915# endif
9916 int F77_DUMMY_MAIN() { return 1; }
9917#endif
9918int
9919main ()
9920{
9921dlopen ();
9922 ;
9923 return 0;
9924}
9925_ACEOF
9926rm -f conftest.$ac_objext conftest$ac_exeext
9927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928 (eval $ac_link) 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 { ac_try='test -s conftest$ac_exeext'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 ac_cv_lib_dl_dlopen=yes
9939else
9940 echo "$as_me: failed program was:" >&5
9941cat conftest.$ac_ext >&5
9942ac_cv_lib_dl_dlopen=no
9943fi
9944rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9945LIBS=$ac_check_lib_save_LIBS
9946fi
9947echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9948echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9949if test $ac_cv_lib_dl_dlopen = yes; then
9950
9951cat >>confdefs.h <<\_ACEOF
9952#define HAVE_DLOPEN 1
9953_ACEOF
9954
9955 DLLIBS="-ldl"
9956else
9957 LIBEXT="a"
9958fi
9959
9960fi
9961done
9962
9963else
9964 LIBEXT="a"
9965fi
9966
9967done
9968
9969
9970 if test "$LIBEXT" = "so"
9971 then
Alexandre Julliard466ae142002-05-07 18:33:47 +00009972 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009973echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
9974if test "${ac_cv_c_dll_gnuelf+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00009976else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009977 ac_wine_try_cflags_saved=$CFLAGS
9978CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
9979cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009980#line $LINENO "configure"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00009981#include "confdefs.h"
9982
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009983#ifdef F77_DUMMY_MAIN
9984# ifdef __cplusplus
9985 extern "C"
9986# endif
9987 int F77_DUMMY_MAIN() { return 1; }
9988#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009989int
9990main ()
9991{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009992
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009993 ;
9994 return 0;
9995}
9996_ACEOF
9997rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009999 (eval $ac_link) 2>&5
10000 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010002 (exit $ac_status); } &&
10003 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010005 (eval $ac_try) 2>&5
10006 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010008 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000010009 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010010else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010011 echo "$as_me: failed program was:" >&5
10012cat conftest.$ac_ext >&5
10013ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010014fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010016CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010017fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010018echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010019echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000010020 if test "$ac_cv_c_dll_gnuelf" = "yes"
10021 then
10022 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10023 LDDLLFLAGS="-Wl,-Bsymbolic"
10024 else
10025 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010026echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10027if test "${ac_cv_c_dll_unixware+set}" = set; then
10028 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000010029else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010030 ac_wine_try_cflags_saved=$CFLAGS
10031CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10032cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010033#line $LINENO "configure"
Todd Vierling4b992b01998-12-15 15:26:27 +000010034#include "confdefs.h"
10035
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010036#ifdef F77_DUMMY_MAIN
10037# ifdef __cplusplus
10038 extern "C"
10039# endif
10040 int F77_DUMMY_MAIN() { return 1; }
10041#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010042int
10043main ()
10044{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010045
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010046 ;
10047 return 0;
10048}
10049_ACEOF
10050rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010052 (eval $ac_link) 2>&5
10053 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010055 (exit $ac_status); } &&
10056 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010058 (eval $ac_try) 2>&5
10059 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010061 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000010062 ac_cv_c_dll_unixware="yes"
10063else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010064 echo "$as_me: failed program was:" >&5
10065cat conftest.$ac_ext >&5
10066ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000010067fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010068rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010069CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010070fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010071echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010072echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000010073 if test "$ac_cv_c_dll_unixware" = "yes"
10074 then
10075 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10076 LDDLLFLAGS="-Wl,-B,symbolic"
10077 fi
10078 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010079 fi
10080 ;;
10081esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010082
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000010083if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010084 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010085It is currently not possible to build Wine without shared library
10086(.so) support to allow transparent switch between .so and .dll files.
10087If you are using Linux, you will need a newer binutils.
10088" >&5
10089echo "$as_me: error: could not find a way to build shared libraries.
10090It is currently not possible to build Wine without shared library
10091(.so) support to allow transparent switch between .so and .dll files.
10092If you are using Linux, you will need a newer binutils.
10093" >&2;}
10094 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000010095fi
10096
Alexandre Julliard0adad952000-01-26 01:45:58 +000010097DLLFLAGS=""
Alexandre Julliard0adad952000-01-26 01:45:58 +000010098
Alexandre Julliard318f4ce2000-01-31 05:02:49 +000010099if test "$LIBEXT" = "so"; then
Alexandre Julliard318f4ce2000-01-31 05:02:49 +000010100 DLLFLAGS="-fPIC"
Alexandre Julliardc1bfca02002-03-20 22:19:06 +000010101 DLLEXT=".so"
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000010102elif test "$LIBEXT" = "dll"; then
10103 #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME
Alexandre Julliardc1bfca02002-03-20 22:19:06 +000010104 DLLEXT=""
Patrik Stridvalla9ee4a22000-01-30 00:36:50 +000010105fi
Alexandre Julliard0adad952000-01-26 01:45:58 +000010106
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010107case $build_os in
10108 cygwin*|mingw32*)
10109 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\"" ;;
10110 *)
10111 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\"" ;;
10112esac
10113
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010114
10115
10116
10117
10118
10119
10120
10121
10122
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010123if test "$LIBEXT" = "so"
10124then
10125 # Extract the first word of "ldd", so it can be a program name with args.
10126set dummy ldd; ac_word=$2
10127echo "$as_me:$LINENO: checking for $ac_word" >&5
10128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10129if test "${ac_cv_path_LDD+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131else
10132 case $LDD in
10133 [\\/]* | ?:[\\/]*)
10134 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10135 ;;
10136 *)
10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138for as_dir in /sbin:/usr/sbin:$PATH
10139do
10140 IFS=$as_save_IFS
10141 test -z "$as_dir" && as_dir=.
10142 for ac_exec_ext in '' $ac_executable_extensions; do
10143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10144 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10146 break 2
10147 fi
10148done
10149done
10150
10151 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10152 ;;
10153esac
10154fi
10155LDD=$ac_cv_path_LDD
10156
10157if test -n "$LDD"; then
10158 echo "$as_me:$LINENO: result: $LDD" >&5
10159echo "${ECHO_T}$LDD" >&6
10160else
10161 echo "$as_me:$LINENO: result: no" >&5
10162echo "${ECHO_T}no" >&6
10163fi
10164
10165
10166echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10167echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10168if test "${ac_cv_lib_soname_X11+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170else
10171 ac_get_soname_save_LIBS=$LIBS
10172LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10173 cat >conftest.$ac_ext <<_ACEOF
10174#line $LINENO "configure"
10175#include "confdefs.h"
10176
10177/* Override any gcc2 internal prototype to avoid an error. */
10178#ifdef __cplusplus
10179extern "C"
10180#endif
10181/* We use char because int might match the return type of a gcc2
10182 builtin and then its argument prototype would still apply. */
10183char XCreateWindow ();
10184#ifdef F77_DUMMY_MAIN
10185# ifdef __cplusplus
10186 extern "C"
10187# endif
10188 int F77_DUMMY_MAIN() { return 1; }
10189#endif
10190int
10191main ()
10192{
10193XCreateWindow ();
10194 ;
10195 return 0;
10196}
10197_ACEOF
10198rm -f conftest.$ac_objext conftest$ac_exeext
10199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10200 (eval $ac_link) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -s conftest$ac_exeext'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10207 ac_status=$?
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; }; then
10210 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10211 if test "x$ac_cv_lib_soname_X11" = "x"
10212 then
10213 ac_cv_lib_soname_X11="libX11.so"
10214 fi
10215else
10216 echo "$as_me: failed program was:" >&5
10217cat conftest.$ac_ext >&5
10218ac_cv_lib_soname_X11="libX11.so"
10219fi
10220rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10221 LIBS=$ac_get_soname_save_LIBS
10222fi
10223echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10224echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10225if test "x$ac_cv_lib_soname_X11" != xNONE
10226then
10227cat >>confdefs.h <<_ACEOF
10228#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10229_ACEOF
10230fi
10231
10232echo "$as_me:$LINENO: checking for -lXext soname" >&5
10233echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10234if test "${ac_cv_lib_soname_Xext+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10236else
10237 ac_get_soname_save_LIBS=$LIBS
10238LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10239 cat >conftest.$ac_ext <<_ACEOF
10240#line $LINENO "configure"
10241#include "confdefs.h"
10242
10243/* Override any gcc2 internal prototype to avoid an error. */
10244#ifdef __cplusplus
10245extern "C"
10246#endif
10247/* We use char because int might match the return type of a gcc2
10248 builtin and then its argument prototype would still apply. */
10249char XextCreateExtension ();
10250#ifdef F77_DUMMY_MAIN
10251# ifdef __cplusplus
10252 extern "C"
10253# endif
10254 int F77_DUMMY_MAIN() { return 1; }
10255#endif
10256int
10257main ()
10258{
10259XextCreateExtension ();
10260 ;
10261 return 0;
10262}
10263_ACEOF
10264rm -f conftest.$ac_objext conftest$ac_exeext
10265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266 (eval $ac_link) 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -s conftest$ac_exeext'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; }; then
10276 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10277 if test "x$ac_cv_lib_soname_Xext" = "x"
10278 then
10279 ac_cv_lib_soname_Xext="libXext.so"
10280 fi
10281else
10282 echo "$as_me: failed program was:" >&5
10283cat conftest.$ac_ext >&5
10284ac_cv_lib_soname_Xext="libXext.so"
10285fi
10286rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_get_soname_save_LIBS
10288fi
10289echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10290echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10291if test "x$ac_cv_lib_soname_Xext" != xNONE
10292then
10293cat >>confdefs.h <<_ACEOF
10294#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10295_ACEOF
10296fi
10297
10298echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10299echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10300if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302else
10303 ac_get_soname_save_LIBS=$LIBS
10304LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10305 cat >conftest.$ac_ext <<_ACEOF
10306#line $LINENO "configure"
10307#include "confdefs.h"
10308
10309/* Override any gcc2 internal prototype to avoid an error. */
10310#ifdef __cplusplus
10311extern "C"
10312#endif
10313/* We use char because int might match the return type of a gcc2
10314 builtin and then its argument prototype would still apply. */
10315char XRenderQueryExtension ();
10316#ifdef F77_DUMMY_MAIN
10317# ifdef __cplusplus
10318 extern "C"
10319# endif
10320 int F77_DUMMY_MAIN() { return 1; }
10321#endif
10322int
10323main ()
10324{
10325XRenderQueryExtension ();
10326 ;
10327 return 0;
10328}
10329_ACEOF
10330rm -f conftest.$ac_objext conftest$ac_exeext
10331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10332 (eval $ac_link) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } &&
10336 { ac_try='test -s conftest$ac_exeext'
10337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338 (eval $ac_try) 2>&5
10339 ac_status=$?
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; }; then
10342 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10343 if test "x$ac_cv_lib_soname_Xrender" = "x"
10344 then
10345 ac_cv_lib_soname_Xrender="libXrender.so"
10346 fi
10347else
10348 echo "$as_me: failed program was:" >&5
10349cat conftest.$ac_ext >&5
10350ac_cv_lib_soname_Xrender="libXrender.so"
10351fi
10352rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_get_soname_save_LIBS
10354fi
10355echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10356echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10357if test "x$ac_cv_lib_soname_Xrender" != xNONE
10358then
10359cat >>confdefs.h <<_ACEOF
10360#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10361_ACEOF
10362fi
10363
10364echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10365echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10366if test "${ac_cv_lib_soname_freetype+set}" = set; then
10367 echo $ECHO_N "(cached) $ECHO_C" >&6
10368else
10369 ac_get_soname_save_LIBS=$LIBS
10370LIBS="-lfreetype $X_LIBS $LIBS"
10371 cat >conftest.$ac_ext <<_ACEOF
10372#line $LINENO "configure"
10373#include "confdefs.h"
10374
10375/* Override any gcc2 internal prototype to avoid an error. */
10376#ifdef __cplusplus
10377extern "C"
10378#endif
10379/* We use char because int might match the return type of a gcc2
10380 builtin and then its argument prototype would still apply. */
10381char FT_Init_FreeType ();
10382#ifdef F77_DUMMY_MAIN
10383# ifdef __cplusplus
10384 extern "C"
10385# endif
10386 int F77_DUMMY_MAIN() { return 1; }
10387#endif
10388int
10389main ()
10390{
10391FT_Init_FreeType ();
10392 ;
10393 return 0;
10394}
10395_ACEOF
10396rm -f conftest.$ac_objext conftest$ac_exeext
10397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10398 (eval $ac_link) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } &&
10402 { ac_try='test -s conftest$ac_exeext'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10409 if test "x$ac_cv_lib_soname_freetype" = "x"
10410 then
10411 ac_cv_lib_soname_freetype="libfreetype.so"
10412 fi
10413else
10414 echo "$as_me: failed program was:" >&5
10415cat conftest.$ac_ext >&5
10416ac_cv_lib_soname_freetype="libfreetype.so"
10417fi
10418rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10419 LIBS=$ac_get_soname_save_LIBS
10420fi
10421echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10422echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10423if test "x$ac_cv_lib_soname_freetype" != xNONE
10424then
10425cat >>confdefs.h <<_ACEOF
10426#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10427_ACEOF
10428fi
10429fi
10430
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010431
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010432
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010433wine_cv_libc_reentrant=no
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010434echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010435echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10436if test "${wine_cv_libc_r___errno_location+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010438else
10439 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010440 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010441else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010442 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010443#line $LINENO "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010444#include "confdefs.h"
10445int myerrno = 0;
10446char buf[256];
10447int *__errno_location(){return &myerrno;}
10448main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010449_ACEOF
10450rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010452 (eval $ac_link) 2>&5
10453 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010457 (eval $ac_try) 2>&5
10458 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010460 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000010461 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010462else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010463 echo "$as_me: program exited with status $ac_status" >&5
10464echo "$as_me: failed program was:" >&5
10465cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010466( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010467wine_cv_libc_r___errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010468fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010469rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010470fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010471fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010472echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010473echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010474if test "$wine_cv_libc_r___errno_location" = "yes"; then
10475 wine_cv_libc_reentrant=__errno_location
10476else
10477 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010478echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
10479if test "${wine_cv_libc_r___error+set}" = set; then
10480 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010481else
10482 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010483 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000010484else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010485 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010486#line $LINENO "configure"
Marcus Meissnerc2606381999-04-11 15:20:29 +000010487#include "confdefs.h"
10488int myerrno = 0;
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010489char buf256;
Marcus Meissnerc2606381999-04-11 15:20:29 +000010490int *__error(){return &myerrno;}
10491main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010492_ACEOF
10493rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010495 (eval $ac_link) 2>&5
10496 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010498 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010500 (eval $ac_try) 2>&5
10501 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010503 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000010504 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000010505else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010506 echo "$as_me: program exited with status $ac_status" >&5
10507echo "$as_me: failed program was:" >&5
10508cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010509( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010510wine_cv_libc_r___error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +000010511fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010512rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissnerc2606381999-04-11 15:20:29 +000010513fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010514fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010515echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010516echo "${ECHO_T}$wine_cv_libc_r___error" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010517if test "$wine_cv_libc_r___error" = "yes"; then
10518 wine_cv_libc_reentrant=__error
10519else
10520 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010521echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
10522if test "${wine_cv_libc_r____errno+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010524else
10525 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010526 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010527else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010528 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010529#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010530#include "confdefs.h"
10531int myerrno = 0;
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010532char buf256;
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010533int *___errno(){return &myerrno;}
10534main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010535_ACEOF
10536rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010538 (eval $ac_link) 2>&5
10539 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010543 (eval $ac_try) 2>&5
10544 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010546 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000010547 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010548else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010549 echo "$as_me: program exited with status $ac_status" >&5
10550echo "$as_me: failed program was:" >&5
10551cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010552( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010553wine_cv_libc_r____errno=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010554fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010555rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010556fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010557fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010558echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010559echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010560if test "$wine_cv_libc_r____errno" = "yes"; then
10561 wine_cv_libc_reentrant=___errno
10562else
10563 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010564echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
10565if test "${wine_cv_libc_r___thr_errno+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
Ron Recorde977d6c1999-09-05 12:32:05 +000010567else
10568 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010569 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000010570else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010571 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010572#line $LINENO "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +000010573#include "confdefs.h"
10574int myerrno = 0;
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010575char buf256;
Ron Recorde977d6c1999-09-05 12:32:05 +000010576int *__thr_errno(){return &myerrno;}
10577main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010578_ACEOF
10579rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010581 (eval $ac_link) 2>&5
10582 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010586 (eval $ac_try) 2>&5
10587 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010589 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000010590 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000010591else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010592 echo "$as_me: program exited with status $ac_status" >&5
10593echo "$as_me: failed program was:" >&5
10594cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010595( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010596wine_cv_libc_r___thr_errno=no
Ron Recorde977d6c1999-09-05 12:32:05 +000010597fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010598rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ron Recorde977d6c1999-09-05 12:32:05 +000010599fi
Ron Recorde977d6c1999-09-05 12:32:05 +000010600fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010601echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010602echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010603if test "$wine_cv_libc_r___thr_errno" = "yes"; then
10604 wine_cv_libc_reentrant=__thr_errno
10605else
10606 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010607echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
10608if test "${wine_cv_libc_r___errno+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
Bang Jun-Young33dff342001-05-07 18:21:10 +000010610else
10611 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010612 wine_cv_libc_r___errno=yes
Bang Jun-Young33dff342001-05-07 18:21:10 +000010613else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010614 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010615#line $LINENO "configure"
Bang Jun-Young33dff342001-05-07 18:21:10 +000010616#include "confdefs.h"
10617int myerrno = 0;
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010618char buf256;
Bang Jun-Young33dff342001-05-07 18:21:10 +000010619int *__errno(){return &myerrno;}
10620main(){connect(0,buf,255); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010621_ACEOF
10622rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010624 (eval $ac_link) 2>&5
10625 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010629 (eval $ac_try) 2>&5
10630 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010632 (exit $ac_status); }; }; then
Bang Jun-Young33dff342001-05-07 18:21:10 +000010633 wine_cv_libc_r___errno=yes
10634else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010635 echo "$as_me: program exited with status $ac_status" >&5
10636echo "$as_me: failed program was:" >&5
10637cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010638( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010639wine_cv_libc_r___errno=no
Bang Jun-Young33dff342001-05-07 18:21:10 +000010640fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010641rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bang Jun-Young33dff342001-05-07 18:21:10 +000010642fi
Bang Jun-Young33dff342001-05-07 18:21:10 +000010643fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010644echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010645echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010646if test "$wine_cv_libc_r___errno" = "yes"; then
10647 wine_cv_libc_reentrant=__errno
10648fi
10649
10650
10651fi
10652
10653fi
10654
10655fi
10656
Bang Jun-Young33dff342001-05-07 18:21:10 +000010657fi
10658
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010659
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010660if test "$wine_cv_libc_reentrant" != "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010661then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010662
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010663cat >>confdefs.h <<_ACEOF
Alexandre Julliard598412e2001-01-17 20:22:22 +000010664#define ERRNO_LOCATION $wine_cv_libc_reentrant
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010665_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010666
10667fi
10668
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010669
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000010670if test "$have_x" = "yes"
Patrik Stridvall24110281999-02-04 10:09:54 +000010671then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010672echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010673echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
10674if test "${wine_cv_x_reentrant+set}" = set; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000010676else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000010677 libX11_check=none
10678 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
10679 if test -r $dir/libX11.so; then
10680 libX11_check="-D $dir/libX11.so"
10681 break
10682 fi
10683 if test -r $dir/libX11.a; then
10684 libX11_check="$dir/libX11.a"
10685 break
10686 fi
10687 done
10688 if test "$libX11_check" != "none"; then
10689 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
10690 then
10691 wine_cv_x_reentrant=yes
10692 else
10693 wine_cv_x_reentrant=no
10694 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000010695 else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000010696 wine_cv_x_reentrant=unknown
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010697 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000010698fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010699echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010700echo "${ECHO_T}$wine_cv_x_reentrant" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +000010701fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010702
10703
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010704# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10705# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010706echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010707echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10708if test "${ac_cv_working_alloca_h+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010710else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010711 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010712#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010713#include "confdefs.h"
10714#include <alloca.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010715#ifdef F77_DUMMY_MAIN
10716# ifdef __cplusplus
10717 extern "C"
10718# endif
10719 int F77_DUMMY_MAIN() { return 1; }
10720#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010721int
10722main ()
10723{
10724char *p = (char *) alloca (2 * sizeof (int));
10725 ;
10726 return 0;
10727}
10728_ACEOF
10729rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010731 (eval $ac_link) 2>&5
10732 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010734 (exit $ac_status); } &&
10735 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010737 (eval $ac_try) 2>&5
10738 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010740 (exit $ac_status); }; }; then
10741 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010742else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010743 echo "$as_me: failed program was:" >&5
10744cat conftest.$ac_ext >&5
10745ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010746fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010747rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010748fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010749echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010750echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10751if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000010752
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010753cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010754#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010755_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010756
10757fi
10758
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010759echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010760echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10761if test "${ac_cv_func_alloca_works+set}" = set; then
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010763else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010764 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010765#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010766#include "confdefs.h"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010767#ifdef __GNUC__
10768# define alloca __builtin_alloca
10769#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000010770# ifdef _MSC_VER
10771# include <malloc.h>
10772# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010773# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000010774# if HAVE_ALLOCA_H
10775# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010776# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000010777# ifdef _AIX
10778 #pragma alloca
10779# else
10780# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010781char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000010782# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010783# endif
10784# endif
10785# endif
10786#endif
10787
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010788#ifdef F77_DUMMY_MAIN
10789# ifdef __cplusplus
10790 extern "C"
10791# endif
10792 int F77_DUMMY_MAIN() { return 1; }
10793#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010794int
10795main ()
10796{
10797char *p = (char *) alloca (1);
10798 ;
10799 return 0;
10800}
10801_ACEOF
10802rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010804 (eval $ac_link) 2>&5
10805 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010807 (exit $ac_status); } &&
10808 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010810 (eval $ac_try) 2>&5
10811 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010813 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010814 ac_cv_func_alloca_works=yes
10815else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010816 echo "$as_me: failed program was:" >&5
10817cat conftest.$ac_ext >&5
10818ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010819fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010821fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010822echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010823echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010824
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010825if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010826
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010827cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010828#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010829_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010830
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010831else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010833# that cause trouble. Some versions do not even contain alloca or
10834# contain a buggy version. If you still want to use their alloca,
10835# use ar to extract alloca.o from them instead of compiling alloca.c.
10836
10837ALLOCA=alloca.$ac_objext
10838
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010839cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010840#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010841_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010842
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010843
10844echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010845echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10846if test "${ac_cv_os_cray+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010848else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010849 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010850#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010851#include "confdefs.h"
10852#if defined(CRAY) && ! defined(CRAY2)
10853webecray
10854#else
10855wenotbecray
10856#endif
10857
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010858_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10860 egrep "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010861 ac_cv_os_cray=yes
10862else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010863 ac_cv_os_cray=no
10864fi
10865rm -f conftest*
10866
10867fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010868echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010869echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010870if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010871 for ac_func in _getb67 GETB67 getb67; do
10872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010873echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010874echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10875if eval "test \"\${$as_ac_var+set}\" = set"; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010877else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010878 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010879#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010880#include "confdefs.h"
10881/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010882 which can conflict with char $ac_func (); below. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010883#include <assert.h>
10884/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010885#ifdef __cplusplus
10886extern "C"
10887#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000010888/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010889 builtin and then its argument prototype would still apply. */
10890char $ac_func ();
10891char (*f) ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010892
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010893#ifdef F77_DUMMY_MAIN
10894# ifdef __cplusplus
10895 extern "C"
10896# endif
10897 int F77_DUMMY_MAIN() { return 1; }
10898#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010899int
10900main ()
10901{
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010902/* The GNU C library defines this for functions which it implements
10903 to always fail with ENOSYS. Some functions are actually named
10904 something starting with __ and the normal name is an alias. */
10905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10906choke me
10907#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010908f = $ac_func;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000010909#endif
10910
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010911 ;
10912 return 0;
10913}
10914_ACEOF
10915rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010917 (eval $ac_link) 2>&5
10918 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010920 (exit $ac_status); } &&
10921 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010923 (eval $ac_try) 2>&5
10924 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010926 (exit $ac_status); }; }; then
10927 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010928else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010929 echo "$as_me: failed program was:" >&5
10930cat conftest.$ac_ext >&5
10931eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010932fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010933rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010934fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010936echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10937if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010938
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010939cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010940#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010941_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010942
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010943 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010944fi
10945
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010946 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010947fi
10948
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010949echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010950echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10951if test "${ac_cv_c_stack_direction+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010953else
10954 if test "$cross_compiling" = yes; then
10955 ac_cv_c_stack_direction=0
10956else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010957 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010958#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010959#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010960int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010961find_stack_direction ()
10962{
10963 static char *addr = 0;
10964 auto char dummy;
10965 if (addr == 0)
10966 {
10967 addr = &dummy;
10968 return find_stack_direction ();
10969 }
10970 else
10971 return (&dummy > addr) ? 1 : -1;
10972}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010973
10974int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010975main ()
10976{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010977 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010978}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010979_ACEOF
10980rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010982 (eval $ac_link) 2>&5
10983 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010987 (eval $ac_try) 2>&5
10988 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010990 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010991 ac_cv_c_stack_direction=1
10992else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010993 echo "$as_me: program exited with status $ac_status" >&5
10994echo "$as_me: failed program was:" >&5
10995cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010996( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010997ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000010998fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010999rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011000fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011001fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011002echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011003echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011004
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011005cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011006#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011007_ACEOF
11008
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011009
11010fi
11011
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
Steven Edwardsb9627c12002-05-05 21:03:44 +000011054
11055
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011056
11057
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011058for ac_func in \
Eric Pouechf61d7e02000-04-29 16:44:19 +000011059 __libc_fork \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011060 _lwp_create \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011061 _pclose \
11062 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011063 _snprintf \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011064 _stricmp \
11065 _strnicmp \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011066 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011067 clone \
Andreas Mohra7ca2ba2001-01-12 23:07:11 +000011068 ecvt \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000011069 finite \
11070 fpclass \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011071 ftruncate \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000011072 ftruncate64 \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011073 getnetbyaddr \
11074 getnetbyname \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011075 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011076 getprotobyname \
11077 getprotobynumber \
11078 getservbyport \
11079 getsockopt \
11080 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000011081 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000011082 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011083 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000011084 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011085 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011086 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011087 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000011088 pwrite \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011089 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011090 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011091 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011092 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011093 sigaltstack \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011094 snprintf \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011095 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000011096 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011097 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000011098 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011099 tcgetattr \
11100 timegm \
11101 usleep \
11102 vfscanf \
11103 wait4 \
11104 waitpid \
11105
11106do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011108echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11110if eval "test \"\${$as_ac_var+set}\" = set"; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011112else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011113 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011114#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011115#include "confdefs.h"
11116/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011117 which can conflict with char $ac_func (); below. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011118#include <assert.h>
11119/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011120#ifdef __cplusplus
11121extern "C"
11122#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011123/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011124 builtin and then its argument prototype would still apply. */
11125char $ac_func ();
11126char (*f) ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011127
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011128#ifdef F77_DUMMY_MAIN
11129# ifdef __cplusplus
11130 extern "C"
11131# endif
11132 int F77_DUMMY_MAIN() { return 1; }
11133#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011134int
11135main ()
11136{
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011137/* The GNU C library defines this for functions which it implements
11138 to always fail with ENOSYS. Some functions are actually named
11139 something starting with __ and the normal name is an alias. */
11140#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11141choke me
11142#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011143f = $ac_func;
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011144#endif
11145
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011146 ;
11147 return 0;
11148}
11149_ACEOF
11150rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011152 (eval $ac_link) 2>&5
11153 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011155 (exit $ac_status); } &&
11156 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011158 (eval $ac_try) 2>&5
11159 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011161 (exit $ac_status); }; }; then
11162 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011163else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011164 echo "$as_me: failed program was:" >&5
11165cat conftest.$ac_ext >&5
11166eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011167fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011169fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011171echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11172if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011173 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011175_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011176
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011177fi
11178done
11179
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
Laurent Pinchart0314a652002-05-01 22:01:30 +000011241
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011242
11243
11244
Alexandre Julliard127ec922002-05-07 01:51:30 +000011245
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000011246
11247
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011248for ac_header in \
Patrik Stridvall96336321999-10-24 22:13:47 +000011249 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011250 arpa/nameser.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011251 direct.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011252 elf.h \
11253 float.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +000011254 ieeefp.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011255 io.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011256 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +000011257 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011258 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011259 linux/cdrom.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011260 linux/hdreg.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +000011261 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +000011262 linux/joystick.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011263 linux/major.h \
Laurent Pinchart0314a652002-05-01 22:01:30 +000011264 linux/param.h \
Lawson Whitney533e7ee2002-02-19 18:41:56 +000011265 linux/serial.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011266 linux/ucdrom.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011267 net/if.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +000011268 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011269 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000011270 netinet/in_systm.h \
11271 netinet/ip.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011272 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +000011273 pty.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011274 resolv.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011275 sched.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011276 scsi/sg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011277 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +000011278 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011279 strings.h \
11280 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +000011281 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011282 sys/file.h \
11283 sys/filio.h \
Michal Pasternak60983992002-03-29 18:04:43 +000011284 sys/inttypes.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000011285 sys/ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011286 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +000011287 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011288 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +000011289 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011290 sys/modem.h \
11291 sys/mount.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011292 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011293 sys/param.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000011294 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +000011295 sys/reg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011296 sys/shm.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011297 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011298 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011299 sys/sockio.h \
11300 sys/statfs.h \
11301 sys/strtio.h \
11302 sys/syscall.h \
Alexandre Julliard127ec922002-05-07 01:51:30 +000011303 sys/sysctl.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011304 sys/time.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000011305 sys/user.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011306 sys/v86.h \
11307 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011308 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011309 sys/vm86.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011310 sys/wait.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011311 syscall.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000011312 termios.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000011313 ucontext.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011314 unistd.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011315
Alexandre Julliard02e90081998-01-04 17:49:09 +000011316do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011318if eval "test \"\${$as_ac_Header+set}\" = set"; then
11319 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11321if eval "test \"\${$as_ac_Header+set}\" = set"; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011323fi
11324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliard02e90081998-01-04 17:49:09 +000011326else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011327 # Is the header compilable?
11328echo "$as_me:$LINENO: checking $ac_header usability" >&5
11329echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11330cat >conftest.$ac_ext <<_ACEOF
11331#line $LINENO "configure"
11332#include "confdefs.h"
11333$ac_includes_default
11334#include <$ac_header>
11335_ACEOF
11336rm -f conftest.$ac_objext
11337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11338 (eval $ac_compile) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
11342 { ac_try='test -s conftest.$ac_objext'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
11348 ac_header_compiler=yes
11349else
11350 echo "$as_me: failed program was:" >&5
11351cat conftest.$ac_ext >&5
11352ac_header_compiler=no
11353fi
11354rm -f conftest.$ac_objext conftest.$ac_ext
11355echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11356echo "${ECHO_T}$ac_header_compiler" >&6
11357
11358# Is the header present?
11359echo "$as_me:$LINENO: checking $ac_header presence" >&5
11360echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11361cat >conftest.$ac_ext <<_ACEOF
11362#line $LINENO "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +000011363#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011364#include <$ac_header>
11365_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11368 ac_status=$?
11369 egrep -v '^ *\+' conftest.er1 >conftest.err
11370 rm -f conftest.er1
11371 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011373 (exit $ac_status); } >/dev/null; then
11374 if test -s conftest.err; then
11375 ac_cpp_err=$ac_c_preproc_warn_flag
11376 else
11377 ac_cpp_err=
11378 fi
Alexandre Julliard02e90081998-01-04 17:49:09 +000011379else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011380 ac_cpp_err=yes
11381fi
11382if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011383 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011384else
11385 echo "$as_me: failed program was:" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +000011386 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011387 ac_header_preproc=no
Alexandre Julliard02e90081998-01-04 17:49:09 +000011388fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011389rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011390echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11391echo "${ECHO_T}$ac_header_preproc" >&6
11392
11393# So? What about this header?
11394case $ac_header_compiler:$ac_header_preproc in
11395 yes:no )
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11397echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11400 no:yes )
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11404echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11407esac
11408echo "$as_me:$LINENO: checking for $ac_header" >&5
11409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11410if eval "test \"\${$as_ac_Header+set}\" = set"; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412else
11413 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliard02e90081998-01-04 17:49:09 +000011414fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011417
Alexandre Julliard02e90081998-01-04 17:49:09 +000011418fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011419if test `eval echo '${'$as_ac_Header'}'` = yes; then
11420 cat >>confdefs.h <<_ACEOF
11421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11422_ACEOF
11423
11424fi
11425
Alexandre Julliard02e90081998-01-04 17:49:09 +000011426done
11427
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011428echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011429echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11430if test "${ac_cv_header_stat_broken+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011432else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011433 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011434#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011435#include "confdefs.h"
11436#include <sys/types.h>
11437#include <sys/stat.h>
11438
11439#if defined(S_ISBLK) && defined(S_IFDIR)
11440# if S_ISBLK (S_IFDIR)
11441You lose.
11442# endif
11443#endif
11444
11445#if defined(S_ISBLK) && defined(S_IFCHR)
11446# if S_ISBLK (S_IFCHR)
11447You lose.
11448# endif
11449#endif
11450
11451#if defined(S_ISLNK) && defined(S_IFREG)
11452# if S_ISLNK (S_IFREG)
11453You lose.
11454# endif
11455#endif
11456
11457#if defined(S_ISSOCK) && defined(S_IFREG)
11458# if S_ISSOCK (S_IFREG)
11459You lose.
11460# endif
11461#endif
11462
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011463_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11465 egrep "You lose" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011466 ac_cv_header_stat_broken=yes
11467else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011468 ac_cv_header_stat_broken=no
11469fi
11470rm -f conftest*
11471
11472fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011473echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011474echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011475if test $ac_cv_header_stat_broken = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011476
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011477cat >>confdefs.h <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011478#define STAT_MACROS_BROKEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011479_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011480
11481fi
11482
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011483
11484
11485echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011486echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11487if test "${ac_cv_prog_cc_stdc+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011489else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011490 ac_cv_prog_cc_stdc=no
11491ac_save_CC=$CC
11492cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011493#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011494#include "confdefs.h"
11495#include <stdarg.h>
11496#include <stdio.h>
11497#include <sys/types.h>
11498#include <sys/stat.h>
11499/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11500struct buf { int x; };
11501FILE * (*rcsopen) (struct buf *, struct stat *, int);
11502static char *e (p, i)
11503 char **p;
11504 int i;
11505{
11506 return p[i];
11507}
11508static char *f (char * (*g) (char **, int), char **p, ...)
11509{
11510 char *s;
11511 va_list v;
11512 va_start (v,p);
11513 s = g (p, va_arg (v,int));
11514 va_end (v);
11515 return s;
11516}
11517int test (int i, double x);
11518struct s1 {int (*f) (int a);};
11519struct s2 {int (*f) (double a);};
11520int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11521int argc;
11522char **argv;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011523#ifdef F77_DUMMY_MAIN
11524# ifdef __cplusplus
11525 extern "C"
11526# endif
11527 int F77_DUMMY_MAIN() { return 1; }
11528#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011529int
11530main ()
11531{
11532return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11533 ;
11534 return 0;
11535}
11536_ACEOF
11537# Don't try gcc -ansi; that turns off useful extensions and
11538# breaks some systems' header files.
11539# AIX -qlanglvl=ansi
11540# Ultrix and OSF/1 -std1
11541# HP-UX 10.20 and later -Ae
11542# HP-UX older versions -Aa -D_HPUX_SOURCE
11543# SVR4 -Xc -D__EXTENSIONS__
11544for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11545do
11546 CC="$ac_save_CC $ac_arg"
11547 rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011549 (eval $ac_compile) 2>&5
11550 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011552 (exit $ac_status); } &&
11553 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011555 (eval $ac_try) 2>&5
11556 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011558 (exit $ac_status); }; }; then
11559 ac_cv_prog_cc_stdc=$ac_arg
11560break
11561else
11562 echo "$as_me: failed program was:" >&5
11563cat conftest.$ac_ext >&5
11564fi
11565rm -f conftest.$ac_objext
11566done
11567rm -f conftest.$ac_ext conftest.$ac_objext
11568CC=$ac_save_CC
11569
11570fi
11571
11572case "x$ac_cv_prog_cc_stdc" in
11573 x|xno)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011574 echo "$as_me:$LINENO: result: none needed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011575echo "${ECHO_T}none needed" >&6 ;;
11576 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011577 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011578echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11579 CC="$CC $ac_cv_prog_cc_stdc" ;;
11580esac
11581
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011582echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011583echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11584if test "${ac_cv_c_const+set}" = set; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11586else
11587 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011588#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011589#include "confdefs.h"
11590
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011591#ifdef F77_DUMMY_MAIN
11592# ifdef __cplusplus
11593 extern "C"
11594# endif
11595 int F77_DUMMY_MAIN() { return 1; }
11596#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011597int
11598main ()
11599{
11600/* FIXME: Include the comments suggested by Paul. */
11601#ifndef __cplusplus
11602 /* Ultrix mips cc rejects this. */
11603 typedef int charset[2];
11604 const charset x;
11605 /* SunOS 4.1.1 cc rejects this. */
11606 char const *const *ccp;
11607 char **p;
11608 /* NEC SVR4.0.2 mips cc rejects this. */
11609 struct point {int x, y;};
11610 static struct point const zero = {0,0};
11611 /* AIX XL C 1.02.0.0 rejects this.
11612 It does not let you subtract one const X* pointer from another in
11613 an arm of an if-expression whose if-part is not a constant
11614 expression */
11615 const char *g = "string";
11616 ccp = &g + (g ? g-g : 0);
11617 /* HPUX 7.0 cc rejects these. */
11618 ++ccp;
11619 p = (char**) ccp;
11620 ccp = (char const *const *) p;
11621 { /* SCO 3.2v4 cc rejects this. */
11622 char *t;
11623 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011624
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011625 *t++ = 0;
11626 }
11627 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11628 int x[] = {25, 17};
11629 const int *foo = &x[0];
11630 ++foo;
11631 }
11632 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11633 typedef const int *iptr;
11634 iptr p = 0;
11635 ++p;
11636 }
11637 { /* AIX XL C 1.02.0.0 rejects this saying
11638 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11639 struct s { int j; const int *ap[3]; };
11640 struct s *b; b->j = 5;
11641 }
11642 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11643 const int foo = 10;
11644 }
11645#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011646
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011647 ;
11648 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011649}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011650_ACEOF
11651rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011653 (eval $ac_compile) 2>&5
11654 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011656 (exit $ac_status); } &&
11657 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011659 (eval $ac_try) 2>&5
11660 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011662 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011663 ac_cv_c_const=yes
11664else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011665 echo "$as_me: failed program was:" >&5
11666cat conftest.$ac_ext >&5
11667ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011668fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011669rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011670fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011671echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011672echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011673if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011674
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011675cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011676#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011677_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011678
11679fi
11680
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011681echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011682echo $ECHO_N "checking for inline... $ECHO_C" >&6
11683if test "${ac_cv_c_inline+set}" = set; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011685else
11686 ac_cv_c_inline=no
11687for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011688 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011689#line $LINENO "configure"
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011690#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011691#ifndef __cplusplus
11692static $ac_kw int static_foo () {return 0; }
11693$ac_kw int foo () {return 0; }
11694#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011695
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011696_ACEOF
11697rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011699 (eval $ac_compile) 2>&5
11700 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011702 (exit $ac_status); } &&
11703 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011705 (eval $ac_try) 2>&5
11706 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011708 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011709 ac_cv_c_inline=$ac_kw; break
11710else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011711 echo "$as_me: failed program was:" >&5
11712cat conftest.$ac_ext >&5
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011713fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011714rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011715done
11716
11717fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011718echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011719echo "${ECHO_T}$ac_cv_c_inline" >&6
11720case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011721 inline | yes) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011722 no)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011723cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011724#define inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011725_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011726 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011727 *) cat >>confdefs.h <<_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011728#define inline $ac_cv_c_inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011729_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000011730 ;;
11731esac
11732
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011733echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011734echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11735if test "${ac_cv_type_mode_t+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11737else
11738 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011739#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011740#include "confdefs.h"
11741$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011742#ifdef F77_DUMMY_MAIN
11743# ifdef __cplusplus
11744 extern "C"
11745# endif
11746 int F77_DUMMY_MAIN() { return 1; }
11747#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011748int
11749main ()
11750{
11751if ((mode_t *) 0)
11752 return 0;
11753if (sizeof (mode_t))
11754 return 0;
11755 ;
11756 return 0;
11757}
11758_ACEOF
11759rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011761 (eval $ac_compile) 2>&5
11762 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011764 (exit $ac_status); } &&
11765 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011767 (eval $ac_try) 2>&5
11768 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011770 (exit $ac_status); }; }; then
11771 ac_cv_type_mode_t=yes
11772else
11773 echo "$as_me: failed program was:" >&5
11774cat conftest.$ac_ext >&5
11775ac_cv_type_mode_t=no
11776fi
11777rm -f conftest.$ac_objext conftest.$ac_ext
11778fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011779echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011780echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11781if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011782
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011783cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011784#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011785_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011786
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011787
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011788fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011789echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011790echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11791if test "${ac_cv_type_off_t+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11793else
11794 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011795#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011796#include "confdefs.h"
11797$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011798#ifdef F77_DUMMY_MAIN
11799# ifdef __cplusplus
11800 extern "C"
11801# endif
11802 int F77_DUMMY_MAIN() { return 1; }
11803#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011804int
11805main ()
11806{
11807if ((off_t *) 0)
11808 return 0;
11809if (sizeof (off_t))
11810 return 0;
11811 ;
11812 return 0;
11813}
11814_ACEOF
11815rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011817 (eval $ac_compile) 2>&5
11818 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011820 (exit $ac_status); } &&
11821 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011823 (eval $ac_try) 2>&5
11824 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011826 (exit $ac_status); }; }; then
11827 ac_cv_type_off_t=yes
11828else
11829 echo "$as_me: failed program was:" >&5
11830cat conftest.$ac_ext >&5
11831ac_cv_type_off_t=no
11832fi
11833rm -f conftest.$ac_objext conftest.$ac_ext
11834fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011835echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011836echo "${ECHO_T}$ac_cv_type_off_t" >&6
11837if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011838
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011839cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011840#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011841_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011842
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011843
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011844fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011845echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011846echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11847if test "${ac_cv_type_pid_t+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11849else
11850 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011851#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011852#include "confdefs.h"
11853$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011854#ifdef F77_DUMMY_MAIN
11855# ifdef __cplusplus
11856 extern "C"
11857# endif
11858 int F77_DUMMY_MAIN() { return 1; }
11859#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011860int
11861main ()
11862{
11863if ((pid_t *) 0)
11864 return 0;
11865if (sizeof (pid_t))
11866 return 0;
11867 ;
11868 return 0;
11869}
11870_ACEOF
11871rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011873 (eval $ac_compile) 2>&5
11874 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011876 (exit $ac_status); } &&
11877 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011879 (eval $ac_try) 2>&5
11880 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011882 (exit $ac_status); }; }; then
11883 ac_cv_type_pid_t=yes
11884else
11885 echo "$as_me: failed program was:" >&5
11886cat conftest.$ac_ext >&5
11887ac_cv_type_pid_t=no
11888fi
11889rm -f conftest.$ac_objext conftest.$ac_ext
11890fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011891echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011892echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11893if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011894
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011895cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011896#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011897_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011898
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011899
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011900fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011901echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011902echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11903if test "${ac_cv_type_size_t+set}" = set; then
11904 echo $ECHO_N "(cached) $ECHO_C" >&6
11905else
11906 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011907#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011908#include "confdefs.h"
11909$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011910#ifdef F77_DUMMY_MAIN
11911# ifdef __cplusplus
11912 extern "C"
11913# endif
11914 int F77_DUMMY_MAIN() { return 1; }
11915#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011916int
11917main ()
11918{
11919if ((size_t *) 0)
11920 return 0;
11921if (sizeof (size_t))
11922 return 0;
11923 ;
11924 return 0;
11925}
11926_ACEOF
11927rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011929 (eval $ac_compile) 2>&5
11930 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011932 (exit $ac_status); } &&
11933 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011935 (eval $ac_try) 2>&5
11936 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011938 (exit $ac_status); }; }; then
11939 ac_cv_type_size_t=yes
11940else
11941 echo "$as_me: failed program was:" >&5
11942cat conftest.$ac_ext >&5
11943ac_cv_type_size_t=no
11944fi
11945rm -f conftest.$ac_objext conftest.$ac_ext
11946fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011947echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011948echo "${ECHO_T}$ac_cv_type_size_t" >&6
11949if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011950
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011951cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011952#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011953_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011954
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000011955
11956fi
11957echo "$as_me:$LINENO: checking for ssize_t" >&5
11958echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11959if test "${ac_cv_type_ssize_t+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961else
11962 cat >conftest.$ac_ext <<_ACEOF
11963#line $LINENO "configure"
11964#include "confdefs.h"
11965$ac_includes_default
11966#ifdef F77_DUMMY_MAIN
11967# ifdef __cplusplus
11968 extern "C"
11969# endif
11970 int F77_DUMMY_MAIN() { return 1; }
11971#endif
11972int
11973main ()
11974{
11975if ((ssize_t *) 0)
11976 return 0;
11977if (sizeof (ssize_t))
11978 return 0;
11979 ;
11980 return 0;
11981}
11982_ACEOF
11983rm -f conftest.$ac_objext
11984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11985 (eval $ac_compile) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -s conftest.$ac_objext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_cv_type_ssize_t=yes
11996else
11997 echo "$as_me: failed program was:" >&5
11998cat conftest.$ac_ext >&5
11999ac_cv_type_ssize_t=no
12000fi
12001rm -f conftest.$ac_objext conftest.$ac_ext
12002fi
12003echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12004echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12005if test $ac_cv_type_ssize_t = yes; then
12006
12007cat >>confdefs.h <<_ACEOF
12008#define HAVE_SSIZE_T 1
12009_ACEOF
12010
12011
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012012fi
12013
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012014echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012015echo $ECHO_N "checking for long long... $ECHO_C" >&6
12016if test "${ac_cv_type_long_long+set}" = set; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12018else
12019 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012020#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012021#include "confdefs.h"
12022$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012023#ifdef F77_DUMMY_MAIN
12024# ifdef __cplusplus
12025 extern "C"
12026# endif
12027 int F77_DUMMY_MAIN() { return 1; }
12028#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012029int
12030main ()
12031{
12032if ((long long *) 0)
12033 return 0;
12034if (sizeof (long long))
12035 return 0;
12036 ;
12037 return 0;
12038}
12039_ACEOF
12040rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012042 (eval $ac_compile) 2>&5
12043 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012045 (exit $ac_status); } &&
12046 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012048 (eval $ac_try) 2>&5
12049 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012051 (exit $ac_status); }; }; then
12052 ac_cv_type_long_long=yes
12053else
12054 echo "$as_me: failed program was:" >&5
12055cat conftest.$ac_ext >&5
12056ac_cv_type_long_long=no
12057fi
12058rm -f conftest.$ac_objext conftest.$ac_ext
12059fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012060echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012061echo "${ECHO_T}$ac_cv_type_long_long" >&6
12062
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012063echo "$as_me:$LINENO: checking size of long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012064echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12065if test "${ac_cv_sizeof_long_long+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067else
12068 if test "$ac_cv_type_long_long" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012069 # The cast to unsigned long works around a bug in the HP C Compiler
12070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12072 # This bug is HP SR number 8606223364.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012073 if test "$cross_compiling" = yes; then
12074 # Depending upon the size, compute the lo and hi bounds.
12075cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012076#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012077#include "confdefs.h"
12078$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012079#ifdef F77_DUMMY_MAIN
12080# ifdef __cplusplus
12081 extern "C"
12082# endif
12083 int F77_DUMMY_MAIN() { return 1; }
12084#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012085int
12086main ()
12087{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012088static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12089test_array [0] = 0
12090
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012091 ;
12092 return 0;
12093}
12094_ACEOF
12095rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012097 (eval $ac_compile) 2>&5
12098 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012100 (exit $ac_status); } &&
12101 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012103 (eval $ac_try) 2>&5
12104 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012106 (exit $ac_status); }; }; then
12107 ac_lo=0 ac_mid=0
12108 while :; do
12109 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012110#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012111#include "confdefs.h"
12112$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012113#ifdef F77_DUMMY_MAIN
12114# ifdef __cplusplus
12115 extern "C"
12116# endif
12117 int F77_DUMMY_MAIN() { return 1; }
12118#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012119int
12120main ()
12121{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012122static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12123test_array [0] = 0
12124
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012125 ;
12126 return 0;
12127}
12128_ACEOF
12129rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012131 (eval $ac_compile) 2>&5
12132 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012134 (exit $ac_status); } &&
12135 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012137 (eval $ac_try) 2>&5
12138 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012140 (exit $ac_status); }; }; then
12141 ac_hi=$ac_mid; break
12142else
12143 echo "$as_me: failed program was:" >&5
12144cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012145ac_lo=`expr $ac_mid + 1`
12146 if test $ac_lo -le $ac_mid; then
12147 ac_lo= ac_hi=
12148 break
12149 fi
12150 ac_mid=`expr 2 '*' $ac_mid + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012151fi
12152rm -f conftest.$ac_objext conftest.$ac_ext
12153 done
12154else
12155 echo "$as_me: failed program was:" >&5
12156cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012157cat >conftest.$ac_ext <<_ACEOF
12158#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012159#include "confdefs.h"
12160$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012161#ifdef F77_DUMMY_MAIN
12162# ifdef __cplusplus
12163 extern "C"
12164# endif
12165 int F77_DUMMY_MAIN() { return 1; }
12166#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012167int
12168main ()
12169{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012170static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12171test_array [0] = 0
12172
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012173 ;
12174 return 0;
12175}
12176_ACEOF
12177rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012179 (eval $ac_compile) 2>&5
12180 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012182 (exit $ac_status); } &&
12183 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012185 (eval $ac_try) 2>&5
12186 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 ac_hi=-1 ac_mid=-1
12190 while :; do
12191 cat >conftest.$ac_ext <<_ACEOF
12192#line $LINENO "configure"
12193#include "confdefs.h"
12194$ac_includes_default
12195#ifdef F77_DUMMY_MAIN
12196# ifdef __cplusplus
12197 extern "C"
12198# endif
12199 int F77_DUMMY_MAIN() { return 1; }
12200#endif
12201int
12202main ()
12203{
12204static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12205test_array [0] = 0
12206
12207 ;
12208 return 0;
12209}
12210_ACEOF
12211rm -f conftest.$ac_objext
12212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12213 (eval $ac_compile) 2>&5
12214 ac_status=$?
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } &&
12217 { ac_try='test -s conftest.$ac_objext'
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012222 (exit $ac_status); }; }; then
12223 ac_lo=$ac_mid; break
12224else
12225 echo "$as_me: failed program was:" >&5
12226cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012227ac_hi=`expr '(' $ac_mid ')' - 1`
12228 if test $ac_mid -le $ac_hi; then
12229 ac_lo= ac_hi=
12230 break
12231 fi
12232 ac_mid=`expr 2 '*' $ac_mid`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012233fi
12234rm -f conftest.$ac_objext conftest.$ac_ext
12235 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012236else
12237 echo "$as_me: failed program was:" >&5
12238cat conftest.$ac_ext >&5
12239ac_lo= ac_hi=
12240fi
12241rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012242fi
12243rm -f conftest.$ac_objext conftest.$ac_ext
12244# Binary search between lo and hi bounds.
12245while test "x$ac_lo" != "x$ac_hi"; do
12246 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12247 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012248#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012249#include "confdefs.h"
12250$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012251#ifdef F77_DUMMY_MAIN
12252# ifdef __cplusplus
12253 extern "C"
12254# endif
12255 int F77_DUMMY_MAIN() { return 1; }
12256#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012257int
12258main ()
12259{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012260static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12261test_array [0] = 0
12262
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012263 ;
12264 return 0;
12265}
12266_ACEOF
12267rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012269 (eval $ac_compile) 2>&5
12270 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012272 (exit $ac_status); } &&
12273 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012275 (eval $ac_try) 2>&5
12276 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012278 (exit $ac_status); }; }; then
12279 ac_hi=$ac_mid
12280else
12281 echo "$as_me: failed program was:" >&5
12282cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012283ac_lo=`expr '(' $ac_mid ')' + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012284fi
12285rm -f conftest.$ac_objext conftest.$ac_ext
12286done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012287case $ac_lo in
12288?*) ac_cv_sizeof_long_long=$ac_lo;;
12289'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12290echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12291 { (exit 1); exit 1; }; } ;;
12292esac
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012293else
12294 if test "$cross_compiling" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012295 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012296echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12297 { (exit 1); exit 1; }; }
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012298else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012299 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012300#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012301#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012302$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012303long longval () { return (long) (sizeof (long long)); }
12304unsigned long ulongval () { return (long) (sizeof (long long)); }
12305#include <stdio.h>
12306#include <stdlib.h>
12307#ifdef F77_DUMMY_MAIN
12308# ifdef __cplusplus
12309 extern "C"
12310# endif
12311 int F77_DUMMY_MAIN() { return 1; }
12312#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012313int
12314main ()
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012315{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012316
12317 FILE *f = fopen ("conftest.val", "w");
12318 if (! f)
12319 exit (1);
12320 if (((long) (sizeof (long long))) < 0)
12321 {
12322 long i = longval ();
12323 if (i != ((long) (sizeof (long long))))
12324 exit (1);
12325 fprintf (f, "%ld\n", i);
12326 }
12327 else
12328 {
12329 unsigned long i = ulongval ();
12330 if (i != ((long) (sizeof (long long))))
12331 exit (1);
12332 fprintf (f, "%lu\n", i);
12333 }
12334 exit (ferror (f) || fclose (f) != 0);
12335
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012336 ;
12337 return 0;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012338}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012339_ACEOF
12340rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012342 (eval $ac_link) 2>&5
12343 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012347 (eval $ac_try) 2>&5
12348 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012350 (exit $ac_status); }; }; then
12351 ac_cv_sizeof_long_long=`cat conftest.val`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012352else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012353 echo "$as_me: program exited with status $ac_status" >&5
12354echo "$as_me: failed program was:" >&5
12355cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012356( exit $ac_status )
12357{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12358echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12359 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012360fi
12361rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12362fi
12363fi
12364rm -f conftest.val
12365else
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012366 ac_cv_sizeof_long_long=0
12367fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012368fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012369echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012370echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012371cat >>confdefs.h <<_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012372#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012373_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012374
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012375
12376
12377echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012378echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
12379if test "${wine_cv_linux_input_h+set}" = set; then
12380 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012381else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012382 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012383#line $LINENO "configure"
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012384#include "confdefs.h"
12385
12386 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012387
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012388#ifdef F77_DUMMY_MAIN
12389# ifdef __cplusplus
12390 extern "C"
12391# endif
12392 int F77_DUMMY_MAIN() { return 1; }
12393#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012394int
12395main ()
12396{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012397
12398 int foo = EVIOCGBIT(EV_ABS,42);
12399 int bar = BTN_PINKIE;
12400 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012401
12402 ;
12403 return 0;
12404}
12405_ACEOF
12406rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012408 (eval $ac_compile) 2>&5
12409 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012411 (exit $ac_status); } &&
12412 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012414 (eval $ac_try) 2>&5
12415 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012417 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012418 wine_cv_linux_input_h=yes
12419else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012420 echo "$as_me: failed program was:" >&5
12421cat conftest.$ac_ext >&5
12422wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012423fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012424rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012425
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012426fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012427echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012428echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012429 if test "$wine_cv_linux_input_h" = "yes"
12430 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012431
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012432cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012433#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012434_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012435
12436 fi
12437
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012438
12439echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012440echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
12441if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000012443else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012444 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012445#line $LINENO "configure"
Rein Klazesff7a61f2000-09-24 19:41:57 +000012446#include "confdefs.h"
12447
12448#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012449
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012450#ifdef F77_DUMMY_MAIN
12451# ifdef __cplusplus
12452 extern "C"
12453# endif
12454 int F77_DUMMY_MAIN() { return 1; }
12455#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012456int
12457main ()
12458{
Rein Klazesff7a61f2000-09-24 19:41:57 +000012459
12460 char *name=NULL;
12461 struct hostent he;
12462 struct hostent *result;
12463 char *buf=NULL;
12464 int bufsize=0;
12465 int res,errnr;
12466 char *addr=NULL;
12467 int addrlen=0;
12468 int addrtype=0;
12469 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
12470 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012471
12472 ;
12473 return 0;
12474}
12475_ACEOF
12476rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012478 (eval $ac_compile) 2>&5
12479 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012481 (exit $ac_status); } &&
12482 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012484 (eval $ac_try) 2>&5
12485 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012487 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000012488 wine_cv_linux_gethostbyname_r_6=yes
12489else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012490 echo "$as_me: failed program was:" >&5
12491cat conftest.$ac_ext >&5
12492wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000012493
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012494fi
12495rm -f conftest.$ac_objext conftest.$ac_ext
12496
12497fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012498echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012499echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000012500 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
12501 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012502
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012503cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000012504#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012505_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000012506
12507 fi
12508
Marcus Meissner028e9a11999-08-04 15:07:56 +000012509if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012510then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012511 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012512echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
12513if test "${wine_cv_linux_joystick_22_api+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012515else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012516 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012517#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012518#include "confdefs.h"
12519
Marcus Meissner028e9a11999-08-04 15:07:56 +000012520 #include <sys/ioctl.h>
12521 #include <linux/joystick.h>
12522
12523 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000012524 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
12525 #error "no 2.2 header"
12526 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012527
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012528#ifdef F77_DUMMY_MAIN
12529# ifdef __cplusplus
12530 extern "C"
12531# endif
12532 int F77_DUMMY_MAIN() { return 1; }
12533#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012534int
12535main ()
12536{
Marcus Meissner028e9a11999-08-04 15:07:56 +000012537/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012538 ;
12539 return 0;
12540}
12541_ACEOF
12542rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012544 (eval $ac_compile) 2>&5
12545 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012547 (exit $ac_status); } &&
12548 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012550 (eval $ac_try) 2>&5
12551 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012553 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000012554 wine_cv_linux_joystick_22_api=yes
12555else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012556 echo "$as_me: failed program was:" >&5
12557cat conftest.$ac_ext >&5
12558wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000012559fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012560rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000012561
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012562fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012563echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012564echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000012565 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000012566 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012567
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012568cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000012569#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012570_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000012571
12572 fi
12573fi
12574
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012575
Marcus Meissner028e9a11999-08-04 15:07:56 +000012576if test "$ac_cv_header_sys_vfs_h" = "yes"
12577then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012578 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012579echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
12580if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000012582else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012583 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012584#line $LINENO "configure"
Marcus Meissner028e9a11999-08-04 15:07:56 +000012585#include "confdefs.h"
12586
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012587 #include <sys/types.h>
12588 #ifdef HAVE_SYS_PARAM_H
12589 # include <sys/param.h>
12590 #endif
12591 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012592
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012593#ifdef F77_DUMMY_MAIN
12594# ifdef __cplusplus
12595 extern "C"
12596# endif
12597 int F77_DUMMY_MAIN() { return 1; }
12598#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012599int
12600main ()
12601{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012602
12603 struct statfs stfs;
12604
12605 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012606
12607 ;
12608 return 0;
12609}
12610_ACEOF
12611rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012613 (eval $ac_compile) 2>&5
12614 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012616 (exit $ac_status); } &&
12617 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012619 (eval $ac_try) 2>&5
12620 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012622 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012623 wine_cv_sys_vfs_has_statfs=yes
12624else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012625 echo "$as_me: failed program was:" >&5
12626cat conftest.$ac_ext >&5
12627wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012628
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012629fi
12630rm -f conftest.$ac_objext conftest.$ac_ext
12631
12632fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012633echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012634echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012635 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
12636 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012637
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012638cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012639#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012640_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012641
12642 fi
12643fi
12644
12645if test "$ac_cv_header_sys_statfs_h" = "yes"
12646then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012647 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012648echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
12649if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012651else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012652 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012653#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012654#include "confdefs.h"
12655
12656 #include <sys/types.h>
12657 #ifdef HAVE_SYS_PARAM_H
12658 # include <sys/param.h>
12659 #endif
12660 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012661
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012662#ifdef F77_DUMMY_MAIN
12663# ifdef __cplusplus
12664 extern "C"
12665# endif
12666 int F77_DUMMY_MAIN() { return 1; }
12667#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012668int
12669main ()
12670{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012671
12672 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012673
12674 ;
12675 return 0;
12676}
12677_ACEOF
12678rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012680 (eval $ac_compile) 2>&5
12681 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012683 (exit $ac_status); } &&
12684 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012686 (eval $ac_try) 2>&5
12687 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012689 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012690 wine_cv_sys_statfs_has_statfs=yes
12691else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012692 echo "$as_me: failed program was:" >&5
12693cat conftest.$ac_ext >&5
12694wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012695
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012696fi
12697rm -f conftest.$ac_objext conftest.$ac_ext
12698
12699fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012700echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012701echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012702 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
12703 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012704
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012705cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012706#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012707_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012708
12709 fi
12710fi
12711
12712if test "$ac_cv_header_sys_mount_h" = "yes"
12713then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012714 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012715echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
12716if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
12717 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012718else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012719 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012720#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012721#include "confdefs.h"
12722
12723 #include <sys/types.h>
12724 #ifdef HAVE_SYS_PARAM_H
12725 # include <sys/param.h>
12726 #endif
12727 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012728
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012729#ifdef F77_DUMMY_MAIN
12730# ifdef __cplusplus
12731 extern "C"
12732# endif
12733 int F77_DUMMY_MAIN() { return 1; }
12734#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012735int
12736main ()
12737{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012738
12739 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012740
12741 ;
12742 return 0;
12743}
12744_ACEOF
12745rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012747 (eval $ac_compile) 2>&5
12748 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012750 (exit $ac_status); } &&
12751 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012753 (eval $ac_try) 2>&5
12754 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012756 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012757 wine_cv_sys_mount_has_statfs=yes
12758else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012759 echo "$as_me: failed program was:" >&5
12760cat conftest.$ac_ext >&5
12761wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012762
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012763fi
12764rm -f conftest.$ac_objext conftest.$ac_ext
12765
12766fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012767echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012768echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012769 if test "$wine_cv_sys_mount_has_statfs" = "yes"
12770 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012771
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012772cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012773#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012774_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012775
12776 fi
12777fi
12778
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012779
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012780echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012781echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
12782if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012784else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012785 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012786#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012787#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012788#include <sys/types.h>
12789#ifdef HAVE_SYS_PARAM_H
12790# include <sys/param.h>
12791#endif
12792#ifdef STATFS_DEFINED_BY_SYS_MOUNT
12793# include <sys/mount.h>
12794#else
12795# ifdef STATFS_DEFINED_BY_SYS_VFS
12796# include <sys/vfs.h>
12797# else
12798# ifdef STATFS_DEFINED_BY_SYS_STATFS
12799# include <sys/statfs.h>
12800# endif
12801# endif
12802#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012803#ifdef F77_DUMMY_MAIN
12804# ifdef __cplusplus
12805 extern "C"
12806# endif
12807 int F77_DUMMY_MAIN() { return 1; }
12808#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012809int
12810main ()
12811{
12812struct statfs s; s.f_bfree = 0
12813 ;
12814 return 0;
12815}
12816_ACEOF
12817rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012819 (eval $ac_compile) 2>&5
12820 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012822 (exit $ac_status); } &&
12823 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012825 (eval $ac_try) 2>&5
12826 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012828 (exit $ac_status); }; }; then
12829 ac_cv_c_statfs_f_bfree="yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012830else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012831 echo "$as_me: failed program was:" >&5
12832cat conftest.$ac_ext >&5
12833ac_cv_c_statfs_f_bfree="no"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012834fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012835rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012836fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012837echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012838echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
12839if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012840
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012841cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012842#define STATFS_HAS_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012843_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012844
12845fi
12846
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012847
12848
12849echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012850echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
12851if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
12852 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012853else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012854 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012855#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012856#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012857#include <sys/types.h>
12858#ifdef HAVE_SYS_PARAM_H
12859# include <sys/param.h>
12860#endif
12861#ifdef STATFS_DEFINED_BY_SYS_MOUNT
12862# include <sys/mount.h>
12863#else
12864# ifdef STATFS_DEFINED_BY_SYS_VFS
12865# include <sys/vfs.h>
12866# else
12867# ifdef STATFS_DEFINED_BY_SYS_STATFS
12868# include <sys/statfs.h>
12869# endif
12870# endif
12871#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012872#ifdef F77_DUMMY_MAIN
12873# ifdef __cplusplus
12874 extern "C"
12875# endif
12876 int F77_DUMMY_MAIN() { return 1; }
12877#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012878int
12879main ()
12880{
12881struct statfs s; s.f_bavail = 0
12882 ;
12883 return 0;
12884}
12885_ACEOF
12886rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012888 (eval $ac_compile) 2>&5
12889 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012891 (exit $ac_status); } &&
12892 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012894 (eval $ac_try) 2>&5
12895 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012897 (exit $ac_status); }; }; then
12898 ac_cv_c_statfs_f_bavail="yes"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012899else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012900 echo "$as_me: failed program was:" >&5
12901cat conftest.$ac_ext >&5
12902ac_cv_c_statfs_f_bavail="no"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012903fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012904rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012905fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012906echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012907echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
12908if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012909
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012910cat >>confdefs.h <<\_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012911#define STATFS_HAS_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012912_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012913
12914fi
12915
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012916
12917
12918echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012919echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
12920if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard829fe321998-07-26 14:27:39 +000012922else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012923 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012924#line $LINENO "configure"
Alexandre Julliard829fe321998-07-26 14:27:39 +000012925#include "confdefs.h"
12926#include <sys/types.h>
12927#include <sys/socket.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012928#ifdef F77_DUMMY_MAIN
12929# ifdef __cplusplus
12930 extern "C"
12931# endif
12932 int F77_DUMMY_MAIN() { return 1; }
12933#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012934int
12935main ()
12936{
12937struct msghdr s; s.msg_accrights = 0
12938 ;
12939 return 0;
12940}
12941_ACEOF
12942rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012944 (eval $ac_compile) 2>&5
12945 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012947 (exit $ac_status); } &&
12948 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012950 (eval $ac_try) 2>&5
12951 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012953 (exit $ac_status); }; }; then
12954 ac_cv_c_msghdr_msg_accrights="yes"
Alexandre Julliard829fe321998-07-26 14:27:39 +000012955else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012956 echo "$as_me: failed program was:" >&5
12957cat conftest.$ac_ext >&5
12958ac_cv_c_msghdr_msg_accrights="no"
Alexandre Julliard829fe321998-07-26 14:27:39 +000012959fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012960rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000012961fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012962echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012963echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
12964if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
Alexandre Julliard829fe321998-07-26 14:27:39 +000012965
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012966cat >>confdefs.h <<\_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000012967#define HAVE_MSGHDR_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012968_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000012969
12970fi
12971
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012972
12973
12974echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012975echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
12976if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000012978else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012979 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012980#line $LINENO "configure"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000012981#include "confdefs.h"
Juergen Lock2d33ab92000-02-13 16:03:29 +000012982#include <sys/types.h>
12983#include <sys/socket.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012984#ifdef F77_DUMMY_MAIN
12985# ifdef __cplusplus
12986 extern "C"
12987# endif
12988 int F77_DUMMY_MAIN() { return 1; }
12989#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012990int
12991main ()
12992{
12993struct sockaddr s; s.sa_len = 0
12994 ;
12995 return 0;
12996}
12997_ACEOF
12998rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013000 (eval $ac_compile) 2>&5
13001 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013003 (exit $ac_status); } &&
13004 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013006 (eval $ac_try) 2>&5
13007 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013009 (exit $ac_status); }; }; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000013010 ac_cv_c_sockaddr_sa_len="yes"
13011else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013012 echo "$as_me: failed program was:" >&5
13013cat conftest.$ac_ext >&5
13014ac_cv_c_sockaddr_sa_len="no"
Patrik Stridvall09da9662001-07-08 22:30:50 +000013015fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013016rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000013017fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013018echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013019echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13020if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000013021
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013022cat >>confdefs.h <<\_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013023#define HAVE_SOCKADDR_SA_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013024_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013025
13026fi
13027
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013028
13029
13030echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013031echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13032if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000013034else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013035 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013036#line $LINENO "configure"
Patrik Stridvall09da9662001-07-08 22:30:50 +000013037#include "confdefs.h"
13038#include <sys/types.h>
13039#include <sys/socket.h>
Juergen Lock2d33ab92000-02-13 16:03:29 +000013040#include <sys/un.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013041#ifdef F77_DUMMY_MAIN
13042# ifdef __cplusplus
13043 extern "C"
13044# endif
13045 int F77_DUMMY_MAIN() { return 1; }
13046#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013047int
13048main ()
13049{
13050struct sockaddr_un s; s.sun_len = 0
13051 ;
13052 return 0;
13053}
13054_ACEOF
13055rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013057 (eval $ac_compile) 2>&5
13058 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013060 (exit $ac_status); } &&
13061 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013063 (eval $ac_try) 2>&5
13064 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013066 (exit $ac_status); }; }; then
13067 ac_cv_c_sockaddr_un_sun_len="yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013068else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013069 echo "$as_me: failed program was:" >&5
13070cat conftest.$ac_ext >&5
13071ac_cv_c_sockaddr_un_sun_len="no"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013072fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013073rm -f conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000013074fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013075echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013076echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13077if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000013078
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013079cat >>confdefs.h <<\_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013080#define HAVE_SOCKADDR_SUN_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013081_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013082
13083fi
13084
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013085
13086
13087
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013088case $host_cpu in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013089 *i345678986* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013090 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013091echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13092if test "${ac_cv_cpp_def_i386+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000013094else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013095 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013096#line $LINENO "configure"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013097#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013098#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013099yes
13100#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013101_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13103 egrep "yes" >/dev/null 2>&1; then
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013104 ac_cv_cpp_def_i386="yes"
13105else
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013106 ac_cv_cpp_def_i386="no"
13107fi
13108rm -f conftest*
13109
13110fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013111echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013112echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
13113 ;;
13114esac
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013115if test "$ac_cv_cpp_def_i386" = "yes"
13116then
13117 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +000013118 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013119fi
13120
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013121
13122
13123
13124
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013125ac_config_commands="$ac_config_commands controls"
13126
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013127ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000013128
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013129ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000013130
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013131ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013132
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013133ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000013134
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013135ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000013136
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013137ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000013138
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013139ac_config_commands="$ac_config_commands dlls/dinput/joystick"
13140
13141ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
13142
13143ac_config_commands="$ac_config_commands dlls/dinput/mouse"
13144
Alexandre Julliard89118562002-03-27 21:13:40 +000013145ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
13146
13147ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
13148
13149ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
13150
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013151ac_config_commands="$ac_config_commands dlls/kernel/messages"
13152
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013153ac_config_commands="$ac_config_commands dlls/kernel/tests"
13154
Marcus Meissnere8d97702002-03-26 01:54:25 +000013155ac_config_commands="$ac_config_commands dlls/oleaut32/tests"
13156
Juergen Schmiedc74a7912002-05-09 19:48:07 +000013157ac_config_commands="$ac_config_commands dlls/shlwapi/tests"
13158
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013159ac_config_commands="$ac_config_commands dlls/user/dde"
13160
13161ac_config_commands="$ac_config_commands dlls/user/resources"
13162
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013163ac_config_commands="$ac_config_commands dlls/user/tests"
13164
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013165ac_config_commands="$ac_config_commands dlls/wineps/data"
13166
Alexandre Julliard9a68b7b2002-04-27 21:19:22 +000013167ac_config_commands="$ac_config_commands dlls/winsock/tests"
13168
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013169ac_config_commands="$ac_config_commands files"
13170
13171ac_config_commands="$ac_config_commands graphics"
13172
13173ac_config_commands="$ac_config_commands graphics/x11drv"
13174
13175ac_config_commands="$ac_config_commands if1632"
13176
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013177ac_config_commands="$ac_config_commands include/wine"
13178
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013179ac_config_commands="$ac_config_commands loader"
13180
13181ac_config_commands="$ac_config_commands loader/ne"
13182
13183ac_config_commands="$ac_config_commands memory"
13184
13185ac_config_commands="$ac_config_commands misc"
13186
13187ac_config_commands="$ac_config_commands msdos"
13188
13189ac_config_commands="$ac_config_commands objects"
13190
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013191ac_config_commands="$ac_config_commands programs/regapi/tests"
13192
13193ac_config_commands="$ac_config_commands programs/winetest/tests"
13194
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013195ac_config_commands="$ac_config_commands relay32"
13196
13197ac_config_commands="$ac_config_commands scheduler"
13198
13199ac_config_commands="$ac_config_commands win32"
13200
13201ac_config_commands="$ac_config_commands windows"
13202
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000013203
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000013204MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013205
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013206
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000013207MAKE_DLL_RULES=dlls/Makedll.rules
13208
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013209
Alexandre Julliard626f4252000-11-10 23:35:20 +000013210MAKE_PROG_RULES=programs/Makeprog.rules
13211
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013212
Eric Pouechbed67fc2002-05-22 02:00:05 +000013213ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/netapi32/Makefile dlls/ntdll/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013214
Alexandre Julliard626f4252000-11-10 23:35:20 +000013215
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013216cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013217# This file is a shell script that caches the results of configure
13218# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013219# scripts and configure runs, see configure's option --config-cache.
13220# It is not useful on other systems. If it contains results you don't
13221# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013222#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013223# config.status only pays attention to the cache file if you give it
13224# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013225#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013226# `ac_cv_env_foo' variables (set or unset) will be overriden when
13227# loading this file, other *unset* `ac_cv_foo' will be assigned the
13228# following values.
13229
13230_ACEOF
13231
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013232# The following way of writing the cache mishandles newlines in values,
13233# but we know of no workaround that is simple, portable, and efficient.
13234# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013235# Ultrix sh set writes to stderr and can't be redirected directly,
13236# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013237{
13238 (set) 2>&1 |
13239 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13240 *ac_space=\ *)
13241 # `set' does not quote correctly, so add quotes (double-quote
13242 # substitution turns \\\\ into \\, and sed turns \\ into \).
13243 sed -n \
13244 "s/'/'\\\\''/g;
13245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13246 ;;
13247 *)
13248 # `set' quotes correctly as required by POSIX, so do not add quotes.
13249 sed -n \
13250 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13251 ;;
13252 esac;
13253} |
13254 sed '
13255 t clear
13256 : clear
13257 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13258 t end
13259 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13260 : end' >>confcache
13261if cmp -s $cache_file confcache; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013262 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013263 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13264 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013265 else
13266 echo "not updating unwritable cache $cache_file"
13267 fi
13268fi
13269rm -f confcache
13270
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013271test "x$prefix" = xNONE && prefix=$ac_default_prefix
13272# Let make expand exec_prefix.
13273test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13274
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013275# VPATH may cause trouble with some makes, so we remove $(srcdir),
13276# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13277# trailing colons and then remove the whole line if VPATH becomes empty
13278# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013279if test "x$srcdir" = x.; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013280 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13281s/:*\$(srcdir):*/:/;
13282s/:*\${srcdir}:*/:/;
13283s/:*@srcdir@:*/:/;
13284s/^\([^=]*=[ ]*\):*/\1/;
13285s/:*$//;
13286s/^[^=]*=[ ]*$//;
13287}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013288fi
13289
Alexandre Julliard18f92e71996-07-17 20:02:21 +000013290DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013291
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013292
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013293: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013294ac_clean_files_save=$ac_clean_files
13295ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013296{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013297echo "$as_me: creating $CONFIG_STATUS" >&6;}
13298cat >$CONFIG_STATUS <<_ACEOF
13299#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013300# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013301# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013302# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013303# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013304
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013305debug=false
13306SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013307_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013308
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013309cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013310
13311## --------------------- ##
13312## M4sh Initialization. ##
13313## --------------------- ##
13314
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013315# Be Bourne compatible
13316if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13317 emulate sh
13318 NULLCMD=:
13319elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13320 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000013321fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013322
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013323# NLS nuisances.
13324# Support unset when possible.
13325if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13326 as_unset=unset
13327else
13328 as_unset=false
13329fi
13330
13331(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
13332 { $as_unset LANG || test "${LANG+set}" != set; } ||
13333 { LANG=C; export LANG; }
13334(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
13335 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
13336 { LC_ALL=C; export LC_ALL; }
13337(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
13338 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
13339 { LC_TIME=C; export LC_TIME; }
13340(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
13341 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
13342 { LC_CTYPE=C; export LC_CTYPE; }
13343(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
13344 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
13345 { LANGUAGE=C; export LANGUAGE; }
13346(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
13347 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
13348 { LC_COLLATE=C; export LC_COLLATE; }
13349(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
13350 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
13351 { LC_NUMERIC=C; export LC_NUMERIC; }
13352(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
13353 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
13354 { LC_MESSAGES=C; export LC_MESSAGES; }
13355
13356
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013357# Name of the executable.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013358as_me=`(basename "$0") 2>/dev/null ||
13359$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13360 X"$0" : 'X\(//\)$' \| \
13361 X"$0" : 'X\(/\)$' \| \
13362 . : '\(.\)' 2>/dev/null ||
13363echo X/"$0" |
13364 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13365 /^X\/\(\/\/\)$/{ s//\1/; q; }
13366 /^X\/\(\/\).*/{ s//\1/; q; }
13367 s/.*/./; q'`
13368
13369# PATH needs CR, and LINENO needs CR and PATH.
13370# Avoid depending upon Character Ranges.
13371as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13372as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13373as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13374as_cr_digits='0123456789'
13375as_cr_alnum=$as_cr_Letters$as_cr_digits
13376
13377# The user is always right.
13378if test "${PATH_SEPARATOR+set}" != set; then
13379 echo "#! /bin/sh" >conftest.sh
13380 echo "exit 0" >>conftest.sh
13381 chmod +x conftest.sh
13382 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
13383 PATH_SEPARATOR=';'
13384 else
13385 PATH_SEPARATOR=:
13386 fi
13387 rm -f conftest.sh
13388fi
13389
13390
13391 as_lineno_1=$LINENO
13392 as_lineno_2=$LINENO
13393 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13394 test "x$as_lineno_1" != "x$as_lineno_2" &&
13395 test "x$as_lineno_3" = "x$as_lineno_2" || {
13396 # Find who we are. Look in the path if we contain no path at all
13397 # relative or not.
13398 case $0 in
13399 *[\\/]* ) as_myself=$0 ;;
13400 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401for as_dir in $PATH
13402do
13403 IFS=$as_save_IFS
13404 test -z "$as_dir" && as_dir=.
13405 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13406done
13407
13408 ;;
13409 esac
13410 # We did not find ourselves, most probably we were run as `sh COMMAND'
13411 # in which case we are not to be found in the path.
13412 if test "x$as_myself" = x; then
13413 as_myself=$0
13414 fi
13415 if test ! -f "$as_myself"; then
13416 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13417echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13418 { (exit 1); exit 1; }; }
13419 fi
13420 case $CONFIG_SHELL in
13421 '')
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13424do
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
13427 for as_base in sh bash ksh sh5; do
13428 case $as_dir in
13429 /*)
13430 if ("$as_dir/$as_base" -c '
13431 as_lineno_1=$LINENO
13432 as_lineno_2=$LINENO
13433 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13434 test "x$as_lineno_1" != "x$as_lineno_2" &&
13435 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13436 CONFIG_SHELL=$as_dir/$as_base
13437 export CONFIG_SHELL
13438 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13439 fi;;
13440 esac
13441 done
13442done
13443;;
13444 esac
13445
13446 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13447 # uniformly replaced by the line number. The first 'sed' inserts a
13448 # line-number line before each line; the second 'sed' does the real
13449 # work. The second script uses 'N' to pair each line-number line
13450 # with the numbered line, and appends trailing '-' during
13451 # substitution so that $LINENO is not a special case at line end.
13452 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13453 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13454 sed '=' <$as_myself |
13455 sed '
13456 N
13457 s,$,-,
13458 : loop
13459 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13460 t loop
13461 s,-$,,
13462 s,^['$as_cr_digits']*\n,,
13463 ' >$as_me.lineno &&
13464 chmod +x $as_me.lineno ||
13465 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13466echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13467 { (exit 1); exit 1; }; }
13468
13469 # Don't try to exec as it changes $[0], causing all sort of problems
13470 # (the dirname of $[0] is not the place where we might find the
13471 # original and so on. Autoconf is especially sensible to this).
13472 . ./$as_me.lineno
13473 # Exit status is that of the last command.
13474 exit
13475}
13476
13477
13478case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13479 *c*,-n*) ECHO_N= ECHO_C='
13480' ECHO_T=' ' ;;
13481 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13482 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13483esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013484
13485if expr a : '\(a\)' >/dev/null 2>&1; then
13486 as_expr=expr
13487else
13488 as_expr=false
13489fi
13490
13491rm -f conf$$ conf$$.exe conf$$.file
13492echo >conf$$.file
13493if ln -s conf$$.file conf$$ 2>/dev/null; then
13494 # We could just check for DJGPP; but this test a) works b) is more generic
13495 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13496 if test -f conf$$.exe; then
13497 # Don't use ln at all; we don't have any links
13498 as_ln_s='cp -p'
13499 else
13500 as_ln_s='ln -s'
13501 fi
13502elif ln conf$$.file conf$$ 2>/dev/null; then
13503 as_ln_s=ln
13504else
13505 as_ln_s='cp -p'
13506fi
13507rm -f conf$$ conf$$.exe conf$$.file
13508
13509as_executable_p="test -f"
13510
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013511# Sed expression to map a string onto a valid CPP name.
13512as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013513
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013514# Sed expression to map a string onto a valid variable name.
13515as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13516
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013517
13518# IFS
13519# We need space, tab and new line, in precisely that order.
13520as_nl='
13521'
13522IFS=" $as_nl"
13523
13524# CDPATH.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013525$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013526
13527exec 6>&1
13528
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013529# Open the log real soon, to keep \$[0] and so on meaningful, and to
13530# report actual input values of CONFIG_FILES etc. instead of their
13531# values after options handling. Logging --version etc. is OK.
13532exec 5>>config.log
13533{
13534 echo
13535 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13536## Running $as_me. ##
13537_ASBOX
13538} >&5
13539cat >&5 <<_CSEOF
13540
Alexandre Julliardf85d8da2002-05-10 03:14:24 +000013541This file was extended by Wine $as_me 20020509, which was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013542generated by GNU Autoconf 2.53. Invocation command line was
13543
13544 CONFIG_FILES = $CONFIG_FILES
13545 CONFIG_HEADERS = $CONFIG_HEADERS
13546 CONFIG_LINKS = $CONFIG_LINKS
13547 CONFIG_COMMANDS = $CONFIG_COMMANDS
13548 $ $0 $@
13549
13550_CSEOF
13551echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13552echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013553_ACEOF
13554
13555# Files that config.status was made for.
13556if test -n "$ac_config_files"; then
13557 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13558fi
13559
13560if test -n "$ac_config_headers"; then
13561 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13562fi
13563
13564if test -n "$ac_config_links"; then
13565 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13566fi
13567
13568if test -n "$ac_config_commands"; then
13569 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13570fi
13571
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013572cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013573
13574ac_cs_usage="\
13575\`$as_me' instantiates files from templates according to the
13576current configuration.
13577
13578Usage: $0 [OPTIONS] [FILE]...
13579
13580 -h, --help print this help, then exit
13581 -V, --version print version number, then exit
13582 -d, --debug don't remove temporary files
13583 --recheck update $as_me by reconfiguring in the same conditions
13584 --file=FILE[:TEMPLATE]
13585 instantiate the configuration file FILE
13586 --header=FILE[:TEMPLATE]
13587 instantiate the configuration header FILE
13588
13589Configuration files:
13590$config_files
13591
13592Configuration headers:
13593$config_headers
13594
13595Configuration commands:
13596$config_commands
13597
13598Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013599_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000013600
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013601cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013602ac_cs_version="\\
Alexandre Julliardf85d8da2002-05-10 03:14:24 +000013603Wine config.status 20020509
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013604configured by $0, generated by GNU Autoconf 2.53,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013605 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013606
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013607Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13608Free Software Foundation, Inc.
13609This config.status script is free software; the Free Software Foundation
13610gives unlimited permission to copy, distribute and modify it."
13611srcdir=$srcdir
13612INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013613_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013614
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013615cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013616# If no file are specified by the user, then we need to provide default
13617# value. By we need to know if files were specified by the user.
13618ac_need_defaults=:
13619while test $# != 0
13620do
13621 case $1 in
13622 --*=*)
13623 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13624 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13625 shift
13626 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13627 shift
13628 ;;
13629 -*);;
13630 *) # This is not an option, so the user has probably given explicit
13631 # arguments.
13632 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013633 esac
13634
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013635 case $1 in
13636 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013637_ACEOF
13638cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013639 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13640 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13641 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013642_ACEOF
13643cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013644 --version | --vers* | -V )
13645 echo "$ac_cs_version"; exit 0 ;;
13646 --he | --h)
13647 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013648 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013649Try \`$0 --help' for more information." >&5
13650echo "$as_me: error: ambiguous option: $1
13651Try \`$0 --help' for more information." >&2;}
13652 { (exit 1); exit 1; }; };;
13653 --help | --hel | -h )
13654 echo "$ac_cs_usage"; exit 0 ;;
13655 --debug | --d* | -d )
13656 debug=: ;;
13657 --file | --fil | --fi | --f )
13658 shift
13659 CONFIG_FILES="$CONFIG_FILES $1"
13660 ac_need_defaults=false;;
13661 --header | --heade | --head | --hea )
13662 shift
13663 CONFIG_HEADERS="$CONFIG_HEADERS $1"
13664 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013665
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013666 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013667 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013668Try \`$0 --help' for more information." >&5
13669echo "$as_me: error: unrecognized option: $1
13670Try \`$0 --help' for more information." >&2;}
13671 { (exit 1); exit 1; }; } ;;
13672
13673 *) ac_config_targets="$ac_config_targets $1" ;;
13674
13675 esac
13676 shift
13677done
13678
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013679_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013680
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013681
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013682
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013683
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013684
13685cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013686for ac_config_target in $ac_config_targets
13687do
13688 case "$ac_config_target" in
13689 # Handling of arguments.
13690 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
13691 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
13692 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
13693 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013694 "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
13695 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
13696 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
13697 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
13698 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000013699 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013700 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
13701 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
13702 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
13703 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
13704 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
13705 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
13706 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
13707 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
13708 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
13709 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
13710 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
13711 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
13712 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
13713 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
13714 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
13715 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
13716 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
13717 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
13718 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
13719 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
13720 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000013721 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000013722 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000013723 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013724 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
13725 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000013726 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013727 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
13728 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
13729 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
13730 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
13731 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
13732 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
13733 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
13734 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
13735 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
13736 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
13737 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
13738 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
13739 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
13740 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
13741 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
13742 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
13743 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
13744 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
13745 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
13746 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
13747 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
13748 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
13749 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
13750 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
13751 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
13752 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
13753 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000013754 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013755 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
13756 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
13757 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000013758 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013759 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
13760 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
13761 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
13762 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
13763 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
13764 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
13765 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
13766 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
13767 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
13768 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
13769 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
13770 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
13771 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
13772 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
13773 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
13774 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
13775 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
13776 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013777 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013778 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
13779 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
13780 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
13781 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
13782 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
13783 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
13784 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
13785 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
13786 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013787 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13788 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013789 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013790 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
13791 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
13792 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
13793 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
13794 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
13795 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000013796 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013797 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
13798 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
13799 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
13800 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000013801 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000013802 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013803 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
13804 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
13805 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
13806 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
13807 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
13808 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000013809 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013810 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
13811 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
13812 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013813 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
13814 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13815 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
13816 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
13817 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
13818 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
13819 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
13820 "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
13821 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013822 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013823 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
13824 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
13825 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
13826 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
13827 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
13828 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
13829 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
13830 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
13831 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000013832 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
13833 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
13834 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013835 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013836 "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
Marcus Meissnere8d97702002-03-26 01:54:25 +000013837 "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;;
Juergen Schmiedc74a7912002-05-09 19:48:07 +000013838 "dlls/shlwapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/shlwapi/tests" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013839 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
13840 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013841 "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013842 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
Alexandre Julliard9a68b7b2002-04-27 21:19:22 +000013843 "dlls/winsock/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/winsock/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013844 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
13845 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
13846 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
13847 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013848 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013849 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
13850 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
13851 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
13852 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
13853 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
13854 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013855 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
13856 "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013857 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
13858 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
13859 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
13860 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013861 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013862 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013863echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13864 { (exit 1); exit 1; }; };;
13865 esac
13866done
13867
13868# If the user did not use the arguments to specify the items to instantiate,
13869# then the envvar interface is used. Set only those that are not.
13870# We use the long form for the default assignment because of an extremely
13871# bizarre bug on SunOS 4.1.3.
13872if $ac_need_defaults; then
13873 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13874 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13875 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13876fi
13877
13878# Create a temporary directory, and hook for its removal unless debugging.
13879$debug ||
13880{
13881 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13882 trap '{ (exit 1); exit 1; }' 1 2 13 15
13883}
13884
13885# Create a (secure) tmp directory for tmp files.
13886: ${TMPDIR=/tmp}
13887{
13888 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13889 test -n "$tmp" && test -d "$tmp"
13890} ||
13891{
13892 tmp=$TMPDIR/cs$$-$RANDOM
13893 (umask 077 && mkdir $tmp)
13894} ||
13895{
13896 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13897 { (exit 1); exit 1; }
13898}
13899
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013900_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013901
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013902cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013903
13904#
13905# CONFIG_FILES section.
13906#
13907
13908# No need to generate the scripts if there are no CONFIG_FILES.
13909# This happens for instance when ./config.status config.h
13910if test -n "\$CONFIG_FILES"; then
13911 # Protect against being on the right side of a sed subst in config.status.
13912 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13913 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13914s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013915s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13916s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13917s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13918s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13919s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13920s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013921s,@exec_prefix@,$exec_prefix,;t t
13922s,@prefix@,$prefix,;t t
13923s,@program_transform_name@,$program_transform_name,;t t
13924s,@bindir@,$bindir,;t t
13925s,@sbindir@,$sbindir,;t t
13926s,@libexecdir@,$libexecdir,;t t
13927s,@datadir@,$datadir,;t t
13928s,@sysconfdir@,$sysconfdir,;t t
13929s,@sharedstatedir@,$sharedstatedir,;t t
13930s,@localstatedir@,$localstatedir,;t t
13931s,@libdir@,$libdir,;t t
13932s,@includedir@,$includedir,;t t
13933s,@oldincludedir@,$oldincludedir,;t t
13934s,@infodir@,$infodir,;t t
13935s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013936s,@build_alias@,$build_alias,;t t
13937s,@host_alias@,$host_alias,;t t
13938s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013939s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013940s,@ECHO_C@,$ECHO_C,;t t
13941s,@ECHO_N@,$ECHO_N,;t t
13942s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013943s,@LIBS@,$LIBS,;t t
13944s,@OPTIONS@,$OPTIONS,;t t
13945s,@build@,$build,;t t
13946s,@build_cpu@,$build_cpu,;t t
13947s,@build_vendor@,$build_vendor,;t t
13948s,@build_os@,$build_os,;t t
13949s,@host@,$host,;t t
13950s,@host_cpu@,$host_cpu,;t t
13951s,@host_vendor@,$host_vendor,;t t
13952s,@host_os@,$host_os,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013953s,@SET_MAKE@,$SET_MAKE,;t t
13954s,@CC@,$CC,;t t
13955s,@CFLAGS@,$CFLAGS,;t t
13956s,@LDFLAGS@,$LDFLAGS,;t t
13957s,@CPPFLAGS@,$CPPFLAGS,;t t
13958s,@ac_ct_CC@,$ac_ct_CC,;t t
13959s,@EXEEXT@,$EXEEXT,;t t
13960s,@OBJEXT@,$OBJEXT,;t t
13961s,@CPP@,$CPP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013962s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013963s,@X_CFLAGS@,$X_CFLAGS,;t t
13964s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13965s,@X_LIBS@,$X_LIBS,;t t
13966s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13967s,@YACC@,$YACC,;t t
13968s,@LEX@,$LEX,;t t
13969s,@LEXLIB@,$LEXLIB,;t t
13970s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
13971s,@XYACC@,$XYACC,;t t
13972s,@XLEX@,$XLEX,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013973s,@AR@,$AR,;t t
13974s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013975s,@RANLIB@,$RANLIB,;t t
13976s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013977s,@STRIP@,$STRIP,;t t
13978s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13979s,@WINDRES@,$WINDRES,;t t
13980s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013981s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13982s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13983s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13984s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000013985s,@LN@,$LN,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013986s,@C2MAN@,$C2MAN,;t t
13987s,@LDCONFIG@,$LDCONFIG,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013988s,@LDCOMBINE@,$LDCOMBINE,;t t
13989s,@ac_ct_LDCOMBINE@,$ac_ct_LDCOMBINE,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013990s,@LINT@,$LINT,;t t
13991s,@LINTFLAGS@,$LINTFLAGS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013992s,@JPEGLIB@,$JPEGLIB,;t t
13993s,@XLIB@,$XLIB,;t t
13994s,@XFILES@,$XFILES,;t t
13995s,@OPENGLFILES@,$OPENGLFILES,;t t
13996s,@GLU32FILES@,$GLU32FILES,;t t
13997s,@CURSESLIBS@,$CURSESLIBS,;t t
13998s,@CUPSLIBS@,$CUPSLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000013999s,@sane_devel@,$sane_devel,;t t
14000s,@SANELIBS@,$SANELIBS,;t t
14001s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014002s,@ft_devel@,$ft_devel,;t t
14003s,@ft_devel2@,$ft_devel2,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014004s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014005s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14006s,@ARTSLIBS@,$ARTSLIBS,;t t
14007s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014008s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014009s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014010s,@DLLIBS@,$DLLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014011s,@DLLFLAGS@,$DLLFLAGS,;t t
Alexandre Julliardc1bfca02002-03-20 22:19:06 +000014012s,@DLLEXT@,$DLLEXT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014013s,@LDSHARED@,$LDSHARED,;t t
14014s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14015s,@LIBEXT@,$LIBEXT,;t t
14016s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014017s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014018s,@ALLOCA@,$ALLOCA,;t t
14019/@MAKE_RULES@/r $MAKE_RULES
14020s,@MAKE_RULES@,,;t t
14021/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
14022s,@MAKE_DLL_RULES@,,;t t
14023/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
14024s,@MAKE_PROG_RULES@,,;t t
14025CEOF
14026
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014027_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014028
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014029 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014030 # Split the substitutions into bite-sized pieces for seds with
14031 # small command number limits, like on Digital OSF/1 and HP-UX.
14032 ac_max_sed_lines=48
14033 ac_sed_frag=1 # Number of current file.
14034 ac_beg=1 # First line for current file.
14035 ac_end=$ac_max_sed_lines # Line after last line for current file.
14036 ac_more_lines=:
14037 ac_sed_cmds=
14038 while $ac_more_lines; do
14039 if test $ac_beg -gt 1; then
14040 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14041 else
14042 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14043 fi
14044 if test ! -s $tmp/subs.frag; then
14045 ac_more_lines=false
14046 else
14047 # The purpose of the label and of the branching condition is to
14048 # speed up the sed processing (if there are no `@' at all, there
14049 # is no need to browse any of the substitutions).
14050 # These are the two extra sed commands mentioned above.
14051 (echo ':t
14052 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14053 if test -z "$ac_sed_cmds"; then
14054 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14055 else
14056 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14057 fi
14058 ac_sed_frag=`expr $ac_sed_frag + 1`
14059 ac_beg=$ac_end
14060 ac_end=`expr $ac_end + $ac_max_sed_lines`
14061 fi
14062 done
14063 if test -z "$ac_sed_cmds"; then
14064 ac_sed_cmds=cat
14065 fi
14066fi # test -n "$CONFIG_FILES"
14067
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014068_ACEOF
14069cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014070for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14071 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14072 case $ac_file in
14073 - | *:- | *:-:* ) # input from stdin
14074 cat >$tmp/stdin
14075 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14076 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14077 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14078 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14079 * ) ac_file_in=$ac_file.in ;;
14080 esac
14081
14082 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014083 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14084$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014085 X"$ac_file" : 'X\(//\)[^/]' \| \
14086 X"$ac_file" : 'X\(//\)$' \| \
14087 X"$ac_file" : 'X\(/\)' \| \
14088 . : '\(.\)' 2>/dev/null ||
14089echo X"$ac_file" |
14090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14092 /^X\(\/\/\)$/{ s//\1/; q; }
14093 /^X\(\/\).*/{ s//\1/; q; }
14094 s/.*/./; q'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014095 { case "$ac_dir" in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014096 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14097 *) as_incr_dir=.;;
14098esac
14099as_dummy="$ac_dir"
14100for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14101 case $as_mkdir_dir in
14102 # Skip DOS drivespec
14103 ?:) as_incr_dir=$as_mkdir_dir ;;
14104 *)
14105 as_incr_dir=$as_incr_dir/$as_mkdir_dir
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014106 test -d "$as_incr_dir" ||
14107 mkdir "$as_incr_dir" ||
14108 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14109echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14110 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014111 ;;
14112 esac
14113done; }
14114
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014115 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014116
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014117if test "$ac_dir" != .; then
14118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14119 # A "../" for each directory in $ac_dir_suffix.
14120 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14121else
14122 ac_dir_suffix= ac_top_builddir=
14123fi
14124
14125case $srcdir in
14126 .) # No --srcdir option. We are building in place.
14127 ac_srcdir=.
14128 if test -z "$ac_top_builddir"; then
14129 ac_top_srcdir=.
14130 else
14131 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14132 fi ;;
14133 [\\/]* | ?:[\\/]* ) # Absolute path.
14134 ac_srcdir=$srcdir$ac_dir_suffix;
14135 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014136 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014137 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14138 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14139esac
14140# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14141# absolute.
14142ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14143ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14144ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14145ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14146
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014147
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014148 case $INSTALL in
14149 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014150 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014151 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000014152
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014153 if test x"$ac_file" != x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014154 { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014155echo "$as_me: creating $ac_file" >&6;}
14156 rm -f "$ac_file"
14157 fi
14158 # Let's still pretend it is `configure' which instantiates (i.e., don't
14159 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014160 # /* config.h. Generated by config.status. */
14161 if test x"$ac_file" = x-; then
14162 configure_input=
14163 else
14164 configure_input="$ac_file. "
14165 fi
14166 configure_input=$configure_input"Generated from `echo $ac_file_in |
14167 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014168
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014169 # First look for the input files in the build tree, otherwise in the
14170 # src tree.
14171 ac_file_inputs=`IFS=:
14172 for f in $ac_file_in; do
14173 case $f in
14174 -) echo $tmp/stdin ;;
14175 [\\/$]*)
14176 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014177 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014178echo "$as_me: error: cannot find input file: $f" >&2;}
14179 { (exit 1); exit 1; }; }
14180 echo $f;;
14181 *) # Relative
14182 if test -f "$f"; then
14183 # Build tree
14184 echo $f
14185 elif test -f "$srcdir/$f"; then
14186 # Source tree
14187 echo $srcdir/$f
14188 else
14189 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014190 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014191echo "$as_me: error: cannot find input file: $f" >&2;}
14192 { (exit 1); exit 1; }; }
14193 fi;;
14194 esac
14195 done` || { (exit 1); exit 1; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014196_ACEOF
14197cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014198 sed "$ac_vpsub
14199$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014200_ACEOF
14201cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014202:t
14203/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14204s,@configure_input@,$configure_input,;t t
14205s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014206s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014207s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014208s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14209s,@builddir@,$ac_builddir,;t t
14210s,@abs_builddir@,$ac_abs_builddir,;t t
14211s,@top_builddir@,$ac_top_builddir,;t t
14212s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014213s,@INSTALL@,$ac_INSTALL,;t t
14214" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14215 rm -f $tmp/stdin
14216 if test x"$ac_file" != x-; then
14217 mv $tmp/out $ac_file
14218 else
14219 cat $tmp/out
14220 rm -f $tmp/out
14221 fi
14222
14223done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014224_ACEOF
14225cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014226
14227#
14228# CONFIG_HEADER section.
14229#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014230
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014231# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14232# NAME is the cpp macro being defined and VALUE is the value it is being given.
14233#
14234# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014235ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14236ac_dB='[ ].*$,\1#\2'
14237ac_dC=' '
14238ac_dD=',;t'
14239# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14240ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14241ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014242ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014243ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014244
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014245for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014246 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014247 case $ac_file in
14248 - | *:- | *:-:* ) # input from stdin
14249 cat >$tmp/stdin
14250 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14251 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14252 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14253 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14254 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014255 esac
14256
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014257 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014258echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014259
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014260 # First look for the input files in the build tree, otherwise in the
14261 # src tree.
14262 ac_file_inputs=`IFS=:
14263 for f in $ac_file_in; do
14264 case $f in
14265 -) echo $tmp/stdin ;;
14266 [\\/$]*)
14267 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014268 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014269echo "$as_me: error: cannot find input file: $f" >&2;}
14270 { (exit 1); exit 1; }; }
14271 echo $f;;
14272 *) # Relative
14273 if test -f "$f"; then
14274 # Build tree
14275 echo $f
14276 elif test -f "$srcdir/$f"; then
14277 # Source tree
14278 echo $srcdir/$f
14279 else
14280 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014281 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014282echo "$as_me: error: cannot find input file: $f" >&2;}
14283 { (exit 1); exit 1; }; }
14284 fi;;
14285 esac
14286 done` || { (exit 1); exit 1; }
14287 # Remove the trailing spaces.
14288 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014289
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014290_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014291
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014292# Transform confdefs.h into two sed scripts, `conftest.defines' and
14293# `conftest.undefs', that substitutes the proper values into
14294# config.h.in to produce config.h. The first handles `#define'
14295# templates, and the second `#undef' templates.
14296# And first: Protect against being on the right side of a sed subst in
14297# config.status. Protect against being in an unquoted here document
14298# in config.status.
14299rm -f conftest.defines conftest.undefs
14300# Using a here document instead of a string reduces the quoting nightmare.
14301# Putting comments in sed scripts is not portable.
14302#
14303# `end' is used to avoid that the second main sed command (meant for
14304# 0-ary CPP macros) applies to n-ary macro definitions.
14305# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014306cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014307s/[\\&,]/\\&/g
14308s,[\\$`],\\&,g
14309t clear
14310: clear
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014311s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014312t end
14313s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14314: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014315_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014316# If some macros were called several times there might be several times
14317# the same #defines, which is useless. Nevertheless, we may not want to
14318# sort them, since we want the *last* AC-DEFINE to be honored.
14319uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14320sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14321rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014322
14323# This sed command replaces #undef with comments. This is necessary, for
14324# example, in the case of _POSIX_SOURCE, which is predefined and required
14325# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014326cat >>conftest.undefs <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014327s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014328_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014329
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014330# Break up conftest.defines because some shells have a limit on the size
14331# of here documents, and old seds have small limits too (100 cmds).
14332echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14333echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14334echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14335echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014336rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014337while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014338do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014339 # Write a limited-size here document to $tmp/defines.sed.
14340 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14341 # Speed up: don't consider the non `#define' lines.
14342 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14343 # Work around the forget-to-reset-the-flag bug.
14344 echo 't clr' >>$CONFIG_STATUS
14345 echo ': clr' >>$CONFIG_STATUS
14346 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014347 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014348 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14349 rm -f $tmp/in
14350 mv $tmp/out $tmp/in
14351' >>$CONFIG_STATUS
14352 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14353 rm -f conftest.defines
14354 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014355done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014356rm -f conftest.defines
14357echo ' fi # egrep' >>$CONFIG_STATUS
14358echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014359
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014360# Break up conftest.undefs because some shells have a limit on the size
14361# of here documents, and old seds have small limits too (100 cmds).
14362echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14363rm -f conftest.tail
14364while grep . conftest.undefs >/dev/null
14365do
14366 # Write a limited-size here document to $tmp/undefs.sed.
14367 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14368 # Speed up: don't consider the non `#undef'
14369 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14370 # Work around the forget-to-reset-the-flag bug.
14371 echo 't clr' >>$CONFIG_STATUS
14372 echo ': clr' >>$CONFIG_STATUS
14373 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14374 echo 'CEOF
14375 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14376 rm -f $tmp/in
14377 mv $tmp/out $tmp/in
14378' >>$CONFIG_STATUS
14379 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14380 rm -f conftest.undefs
14381 mv conftest.tail conftest.undefs
14382done
14383rm -f conftest.undefs
14384
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014385cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014386 # Let's still pretend it is `configure' which instantiates (i.e., don't
14387 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014388 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014389 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014390 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014391 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014392 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014393 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014394 cat $tmp/in >>$tmp/config.h
14395 rm -f $tmp/in
14396 if test x"$ac_file" != x-; then
14397 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014398 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014399echo "$as_me: $ac_file is unchanged" >&6;}
14400 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014401 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14402$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014403 X"$ac_file" : 'X\(//\)[^/]' \| \
14404 X"$ac_file" : 'X\(//\)$' \| \
14405 X"$ac_file" : 'X\(/\)' \| \
14406 . : '\(.\)' 2>/dev/null ||
14407echo X"$ac_file" |
14408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14409 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14410 /^X\(\/\/\)$/{ s//\1/; q; }
14411 /^X\(\/\).*/{ s//\1/; q; }
14412 s/.*/./; q'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014413 { case "$ac_dir" in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014414 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14415 *) as_incr_dir=.;;
14416esac
14417as_dummy="$ac_dir"
14418for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14419 case $as_mkdir_dir in
14420 # Skip DOS drivespec
14421 ?:) as_incr_dir=$as_mkdir_dir ;;
14422 *)
14423 as_incr_dir=$as_incr_dir/$as_mkdir_dir
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014424 test -d "$as_incr_dir" ||
14425 mkdir "$as_incr_dir" ||
14426 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14427echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14428 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014429 ;;
14430 esac
14431done; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014432
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014433 rm -f $ac_file
14434 mv $tmp/config.h $ac_file
14435 fi
14436 else
14437 cat $tmp/config.h
14438 rm -f $tmp/config.h
14439 fi
14440done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014441_ACEOF
14442cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014443
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014444#
14445# CONFIG_COMMANDS section.
14446#
14447for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14448 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14449 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014450 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14451$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14452 X"$ac_dest" : 'X\(//\)[^/]' \| \
14453 X"$ac_dest" : 'X\(//\)$' \| \
14454 X"$ac_dest" : 'X\(/\)' \| \
14455 . : '\(.\)' 2>/dev/null ||
14456echo X"$ac_dest" |
14457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14458 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14459 /^X\(\/\/\)$/{ s//\1/; q; }
14460 /^X\(\/\).*/{ s//\1/; q; }
14461 s/.*/./; q'`
14462 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014463
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014464if test "$ac_dir" != .; then
14465 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14466 # A "../" for each directory in $ac_dir_suffix.
14467 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014468else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014469 ac_dir_suffix= ac_top_builddir=
14470fi
14471
14472case $srcdir in
14473 .) # No --srcdir option. We are building in place.
14474 ac_srcdir=.
14475 if test -z "$ac_top_builddir"; then
14476 ac_top_srcdir=.
14477 else
14478 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14479 fi ;;
14480 [\\/]* | ?:[\\/]* ) # Absolute path.
14481 ac_srcdir=$srcdir$ac_dir_suffix;
14482 ac_top_srcdir=$srcdir ;;
14483 *) # Relative path.
14484 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14485 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14486esac
14487# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14488# absolute.
14489ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14490ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14491ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14492ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14493
14494
14495 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14496echo "$as_me: executing $ac_dest commands" >&6;}
14497 case $ac_dest in
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014498 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
14499echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014500 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
14501echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
14502 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
14503echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
14504 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
14505echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
14506 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
14507echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
14508 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
14509echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
14510 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
14511echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
14512 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
14513echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
14514 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
14515echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
14516 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
14517echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
14518 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
14519echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
14520 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
14521echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
14522 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
14523echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
14524 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
14525echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
14526 dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:$LINENO: creating dlls/kernel/tests" >&5
14527echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
14528 dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:$LINENO: creating dlls/oleaut32/tests" >&5
14529echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;;
Juergen Schmiedc74a7912002-05-09 19:48:07 +000014530 dlls/shlwapi/tests ) test -d "dlls/shlwapi/tests" || ({ echo "$as_me:$LINENO: creating dlls/shlwapi/tests" >&5
14531echo "$as_me: creating dlls/shlwapi/tests" >&6;} && mkdir "dlls/shlwapi/tests") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014532 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
14533echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
14534 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
14535echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
14536 dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:$LINENO: creating dlls/user/tests" >&5
14537echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
14538 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
14539echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
Alexandre Julliard9a68b7b2002-04-27 21:19:22 +000014540 dlls/winsock/tests ) test -d "dlls/winsock/tests" || ({ echo "$as_me:$LINENO: creating dlls/winsock/tests" >&5
14541echo "$as_me: creating dlls/winsock/tests" >&6;} && mkdir "dlls/winsock/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014542 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
14543echo "$as_me: creating files" >&6;} && mkdir "files") ;;
14544 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
14545echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
14546 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
14547echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
14548 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
14549echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014550 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
14551echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014552 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
14553echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
14554 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
14555echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
14556 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
14557echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
14558 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
14559echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
14560 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
14561echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
14562 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
14563echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014564 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
14565echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
14566 programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
14567echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014568 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
14569echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
14570 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
14571echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
14572 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
14573echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
14574 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
14575echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014576 esac
14577done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014578_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014579
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014580cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014581
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014582{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014583_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014584chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014585ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014586
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014587
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014588# configure is writing to config.log, and then calls config.status.
14589# config.status does its own redirection, appending to config.log.
14590# Unfortunately, on DOS this fails, as config.log is still kept open
14591# by configure, so config.status won't be able to write to it; its
14592# output is simply discarded. So we exec the FD to /dev/null,
14593# effectively closing config.log, so it can be properly (re)opened and
14594# appended to by config.status. When coming back to configure, we
14595# need to make the FD available again.
14596if test "$no_create" != yes; then
14597 ac_cs_success=:
14598 exec 5>/dev/null
14599 $SHELL $CONFIG_STATUS || ac_cs_success=false
14600 exec 5>>config.log
14601 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14602 # would make configure fail if this is the last instruction.
14603 $ac_cs_success || { (exit 1); exit 1; }
14604fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014605
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014606
Ove Kaaven8b4431f1999-01-23 13:59:11 +000014607if test "$have_x" = "no"
14608then
14609 echo
14610 echo "*** Warning: X development files not found. Wine will be built without"
14611 echo "*** X support, which currently does not work, and would probably not be"
14612 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000014613 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000014614fi
14615
Alexandre Julliard638f1691999-01-17 16:32:32 +000014616if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
14617then
14618 echo
14619 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
14620 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +000014621fi
14622
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014623if test "$wine_cv_libc_reentrant" = "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000014624then
14625 echo
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014626 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
14627 echo "*** threading support. Consider upgrading libc to a more recent"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000014628 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000014629fi
14630
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000014631if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
14632then
14633 echo
14634 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
14635 echo "*** applications won't work properly. You should upgrade your X11 library."
14636fi
14637
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000014638if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000014639then
14640 echo
14641 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000014642 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
14643fi
14644
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014645if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000014646then
14647 echo
14648 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000014649 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
Andreas Mohr18a9d742001-01-17 21:52:42 +000014650 echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine,"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000014651 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +000014652fi
14653
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014654if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000014655then
14656 echo
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +000014657 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000014658 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
14659 echo "*** support before reporting bugs."
14660fi
14661
Marcus Meissner3ee02ba2001-04-30 18:18:50 +000014662if test "$wine_cv_warn_cups_h" = "yes"
14663then
14664 echo
14665 echo "*** Note: You have cups runtime libraries, but no development"
14666 echo "*** libraries. Install the cups-devel package or whichever package"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014667 echo "*** contains cups.h to enable CUPS support in Wine."
Marcus Meissner3ee02ba2001-04-30 18:18:50 +000014668fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000014669
Ian Pilcher563598d2001-05-16 20:56:05 +000014670if test "$wine_cv_msg_freetype" = "yes"
14671then
14672 echo
14673 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014674 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
14675 echo "*** freetype-devel package (or its equivalent on your distribution) to"
14676 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000014677fi
14678
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014679echo
Steffen Moeller1511bae1999-02-17 15:27:03 +000014680echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014681echo
14682