blob: ae38153908e1fe95d9324e93e55f1ed323e3c4ee [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 Julliard77ef4d12002-09-05 01:25:33 +00003# Generated by GNU Autoconf 2.53 for Wine 20020904.
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 Julliard77ef4d12002-09-05 01:25:33 +0000257PACKAGE_VERSION='20020904'
258PACKAGE_STRING='Wine 20020904'
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 Julliard77ef4d12002-09-05 01:25:33 +0000763\`configure' configures Wine 20020904 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 Julliard77ef4d12002-09-05 01:25:33 +0000828 short | recursive ) echo "Configuration of Wine 20020904:";;
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 Julliard77ef4d12002-09-05 01:25:33 +0000921Wine configure 20020904
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 Julliard77ef4d12002-09-05 01:25:33 +0000936It was created by Wine $as_me 20020904, 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 Julliard7bf07d12002-08-03 00:25:59 +00001244LIBEXT="so"
1245
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001246
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001247# Check whether --enable-debug or --disable-debug was given.
1248if test "${enable_debug+set}" = set; then
1249 enableval="$enable_debug"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001250
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001251fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001252# Check whether --enable-trace or --disable-trace was given.
1253if test "${enable_trace+set}" = set; then
1254 enableval="$enable_trace"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001255
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001256fi;
1257# Check whether --enable-opengl or --disable-opengl was given.
1258if test "${enable_opengl+set}" = set; then
1259 enableval="$enable_opengl"
1260
1261fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001262
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001263# Check whether --with-curses or --without-curses was given.
1264if test "${with_curses+set}" = set; then
1265 withval="$with_curses"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001266
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001267fi;
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001268
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001269# Check whether --with-wine-tools or --without-wine-tools was given.
1270if test "${with_wine_tools+set}" = set; then
1271 withval="$with_wine_tools"
1272
1273fi;
1274
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001275
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001276if test "x$enable_debug" = "xno"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001277then
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001278
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001279cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001280#define NO_DEBUG_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001281_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001282
1283fi
1284if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001285then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001286
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001287cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001288#define NO_TRACE_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001289_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001290
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001291fi
1292
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001293
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001294# Make sure we can run config.sub.
1295$ac_config_sub sun4 >/dev/null 2>&1 ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001296 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001297echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1298 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001299
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001300echo "$as_me:$LINENO: checking build system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001301echo $ECHO_N "checking build system type... $ECHO_C" >&6
1302if test "${ac_cv_build+set}" = set; then
1303 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001304else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001305 ac_cv_build_alias=$build_alias
1306test -z "$ac_cv_build_alias" &&
1307 ac_cv_build_alias=`$ac_config_guess`
1308test -z "$ac_cv_build_alias" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001309 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001310echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1311 { (exit 1); exit 1; }; }
1312ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001313 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1314echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001315 { (exit 1); exit 1; }; }
1316
1317fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001318echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001319echo "${ECHO_T}$ac_cv_build" >&6
1320build=$ac_cv_build
1321build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1322build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1323build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1324
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001325
1326echo "$as_me:$LINENO: checking host system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001327echo $ECHO_N "checking host system type... $ECHO_C" >&6
1328if test "${ac_cv_host+set}" = set; then
1329 echo $ECHO_N "(cached) $ECHO_C" >&6
1330else
1331 ac_cv_host_alias=$host_alias
1332test -z "$ac_cv_host_alias" &&
1333 ac_cv_host_alias=$ac_cv_build_alias
1334ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001335 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001336echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1337 { (exit 1); exit 1; }; }
1338
1339fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001340echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001341echo "${ECHO_T}$ac_cv_host" >&6
1342host=$ac_cv_host
1343host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1344host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1345host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1346
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001347
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001348echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001349echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1350set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1351if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1352 echo $ECHO_N "(cached) $ECHO_C" >&6
1353else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001354 cat >conftest.make <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001355all:
1356 @echo 'ac_maketemp="${MAKE}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001357_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001358# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001359eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001360if test -n "$ac_maketemp"; then
1361 eval ac_cv_prog_make_${ac_make}_set=yes
1362else
1363 eval ac_cv_prog_make_${ac_make}_set=no
1364fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001365rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001366fi
1367if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001368 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001369echo "${ECHO_T}yes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001370 SET_MAKE=
1371else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001372 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001373echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001374 SET_MAKE="MAKE=${MAKE-make}"
1375fi
1376
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001377ac_ext=c
1378ac_cpp='$CPP $CPPFLAGS'
1379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1381ac_compiler_gnu=$ac_cv_c_compiler_gnu
1382if test -n "$ac_tool_prefix"; then
1383 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1384set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001385echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387if test "${ac_cv_prog_CC+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001389else
1390 if test -n "$CC"; then
1391 ac_cv_prog_CC="$CC" # Let the user override the test.
1392else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1394for as_dir in $PATH
1395do
1396 IFS=$as_save_IFS
1397 test -z "$as_dir" && as_dir=.
1398 for ac_exec_ext in '' $ac_executable_extensions; do
1399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1400 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1402 break 2
1403 fi
1404done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001405done
1406
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001407fi
1408fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001409CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001410if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001411 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001412echo "${ECHO_T}$CC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001413else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001414 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001415echo "${ECHO_T}no" >&6
1416fi
1417
1418fi
1419if test -z "$ac_cv_prog_CC"; then
1420 ac_ct_CC=$CC
1421 # Extract the first word of "gcc", so it can be a program name with args.
1422set dummy gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001423echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1427else
1428 if test -n "$ac_ct_CC"; then
1429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1430else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432for as_dir in $PATH
1433do
1434 IFS=$as_save_IFS
1435 test -z "$as_dir" && as_dir=.
1436 for ac_exec_ext in '' $ac_executable_extensions; do
1437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438 ac_cv_prog_ac_ct_CC="gcc"
1439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440 break 2
1441 fi
1442done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001443done
1444
1445fi
1446fi
1447ac_ct_CC=$ac_cv_prog_ac_ct_CC
1448if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001449 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001450echo "${ECHO_T}$ac_ct_CC" >&6
1451else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001452 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001453echo "${ECHO_T}no" >&6
1454fi
1455
1456 CC=$ac_ct_CC
1457else
1458 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001459fi
1460
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001461if test -z "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001462 if test -n "$ac_tool_prefix"; then
1463 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1464set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001465echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467if test "${ac_cv_prog_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001469else
1470 if test -n "$CC"; then
1471 ac_cv_prog_CC="$CC" # Let the user override the test.
1472else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474for as_dir in $PATH
1475do
1476 IFS=$as_save_IFS
1477 test -z "$as_dir" && as_dir=.
1478 for ac_exec_ext in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_CC="${ac_tool_prefix}cc"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1482 break 2
1483 fi
1484done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001485done
1486
1487fi
1488fi
1489CC=$ac_cv_prog_CC
1490if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001491 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001492echo "${ECHO_T}$CC" >&6
1493else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001494 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001495echo "${ECHO_T}no" >&6
1496fi
1497
1498fi
1499if test -z "$ac_cv_prog_CC"; then
1500 ac_ct_CC=$CC
1501 # Extract the first word of "cc", so it can be a program name with args.
1502set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001503echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1507else
1508 if test -n "$ac_ct_CC"; then
1509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1510else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512for as_dir in $PATH
1513do
1514 IFS=$as_save_IFS
1515 test -z "$as_dir" && as_dir=.
1516 for ac_exec_ext in '' $ac_executable_extensions; do
1517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1518 ac_cv_prog_ac_ct_CC="cc"
1519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520 break 2
1521 fi
1522done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001523done
1524
1525fi
1526fi
1527ac_ct_CC=$ac_cv_prog_ac_ct_CC
1528if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001529 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001530echo "${ECHO_T}$ac_ct_CC" >&6
1531else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001532 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001533echo "${ECHO_T}no" >&6
1534fi
1535
1536 CC=$ac_ct_CC
1537else
1538 CC="$ac_cv_prog_CC"
1539fi
1540
1541fi
1542if test -z "$CC"; then
1543 # Extract the first word of "cc", so it can be a program name with args.
1544set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001545echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1547if test "${ac_cv_prog_CC+set}" = set; then
1548 echo $ECHO_N "(cached) $ECHO_C" >&6
1549else
1550 if test -n "$CC"; then
1551 ac_cv_prog_CC="$CC" # Let the user override the test.
1552else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001553 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555for as_dir in $PATH
1556do
1557 IFS=$as_save_IFS
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1562 ac_prog_rejected=yes
1563 continue
1564 fi
1565 ac_cv_prog_CC="cc"
1566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567 break 2
1568 fi
1569done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001570done
1571
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001572if test $ac_prog_rejected = yes; then
1573 # We found a bogon in the path, so make sure we never use it.
1574 set dummy $ac_cv_prog_CC
1575 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001576 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001577 # We chose a different compiler from the bogus one.
1578 # However, it has the same basename, so the bogon will be chosen
1579 # first if we set CC to just the basename; use the full file name.
1580 shift
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001581 set dummy "$as_dir/$ac_word" ${1+"$@"}
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001582 shift
1583 ac_cv_prog_CC="$@"
1584 fi
1585fi
1586fi
1587fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001588CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001589if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001590 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001591echo "${ECHO_T}$CC" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001592else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001593 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001594echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001595fi
1596
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001597fi
1598if test -z "$CC"; then
1599 if test -n "$ac_tool_prefix"; then
1600 for ac_prog in cl
1601 do
1602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1603set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001604echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606if test "${ac_cv_prog_CC+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001608else
1609 if test -n "$CC"; then
1610 ac_cv_prog_CC="$CC" # Let the user override the test.
1611else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613for as_dir in $PATH
1614do
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621 break 2
1622 fi
1623done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001624done
1625
Eric Pouech18ad24a2000-01-16 22:16:33 +00001626fi
1627fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001628CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00001629if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001630 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001631echo "${ECHO_T}$CC" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001632else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001633 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001634echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001635fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001636
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001637 test -n "$CC" && break
1638 done
1639fi
1640if test -z "$CC"; then
1641 ac_ct_CC=$CC
1642 for ac_prog in cl
1643do
1644 # Extract the first word of "$ac_prog", so it can be a program name with args.
1645set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001646echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1650else
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655for as_dir in $PATH
1656do
1657 IFS=$as_save_IFS
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="$ac_prog"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 break 2
1664 fi
1665done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001666done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001667
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001668fi
1669fi
1670ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001673echo "${ECHO_T}$ac_ct_CC" >&6
1674else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001675 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001676echo "${ECHO_T}no" >&6
1677fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001678
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001679 test -n "$ac_ct_CC" && break
1680done
Eric Pouech18ad24a2000-01-16 22:16:33 +00001681
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001682 CC=$ac_ct_CC
1683fi
1684
1685fi
1686
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001687
1688test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1689echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001690 { (exit 1); exit 1; }; }
1691
1692# Provide some information about the compiler.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001693echo "$as_me:$LINENO:" \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001694 "checking for C compiler version" >&5
1695ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001696{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001697 (eval $ac_compiler --version </dev/null >&5) 2>&5
1698 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001700 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001701{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001702 (eval $ac_compiler -v </dev/null >&5) 2>&5
1703 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001705 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001706{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001707 (eval $ac_compiler -V </dev/null >&5) 2>&5
1708 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001710 (exit $ac_status); }
1711
1712cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001713#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001714#include "confdefs.h"
Eric Pouech18ad24a2000-01-16 22:16:33 +00001715
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001716#ifdef F77_DUMMY_MAIN
1717# ifdef __cplusplus
1718 extern "C"
1719# endif
1720 int F77_DUMMY_MAIN() { return 1; }
1721#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001722int
1723main ()
1724{
1725
1726 ;
1727 return 0;
1728}
1729_ACEOF
1730ac_clean_files_save=$ac_clean_files
1731ac_clean_files="$ac_clean_files a.out a.exe"
1732# Try to create an executable without -o first, disregard a.out.
1733# It will help us diagnose broken compilers, and finding out an intuition
1734# of exeext.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001735echo "$as_me:$LINENO: checking for C compiler default output" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001736echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1737ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001738if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001739 (eval $ac_link_default) 2>&5
1740 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001742 (exit $ac_status); }; then
1743 # Find the output, starting from the most likely. This scheme is
1744# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1745# resort.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001746
1747# Be careful to initialize this variable, since it used to be cached.
1748# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1749ac_cv_exeext=
1750for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001751 ls a.out conftest 2>/dev/null;
1752 ls a.* conftest.* 2>/dev/null`; do
1753 case $ac_file in
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001754 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001755 a.out ) # We found the default executable, but exeext='' is most
1756 # certainly right.
1757 break;;
1758 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1759 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1760 export ac_cv_exeext
1761 break;;
1762 * ) break;;
1763 esac
1764done
1765else
1766 echo "$as_me: failed program was:" >&5
1767cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001768{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001769echo "$as_me: error: C compiler cannot create executables" >&2;}
1770 { (exit 77); exit 77; }; }
1771fi
1772
1773ac_exeext=$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001774echo "$as_me:$LINENO: result: $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001775echo "${ECHO_T}$ac_file" >&6
1776
1777# Check the compiler produces executables we can run. If not, either
1778# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001779echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001780echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1781# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1782# If not cross compiling, check that we can run a simple program.
1783if test "$cross_compiling" != yes; then
1784 if { ac_try='./$ac_file'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001786 (eval $ac_try) 2>&5
1787 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001789 (exit $ac_status); }; }; then
1790 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001791 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001792 if test "$cross_compiling" = maybe; then
1793 cross_compiling=yes
1794 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001795 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001796If you meant to cross compile, use \`--host'." >&5
1797echo "$as_me: error: cannot run C compiled programs.
1798If you meant to cross compile, use \`--host'." >&2;}
1799 { (exit 1); exit 1; }; }
1800 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001801 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001802fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001803echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001804echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001805
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001806rm -f a.out a.exe conftest$ac_cv_exeext
1807ac_clean_files=$ac_clean_files_save
1808# Check the compiler produces executables we can run. If not, either
1809# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001810echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001811echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001812echo "$as_me:$LINENO: result: $cross_compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001813echo "${ECHO_T}$cross_compiling" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001814
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001815echo "$as_me:$LINENO: checking for suffix of executables" >&5
1816echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001818 (eval $ac_link) 2>&5
1819 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001821 (exit $ac_status); }; then
1822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1823# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1824# work properly (i.e., refer to `conftest.exe'), while it won't with
1825# `rm'.
1826for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1827 case $ac_file in
1828 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1829 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1830 export ac_cv_exeext
1831 break;;
1832 * ) break;;
1833 esac
1834done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001835else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001836 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1837echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001838 { (exit 1); exit 1; }; }
1839fi
1840
1841rm -f conftest$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001842echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001843echo "${ECHO_T}$ac_cv_exeext" >&6
1844
1845rm -f conftest.$ac_ext
1846EXEEXT=$ac_cv_exeext
1847ac_exeext=$EXEEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001848echo "$as_me:$LINENO: checking for suffix of object files" >&5
1849echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001850if test "${ac_cv_objext+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852else
1853 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001854#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001855#include "confdefs.h"
1856
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001857#ifdef F77_DUMMY_MAIN
1858# ifdef __cplusplus
1859 extern "C"
1860# endif
1861 int F77_DUMMY_MAIN() { return 1; }
1862#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001863int
1864main ()
1865{
1866
1867 ;
1868 return 0;
1869}
1870_ACEOF
1871rm -f conftest.o conftest.obj
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001873 (eval $ac_compile) 2>&5
1874 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001876 (exit $ac_status); }; then
1877 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1878 case $ac_file in
1879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1880 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1881 break;;
1882 esac
1883done
1884else
1885 echo "$as_me: failed program was:" >&5
1886cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001887{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1888echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001889 { (exit 1); exit 1; }; }
1890fi
1891
1892rm -f conftest.$ac_cv_objext conftest.$ac_ext
1893fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001894echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001895echo "${ECHO_T}$ac_cv_objext" >&6
1896OBJEXT=$ac_cv_objext
1897ac_objext=$OBJEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001898echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001899echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1900if test "${ac_cv_c_compiler_gnu+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1902else
1903 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001904#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001905#include "confdefs.h"
1906
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001907#ifdef F77_DUMMY_MAIN
1908# ifdef __cplusplus
1909 extern "C"
1910# endif
1911 int F77_DUMMY_MAIN() { return 1; }
1912#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001913int
1914main ()
1915{
1916#ifndef __GNUC__
1917 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001918#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001919
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001920 ;
1921 return 0;
1922}
1923_ACEOF
1924rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001926 (eval $ac_compile) 2>&5
1927 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001929 (exit $ac_status); } &&
1930 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001932 (eval $ac_try) 2>&5
1933 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001935 (exit $ac_status); }; }; then
1936 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00001937else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001938 echo "$as_me: failed program was:" >&5
1939cat conftest.$ac_ext >&5
1940ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00001941fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001942rm -f conftest.$ac_objext conftest.$ac_ext
1943ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00001944
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001945fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001946echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001947echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1948GCC=`test $ac_compiler_gnu = yes && echo yes`
1949ac_test_CFLAGS=${CFLAGS+set}
1950ac_save_CFLAGS=$CFLAGS
1951CFLAGS="-g"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001952echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001953echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1954if test "${ac_cv_prog_cc_g+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001956else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001957 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001958#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001959#include "confdefs.h"
1960
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001961#ifdef F77_DUMMY_MAIN
1962# ifdef __cplusplus
1963 extern "C"
1964# endif
1965 int F77_DUMMY_MAIN() { return 1; }
1966#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001967int
1968main ()
1969{
1970
1971 ;
1972 return 0;
1973}
1974_ACEOF
1975rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001977 (eval $ac_compile) 2>&5
1978 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001980 (exit $ac_status); } &&
1981 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001983 (eval $ac_try) 2>&5
1984 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001986 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001987 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001988else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001989 echo "$as_me: failed program was:" >&5
1990cat conftest.$ac_ext >&5
1991ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001992fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001993rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001994fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001995echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001996echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001997if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001998 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00001999elif test $ac_cv_prog_cc_g = yes; then
2000 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002001 CFLAGS="-g -O2"
2002 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002003 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002004 fi
2005else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002006 if test "$GCC" = yes; then
2007 CFLAGS="-O2"
2008 else
2009 CFLAGS=
2010 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002011fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002012# Some people use a C++ compiler to compile C. Since we use `exit',
2013# in C++ we need to declare it. In case someone uses the same compiler
2014# for both compiling C and C++ we need to have the C++ compiler decide
2015# the declaration of exit, since it's the most demanding environment.
2016cat >conftest.$ac_ext <<_ACEOF
2017#ifndef __cplusplus
2018 choke me
2019#endif
2020_ACEOF
2021rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002023 (eval $ac_compile) 2>&5
2024 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002026 (exit $ac_status); } &&
2027 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002029 (eval $ac_try) 2>&5
2030 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002032 (exit $ac_status); }; }; then
2033 for ac_declaration in \
2034 ''\
2035 '#include <stdlib.h>' \
2036 'extern "C" void std::exit (int) throw (); using std::exit;' \
2037 'extern "C" void std::exit (int); using std::exit;' \
2038 'extern "C" void exit (int) throw ();' \
2039 'extern "C" void exit (int);' \
2040 'void exit (int);'
2041do
2042 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002043#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002044#include "confdefs.h"
2045#include <stdlib.h>
2046$ac_declaration
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002047#ifdef F77_DUMMY_MAIN
2048# ifdef __cplusplus
2049 extern "C"
2050# endif
2051 int F77_DUMMY_MAIN() { return 1; }
2052#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002053int
2054main ()
2055{
2056exit (42);
2057 ;
2058 return 0;
2059}
2060_ACEOF
2061rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002063 (eval $ac_compile) 2>&5
2064 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002066 (exit $ac_status); } &&
2067 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002069 (eval $ac_try) 2>&5
2070 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002072 (exit $ac_status); }; }; then
2073 :
2074else
2075 echo "$as_me: failed program was:" >&5
2076cat conftest.$ac_ext >&5
2077continue
2078fi
2079rm -f conftest.$ac_objext conftest.$ac_ext
2080 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002081#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002082#include "confdefs.h"
2083$ac_declaration
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002084#ifdef F77_DUMMY_MAIN
2085# ifdef __cplusplus
2086 extern "C"
2087# endif
2088 int F77_DUMMY_MAIN() { return 1; }
2089#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002090int
2091main ()
2092{
2093exit (42);
2094 ;
2095 return 0;
2096}
2097_ACEOF
2098rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002100 (eval $ac_compile) 2>&5
2101 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002103 (exit $ac_status); } &&
2104 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002106 (eval $ac_try) 2>&5
2107 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002109 (exit $ac_status); }; }; then
2110 break
2111else
2112 echo "$as_me: failed program was:" >&5
2113cat conftest.$ac_ext >&5
2114fi
2115rm -f conftest.$ac_objext conftest.$ac_ext
2116done
2117rm -f conftest*
2118if test -n "$ac_declaration"; then
2119 echo '#ifdef __cplusplus' >>confdefs.h
2120 echo $ac_declaration >>confdefs.h
2121 echo '#endif' >>confdefs.h
2122fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002123
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002124else
2125 echo "$as_me: failed program was:" >&5
2126cat conftest.$ac_ext >&5
2127fi
2128rm -f conftest.$ac_objext conftest.$ac_ext
2129ac_ext=c
2130ac_cpp='$CPP $CPPFLAGS'
2131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134
2135ac_ext=c
2136ac_cpp='$CPP $CPPFLAGS'
2137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002140echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002141echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002142# On Suns, sometimes $CPP names a directory.
2143if test -n "$CPP" && test -d "$CPP"; then
2144 CPP=
2145fi
2146if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002147 if test "${ac_cv_prog_CPP+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002149else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002150 # Double quotes because CPP needs to be expanded
2151 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2152 do
2153 ac_preproc_ok=false
2154for ac_c_preproc_warn_flag in '' yes
2155do
2156 # Use a header file that comes with gcc, so configuring glibc
2157 # with a fresh cross-compiler works.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002158 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002159 # not just through cpp. "Syntax error" is here to catch this case.
2160 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002161#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002162#include "confdefs.h"
2163#include <assert.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002164 Syntax error
2165_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2168 ac_status=$?
2169 egrep -v '^ *\+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002173 (exit $ac_status); } >/dev/null; then
2174 if test -s conftest.err; then
2175 ac_cpp_err=$ac_c_preproc_warn_flag
2176 else
2177 ac_cpp_err=
2178 fi
2179else
2180 ac_cpp_err=yes
2181fi
2182if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002183 :
2184else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002185 echo "$as_me: failed program was:" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002186 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002187 # Broken: fails on valid input.
2188continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002189fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002190rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002191
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002192 # OK, works on sane cases. Now check whether non-existent headers
2193 # can be detected and how.
2194 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002195#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002196#include "confdefs.h"
2197#include <ac_nonexistent.h>
2198_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2201 ac_status=$?
2202 egrep -v '^ *\+' conftest.er1 >conftest.err
2203 rm -f conftest.er1
2204 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002206 (exit $ac_status); } >/dev/null; then
2207 if test -s conftest.err; then
2208 ac_cpp_err=$ac_c_preproc_warn_flag
2209 else
2210 ac_cpp_err=
2211 fi
2212else
2213 ac_cpp_err=yes
2214fi
2215if test -z "$ac_cpp_err"; then
2216 # Broken: success on invalid input.
2217continue
2218else
2219 echo "$as_me: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 # Passes both tests.
2222ac_preproc_ok=:
2223break
2224fi
2225rm -f conftest.err conftest.$ac_ext
2226
2227done
2228# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2229rm -f conftest.err conftest.$ac_ext
2230if $ac_preproc_ok; then
2231 break
2232fi
2233
2234 done
2235 ac_cv_prog_CPP=$CPP
2236
2237fi
2238 CPP=$ac_cv_prog_CPP
2239else
2240 ac_cv_prog_CPP=$CPP
2241fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002242echo "$as_me:$LINENO: result: $CPP" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002243echo "${ECHO_T}$CPP" >&6
2244ac_preproc_ok=false
2245for ac_c_preproc_warn_flag in '' yes
2246do
2247 # Use a header file that comes with gcc, so configuring glibc
2248 # with a fresh cross-compiler works.
2249 # On the NeXT, cc -E runs the code through the compiler's parser,
2250 # not just through cpp. "Syntax error" is here to catch this case.
2251 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002252#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002253#include "confdefs.h"
2254#include <assert.h>
2255 Syntax error
2256_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2259 ac_status=$?
2260 egrep -v '^ *\+' conftest.er1 >conftest.err
2261 rm -f conftest.er1
2262 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002264 (exit $ac_status); } >/dev/null; then
2265 if test -s conftest.err; then
2266 ac_cpp_err=$ac_c_preproc_warn_flag
2267 else
2268 ac_cpp_err=
2269 fi
2270else
2271 ac_cpp_err=yes
2272fi
2273if test -z "$ac_cpp_err"; then
2274 :
2275else
2276 echo "$as_me: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 # Broken: fails on valid input.
2279continue
2280fi
2281rm -f conftest.err conftest.$ac_ext
2282
2283 # OK, works on sane cases. Now check whether non-existent headers
2284 # can be detected and how.
2285 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002286#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002287#include "confdefs.h"
2288#include <ac_nonexistent.h>
2289_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2292 ac_status=$?
2293 egrep -v '^ *\+' conftest.er1 >conftest.err
2294 rm -f conftest.er1
2295 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002297 (exit $ac_status); } >/dev/null; then
2298 if test -s conftest.err; then
2299 ac_cpp_err=$ac_c_preproc_warn_flag
2300 else
2301 ac_cpp_err=
2302 fi
2303else
2304 ac_cpp_err=yes
2305fi
2306if test -z "$ac_cpp_err"; then
2307 # Broken: success on invalid input.
2308continue
2309else
2310 echo "$as_me: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2312 # Passes both tests.
2313ac_preproc_ok=:
2314break
2315fi
2316rm -f conftest.err conftest.$ac_ext
2317
2318done
2319# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2320rm -f conftest.err conftest.$ac_ext
2321if $ac_preproc_ok; then
2322 :
2323else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002324 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002325echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2326 { (exit 1); exit 1; }; }
2327fi
2328
2329ac_ext=c
2330ac_cpp='$CPP $CPPFLAGS'
2331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002335
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002336echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2337echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2338if test "${wine_cv_toolsdir+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340else
2341 if test -z "$with_wine_tools"; then
2342 if test "$cross_compiling" = "yes"; then
2343 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2344echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2345 { (exit 1); exit 1; }; }
2346 else
2347 wine_cv_toolsdir="\$(TOPOBJDIR)"
2348 fi
2349 elif test -d "$with_wine_tools/tools/winebuild"; then
2350 case $with_wine_tools in
2351 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2352 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2353 esac
2354 else
2355 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2356echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2357 { (exit 1); exit 1; }; }
2358 fi
2359fi
2360echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2361echo "${ECHO_T}$wine_cv_toolsdir" >&6
2362TOOLSDIR=$wine_cv_toolsdir
2363
2364
2365
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002366
2367echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002368echo $ECHO_N "checking for X... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002369
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002370
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002371# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002372if test "${with_x+set}" = set; then
2373 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002374
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002375fi;
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002376# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002377if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002378 # The user explicitly disabled X.
2379 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002380else
2381 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002382 # Both variables are already set.
2383 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002384 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002385 if test "${ac_cv_have_x+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002387else
2388 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002389ac_x_includes=no ac_x_libraries=no
2390rm -fr conftest.dir
2391if mkdir conftest.dir; then
2392 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002393 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002394 cat >Imakefile <<'_ACEOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002395acfindx:
2396 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002397_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002398 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002399 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002400 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002401 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2402 for ac_extension in a so sl; do
2403 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002404 test -f $ac_im_libdir/libX11.$ac_extension; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002405 ac_im_usrlibdir=$ac_im_libdir; break
2406 fi
2407 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002408 # Screen out bogus values from the imake configuration. They are
2409 # bogus both because they are the default anyway, and because
2410 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002411 case $ac_im_incroot in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002412 /usr/include) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002413 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002414 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002415 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002416 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002417 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002418 esac
2419 fi
2420 cd ..
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002421 rm -fr conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002422fi
2423
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002424# Standard set of common directories for X headers.
2425# Check X11 before X11Rn because it is often a symlink to the current release.
2426ac_x_header_dirs='
2427/usr/X11/include
2428/usr/X11R6/include
2429/usr/X11R5/include
2430/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002431
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002432/usr/include/X11
2433/usr/include/X11R6
2434/usr/include/X11R5
2435/usr/include/X11R4
2436
2437/usr/local/X11/include
2438/usr/local/X11R6/include
2439/usr/local/X11R5/include
2440/usr/local/X11R4/include
2441
2442/usr/local/include/X11
2443/usr/local/include/X11R6
2444/usr/local/include/X11R5
2445/usr/local/include/X11R4
2446
2447/usr/X386/include
2448/usr/x386/include
2449/usr/XFree86/include/X11
2450
2451/usr/include
2452/usr/local/include
2453/usr/unsupported/include
2454/usr/athena/include
2455/usr/local/x11r5/include
2456/usr/lpp/Xamples/include
2457
2458/usr/openwin/include
2459/usr/openwin/share/include'
2460
2461if test "$ac_x_includes" = no; then
2462 # Guess where to find include files, by looking for Intrinsic.h.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002463 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002464 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002465#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002466#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002467#include <X11/Intrinsic.h>
2468_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2471 ac_status=$?
2472 egrep -v '^ *\+' conftest.er1 >conftest.err
2473 rm -f conftest.er1
2474 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002476 (exit $ac_status); } >/dev/null; then
2477 if test -s conftest.err; then
2478 ac_cpp_err=$ac_c_preproc_warn_flag
2479 else
2480 ac_cpp_err=
2481 fi
2482else
2483 ac_cpp_err=yes
2484fi
2485if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002486 # We can compile using X headers with no special include directory.
2487ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002488else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002489 echo "$as_me: failed program was:" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002490 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002491 for ac_dir in $ac_x_header_dirs; do
2492 if test -r "$ac_dir/X11/Intrinsic.h"; then
2493 ac_x_includes=$ac_dir
2494 break
2495 fi
2496done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002497fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002498rm -f conftest.err conftest.$ac_ext
2499fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002500
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002501if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002502 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002503 # See if we find them without any special options.
2504 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002505 ac_save_LIBS=$LIBS
2506 LIBS="-lXt $LIBS"
2507 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002508#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002509#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002510#include <X11/Intrinsic.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002511#ifdef F77_DUMMY_MAIN
2512# ifdef __cplusplus
2513 extern "C"
2514# endif
2515 int F77_DUMMY_MAIN() { return 1; }
2516#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002517int
2518main ()
2519{
2520XtMalloc (0)
2521 ;
2522 return 0;
2523}
2524_ACEOF
2525rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002527 (eval $ac_link) 2>&5
2528 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002530 (exit $ac_status); } &&
2531 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002533 (eval $ac_try) 2>&5
2534 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002536 (exit $ac_status); }; }; then
2537 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002538# We can link X programs with no special library path.
2539ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002540else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002541 echo "$as_me: failed program was:" >&5
2542cat conftest.$ac_ext >&5
2543LIBS=$ac_save_LIBS
2544for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002545do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002546 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002547 for ac_extension in a so sl; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002548 if test -r $ac_dir/libXt.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002549 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002550 break 2
2551 fi
2552 done
2553done
2554fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002555rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2556fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002557
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002558if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002559 # Didn't find X anywhere. Cache the known absence of X.
2560 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002561else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002562 # Record where we found X for the cache.
2563 ac_cv_have_x="have_x=yes \
2564 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002565fi
2566fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002567
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002568 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002569 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002570fi # $with_x != no
2571
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002572if test "$have_x" != yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002573 echo "$as_me:$LINENO: result: $have_x" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002574echo "${ECHO_T}$have_x" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002575 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002576else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002577 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002578 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2579 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002580 # Update the cache value to reflect the command line values.
2581 ac_cv_have_x="have_x=yes \
2582 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002583 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002584echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002585fi
2586
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002587if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002588 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002589
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002590cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002591#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002592_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002593
2594 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002595else
2596 if test -n "$x_includes"; then
2597 X_CFLAGS="$X_CFLAGS -I$x_includes"
2598 fi
2599
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002600 # It would also be nice to do this for all -L options, not just this one.
2601 if test -n "$x_libraries"; then
2602 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002603 # For Solaris; some versions of Sun CC require a space after -R and
2604 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002605 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002606 "SunOS 5"*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002607 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002608echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2609 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2610 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002611#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002612#include "confdefs.h"
2613
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002614#ifdef F77_DUMMY_MAIN
2615# ifdef __cplusplus
2616 extern "C"
2617# endif
2618 int F77_DUMMY_MAIN() { return 1; }
2619#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002620int
2621main ()
2622{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002623
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002624 ;
2625 return 0;
2626}
2627_ACEOF
2628rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002630 (eval $ac_link) 2>&5
2631 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002633 (exit $ac_status); } &&
2634 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002636 (eval $ac_try) 2>&5
2637 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002639 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002640 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002641else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002642 echo "$as_me: failed program was:" >&5
2643cat conftest.$ac_ext >&5
2644ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002645fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002646rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002647 if test $ac_R_nospace = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002648 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002649echo "${ECHO_T}no" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002650 X_LIBS="$X_LIBS -R$x_libraries"
2651 else
2652 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002653 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002654#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002655#include "confdefs.h"
2656
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002657#ifdef F77_DUMMY_MAIN
2658# ifdef __cplusplus
2659 extern "C"
2660# endif
2661 int F77_DUMMY_MAIN() { return 1; }
2662#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002663int
2664main ()
2665{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002666
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002667 ;
2668 return 0;
2669}
2670_ACEOF
2671rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002673 (eval $ac_link) 2>&5
2674 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002676 (exit $ac_status); } &&
2677 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002679 (eval $ac_try) 2>&5
2680 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002682 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002683 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002684else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002685 echo "$as_me: failed program was:" >&5
2686cat conftest.$ac_ext >&5
2687ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002688fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002690 if test $ac_R_space = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002691 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002692echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002693 X_LIBS="$X_LIBS -R $x_libraries"
2694 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002695 echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002696echo "${ECHO_T}neither works" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002697 fi
2698 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002699 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002700 esac
2701 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002702
2703 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002704 # Do this before checking for the system-independent R6 libraries
2705 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002706
2707 if test "$ISC" = yes; then
2708 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2709 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002710 # Martyn Johnson says this is needed for Ultrix, if the X
2711 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002712 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002713 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2714 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002715#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002716#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002717
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002718/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002719#ifdef __cplusplus
2720extern "C"
2721#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002722/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002723 builtin and then its argument prototype would still apply. */
2724char XOpenDisplay ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002725#ifdef F77_DUMMY_MAIN
2726# ifdef __cplusplus
2727 extern "C"
2728# endif
2729 int F77_DUMMY_MAIN() { return 1; }
2730#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002731int
2732main ()
2733{
2734XOpenDisplay ();
2735 ;
2736 return 0;
2737}
2738_ACEOF
2739rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002741 (eval $ac_link) 2>&5
2742 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002744 (exit $ac_status); } &&
2745 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002747 (eval $ac_try) 2>&5
2748 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002750 (exit $ac_status); }; }; then
2751 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002752else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002753 echo "$as_me: failed program was:" >&5
2754cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002755echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002756echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2757if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759else
2760 ac_check_lib_save_LIBS=$LIBS
2761LIBS="-ldnet $LIBS"
2762cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002763#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002764#include "confdefs.h"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002765
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002766/* Override any gcc2 internal prototype to avoid an error. */
2767#ifdef __cplusplus
2768extern "C"
2769#endif
2770/* We use char because int might match the return type of a gcc2
2771 builtin and then its argument prototype would still apply. */
2772char dnet_ntoa ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002773#ifdef F77_DUMMY_MAIN
2774# ifdef __cplusplus
2775 extern "C"
2776# endif
2777 int F77_DUMMY_MAIN() { return 1; }
2778#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002779int
2780main ()
2781{
2782dnet_ntoa ();
2783 ;
2784 return 0;
2785}
2786_ACEOF
2787rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002789 (eval $ac_link) 2>&5
2790 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002792 (exit $ac_status); } &&
2793 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002795 (eval $ac_try) 2>&5
2796 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002798 (exit $ac_status); }; }; then
2799 ac_cv_lib_dnet_dnet_ntoa=yes
2800else
2801 echo "$as_me: failed program was:" >&5
2802cat conftest.$ac_ext >&5
2803ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002804fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2806LIBS=$ac_check_lib_save_LIBS
2807fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002808echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002809echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2810if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002811 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002812fi
2813
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002814 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002815 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002816echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2817if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002819else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002820 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002821LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002822cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002823#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002824#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002825
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002826/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002827#ifdef __cplusplus
2828extern "C"
2829#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002830/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002831 builtin and then its argument prototype would still apply. */
2832char dnet_ntoa ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002833#ifdef F77_DUMMY_MAIN
2834# ifdef __cplusplus
2835 extern "C"
2836# endif
2837 int F77_DUMMY_MAIN() { return 1; }
2838#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002839int
2840main ()
2841{
2842dnet_ntoa ();
2843 ;
2844 return 0;
2845}
2846_ACEOF
2847rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002849 (eval $ac_link) 2>&5
2850 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002852 (exit $ac_status); } &&
2853 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002855 (eval $ac_try) 2>&5
2856 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002858 (exit $ac_status); }; }; then
2859 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002860else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002861 echo "$as_me: failed program was:" >&5
2862cat conftest.$ac_ext >&5
2863ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002864fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002865rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2866LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002867fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002868echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002869echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2870if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002871 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002872fi
2873
2874 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002875fi
2876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2877 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002878
2879 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2880 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002881 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002882 # needs -lnsl.
2883 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002884 # on Irix 5.2, according to T.E. Dickey.
2885 # The functions gethostbyname, getservbyname, and inet_addr are
2886 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002887 echo "$as_me:$LINENO: checking for gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002888echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2889if test "${ac_cv_func_gethostbyname+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002891else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002892 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002893#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002894#include "confdefs.h"
2895/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002896 which can conflict with char gethostbyname (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002897#include <assert.h>
2898/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002899#ifdef __cplusplus
2900extern "C"
2901#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002902/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002903 builtin and then its argument prototype would still apply. */
2904char gethostbyname ();
2905char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002906
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002907#ifdef F77_DUMMY_MAIN
2908# ifdef __cplusplus
2909 extern "C"
2910# endif
2911 int F77_DUMMY_MAIN() { return 1; }
2912#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002913int
2914main ()
2915{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002916/* The GNU C library defines this for functions which it implements
2917 to always fail with ENOSYS. Some functions are actually named
2918 something starting with __ and the normal name is an alias. */
2919#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2920choke me
2921#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002922f = gethostbyname;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002923#endif
2924
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002925 ;
2926 return 0;
2927}
2928_ACEOF
2929rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002931 (eval $ac_link) 2>&5
2932 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002934 (exit $ac_status); } &&
2935 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002937 (eval $ac_try) 2>&5
2938 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002940 (exit $ac_status); }; }; then
2941 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002942else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002943 echo "$as_me: failed program was:" >&5
2944cat conftest.$ac_ext >&5
2945ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002946fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002947rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002948fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002949echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002950echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002951
2952 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002953 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002954echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2955if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002957else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002958 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002959LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002960cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002961#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002962#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002963
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002964/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002965#ifdef __cplusplus
2966extern "C"
2967#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002968/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002969 builtin and then its argument prototype would still apply. */
2970char gethostbyname ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002971#ifdef F77_DUMMY_MAIN
2972# ifdef __cplusplus
2973 extern "C"
2974# endif
2975 int F77_DUMMY_MAIN() { return 1; }
2976#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002977int
2978main ()
2979{
2980gethostbyname ();
2981 ;
2982 return 0;
2983}
2984_ACEOF
2985rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002987 (eval $ac_link) 2>&5
2988 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002990 (exit $ac_status); } &&
2991 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002993 (eval $ac_try) 2>&5
2994 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002996 (exit $ac_status); }; }; then
2997 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002998else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002999 echo "$as_me: failed program was:" >&5
3000cat conftest.$ac_ext >&5
3001ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003002fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003003rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3004LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003005fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003006echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003007echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3008if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003009 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003010fi
3011
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003012 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003013 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003014echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3015if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017else
3018 ac_check_lib_save_LIBS=$LIBS
3019LIBS="-lbsd $LIBS"
3020cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003021#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003022#include "confdefs.h"
3023
3024/* Override any gcc2 internal prototype to avoid an error. */
3025#ifdef __cplusplus
3026extern "C"
3027#endif
3028/* We use char because int might match the return type of a gcc2
3029 builtin and then its argument prototype would still apply. */
3030char gethostbyname ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003031#ifdef F77_DUMMY_MAIN
3032# ifdef __cplusplus
3033 extern "C"
3034# endif
3035 int F77_DUMMY_MAIN() { return 1; }
3036#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003037int
3038main ()
3039{
3040gethostbyname ();
3041 ;
3042 return 0;
3043}
3044_ACEOF
3045rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003047 (eval $ac_link) 2>&5
3048 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003050 (exit $ac_status); } &&
3051 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003053 (eval $ac_try) 2>&5
3054 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003056 (exit $ac_status); }; }; then
3057 ac_cv_lib_bsd_gethostbyname=yes
3058else
3059 echo "$as_me: failed program was:" >&5
3060cat conftest.$ac_ext >&5
3061ac_cv_lib_bsd_gethostbyname=no
3062fi
3063rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3064LIBS=$ac_check_lib_save_LIBS
3065fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003066echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003067echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3068if test $ac_cv_lib_bsd_gethostbyname = yes; then
3069 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3070fi
3071
3072 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003073 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003074
3075 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003076 # socket/setsockopt and other routines are undefined under SCO ODT
3077 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003078 # on later versions), says Simon Leinen: it contains gethostby*
3079 # variants that don't use the nameserver (or something). -lsocket
3080 # must be given before -lnsl if both are needed. We assume that
3081 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003082 echo "$as_me:$LINENO: checking for connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003083echo $ECHO_N "checking for connect... $ECHO_C" >&6
3084if test "${ac_cv_func_connect+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003086else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003087 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003088#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003089#include "confdefs.h"
3090/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003091 which can conflict with char connect (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003092#include <assert.h>
3093/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003094#ifdef __cplusplus
3095extern "C"
3096#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003097/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003098 builtin and then its argument prototype would still apply. */
3099char connect ();
3100char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003101
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003102#ifdef F77_DUMMY_MAIN
3103# ifdef __cplusplus
3104 extern "C"
3105# endif
3106 int F77_DUMMY_MAIN() { return 1; }
3107#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003108int
3109main ()
3110{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003111/* The GNU C library defines this for functions which it implements
3112 to always fail with ENOSYS. Some functions are actually named
3113 something starting with __ and the normal name is an alias. */
3114#if defined (__stub_connect) || defined (__stub___connect)
3115choke me
3116#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003117f = connect;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003118#endif
3119
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003120 ;
3121 return 0;
3122}
3123_ACEOF
3124rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003126 (eval $ac_link) 2>&5
3127 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003129 (exit $ac_status); } &&
3130 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003132 (eval $ac_try) 2>&5
3133 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003135 (exit $ac_status); }; }; then
3136 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003137else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003138 echo "$as_me: failed program was:" >&5
3139cat conftest.$ac_ext >&5
3140ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003141fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003142rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003143fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003144echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003145echo "${ECHO_T}$ac_cv_func_connect" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003146
3147 if test $ac_cv_func_connect = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003148 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003149echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3150if test "${ac_cv_lib_socket_connect+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003152else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003153 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003154LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003155cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003156#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003157#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003158
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003159/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003160#ifdef __cplusplus
3161extern "C"
3162#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003163/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003164 builtin and then its argument prototype would still apply. */
3165char connect ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003166#ifdef F77_DUMMY_MAIN
3167# ifdef __cplusplus
3168 extern "C"
3169# endif
3170 int F77_DUMMY_MAIN() { return 1; }
3171#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003172int
3173main ()
3174{
3175connect ();
3176 ;
3177 return 0;
3178}
3179_ACEOF
3180rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003182 (eval $ac_link) 2>&5
3183 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003185 (exit $ac_status); } &&
3186 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003188 (eval $ac_try) 2>&5
3189 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003191 (exit $ac_status); }; }; then
3192 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003193else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003194 echo "$as_me: failed program was:" >&5
3195cat conftest.$ac_ext >&5
3196ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003197fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003198rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3199LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003200fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003201echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003202echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3203if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003204 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003205fi
3206
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003207 fi
3208
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003209 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003210 echo "$as_me:$LINENO: checking for remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003211echo $ECHO_N "checking for remove... $ECHO_C" >&6
3212if test "${ac_cv_func_remove+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003214else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003215 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003216#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003217#include "confdefs.h"
3218/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003219 which can conflict with char remove (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003220#include <assert.h>
3221/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003222#ifdef __cplusplus
3223extern "C"
3224#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003225/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003226 builtin and then its argument prototype would still apply. */
3227char remove ();
3228char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003229
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003230#ifdef F77_DUMMY_MAIN
3231# ifdef __cplusplus
3232 extern "C"
3233# endif
3234 int F77_DUMMY_MAIN() { return 1; }
3235#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003236int
3237main ()
3238{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003239/* The GNU C library defines this for functions which it implements
3240 to always fail with ENOSYS. Some functions are actually named
3241 something starting with __ and the normal name is an alias. */
3242#if defined (__stub_remove) || defined (__stub___remove)
3243choke me
3244#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003245f = remove;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003246#endif
3247
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003248 ;
3249 return 0;
3250}
3251_ACEOF
3252rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003254 (eval $ac_link) 2>&5
3255 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003257 (exit $ac_status); } &&
3258 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003260 (eval $ac_try) 2>&5
3261 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003263 (exit $ac_status); }; }; then
3264 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003265else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003266 echo "$as_me: failed program was:" >&5
3267cat conftest.$ac_ext >&5
3268ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003269fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003271fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003272echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003273echo "${ECHO_T}$ac_cv_func_remove" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003274
3275 if test $ac_cv_func_remove = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003276 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003277echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3278if test "${ac_cv_lib_posix_remove+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003280else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003281 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003282LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003283cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003284#line $LINENO "configure"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003285#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003286
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003287/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003288#ifdef __cplusplus
3289extern "C"
3290#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003291/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003292 builtin and then its argument prototype would still apply. */
3293char remove ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003294#ifdef F77_DUMMY_MAIN
3295# ifdef __cplusplus
3296 extern "C"
3297# endif
3298 int F77_DUMMY_MAIN() { return 1; }
3299#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003300int
3301main ()
3302{
3303remove ();
3304 ;
3305 return 0;
3306}
3307_ACEOF
3308rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003310 (eval $ac_link) 2>&5
3311 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003313 (exit $ac_status); } &&
3314 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003316 (eval $ac_try) 2>&5
3317 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003319 (exit $ac_status); }; }; then
3320 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003321else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003322 echo "$as_me: failed program was:" >&5
3323cat conftest.$ac_ext >&5
3324ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003325fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003326rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3327LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003328fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003329echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003330echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3331if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003332 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003333fi
3334
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003335 fi
3336
3337 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003338 echo "$as_me:$LINENO: checking for shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003339echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3340if test "${ac_cv_func_shmat+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003342else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003343 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003344#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003345#include "confdefs.h"
3346/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003347 which can conflict with char shmat (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003348#include <assert.h>
3349/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003350#ifdef __cplusplus
3351extern "C"
3352#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003353/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003354 builtin and then its argument prototype would still apply. */
3355char shmat ();
3356char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003357
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003358#ifdef F77_DUMMY_MAIN
3359# ifdef __cplusplus
3360 extern "C"
3361# endif
3362 int F77_DUMMY_MAIN() { return 1; }
3363#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003364int
3365main ()
3366{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003367/* The GNU C library defines this for functions which it implements
3368 to always fail with ENOSYS. Some functions are actually named
3369 something starting with __ and the normal name is an alias. */
3370#if defined (__stub_shmat) || defined (__stub___shmat)
3371choke me
3372#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003373f = shmat;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003374#endif
3375
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003376 ;
3377 return 0;
3378}
3379_ACEOF
3380rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003382 (eval $ac_link) 2>&5
3383 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003385 (exit $ac_status); } &&
3386 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003388 (eval $ac_try) 2>&5
3389 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003391 (exit $ac_status); }; }; then
3392 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003393else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003394 echo "$as_me: failed program was:" >&5
3395cat conftest.$ac_ext >&5
3396ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003397fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003398rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003399fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003400echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003401echo "${ECHO_T}$ac_cv_func_shmat" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003402
3403 if test $ac_cv_func_shmat = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003404 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003405echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3406if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003408else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003409 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003410LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003411cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003412#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003413#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003414
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003415/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003416#ifdef __cplusplus
3417extern "C"
3418#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003419/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003420 builtin and then its argument prototype would still apply. */
3421char shmat ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003422#ifdef F77_DUMMY_MAIN
3423# ifdef __cplusplus
3424 extern "C"
3425# endif
3426 int F77_DUMMY_MAIN() { return 1; }
3427#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003428int
3429main ()
3430{
3431shmat ();
3432 ;
3433 return 0;
3434}
3435_ACEOF
3436rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003438 (eval $ac_link) 2>&5
3439 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003441 (exit $ac_status); } &&
3442 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003444 (eval $ac_try) 2>&5
3445 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003447 (exit $ac_status); }; }; then
3448 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003449else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003450 echo "$as_me: failed program was:" >&5
3451cat conftest.$ac_ext >&5
3452ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003453fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003454rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3455LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003456fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003457echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003458echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3459if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003460 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003461fi
3462
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003463 fi
3464 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003465
3466 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003467 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003468 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3469 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3470 # check for ICE first), but we must link in the order -lSM -lICE or
3471 # we get undefined symbols. So assume we have SM if we have ICE.
3472 # These have to be linked with before -lX11, unlike the other
3473 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003474 # John Interrante, Karl Berry
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003475 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003476echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3477if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003479else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003480 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003481LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003482cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003483#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003484#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003485
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003486/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003487#ifdef __cplusplus
3488extern "C"
3489#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003490/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003491 builtin and then its argument prototype would still apply. */
3492char IceConnectionNumber ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003493#ifdef F77_DUMMY_MAIN
3494# ifdef __cplusplus
3495 extern "C"
3496# endif
3497 int F77_DUMMY_MAIN() { return 1; }
3498#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003499int
3500main ()
3501{
3502IceConnectionNumber ();
3503 ;
3504 return 0;
3505}
3506_ACEOF
3507rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003509 (eval $ac_link) 2>&5
3510 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003512 (exit $ac_status); } &&
3513 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003515 (eval $ac_try) 2>&5
3516 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003518 (exit $ac_status); }; }; then
3519 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003520else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003521 echo "$as_me: failed program was:" >&5
3522cat conftest.$ac_ext >&5
3523ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003524fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003525rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3526LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003527fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003528echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003529echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3530if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003531 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003532fi
3533
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003534 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003535
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003536fi
3537
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003538for ac_prog in 'bison -y' byacc
3539do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003540 # Extract the first word of "$ac_prog", so it can be a program name with args.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003541set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003542echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3544if test "${ac_cv_prog_YACC+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003546else
3547 if test -n "$YACC"; then
3548 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3549else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551for as_dir in $PATH
3552do
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_YACC="$ac_prog"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3560 fi
3561done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003562done
3563
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003564fi
3565fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003566YACC=$ac_cv_prog_YACC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003567if test -n "$YACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003568 echo "$as_me:$LINENO: result: $YACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003569echo "${ECHO_T}$YACC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003570else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003571 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003572echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003573fi
3574
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003575 test -n "$YACC" && break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003576done
3577test -n "$YACC" || YACC="yacc"
3578
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003579for ac_prog in flex lex
3580do
3581 # Extract the first word of "$ac_prog", so it can be a program name with args.
3582set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003583echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3585if test "${ac_cv_prog_LEX+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003587else
3588 if test -n "$LEX"; then
3589 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3590else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592for as_dir in $PATH
3593do
3594 IFS=$as_save_IFS
3595 test -z "$as_dir" && as_dir=.
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_LEX="$ac_prog"
3599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 break 2
3601 fi
3602done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003603done
3604
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003605fi
3606fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003607LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003608if test -n "$LEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003609 echo "$as_me:$LINENO: result: $LEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003610echo "${ECHO_T}$LEX" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003611else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003612 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003613echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003614fi
3615
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003616 test -n "$LEX" && break
3617done
3618test -n "$LEX" || LEX=":"
3619
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003620if test -z "$LEXLIB"
3621then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003622 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003623echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3624if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003626else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003627 ac_check_lib_save_LIBS=$LIBS
3628LIBS="-lfl $LIBS"
3629cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003630#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003631#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003632
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003633/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003634#ifdef __cplusplus
3635extern "C"
3636#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003637/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003638 builtin and then its argument prototype would still apply. */
3639char yywrap ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003640#ifdef F77_DUMMY_MAIN
3641# ifdef __cplusplus
3642 extern "C"
3643# endif
3644 int F77_DUMMY_MAIN() { return 1; }
3645#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003646int
3647main ()
3648{
3649yywrap ();
3650 ;
3651 return 0;
3652}
3653_ACEOF
3654rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003656 (eval $ac_link) 2>&5
3657 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003659 (exit $ac_status); } &&
3660 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003662 (eval $ac_try) 2>&5
3663 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003665 (exit $ac_status); }; }; then
3666 ac_cv_lib_fl_yywrap=yes
3667else
3668 echo "$as_me: failed program was:" >&5
3669cat conftest.$ac_ext >&5
3670ac_cv_lib_fl_yywrap=no
3671fi
3672rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3673LIBS=$ac_check_lib_save_LIBS
3674fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003675echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003676echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3677if test $ac_cv_lib_fl_yywrap = yes; then
3678 LEXLIB="-lfl"
3679else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003680 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003681echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3682if test "${ac_cv_lib_l_yywrap+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3684else
3685 ac_check_lib_save_LIBS=$LIBS
3686LIBS="-ll $LIBS"
3687cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003688#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003689#include "confdefs.h"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003690
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003691/* Override any gcc2 internal prototype to avoid an error. */
3692#ifdef __cplusplus
3693extern "C"
3694#endif
3695/* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3697char yywrap ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003698#ifdef F77_DUMMY_MAIN
3699# ifdef __cplusplus
3700 extern "C"
3701# endif
3702 int F77_DUMMY_MAIN() { return 1; }
3703#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003704int
3705main ()
3706{
3707yywrap ();
3708 ;
3709 return 0;
3710}
3711_ACEOF
3712rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003714 (eval $ac_link) 2>&5
3715 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003717 (exit $ac_status); } &&
3718 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003720 (eval $ac_try) 2>&5
3721 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003723 (exit $ac_status); }; }; then
3724 ac_cv_lib_l_yywrap=yes
3725else
3726 echo "$as_me: failed program was:" >&5
3727cat conftest.$ac_ext >&5
3728ac_cv_lib_l_yywrap=no
3729fi
3730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3731LIBS=$ac_check_lib_save_LIBS
3732fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003733echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003734echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3735if test $ac_cv_lib_l_yywrap = yes; then
3736 LEXLIB="-ll"
3737fi
3738
3739fi
3740
3741fi
3742
3743if test "x$LEX" != "x:"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003744 echo "$as_me:$LINENO: checking lex output file root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003745echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3746if test "${ac_cv_prog_lex_root+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3748else
3749 # The minimal lex program is just a single line: %%. But some broken lexes
3750# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003751cat >conftest.l <<_ACEOF
3752%%
3753%%
3754_ACEOF
3755{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3756 (eval $LEX conftest.l) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003760if test -f lex.yy.c; then
3761 ac_cv_prog_lex_root=lex.yy
3762elif test -f lexyy.c; then
3763 ac_cv_prog_lex_root=lexyy
3764else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003765 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003766echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3767 { (exit 1); exit 1; }; }
3768fi
3769fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003770echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003771echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003772rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003773LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3774
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003775echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003776echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3777if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779else
3780 # POSIX says lex can declare yytext either as a pointer or an array; the
3781# default is implementation-dependent. Figure out which it is, since
3782# not all implementations provide the %pointer and %array declarations.
3783ac_cv_prog_lex_yytext_pointer=no
3784echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3785ac_save_LIBS=$LIBS
3786LIBS="$LIBS $LEXLIB"
3787cat >conftest.$ac_ext <<_ACEOF
3788`cat $LEX_OUTPUT_ROOT.c`
3789_ACEOF
3790rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003792 (eval $ac_link) 2>&5
3793 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003795 (exit $ac_status); } &&
3796 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003798 (eval $ac_try) 2>&5
3799 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003801 (exit $ac_status); }; }; then
3802 ac_cv_prog_lex_yytext_pointer=yes
3803else
3804 echo "$as_me: failed program was:" >&5
3805cat conftest.$ac_ext >&5
3806fi
3807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3808LIBS=$ac_save_LIBS
3809rm -f "${LEX_OUTPUT_ROOT}.c"
3810
3811fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003812echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003813echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3814if test $ac_cv_prog_lex_yytext_pointer = yes; then
3815
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003816cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003817#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003818_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003819
3820fi
3821
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003822fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003823
3824for ac_prog in $YACC bison yacc
3825do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003826 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003827set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003828echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830if test "${ac_cv_prog_XYACC+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003832else
3833 if test -n "$XYACC"; then
3834 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3835else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_XYACC="$ac_prog"
3844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
3847done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003848done
3849
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003850fi
3851fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003852XYACC=$ac_cv_prog_XYACC
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003853if test -n "$XYACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003854 echo "$as_me:$LINENO: result: $XYACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003855echo "${ECHO_T}$XYACC" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003856else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003857 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003858echo "${ECHO_T}no" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003859fi
3860
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003861 test -n "$XYACC" && break
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003862done
3863test -n "$XYACC" || XYACC="none"
3864
3865if test "$XYACC" = "none"
3866then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003867 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003868echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3869 { (exit 1); exit 1; }; }
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003870fi
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003871for ac_prog in $LEX flex lex
3872do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003873 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003874set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003875echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3877if test "${ac_cv_prog_XLEX+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003879else
3880 if test -n "$XLEX"; then
3881 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3882else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884for as_dir in $PATH
3885do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 ac_cv_prog_XLEX="$ac_prog"
3891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 break 2
3893 fi
3894done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003895done
3896
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003897fi
3898fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003899XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003900if test -n "$XLEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003901 echo "$as_me:$LINENO: result: $XLEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003902echo "${ECHO_T}$XLEX" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003903else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003904 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003905echo "${ECHO_T}no" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003906fi
3907
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003908 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003909done
3910test -n "$XLEX" || XLEX="none"
3911
3912if test "$XLEX" = "none"
3913then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003914 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003915echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3916 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003917fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00003918
3919if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00003920 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3921set dummy ${ac_tool_prefix}ld; ac_word=$2
3922echo "$as_me:$LINENO: checking for $ac_word" >&5
3923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924if test "${ac_cv_prog_LD+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926else
3927 if test -n "$LD"; then
3928 ac_cv_prog_LD="$LD" # Let the user override the test.
3929else
3930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931for as_dir in $PATH
3932do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 ac_cv_prog_LD="${ac_tool_prefix}ld"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941done
3942done
3943
3944fi
3945fi
3946LD=$ac_cv_prog_LD
3947if test -n "$LD"; then
3948 echo "$as_me:$LINENO: result: $LD" >&5
3949echo "${ECHO_T}$LD" >&6
3950else
3951 echo "$as_me:$LINENO: result: no" >&5
3952echo "${ECHO_T}no" >&6
3953fi
3954
3955fi
3956if test -z "$ac_cv_prog_LD"; then
3957 ac_ct_LD=$LD
3958 # Extract the first word of "ld", so it can be a program name with args.
3959set dummy ld; ac_word=$2
3960echo "$as_me:$LINENO: checking for $ac_word" >&5
3961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3962if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964else
3965 if test -n "$ac_ct_LD"; then
3966 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3967else
3968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969for as_dir in $PATH
3970do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3975 ac_cv_prog_ac_ct_LD="ld"
3976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3978 fi
3979done
3980done
3981
3982 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3983fi
3984fi
3985ac_ct_LD=$ac_cv_prog_ac_ct_LD
3986if test -n "$ac_ct_LD"; then
3987 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3988echo "${ECHO_T}$ac_ct_LD" >&6
3989else
3990 echo "$as_me:$LINENO: result: no" >&5
3991echo "${ECHO_T}no" >&6
3992fi
3993
3994 LD=$ac_ct_LD
3995else
3996 LD="$ac_cv_prog_LD"
3997fi
3998
3999if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004000 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4001set dummy ${ac_tool_prefix}ar; ac_word=$2
4002echo "$as_me:$LINENO: checking for $ac_word" >&5
4003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4004if test "${ac_cv_prog_AR+set}" = set; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4006else
4007 if test -n "$AR"; then
4008 ac_cv_prog_AR="$AR" # Let the user override the test.
4009else
4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH
4012do
4013 IFS=$as_save_IFS
4014 test -z "$as_dir" && as_dir=.
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4017 ac_cv_prog_AR="${ac_tool_prefix}ar"
4018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019 break 2
4020 fi
4021done
4022done
4023
4024fi
4025fi
4026AR=$ac_cv_prog_AR
4027if test -n "$AR"; then
4028 echo "$as_me:$LINENO: result: $AR" >&5
4029echo "${ECHO_T}$AR" >&6
4030else
4031 echo "$as_me:$LINENO: result: no" >&5
4032echo "${ECHO_T}no" >&6
4033fi
4034
4035fi
4036if test -z "$ac_cv_prog_AR"; then
4037 ac_ct_AR=$AR
4038 # Extract the first word of "ar", so it can be a program name with args.
4039set dummy ar; ac_word=$2
4040echo "$as_me:$LINENO: checking for $ac_word" >&5
4041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044else
4045 if test -n "$ac_ct_AR"; then
4046 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4047else
4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH
4050do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4055 ac_cv_prog_ac_ct_AR="ar"
4056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 break 2
4058 fi
4059done
4060done
4061
4062 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4063fi
4064fi
4065ac_ct_AR=$ac_cv_prog_ac_ct_AR
4066if test -n "$ac_ct_AR"; then
4067 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4068echo "${ECHO_T}$ac_ct_AR" >&6
4069else
4070 echo "$as_me:$LINENO: result: no" >&5
4071echo "${ECHO_T}no" >&6
4072fi
4073
4074 AR=$ac_ct_AR
4075else
4076 AR="$ac_cv_prog_AR"
4077fi
4078
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004079if test -n "$ac_tool_prefix"; then
4080 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4081set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004082echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084if test "${ac_cv_prog_RANLIB+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004086else
4087 if test -n "$RANLIB"; then
4088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4089else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH
4092do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004102done
4103
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004104fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004105fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004106RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004107if test -n "$RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004108 echo "$as_me:$LINENO: result: $RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004109echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004110else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004111 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004112echo "${ECHO_T}no" >&6
4113fi
4114
4115fi
4116if test -z "$ac_cv_prog_RANLIB"; then
4117 ac_ct_RANLIB=$RANLIB
4118 # Extract the first word of "ranlib", so it can be a program name with args.
4119set dummy ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004120echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4122if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125 if test -n "$ac_ct_RANLIB"; then
4126 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4127else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_ac_ct_RANLIB="ranlib"
4136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4138 fi
4139done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004140done
4141
4142 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4143fi
4144fi
4145ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4146if test -n "$ac_ct_RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004147 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004148echo "${ECHO_T}$ac_ct_RANLIB" >&6
4149else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004150 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004151echo "${ECHO_T}no" >&6
4152fi
4153
4154 RANLIB=$ac_ct_RANLIB
4155else
4156 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004157fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004158
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004159if test -n "$ac_tool_prefix"; then
4160 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4161set dummy ${ac_tool_prefix}strip; ac_word=$2
4162echo "$as_me:$LINENO: checking for $ac_word" >&5
4163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4164if test "${ac_cv_prog_STRIP+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4166else
4167 if test -n "$STRIP"; then
4168 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 break 2
4180 fi
4181done
4182done
4183
4184fi
4185fi
4186STRIP=$ac_cv_prog_STRIP
4187if test -n "$STRIP"; then
4188 echo "$as_me:$LINENO: result: $STRIP" >&5
4189echo "${ECHO_T}$STRIP" >&6
4190else
4191 echo "$as_me:$LINENO: result: no" >&5
4192echo "${ECHO_T}no" >&6
4193fi
4194
4195fi
4196if test -z "$ac_cv_prog_STRIP"; then
4197 ac_ct_STRIP=$STRIP
4198 # Extract the first word of "strip", so it can be a program name with args.
4199set dummy strip; ac_word=$2
4200echo "$as_me:$LINENO: checking for $ac_word" >&5
4201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4202if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204else
4205 if test -n "$ac_ct_STRIP"; then
4206 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4207else
4208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH
4210do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4215 ac_cv_prog_ac_ct_STRIP="strip"
4216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219done
4220done
4221
4222 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4223fi
4224fi
4225ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4226if test -n "$ac_ct_STRIP"; then
4227 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4228echo "${ECHO_T}$ac_ct_STRIP" >&6
4229else
4230 echo "$as_me:$LINENO: result: no" >&5
4231echo "${ECHO_T}no" >&6
4232fi
4233
4234 STRIP=$ac_ct_STRIP
4235else
4236 STRIP="$ac_cv_prog_STRIP"
4237fi
4238
4239if test -n "$ac_tool_prefix"; then
4240 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4241set dummy ${ac_tool_prefix}windres; ac_word=$2
4242echo "$as_me:$LINENO: checking for $ac_word" >&5
4243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244if test "${ac_cv_prog_WINDRES+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247 if test -n "$WINDRES"; then
4248 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4249else
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4260 fi
4261done
4262done
4263
4264fi
4265fi
4266WINDRES=$ac_cv_prog_WINDRES
4267if test -n "$WINDRES"; then
4268 echo "$as_me:$LINENO: result: $WINDRES" >&5
4269echo "${ECHO_T}$WINDRES" >&6
4270else
4271 echo "$as_me:$LINENO: result: no" >&5
4272echo "${ECHO_T}no" >&6
4273fi
4274
4275fi
4276if test -z "$ac_cv_prog_WINDRES"; then
4277 ac_ct_WINDRES=$WINDRES
4278 # Extract the first word of "windres", so it can be a program name with args.
4279set dummy windres; ac_word=$2
4280echo "$as_me:$LINENO: checking for $ac_word" >&5
4281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284else
4285 if test -n "$ac_ct_WINDRES"; then
4286 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4287else
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_ac_ct_WINDRES="windres"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4298 fi
4299done
4300done
4301
4302 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4303fi
4304fi
4305ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4306if test -n "$ac_ct_WINDRES"; then
4307 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4308echo "${ECHO_T}$ac_ct_WINDRES" >&6
4309else
4310 echo "$as_me:$LINENO: result: no" >&5
4311echo "${ECHO_T}no" >&6
4312fi
4313
4314 WINDRES=$ac_ct_WINDRES
4315else
4316 WINDRES="$ac_cv_prog_WINDRES"
4317fi
4318
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004319# Find a good install program. We prefer a C program (faster),
4320# so one script is as good as another. But avoid the broken or
4321# incompatible versions:
4322# SysV /etc/install, /usr/sbin/install
4323# SunOS /usr/etc/install
4324# IRIX /sbin/install
4325# AIX /bin/install
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004326# AmigaOS /C/install, which installs bootblocks on floppy discs
Eric Pouech18ad24a2000-01-16 22:16:33 +00004327# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004328# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4329# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4330# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004331echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4332echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004333if test -z "$INSTALL"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004334if test "${ac_cv_path_install+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004336else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338for as_dir in $PATH
4339do
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 # Account for people who put trailing slashes in PATH elements.
4343case $as_dir/ in
4344 ./ | .// | /cC/* | \
4345 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4346 /usr/ucb/* ) ;;
4347 *)
4348 # OSF1 and SCO ODT 3.0 have their own names for install.
4349 # Don't use installbsd from OSF since it installs stuff as root
4350 # by default.
4351 for ac_prog in ginstall scoinst install; do
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4354 if test $ac_prog = install &&
4355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4356 # AIX install. It has an incompatible calling convention.
4357 :
4358 elif test $ac_prog = install &&
4359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4360 # program-specific install script used by HP pwplus--don't use.
4361 :
4362 else
4363 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4364 break 3
4365 fi
4366 fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004367 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004368 done
4369 ;;
4370esac
4371done
4372
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004373
4374fi
4375 if test "${ac_cv_path_install+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004376 INSTALL=$ac_cv_path_install
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004377 else
4378 # As a last resort, use the slow shell script. We don't cache a
4379 # path for INSTALL within a source directory, because that will
4380 # break other packages using the cache if that directory is
4381 # removed, or if the path is relative.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004382 INSTALL=$ac_install_sh
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004383 fi
4384fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004385echo "$as_me:$LINENO: result: $INSTALL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004386echo "${ECHO_T}$INSTALL" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004387
4388# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4389# It thinks the first close brace ends the variable substitution.
4390test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4391
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004392test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Eric Pouech18ad24a2000-01-16 22:16:33 +00004393
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004394test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4395
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004396echo "$as_me:$LINENO: checking whether ln -s works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004397echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4398LN_S=$as_ln_s
4399if test "$LN_S" = "ln -s"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004400 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004401echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004402else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004403 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004404echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004405fi
4406
Alexandre Julliarddf234a92002-05-22 02:10:39 +00004407echo "$as_me:$LINENO: checking whether ln works" >&5
4408echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4409rm -f conf$$ conf$$.file
4410echo >conf$$.file
4411if ln conf$$.file conf$$ 2>/dev/null; then
4412 LN=ln
4413
4414 echo "$as_me:$LINENO: result: yes" >&5
4415echo "${ECHO_T}yes" >&6
4416else
4417 LN="cp -p"
4418
4419 echo "$as_me:$LINENO: result: no, using $LN" >&5
4420echo "${ECHO_T}no, using $LN" >&6
4421fi
4422rm -f conf$$ conf$$.file
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004423# Extract the first word of "c2man", so it can be a program name with args.
4424set dummy c2man; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004425echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427if test "${ac_cv_prog_C2MAN+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004429else
4430 if test -n "$C2MAN"; then
4431 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4432else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_C2MAN="c2man"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004445done
4446
Mike McCormacke0df32f2000-08-11 21:15:21 +00004447 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004448fi
4449fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004450C2MAN=$ac_cv_prog_C2MAN
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004451if test -n "$C2MAN"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004452 echo "$as_me:$LINENO: result: $C2MAN" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004453echo "${ECHO_T}$C2MAN" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004454else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004455 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004456echo "${ECHO_T}no" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004457fi
4458
James Juranffe6b761999-06-12 08:21:57 +00004459# Extract the first word of "ldconfig", so it can be a program name with args.
4460set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004461echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4463if test "${ac_cv_path_LDCONFIG+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00004465else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004466 case $LDCONFIG in
4467 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004468 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4469 ;;
4470 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004472for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4481 fi
4482done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004483done
4484
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004485 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004486 ;;
4487esac
4488fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004489LDCONFIG=$ac_cv_path_LDCONFIG
4490
James Juranffe6b761999-06-12 08:21:57 +00004491if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004492 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004493echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00004494else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004495 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004496echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00004497fi
4498
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004499
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004500for ac_prog in lclint lint
4501do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004502 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004503set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004504echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4506if test "${ac_cv_prog_LINT+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004508else
4509 if test -n "$LINT"; then
4510 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4511else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513for as_dir in $PATH
4514do
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4519 ac_cv_prog_LINT="$ac_prog"
4520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4522 fi
4523done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004524done
4525
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004526fi
4527fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004528LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004529if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004530 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004531echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004532else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004533 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004534echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004535fi
4536
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004537 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004538done
4539
4540if test "$LINT" = "lint"
4541then
4542 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4543 fi
4544
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004545
4546
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004547
4548
4549echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004550echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4551if test "${ac_cv_lib_m_sqrt+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00004553else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004554 ac_check_lib_save_LIBS=$LIBS
Howard Abrams13277481999-07-10 13:16:29 +00004555LIBS="-lm $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004556cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004557#line $LINENO "configure"
Howard Abrams13277481999-07-10 13:16:29 +00004558#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004559
Howard Abrams13277481999-07-10 13:16:29 +00004560/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004561#ifdef __cplusplus
4562extern "C"
4563#endif
Howard Abrams13277481999-07-10 13:16:29 +00004564/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004565 builtin and then its argument prototype would still apply. */
4566char sqrt ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004567#ifdef F77_DUMMY_MAIN
4568# ifdef __cplusplus
4569 extern "C"
4570# endif
4571 int F77_DUMMY_MAIN() { return 1; }
4572#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004573int
4574main ()
4575{
4576sqrt ();
4577 ;
4578 return 0;
4579}
4580_ACEOF
4581rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004583 (eval $ac_link) 2>&5
4584 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004586 (exit $ac_status); } &&
4587 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004589 (eval $ac_try) 2>&5
4590 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004592 (exit $ac_status); }; }; then
4593 ac_cv_lib_m_sqrt=yes
Howard Abrams13277481999-07-10 13:16:29 +00004594else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004595 echo "$as_me: failed program was:" >&5
4596cat conftest.$ac_ext >&5
4597ac_cv_lib_m_sqrt=no
Howard Abrams13277481999-07-10 13:16:29 +00004598fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004599rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4600LIBS=$ac_check_lib_save_LIBS
Howard Abrams13277481999-07-10 13:16:29 +00004601fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004602echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004603echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4604if test $ac_cv_lib_m_sqrt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004605 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004606#define HAVE_LIBM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004607_ACEOF
Howard Abrams13277481999-07-10 13:16:29 +00004608
4609 LIBS="-lm $LIBS"
4610
Howard Abrams13277481999-07-10 13:16:29 +00004611fi
4612
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004613
4614echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004615echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4616if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00004618else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004619 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00004620LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004621cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004622#line $LINENO "configure"
Alexandre Julliard902da691995-11-05 14:39:02 +00004623#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004624
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004625/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004626#ifdef __cplusplus
4627extern "C"
4628#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004629/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004630 builtin and then its argument prototype would still apply. */
4631char i386_set_ldt ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004632#ifdef F77_DUMMY_MAIN
4633# ifdef __cplusplus
4634 extern "C"
4635# endif
4636 int F77_DUMMY_MAIN() { return 1; }
4637#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004638int
4639main ()
4640{
4641i386_set_ldt ();
4642 ;
4643 return 0;
4644}
4645_ACEOF
4646rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004648 (eval $ac_link) 2>&5
4649 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004651 (exit $ac_status); } &&
4652 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004654 (eval $ac_try) 2>&5
4655 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004657 (exit $ac_status); }; }; then
4658 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00004659else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004660 echo "$as_me: failed program was:" >&5
4661cat conftest.$ac_ext >&5
4662ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00004663fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4665LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00004666fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004667echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004668echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4669if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004670 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004671#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004672_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00004673
4674 LIBS="-li386 $LIBS"
4675
Alexandre Julliard02e90081998-01-04 17:49:09 +00004676fi
4677
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004678
4679echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004680echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4681if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00004683else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004684 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00004685LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004686cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004687#line $LINENO "configure"
Todd Vierlingecc76691998-12-15 17:49:02 +00004688#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004689
Todd Vierlingecc76691998-12-15 17:49:02 +00004690/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004691#ifdef __cplusplus
4692extern "C"
4693#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00004694/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004695 builtin and then its argument prototype would still apply. */
4696char _oss_ioctl ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004697#ifdef F77_DUMMY_MAIN
4698# ifdef __cplusplus
4699 extern "C"
4700# endif
4701 int F77_DUMMY_MAIN() { return 1; }
4702#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004703int
4704main ()
4705{
4706_oss_ioctl ();
4707 ;
4708 return 0;
4709}
4710_ACEOF
4711rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004713 (eval $ac_link) 2>&5
4714 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004716 (exit $ac_status); } &&
4717 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004719 (eval $ac_try) 2>&5
4720 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004722 (exit $ac_status); }; }; then
4723 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00004724else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004725 echo "$as_me: failed program was:" >&5
4726cat conftest.$ac_ext >&5
4727ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00004728fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004729rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4730LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00004731fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004732echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004733echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4734if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004735 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004736#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004737_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00004738
4739 LIBS="-lossaudio $LIBS"
4740
Todd Vierlingecc76691998-12-15 17:49:02 +00004741fi
4742
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004743
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004744for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00004745do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004747echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4749if eval "test \"\${$as_ac_var+set}\" = set"; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00004751else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004752 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004753#line $LINENO "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00004754#include "confdefs.h"
4755/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004756 which can conflict with char $ac_func (); below. */
Patrik Stridvallea584721998-11-01 16:22:07 +00004757#include <assert.h>
4758/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004759#ifdef __cplusplus
4760extern "C"
4761#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00004762/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004763 builtin and then its argument prototype would still apply. */
4764char $ac_func ();
4765char (*f) ();
Patrik Stridvallea584721998-11-01 16:22:07 +00004766
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004767#ifdef F77_DUMMY_MAIN
4768# ifdef __cplusplus
4769 extern "C"
4770# endif
4771 int F77_DUMMY_MAIN() { return 1; }
4772#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004773int
4774main ()
4775{
Patrik Stridvallea584721998-11-01 16:22:07 +00004776/* The GNU C library defines this for functions which it implements
4777 to always fail with ENOSYS. Some functions are actually named
4778 something starting with __ and the normal name is an alias. */
4779#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4780choke me
4781#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004782f = $ac_func;
Patrik Stridvallea584721998-11-01 16:22:07 +00004783#endif
4784
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004785 ;
4786 return 0;
4787}
4788_ACEOF
4789rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004791 (eval $ac_link) 2>&5
4792 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004794 (exit $ac_status); } &&
4795 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004797 (eval $ac_try) 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); }; }; then
4801 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004802else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004803 echo "$as_me: failed program was:" >&5
4804cat conftest.$ac_ext >&5
4805eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004806fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004808fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004810echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4811if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004812 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004813#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004814_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004815
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004816else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004817
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004818echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004819echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4820if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004822else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004823 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004824LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004825cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004826#line $LINENO "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004827#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004828
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004829/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004830#ifdef __cplusplus
4831extern "C"
4832#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004833/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004834 builtin and then its argument prototype would still apply. */
4835char iswalnum ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004836#ifdef F77_DUMMY_MAIN
4837# ifdef __cplusplus
4838 extern "C"
4839# endif
4840 int F77_DUMMY_MAIN() { return 1; }
4841#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004842int
4843main ()
4844{
4845iswalnum ();
4846 ;
4847 return 0;
4848}
4849_ACEOF
4850rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004852 (eval $ac_link) 2>&5
4853 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004855 (exit $ac_status); } &&
4856 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004858 (eval $ac_try) 2>&5
4859 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004861 (exit $ac_status); }; }; then
4862 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004863else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004864 echo "$as_me: failed program was:" >&5
4865cat conftest.$ac_ext >&5
4866ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004867fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004868rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4869LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004870fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004871echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004872echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4873if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004874 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004875#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004876_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004877
4878 LIBS="-lw $LIBS"
4879
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004880fi
4881
4882fi
4883done
4884
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004885
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004886for ac_func in gethostbyname
4887do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004888as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004889echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004890echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4891if eval "test \"\${$as_ac_var+set}\" = set"; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004893else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004894 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004895#line $LINENO "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004896#include "confdefs.h"
4897/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004898 which can conflict with char $ac_func (); below. */
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004899#include <assert.h>
4900/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004901#ifdef __cplusplus
4902extern "C"
4903#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004904/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004905 builtin and then its argument prototype would still apply. */
4906char $ac_func ();
4907char (*f) ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004908
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004909#ifdef F77_DUMMY_MAIN
4910# ifdef __cplusplus
4911 extern "C"
4912# endif
4913 int F77_DUMMY_MAIN() { return 1; }
4914#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004915int
4916main ()
4917{
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004918/* The GNU C library defines this for functions which it implements
4919 to always fail with ENOSYS. Some functions are actually named
4920 something starting with __ and the normal name is an alias. */
4921#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4922choke me
4923#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004924f = $ac_func;
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004925#endif
4926
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004927 ;
4928 return 0;
4929}
4930_ACEOF
4931rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004933 (eval $ac_link) 2>&5
4934 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004936 (exit $ac_status); } &&
4937 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004939 (eval $ac_try) 2>&5
4940 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004942 (exit $ac_status); }; }; then
4943 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00004944else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004945 echo "$as_me: failed program was:" >&5
4946cat conftest.$ac_ext >&5
4947eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00004948fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00004950fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004952echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4953if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004954 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004955#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004956_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00004957
Patrik Stridvallea584721998-11-01 16:22:07 +00004958else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004959
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004960echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004961echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4962if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00004964else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004965 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004966LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004967cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004968#line $LINENO "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00004969#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004970
Patrik Stridvallea584721998-11-01 16:22:07 +00004971/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004972#ifdef __cplusplus
4973extern "C"
4974#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00004975/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004976 builtin and then its argument prototype would still apply. */
4977char gethostbyname ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004978#ifdef F77_DUMMY_MAIN
4979# ifdef __cplusplus
4980 extern "C"
4981# endif
4982 int F77_DUMMY_MAIN() { return 1; }
4983#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004984int
4985main ()
4986{
4987gethostbyname ();
4988 ;
4989 return 0;
4990}
4991_ACEOF
4992rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004994 (eval $ac_link) 2>&5
4995 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004997 (exit $ac_status); } &&
4998 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005000 (eval $ac_try) 2>&5
5001 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005003 (exit $ac_status); }; }; then
5004 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00005005else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005006 echo "$as_me: failed program was:" >&5
5007cat conftest.$ac_ext >&5
5008ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00005009fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005010rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5011LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00005012fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005013echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005014echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5015if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005016 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005017#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005018_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00005019
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005020 LIBS="-lnsl $LIBS"
5021
Ron Recorde977d6c1999-09-05 12:32:05 +00005022fi
5023
Patrik Stridvallea584721998-11-01 16:22:07 +00005024fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005025done
5026
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005027
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005028for ac_func in connect
5029do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005031echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5033if eval "test \"\${$as_ac_var+set}\" = set"; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005035else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005036 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005037#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005038#include "confdefs.h"
5039/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005040 which can conflict with char $ac_func (); below. */
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005041#include <assert.h>
5042/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005043#ifdef __cplusplus
5044extern "C"
5045#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005046/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005047 builtin and then its argument prototype would still apply. */
5048char $ac_func ();
5049char (*f) ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005050
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005051#ifdef F77_DUMMY_MAIN
5052# ifdef __cplusplus
5053 extern "C"
5054# endif
5055 int F77_DUMMY_MAIN() { return 1; }
5056#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005057int
5058main ()
5059{
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005060/* The GNU C library defines this for functions which it implements
5061 to always fail with ENOSYS. Some functions are actually named
5062 something starting with __ and the normal name is an alias. */
5063#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5064choke me
5065#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005066f = $ac_func;
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005067#endif
5068
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005069 ;
5070 return 0;
5071}
5072_ACEOF
5073rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005075 (eval $ac_link) 2>&5
5076 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005078 (exit $ac_status); } &&
5079 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005081 (eval $ac_try) 2>&5
5082 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005084 (exit $ac_status); }; }; then
5085 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005086else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005087 echo "$as_me: failed program was:" >&5
5088cat conftest.$ac_ext >&5
5089eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005090fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005091rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005092fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005094echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5095if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005096 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005098_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005099
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005100else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005101
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005102echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005103echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5104if test "${ac_cv_lib_socket_connect+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005106else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005107 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005108LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005109cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005110#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005111#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005112
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005113/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005114#ifdef __cplusplus
5115extern "C"
5116#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005117/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005118 builtin and then its argument prototype would still apply. */
5119char connect ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005120#ifdef F77_DUMMY_MAIN
5121# ifdef __cplusplus
5122 extern "C"
5123# endif
5124 int F77_DUMMY_MAIN() { return 1; }
5125#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005126int
5127main ()
5128{
5129connect ();
5130 ;
5131 return 0;
5132}
5133_ACEOF
5134rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005136 (eval $ac_link) 2>&5
5137 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005139 (exit $ac_status); } &&
5140 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005142 (eval $ac_try) 2>&5
5143 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005145 (exit $ac_status); }; }; then
5146 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005147else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005148 echo "$as_me: failed program was:" >&5
5149cat conftest.$ac_ext >&5
5150ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005151fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005152rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5153LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005154fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005155echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005156echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5157if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005158 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005159#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005160_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005161
5162 LIBS="-lsocket $LIBS"
5163
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005164fi
5165
5166fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005167done
5168
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005169
Alexandre Julliardc5552742002-04-03 20:24:44 +00005170for ac_func in inet_aton
5171do
5172as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005173echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005174echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5175if eval "test \"\${$as_ac_var+set}\" = set"; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005179#line $LINENO "configure"
Alexandre Julliardc5552742002-04-03 20:24:44 +00005180#include "confdefs.h"
5181/* System header to define __stub macros and hopefully few prototypes,
5182 which can conflict with char $ac_func (); below. */
5183#include <assert.h>
5184/* Override any gcc2 internal prototype to avoid an error. */
5185#ifdef __cplusplus
5186extern "C"
5187#endif
5188/* We use char because int might match the return type of a gcc2
5189 builtin and then its argument prototype would still apply. */
5190char $ac_func ();
5191char (*f) ();
5192
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005193#ifdef F77_DUMMY_MAIN
5194# ifdef __cplusplus
5195 extern "C"
5196# endif
5197 int F77_DUMMY_MAIN() { return 1; }
5198#endif
Alexandre Julliardc5552742002-04-03 20:24:44 +00005199int
5200main ()
5201{
5202/* The GNU C library defines this for functions which it implements
5203 to always fail with ENOSYS. Some functions are actually named
5204 something starting with __ and the normal name is an alias. */
5205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5206choke me
5207#else
5208f = $ac_func;
5209#endif
5210
5211 ;
5212 return 0;
5213}
5214_ACEOF
5215rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005217 (eval $ac_link) 2>&5
5218 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005220 (exit $ac_status); } &&
5221 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005223 (eval $ac_try) 2>&5
5224 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005226 (exit $ac_status); }; }; then
5227 eval "$as_ac_var=yes"
5228else
5229 echo "$as_me: failed program was:" >&5
5230cat conftest.$ac_ext >&5
5231eval "$as_ac_var=no"
5232fi
5233rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5234fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005236echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5237if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005238 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005239#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005240_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005241
5242else
5243
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005244echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005245echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5246if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249 ac_check_lib_save_LIBS=$LIBS
5250LIBS="-lresolv $LIBS"
5251cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005252#line $LINENO "configure"
Francois Gouget3b943bc2002-04-01 21:05:15 +00005253#include "confdefs.h"
5254
5255/* Override any gcc2 internal prototype to avoid an error. */
5256#ifdef __cplusplus
5257extern "C"
5258#endif
5259/* We use char because int might match the return type of a gcc2
5260 builtin and then its argument prototype would still apply. */
5261char inet_aton ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005262#ifdef F77_DUMMY_MAIN
5263# ifdef __cplusplus
5264 extern "C"
5265# endif
5266 int F77_DUMMY_MAIN() { return 1; }
5267#endif
Francois Gouget3b943bc2002-04-01 21:05:15 +00005268int
5269main ()
5270{
5271inet_aton ();
5272 ;
5273 return 0;
5274}
5275_ACEOF
5276rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005278 (eval $ac_link) 2>&5
5279 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005281 (exit $ac_status); } &&
5282 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005284 (eval $ac_try) 2>&5
5285 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005287 (exit $ac_status); }; }; then
5288 ac_cv_lib_resolv_inet_aton=yes
5289else
5290 echo "$as_me: failed program was:" >&5
5291cat conftest.$ac_ext >&5
5292ac_cv_lib_resolv_inet_aton=no
5293fi
5294rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5295LIBS=$ac_check_lib_save_LIBS
5296fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005297echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005298echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5299if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005300 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005301#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005302_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005303
5304 LIBS="-lresolv $LIBS"
5305
5306fi
5307
Alexandre Julliardc5552742002-04-03 20:24:44 +00005308fi
5309done
5310
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005311
5312echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005313echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5314if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005316else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005317 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005318LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005319cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005320#line $LINENO "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005321#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005322
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005323/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005324#ifdef __cplusplus
5325extern "C"
5326#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005327/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005328 builtin and then its argument prototype would still apply. */
5329char _xpg4_setrunelocale ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005330#ifdef F77_DUMMY_MAIN
5331# ifdef __cplusplus
5332 extern "C"
5333# endif
5334 int F77_DUMMY_MAIN() { return 1; }
5335#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005336int
5337main ()
5338{
5339_xpg4_setrunelocale ();
5340 ;
5341 return 0;
5342}
5343_ACEOF
5344rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005346 (eval $ac_link) 2>&5
5347 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005349 (exit $ac_status); } &&
5350 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005352 (eval $ac_try) 2>&5
5353 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005355 (exit $ac_status); }; }; then
5356 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005357else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005358 echo "$as_me: failed program was:" >&5
5359cat conftest.$ac_ext >&5
5360ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005361fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005362rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5363LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005364fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005365echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005366echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5367if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005368 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005369#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005370_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005371
5372 LIBS="-lxpg4 $LIBS"
5373
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005374fi
5375
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005376
5377echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005378echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5379if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005381else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005382 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005383LIBS="-lmmap $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005384cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005385#line $LINENO "configure"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005386#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005387
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005388/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005389#ifdef __cplusplus
5390extern "C"
5391#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005392/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005393 builtin and then its argument prototype would still apply. */
5394char mmap ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005395#ifdef F77_DUMMY_MAIN
5396# ifdef __cplusplus
5397 extern "C"
5398# endif
5399 int F77_DUMMY_MAIN() { return 1; }
5400#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005401int
5402main ()
5403{
5404mmap ();
5405 ;
5406 return 0;
5407}
5408_ACEOF
5409rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005411 (eval $ac_link) 2>&5
5412 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005414 (exit $ac_status); } &&
5415 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005417 (eval $ac_try) 2>&5
5418 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005420 (exit $ac_status); }; }; then
5421 ac_cv_lib_mmap_mmap=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005422else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005423 echo "$as_me: failed program was:" >&5
5424cat conftest.$ac_ext >&5
5425ac_cv_lib_mmap_mmap=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005426fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005427rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5428LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005429fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005430echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005431echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5432if test $ac_cv_lib_mmap_mmap = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005433 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005434#define HAVE_LIBMMAP 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005435_ACEOF
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005436
5437 LIBS="-lmmap $LIBS"
5438
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005439fi
5440
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005441
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00005442JPEGLIB=""
Alexandre Julliard562089b2001-12-31 22:28:35 +00005443
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005444echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5445echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5446if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005447 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005448else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005449 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005450#line $LINENO "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00005451#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005452#include <stdlib.h>
5453#include <stdarg.h>
5454#include <string.h>
5455#include <float.h>
5456
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005457_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5460 ac_status=$?
5461 egrep -v '^ *\+' conftest.er1 >conftest.err
5462 rm -f conftest.er1
5463 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005465 (exit $ac_status); } >/dev/null; then
5466 if test -s conftest.err; then
5467 ac_cpp_err=$ac_c_preproc_warn_flag
5468 else
5469 ac_cpp_err=
5470 fi
Marcus Meissner2d7be871999-12-05 23:06:40 +00005471else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005472 ac_cpp_err=yes
5473fi
5474if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005475 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005476else
5477 echo "$as_me: failed program was:" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00005478 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005479 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005480fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005481rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005482
5483if test $ac_cv_header_stdc = yes; then
5484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5485 cat >conftest.$ac_ext <<_ACEOF
5486#line $LINENO "configure"
5487#include "confdefs.h"
5488#include <string.h>
5489
5490_ACEOF
5491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5492 egrep "memchr" >/dev/null 2>&1; then
5493 :
5494else
5495 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005496fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005497rm -f conftest*
5498
5499fi
5500
5501if test $ac_cv_header_stdc = yes; then
5502 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5503 cat >conftest.$ac_ext <<_ACEOF
5504#line $LINENO "configure"
5505#include "confdefs.h"
5506#include <stdlib.h>
5507
5508_ACEOF
5509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5510 egrep "free" >/dev/null 2>&1; then
5511 :
5512else
5513 ac_cv_header_stdc=no
5514fi
5515rm -f conftest*
5516
5517fi
5518
5519if test $ac_cv_header_stdc = yes; then
5520 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5521 if test "$cross_compiling" = yes; then
5522 :
5523else
5524 cat >conftest.$ac_ext <<_ACEOF
5525#line $LINENO "configure"
5526#include "confdefs.h"
5527#include <ctype.h>
5528#if ((' ' & 0x0FF) == 0x020)
5529# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5530# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5531#else
5532# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5533 || ('j' <= (c) && (c) <= 'r') \
5534 || ('s' <= (c) && (c) <= 'z'))
5535# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5536#endif
5537
5538#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5539int
5540main ()
5541{
5542 int i;
5543 for (i = 0; i < 256; i++)
5544 if (XOR (islower (i), ISLOWER (i))
5545 || toupper (i) != TOUPPER (i))
5546 exit(2);
5547 exit (0);
5548}
5549_ACEOF
5550rm -f conftest$ac_exeext
5551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5552 (eval $ac_link) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 (eval $ac_try) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 :
5562else
5563 echo "$as_me: program exited with status $ac_status" >&5
5564echo "$as_me: failed program was:" >&5
5565cat conftest.$ac_ext >&5
5566( exit $ac_status )
5567ac_cv_header_stdc=no
5568fi
5569rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5570fi
5571fi
5572fi
5573echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5574echo "${ECHO_T}$ac_cv_header_stdc" >&6
5575if test $ac_cv_header_stdc = yes; then
5576
5577cat >>confdefs.h <<\_ACEOF
5578#define STDC_HEADERS 1
5579_ACEOF
5580
5581fi
5582
5583# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5594 inttypes.h stdint.h unistd.h
5595do
5596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597echo "$as_me:$LINENO: checking for $ac_header" >&5
5598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5599if eval "test \"\${$as_ac_Header+set}\" = set"; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602 cat >conftest.$ac_ext <<_ACEOF
5603#line $LINENO "configure"
5604#include "confdefs.h"
5605$ac_includes_default
5606
5607#include <$ac_header>
5608_ACEOF
5609rm -f conftest.$ac_objext
5610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>&5
5612 ac_status=$?
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } &&
5615 { ac_try='test -s conftest.$ac_objext'
5616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617 (eval $ac_try) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); }; }; then
5621 eval "$as_ac_Header=yes"
5622else
5623 echo "$as_me: failed program was:" >&5
5624cat conftest.$ac_ext >&5
5625eval "$as_ac_Header=no"
5626fi
5627rm -f conftest.$ac_objext conftest.$ac_ext
5628fi
5629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005630echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5631if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005632 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005634_ACEOF
5635
5636fi
5637
5638done
5639
5640
5641
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005642for ac_header in jpeglib.h
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005643do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005645if eval "test \"\${$as_ac_Header+set}\" = set"; then
5646 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5648if eval "test \"\${$as_ac_Header+set}\" = set"; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005650fi
5651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5652echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005653else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005654 # Is the header compilable?
5655echo "$as_me:$LINENO: checking $ac_header usability" >&5
5656echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5657cat >conftest.$ac_ext <<_ACEOF
5658#line $LINENO "configure"
5659#include "confdefs.h"
5660$ac_includes_default
5661#include <$ac_header>
5662_ACEOF
5663rm -f conftest.$ac_objext
5664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } &&
5669 { ac_try='test -s conftest.$ac_objext'
5670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 (eval $ac_try) 2>&5
5672 ac_status=$?
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); }; }; then
5675 ac_header_compiler=yes
5676else
5677 echo "$as_me: failed program was:" >&5
5678cat conftest.$ac_ext >&5
5679ac_header_compiler=no
5680fi
5681rm -f conftest.$ac_objext conftest.$ac_ext
5682echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5683echo "${ECHO_T}$ac_header_compiler" >&6
5684
5685# Is the header present?
5686echo "$as_me:$LINENO: checking $ac_header presence" >&5
5687echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5688cat >conftest.$ac_ext <<_ACEOF
5689#line $LINENO "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005690#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005691#include <$ac_header>
5692_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5695 ac_status=$?
5696 egrep -v '^ *\+' conftest.er1 >conftest.err
5697 rm -f conftest.er1
5698 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005700 (exit $ac_status); } >/dev/null; then
5701 if test -s conftest.err; then
5702 ac_cpp_err=$ac_c_preproc_warn_flag
5703 else
5704 ac_cpp_err=
5705 fi
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005706else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005707 ac_cpp_err=yes
5708fi
5709if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005710 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005711else
5712 echo "$as_me: failed program was:" >&5
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005713 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005714 ac_header_preproc=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005715fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005716rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005717echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5718echo "${ECHO_T}$ac_header_preproc" >&6
5719
5720# So? What about this header?
5721case $ac_header_compiler:$ac_header_preproc in
5722 yes:no )
5723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5724echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5726echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5727 no:yes )
5728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5729echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5731echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5734esac
5735echo "$as_me:$LINENO: checking for $ac_header" >&5
5736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5737if eval "test \"\${$as_ac_Header+set}\" = set"; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740 eval "$as_ac_Header=$ac_header_preproc"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005741fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005744
5745fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005746if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005747 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005749_ACEOF
5750 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005751echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5752if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005754else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005755 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005756LIBS="-ljpeg $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005757cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005758#line $LINENO "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005759#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005760
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005761/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005762#ifdef __cplusplus
5763extern "C"
5764#endif
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005765/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005766 builtin and then its argument prototype would still apply. */
5767char jpeg_start_decompress ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005768#ifdef F77_DUMMY_MAIN
5769# ifdef __cplusplus
5770 extern "C"
5771# endif
5772 int F77_DUMMY_MAIN() { return 1; }
5773#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005774int
5775main ()
5776{
5777jpeg_start_decompress ();
5778 ;
5779 return 0;
5780}
5781_ACEOF
5782rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005784 (eval $ac_link) 2>&5
5785 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005787 (exit $ac_status); } &&
5788 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005790 (eval $ac_try) 2>&5
5791 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005793 (exit $ac_status); }; }; then
5794 ac_cv_lib_jpeg_jpeg_start_decompress=yes
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005795else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005796 echo "$as_me: failed program was:" >&5
5797cat conftest.$ac_ext >&5
5798ac_cv_lib_jpeg_jpeg_start_decompress=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005799fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5801LIBS=$ac_check_lib_save_LIBS
5802fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005803echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005804echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5805if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005806
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005807cat >>confdefs.h <<\_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005808#define HAVE_LIBJPEG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005809_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005810
5811 JPEGLIB="-ljpeg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005812
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005813fi
5814
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005815
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005816fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005817
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005818done
5819
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005820
5821
5822
5823
Patrik Stridvall2941a212000-04-25 20:34:22 +00005824XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00005825
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00005826OPENGLFILES=""
5827
Marcus Meissnerb63ab442001-06-08 19:02:57 +00005828GLU32FILES=""
Patrik Stridvallea584721998-11-01 16:22:07 +00005829if test "$have_x" = "yes"
5830then
Patrik Stridvall24110281999-02-04 10:09:54 +00005831 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00005832 ac_save_CPPFLAGS="$CPPFLAGS"
5833 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00005834
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005835
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005836for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005837do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005839if eval "test \"\${$as_ac_Header+set}\" = set"; then
5840 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5842if eval "test \"\${$as_ac_Header+set}\" = set"; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005844fi
5845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005847else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005848 # Is the header compilable?
5849echo "$as_me:$LINENO: checking $ac_header usability" >&5
5850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5851cat >conftest.$ac_ext <<_ACEOF
5852#line $LINENO "configure"
5853#include "confdefs.h"
5854$ac_includes_default
5855#include <$ac_header>
5856_ACEOF
5857rm -f conftest.$ac_objext
5858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5859 (eval $ac_compile) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -s conftest.$ac_objext'
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 ac_header_compiler=yes
5870else
5871 echo "$as_me: failed program was:" >&5
5872cat conftest.$ac_ext >&5
5873ac_header_compiler=no
5874fi
5875rm -f conftest.$ac_objext conftest.$ac_ext
5876echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5877echo "${ECHO_T}$ac_header_compiler" >&6
5878
5879# Is the header present?
5880echo "$as_me:$LINENO: checking $ac_header presence" >&5
5881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5882cat >conftest.$ac_ext <<_ACEOF
5883#line $LINENO "configure"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005884#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005885#include <$ac_header>
5886_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5889 ac_status=$?
5890 egrep -v '^ *\+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005894 (exit $ac_status); } >/dev/null; then
5895 if test -s conftest.err; then
5896 ac_cpp_err=$ac_c_preproc_warn_flag
5897 else
5898 ac_cpp_err=
5899 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005900else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005901 ac_cpp_err=yes
5902fi
5903if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005904 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005905else
5906 echo "$as_me: failed program was:" >&5
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005907 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005908 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005909fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005910rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005911echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5912echo "${ECHO_T}$ac_header_preproc" >&6
5913
5914# So? What about this header?
5915case $ac_header_compiler:$ac_header_preproc in
5916 yes:no )
5917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5921 no:yes )
5922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5923echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5925echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5928esac
5929echo "$as_me:$LINENO: checking for $ac_header" >&5
5930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5931if eval "test \"\${$as_ac_Header+set}\" = set"; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933else
5934 eval "$as_ac_Header=$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005935fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005938
5939fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005940if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005941 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005943_ACEOF
5944
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005945
5946for ac_header in X11/XKBlib.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005947do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Gregg Mattinson044b5c42002-07-19 03:16:51 +00005949echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5951if eval "test \"\${$as_ac_Header+set}\" = set"; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005953else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00005954 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005955#line $LINENO "configure"
5956#include "confdefs.h"
Gregg Mattinson044b5c42002-07-19 03:16:51 +00005957#include <X11/Xlib.h>
5958
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005959#include <$ac_header>
5960_ACEOF
5961rm -f conftest.$ac_objext
5962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963 (eval $ac_compile) 2>&5
5964 ac_status=$?
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -s conftest.$ac_objext'
5968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5969 (eval $ac_try) 2>&5
5970 ac_status=$?
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00005973 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005974else
5975 echo "$as_me: failed program was:" >&5
5976cat conftest.$ac_ext >&5
Gregg Mattinson044b5c42002-07-19 03:16:51 +00005977eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005978fi
5979rm -f conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005980fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5983if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005984 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005986_ACEOF
5987 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005988echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
5989if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005991else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005992 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00005993LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005994cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005995#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00005996#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005997
Patrik Stridvall24110281999-02-04 10:09:54 +00005998/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005999#ifdef __cplusplus
6000extern "C"
6001#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006002/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006003 builtin and then its argument prototype would still apply. */
6004char XkbQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006005#ifdef F77_DUMMY_MAIN
6006# ifdef __cplusplus
6007 extern "C"
6008# endif
6009 int F77_DUMMY_MAIN() { return 1; }
6010#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006011int
6012main ()
6013{
6014XkbQueryExtension ();
6015 ;
6016 return 0;
6017}
6018_ACEOF
6019rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006021 (eval $ac_link) 2>&5
6022 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006024 (exit $ac_status); } &&
6025 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006027 (eval $ac_try) 2>&5
6028 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006030 (exit $ac_status); }; }; then
6031 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006032else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006033 echo "$as_me: failed program was:" >&5
6034cat conftest.$ac_ext >&5
6035ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006036fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006037rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6038LIBS=$ac_check_lib_save_LIBS
6039fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006040echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006041echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6042if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006043
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006044cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006045#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006046_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006047
Patrik Stridvall24110281999-02-04 10:09:54 +00006048fi
6049
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006050
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006051else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006052 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006053echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006054fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006055
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006056done
6057
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006058
6059
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006060for ac_header in X11/extensions/XShm.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006061do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006062as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006063echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6065if eval "test \"\${$as_ac_Header+set}\" = set"; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006067else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006068 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006069#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006070#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006071#include <X11/Xlib.h>
6072
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006073#include <$ac_header>
6074_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006075rm -f conftest.$ac_objext
6076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006078 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006087 eval "$as_ac_Header=yes"
6088else
6089 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006090cat conftest.$ac_ext >&5
6091eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006092fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006093rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006094fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6097if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006098 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006100_ACEOF
6101 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006102echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6103if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006105else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006106 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00006107LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006108cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006109#line $LINENO "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006110#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006111
Francois Jacques5b6879c2000-07-28 23:04:54 +00006112/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006113#ifdef __cplusplus
6114extern "C"
6115#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00006116/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006117 builtin and then its argument prototype would still apply. */
6118char XShmQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006119#ifdef F77_DUMMY_MAIN
6120# ifdef __cplusplus
6121 extern "C"
6122# endif
6123 int F77_DUMMY_MAIN() { return 1; }
6124#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006125int
6126main ()
6127{
6128XShmQueryExtension ();
6129 ;
6130 return 0;
6131}
6132_ACEOF
6133rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006135 (eval $ac_link) 2>&5
6136 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006138 (exit $ac_status); } &&
6139 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006141 (eval $ac_try) 2>&5
6142 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006144 (exit $ac_status); }; }; then
6145 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00006146else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006147 echo "$as_me: failed program was:" >&5
6148cat conftest.$ac_ext >&5
6149ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00006150fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006151rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6152LIBS=$ac_check_lib_save_LIBS
6153fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006154echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006155echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6156if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00006157
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006158cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006159#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006160_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00006161
Francois Jacques5b6879c2000-07-28 23:04:54 +00006162fi
6163
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006164
Francois Jacques5b6879c2000-07-28 23:04:54 +00006165else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006166 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006167echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
Francois Jacques5b6879c2000-07-28 23:04:54 +00006168fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006169
Francois Jacques5b6879c2000-07-28 23:04:54 +00006170done
6171
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006172
6173
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006174for ac_header in X11/Xutil.h
6175do
6176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6177echo "$as_me:$LINENO: checking for $ac_header" >&5
6178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6179if eval "test \"\${$as_ac_Header+set}\" = set"; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6181else
6182 cat >conftest.$ac_ext <<_ACEOF
6183#line $LINENO "configure"
6184#include "confdefs.h"
6185#include <X11/Xlib.h>
6186
6187#include <$ac_header>
6188_ACEOF
6189rm -f conftest.$ac_objext
6190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 eval "$as_ac_Header=yes"
6202else
6203 echo "$as_me: failed program was:" >&5
6204cat conftest.$ac_ext >&5
6205eval "$as_ac_Header=no"
6206fi
6207rm -f conftest.$ac_objext conftest.$ac_ext
6208fi
6209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6211if test `eval echo '${'$as_ac_Header'}'` = yes; then
6212 cat >>confdefs.h <<_ACEOF
6213#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6214_ACEOF
6215
6216fi
6217
6218done
6219
6220
6221
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006222for ac_header in X11/extensions/shape.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00006223do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006225echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6227if eval "test \"\${$as_ac_Header+set}\" = set"; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006229else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006230 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006231#line $LINENO "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006232#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006233#include <X11/Xlib.h>
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006234 #ifdef HAVE_X11_XUTIL_H
6235 # include <X11/Xutil.h>
6236 #endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006237
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006238#include <$ac_header>
6239_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006240rm -f conftest.$ac_objext
6241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6242 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006243 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006252 eval "$as_ac_Header=yes"
6253else
6254 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006255cat conftest.$ac_ext >&5
6256eval "$as_ac_Header=no"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006257fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006258rm -f conftest.$ac_objext conftest.$ac_ext
Francois Jacques5b6879c2000-07-28 23:04:54 +00006259fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6262if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006263 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006265_ACEOF
6266 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006267echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6268if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00006270else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006271 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00006272LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006273cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006274#line $LINENO "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006275#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006276
Ove Kaavenc90fb252001-01-02 22:39:14 +00006277/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006278#ifdef __cplusplus
6279extern "C"
6280#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00006281/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006282 builtin and then its argument prototype would still apply. */
6283char XShapeQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006284#ifdef F77_DUMMY_MAIN
6285# ifdef __cplusplus
6286 extern "C"
6287# endif
6288 int F77_DUMMY_MAIN() { return 1; }
6289#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006290int
6291main ()
6292{
6293XShapeQueryExtension ();
6294 ;
6295 return 0;
6296}
6297_ACEOF
6298rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006300 (eval $ac_link) 2>&5
6301 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006303 (exit $ac_status); } &&
6304 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006306 (eval $ac_try) 2>&5
6307 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006309 (exit $ac_status); }; }; then
6310 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00006311else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006312 echo "$as_me: failed program was:" >&5
6313cat conftest.$ac_ext >&5
6314ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00006315fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6317LIBS=$ac_check_lib_save_LIBS
6318fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006319echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006320echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6321if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00006322
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006323cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006324#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006325_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006326
Ove Kaavenc90fb252001-01-02 22:39:14 +00006327fi
6328
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006329
Ove Kaavenc90fb252001-01-02 22:39:14 +00006330else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006331 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006332echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
Ove Kaavenc90fb252001-01-02 22:39:14 +00006333fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006334
Ove Kaavenc90fb252001-01-02 22:39:14 +00006335done
6336
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006337
6338
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006339for ac_header in X11/extensions/xf86dga.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00006340do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006342echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6344if eval "test \"\${$as_ac_Header+set}\" = set"; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00006346else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006347 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006348#line $LINENO "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006349#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006350#include <X11/Xlib.h>
6351
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006352#include <$ac_header>
6353_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006354rm -f conftest.$ac_objext
6355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006357 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try='test -s conftest.$ac_objext'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 (eval $ac_try) 2>&5
6363 ac_status=$?
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006366 eval "$as_ac_Header=yes"
6367else
6368 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006369cat conftest.$ac_ext >&5
6370eval "$as_ac_Header=no"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006371fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006372rm -f conftest.$ac_objext conftest.$ac_ext
Ove Kaavenc90fb252001-01-02 22:39:14 +00006373fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6376if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006377 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006379_ACEOF
6380 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006381echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6382if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006384else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006385 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006386LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006387 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006388cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006389#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006390#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006391
Patrik Stridvall24110281999-02-04 10:09:54 +00006392/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006393#ifdef __cplusplus
6394extern "C"
6395#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006396/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006397 builtin and then its argument prototype would still apply. */
6398char XDGAQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006399#ifdef F77_DUMMY_MAIN
6400# ifdef __cplusplus
6401 extern "C"
6402# endif
6403 int F77_DUMMY_MAIN() { return 1; }
6404#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006405int
6406main ()
6407{
6408XDGAQueryExtension ();
6409 ;
6410 return 0;
6411}
6412_ACEOF
6413rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006415 (eval $ac_link) 2>&5
6416 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006418 (exit $ac_status); } &&
6419 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006421 (eval $ac_try) 2>&5
6422 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006424 (exit $ac_status); }; }; then
6425 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006426else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006427 echo "$as_me: failed program was:" >&5
6428cat conftest.$ac_ext >&5
6429ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006430fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006431rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6432LIBS=$ac_check_lib_save_LIBS
6433fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006434echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006435echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6436if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006437
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006438cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006439#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006440_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006441
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006442 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006443
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006444else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006445 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006446echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6447if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006449else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006450 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006451LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6452 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006453cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006454#line $LINENO "configure"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006455#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006456
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006457/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006458#ifdef __cplusplus
6459extern "C"
6460#endif
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006461/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006462 builtin and then its argument prototype would still apply. */
6463char XF86DGAQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006464#ifdef F77_DUMMY_MAIN
6465# ifdef __cplusplus
6466 extern "C"
6467# endif
6468 int F77_DUMMY_MAIN() { return 1; }
6469#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006470int
6471main ()
6472{
6473XF86DGAQueryExtension ();
6474 ;
6475 return 0;
6476}
6477_ACEOF
6478rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006480 (eval $ac_link) 2>&5
6481 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006483 (exit $ac_status); } &&
6484 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006486 (eval $ac_try) 2>&5
6487 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006489 (exit $ac_status); }; }; then
6490 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006491else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006492 echo "$as_me: failed program was:" >&5
6493cat conftest.$ac_ext >&5
6494ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006495fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006496rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6497LIBS=$ac_check_lib_save_LIBS
6498fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006499echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006500echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6501if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006502
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006503cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006504#define HAVE_LIBXXF86DGA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006505_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006506
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006507 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006508
Patrik Stridvall24110281999-02-04 10:09:54 +00006509fi
6510
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006511
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006512fi
Patrik Stridvall24110281999-02-04 10:09:54 +00006513
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006514
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006515else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006516 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006517echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006518fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006519
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006520done
6521
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006522
6523
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006524for ac_header in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006525do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006527echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6529if eval "test \"\${$as_ac_Header+set}\" = set"; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006531else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006532 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006533#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006534#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006535#include <X11/Xlib.h>
6536
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006537#include <$ac_header>
6538_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006539rm -f conftest.$ac_objext
6540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006542 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 (eval $ac_try) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006551 eval "$as_ac_Header=yes"
6552else
6553 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006554cat conftest.$ac_ext >&5
6555eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006556fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006557rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006558fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6561if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006562 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006564_ACEOF
6565 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006566echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6567if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006569else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006570 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006571LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6572 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006573cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006574#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006575#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006576
Patrik Stridvall24110281999-02-04 10:09:54 +00006577/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006578#ifdef __cplusplus
6579extern "C"
6580#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006581/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006582 builtin and then its argument prototype would still apply. */
6583char XF86VidModeQueryExtension ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006584#ifdef F77_DUMMY_MAIN
6585# ifdef __cplusplus
6586 extern "C"
6587# endif
6588 int F77_DUMMY_MAIN() { return 1; }
6589#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006590int
6591main ()
6592{
6593XF86VidModeQueryExtension ();
6594 ;
6595 return 0;
6596}
6597_ACEOF
6598rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006600 (eval $ac_link) 2>&5
6601 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006603 (exit $ac_status); } &&
6604 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006606 (eval $ac_try) 2>&5
6607 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006609 (exit $ac_status); }; }; then
6610 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006611else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006612 echo "$as_me: failed program was:" >&5
6613cat conftest.$ac_ext >&5
6614ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006615fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006616rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6617LIBS=$ac_check_lib_save_LIBS
6618fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006619echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006620echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6621if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006622
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006623cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006624#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006625_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006626
6627 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006628
Patrik Stridvall24110281999-02-04 10:09:54 +00006629fi
6630
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006631
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006632else
6633 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6634echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006635fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006636
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006637done
Lionel Ulmer5c085701999-02-28 19:48:53 +00006638
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006639
6640
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006641for ac_header in X11/extensions/Xvlib.h
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006642do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006644echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6646if eval "test \"\${$as_ac_Header+set}\" = set"; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006648else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006649 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006650#line $LINENO "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006651#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006652#include <X11/Xlib.h>
6653
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006654#include <$ac_header>
6655_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006656rm -f conftest.$ac_objext
6657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6658 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006659 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 (eval $ac_try) 2>&5
6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006668 eval "$as_ac_Header=yes"
6669else
6670 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006671cat conftest.$ac_ext >&5
6672eval "$as_ac_Header=no"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006673fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006674rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006675fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006677echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6678if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006679 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006680#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006681_ACEOF
6682 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006683echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6684if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006686else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006687 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006688LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6689 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006690cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006691#line $LINENO "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006692#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006693
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006694/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006695#ifdef __cplusplus
6696extern "C"
6697#endif
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006698/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006699 builtin and then its argument prototype would still apply. */
6700char XvShmCreateImage ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006701#ifdef F77_DUMMY_MAIN
6702# ifdef __cplusplus
6703 extern "C"
6704# endif
6705 int F77_DUMMY_MAIN() { return 1; }
6706#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006707int
6708main ()
6709{
6710XvShmCreateImage ();
6711 ;
6712 return 0;
6713}
6714_ACEOF
6715rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006717 (eval $ac_link) 2>&5
6718 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006720 (exit $ac_status); } &&
6721 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006723 (eval $ac_try) 2>&5
6724 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006726 (exit $ac_status); }; }; then
6727 ac_cv_lib_Xv_XvShmCreateImage=yes
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006728else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006729 echo "$as_me: failed program was:" >&5
6730cat conftest.$ac_ext >&5
6731ac_cv_lib_Xv_XvShmCreateImage=no
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006732fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6734LIBS=$ac_check_lib_save_LIBS
6735fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006736echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006737echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6738if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006739
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006740cat >>confdefs.h <<\_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006741#define HAVE_XVIDEO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006742_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006743
6744 X_PRE_LIBS="$X_PRE_LIBS -lXv"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006745
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006746fi
6747
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006748
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006749else
6750 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6751echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006752fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006753
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006754done
6755
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006756
6757
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006758for ac_header in X11/extensions/Xrender.h
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006759do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006761echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6763if eval "test \"\${$as_ac_Header+set}\" = set"; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006765else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006766 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006767#line $LINENO "configure"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006768#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006769#include <X11/Xlib.h>
6770
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006771#include <$ac_header>
6772_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006773rm -f conftest.$ac_objext
6774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6775 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006776 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } &&
6779 { ac_try='test -s conftest.$ac_objext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006785 eval "$as_ac_Header=yes"
6786else
6787 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006788cat conftest.$ac_ext >&5
6789eval "$as_ac_Header=no"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006790fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006791rm -f conftest.$ac_objext conftest.$ac_ext
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006792fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6795if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006796 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006797#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006798_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006799
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006800fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006801
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006802done
6803
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006804
6805
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006806fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006807
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006808done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006809
6810 if test "x$enable_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006811 then
Francois Gouget42dcd972002-01-29 17:52:28 +00006812 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00006813 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006814 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006815This prevents linking to OpenGL. Delete the file and restart configure." >&5
6816echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6817This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6818 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00006819 fi
6820
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006821
6822
6823for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006824do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006826if eval "test \"\${$as_ac_Header+set}\" = set"; then
6827 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6829if eval "test \"\${$as_ac_Header+set}\" = set"; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006831fi
6832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006834else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006835 # Is the header compilable?
6836echo "$as_me:$LINENO: checking $ac_header usability" >&5
6837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6838cat >conftest.$ac_ext <<_ACEOF
6839#line $LINENO "configure"
6840#include "confdefs.h"
6841$ac_includes_default
6842#include <$ac_header>
6843_ACEOF
6844rm -f conftest.$ac_objext
6845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6846 (eval $ac_compile) 2>&5
6847 ac_status=$?
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); } &&
6850 { ac_try='test -s conftest.$ac_objext'
6851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852 (eval $ac_try) 2>&5
6853 ac_status=$?
6854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855 (exit $ac_status); }; }; then
6856 ac_header_compiler=yes
6857else
6858 echo "$as_me: failed program was:" >&5
6859cat conftest.$ac_ext >&5
6860ac_header_compiler=no
6861fi
6862rm -f conftest.$ac_objext conftest.$ac_ext
6863echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6864echo "${ECHO_T}$ac_header_compiler" >&6
6865
6866# Is the header present?
6867echo "$as_me:$LINENO: checking $ac_header presence" >&5
6868echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6869cat >conftest.$ac_ext <<_ACEOF
6870#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006871#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006872#include <$ac_header>
6873_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6876 ac_status=$?
6877 egrep -v '^ *\+' conftest.er1 >conftest.err
6878 rm -f conftest.er1
6879 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006881 (exit $ac_status); } >/dev/null; then
6882 if test -s conftest.err; then
6883 ac_cpp_err=$ac_c_preproc_warn_flag
6884 else
6885 ac_cpp_err=
6886 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00006887else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006888 ac_cpp_err=yes
6889fi
6890if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006891 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006892else
6893 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00006894 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006895 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006896fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006897rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6899echo "${ECHO_T}$ac_header_preproc" >&6
6900
6901# So? What about this header?
6902case $ac_header_compiler:$ac_header_preproc in
6903 yes:no )
6904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6907echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6908 no:yes )
6909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6910echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6912echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6915esac
6916echo "$as_me:$LINENO: checking for $ac_header" >&5
6917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6918if eval "test \"\${$as_ac_Header+set}\" = set"; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6920else
6921 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00006922fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006925
Patrik Stridvall24110281999-02-04 10:09:54 +00006926fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006927if test `eval echo '${'$as_ac_Header'}'` = yes; then
6928 cat >>confdefs.h <<_ACEOF
6929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6930_ACEOF
6931
6932fi
6933
Patrik Stridvall24110281999-02-04 10:09:54 +00006934done
6935
Marcus Meissner22a969b2000-08-08 20:46:50 +00006936 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006937 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006938
6939for ac_header in GL/glext.h
6940do
6941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6942echo "$as_me:$LINENO: checking for $ac_header" >&5
6943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6944if eval "test \"\${$as_ac_Header+set}\" = set"; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6946else
6947 cat >conftest.$ac_ext <<_ACEOF
6948#line $LINENO "configure"
6949#include "confdefs.h"
6950#include <GL/glx.h>
6951
6952#include <$ac_header>
6953_ACEOF
6954rm -f conftest.$ac_objext
6955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6956 (eval $ac_compile) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -s conftest.$ac_objext'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 eval "$as_ac_Header=yes"
6967else
6968 echo "$as_me: failed program was:" >&5
6969cat conftest.$ac_ext >&5
6970eval "$as_ac_Header=no"
6971fi
6972rm -f conftest.$ac_objext conftest.$ac_ext
6973fi
6974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6975echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6976if test `eval echo '${'$as_ac_Header'}'` = yes; then
6977 cat >>confdefs.h <<_ACEOF
6978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6979_ACEOF
6980
6981fi
6982
6983done
6984
6985 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006986echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
6987if test "${wine_cv_opengl_version_OK+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00006989else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006990 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006991#line $LINENO "configure"
Lionel Ulmer5c085701999-02-28 19:48:53 +00006992#include "confdefs.h"
6993#include <GL/gl.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006994#ifdef F77_DUMMY_MAIN
6995# ifdef __cplusplus
6996 extern "C"
6997# endif
6998 int F77_DUMMY_MAIN() { return 1; }
6999#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007000int
7001main ()
7002{
Lionel Ulmer5c085701999-02-28 19:48:53 +00007003GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007004 ;
7005 return 0;
7006}
7007_ACEOF
7008rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007010 (eval $ac_compile) 2>&5
7011 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007013 (exit $ac_status); } &&
7014 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007016 (eval $ac_try) 2>&5
7017 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007019 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007020 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007021else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007022 echo "$as_me: failed program was:" >&5
7023cat conftest.$ac_ext >&5
7024wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007025
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007026fi
7027rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00007028
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007029fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007030echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007031echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7032
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007033 echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007034echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
7035if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007037else
7038 saved_libs=$LIBS
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007039 LIBS="$X_LIBS -lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007040 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007041#line $LINENO "configure"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007042#include "confdefs.h"
7043
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007044#ifdef F77_DUMMY_MAIN
7045# ifdef __cplusplus
7046 extern "C"
7047# endif
7048 int F77_DUMMY_MAIN() { return 1; }
7049#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007050int
7051main ()
7052{
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007053pthread_getspecific();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007054 ;
7055 return 0;
7056}
7057_ACEOF
7058rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007060 (eval $ac_link) 2>&5
7061 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007063 (exit $ac_status); } &&
7064 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007066 (eval $ac_try) 2>&5
7067 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007069 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007070 wine_cv_opengl_version_threadsafe="yes"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007071else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007072 echo "$as_me: failed program was:" >&5
7073cat conftest.$ac_ext >&5
7074wine_cv_opengl_version_threadsafe="no"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007075fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007076rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007077 LIBS=$saved_libs
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007078
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007079fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007080echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007081echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00007082
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007083 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 +00007084 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007085 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007086echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7087if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007089else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007090 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00007091LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007092cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007093#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00007094#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007095
Patrik Stridvall24110281999-02-04 10:09:54 +00007096/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007097#ifdef __cplusplus
7098extern "C"
7099#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007100/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007101 builtin and then its argument prototype would still apply. */
7102char glXCreateContext ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007103#ifdef F77_DUMMY_MAIN
7104# ifdef __cplusplus
7105 extern "C"
7106# endif
7107 int F77_DUMMY_MAIN() { return 1; }
7108#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007109int
7110main ()
7111{
7112glXCreateContext ();
7113 ;
7114 return 0;
7115}
7116_ACEOF
7117rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007119 (eval $ac_link) 2>&5
7120 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007122 (exit $ac_status); } &&
7123 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007125 (eval $ac_try) 2>&5
7126 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007128 (exit $ac_status); }; }; then
7129 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007130else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007131 echo "$as_me: failed program was:" >&5
7132cat conftest.$ac_ext >&5
7133ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007134fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007135rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7136LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00007137fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007138echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007139echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7140if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007141 X_PRE_LIBS="$X_PRE_LIBS -lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00007142
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007143fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007144
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007145
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007146 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00007147 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00007148 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007149
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007150cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007151#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007152_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007153
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007154
7155 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007156echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7157if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007159else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007160 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007161LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007162cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007163#line $LINENO "configure"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007164#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007165
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007166/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007167#ifdef __cplusplus
7168extern "C"
7169#endif
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007170/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007171 builtin and then its argument prototype would still apply. */
7172char glXGetProcAddressARB ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007173#ifdef F77_DUMMY_MAIN
7174# ifdef __cplusplus
7175 extern "C"
7176# endif
7177 int F77_DUMMY_MAIN() { return 1; }
7178#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007179int
7180main ()
7181{
7182glXGetProcAddressARB ();
7183 ;
7184 return 0;
7185}
7186_ACEOF
7187rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007189 (eval $ac_link) 2>&5
7190 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007192 (exit $ac_status); } &&
7193 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007195 (eval $ac_try) 2>&5
7196 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007198 (exit $ac_status); }; }; then
7199 ac_cv_lib_GL_glXGetProcAddressARB=yes
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007200else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007201 echo "$as_me: failed program was:" >&5
7202cat conftest.$ac_ext >&5
7203ac_cv_lib_GL_glXGetProcAddressARB=no
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007204fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007205rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7206LIBS=$ac_check_lib_save_LIBS
7207fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007208echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007209echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7210if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007211
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007212cat >>confdefs.h <<\_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007213#define HAVE_GLX_GETPROCADDRESS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007214_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007215
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007216fi
7217
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007218
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007219 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007220 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007221 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007222echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7223if test "${wine_cv_extension_prototypes+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer1434d872000-07-23 14:23:31 +00007225else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007226 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007227#line $LINENO "configure"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007228#include "confdefs.h"
7229#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007230 #ifdef HAVE_GL_GLEXT_H
7231 # include <GL/glext.h>
7232 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007233
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007234#ifdef F77_DUMMY_MAIN
7235# ifdef __cplusplus
7236 extern "C"
7237# endif
7238 int F77_DUMMY_MAIN() { return 1; }
7239#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007240int
7241main ()
7242{
Lionel Ulmer1434d872000-07-23 14:23:31 +00007243PFNGLCOLORTABLEEXTPROC test_proc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007244 ;
7245 return 0;
7246}
7247_ACEOF
7248rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007250 (eval $ac_compile) 2>&5
7251 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007253 (exit $ac_status); } &&
7254 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007256 (eval $ac_try) 2>&5
7257 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007259 (exit $ac_status); }; }; then
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007260 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007261else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007262 echo "$as_me: failed program was:" >&5
7263cat conftest.$ac_ext >&5
7264wine_cv_extension_prototypes="no"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007265
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007266fi
7267rm -f conftest.$ac_objext conftest.$ac_ext
7268
7269fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007270echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007271echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007272 if test "$wine_cv_extension_prototypes" = "yes"
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007273 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007274
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007275cat >>confdefs.h <<\_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007276#define HAVE_GLEXT_PROTOTYPES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007277_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007278
7279 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007280 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00007281
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007282 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007283 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007284echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7285if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007287else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007288 ac_check_lib_save_LIBS=$LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007289LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7290 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007291cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007292#line $LINENO "configure"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007293#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007294
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007295/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007296#ifdef __cplusplus
7297extern "C"
7298#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007299/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007300 builtin and then its argument prototype would still apply. */
7301char gluLookAt ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007302#ifdef F77_DUMMY_MAIN
7303# ifdef __cplusplus
7304 extern "C"
7305# endif
7306 int F77_DUMMY_MAIN() { return 1; }
7307#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007308int
7309main ()
7310{
7311gluLookAt ();
7312 ;
7313 return 0;
7314}
7315_ACEOF
7316rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007318 (eval $ac_link) 2>&5
7319 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007321 (exit $ac_status); } &&
7322 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007324 (eval $ac_try) 2>&5
7325 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007327 (exit $ac_status); }; }; then
7328 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007329else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007330 echo "$as_me: failed program was:" >&5
7331cat conftest.$ac_ext >&5
7332ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007333fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7335LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007336fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007337echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007338echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7339if test $ac_cv_lib_GLU_gluLookAt = yes; then
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007340 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7341 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007342
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007343fi
7344
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007345 fi
7346 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007347 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00007348
7349 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00007350 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00007351else
7352 XLIB=""
7353 X_CFLAGS=""
7354 X_LIBS=""
7355fi
Alexandre Julliard902da691995-11-05 14:39:02 +00007356
Alexandre Julliard48957682001-12-26 23:08:31 +00007357CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007358if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00007359then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007360
7361for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007362do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007364if eval "test \"\${$as_ac_Header+set}\" = set"; then
7365 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7367if eval "test \"\${$as_ac_Header+set}\" = set"; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007369fi
7370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007372else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007373 # Is the header compilable?
7374echo "$as_me:$LINENO: checking $ac_header usability" >&5
7375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7376cat >conftest.$ac_ext <<_ACEOF
7377#line $LINENO "configure"
7378#include "confdefs.h"
7379$ac_includes_default
7380#include <$ac_header>
7381_ACEOF
7382rm -f conftest.$ac_objext
7383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7384 (eval $ac_compile) 2>&5
7385 ac_status=$?
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } &&
7388 { ac_try='test -s conftest.$ac_objext'
7389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7390 (eval $ac_try) 2>&5
7391 ac_status=$?
7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393 (exit $ac_status); }; }; then
7394 ac_header_compiler=yes
7395else
7396 echo "$as_me: failed program was:" >&5
7397cat conftest.$ac_ext >&5
7398ac_header_compiler=no
7399fi
7400rm -f conftest.$ac_objext conftest.$ac_ext
7401echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7402echo "${ECHO_T}$ac_header_compiler" >&6
7403
7404# Is the header present?
7405echo "$as_me:$LINENO: checking $ac_header presence" >&5
7406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7407cat >conftest.$ac_ext <<_ACEOF
7408#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00007409#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007410#include <$ac_header>
7411_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7414 ac_status=$?
7415 egrep -v '^ *\+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007419 (exit $ac_status); } >/dev/null; then
7420 if test -s conftest.err; then
7421 ac_cpp_err=$ac_c_preproc_warn_flag
7422 else
7423 ac_cpp_err=
7424 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007425else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007426 ac_cpp_err=yes
7427fi
7428if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007429 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007430else
7431 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00007432 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007433 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007434fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007435rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007436echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7437echo "${ECHO_T}$ac_header_preproc" >&6
7438
7439# So? What about this header?
7440case $ac_header_compiler:$ac_header_preproc in
7441 yes:no )
7442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7443echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7445echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7446 no:yes )
7447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7448echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7450echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7453esac
7454echo "$as_me:$LINENO: checking for $ac_header" >&5
7455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7456if eval "test \"\${$as_ac_Header+set}\" = set"; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007460fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007463
7464fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007465if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007466 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007468_ACEOF
7469 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007470echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7471if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007473else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007474 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007475LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007476cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007477#line $LINENO "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007478#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007479
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007480/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007481#ifdef __cplusplus
7482extern "C"
7483#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007484/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007485 builtin and then its argument prototype would still apply. */
7486char waddch ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007487#ifdef F77_DUMMY_MAIN
7488# ifdef __cplusplus
7489 extern "C"
7490# endif
7491 int F77_DUMMY_MAIN() { return 1; }
7492#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007493int
7494main ()
7495{
7496waddch ();
7497 ;
7498 return 0;
7499}
7500_ACEOF
7501rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007503 (eval $ac_link) 2>&5
7504 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007506 (exit $ac_status); } &&
7507 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007509 (eval $ac_try) 2>&5
7510 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007512 (exit $ac_status); }; }; then
7513 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007514else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007515 echo "$as_me: failed program was:" >&5
7516cat conftest.$ac_ext >&5
7517ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007518fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007519rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7520LIBS=$ac_check_lib_save_LIBS
7521fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007522echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007523echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7524if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007525
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007526cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00007527#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007528_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007529
Alexandre Julliard48957682001-12-26 23:08:31 +00007530 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007531else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007532
7533for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007534do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007536if eval "test \"\${$as_ac_Header+set}\" = set"; then
7537 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7539if eval "test \"\${$as_ac_Header+set}\" = set"; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007541fi
7542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007544else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007545 # Is the header compilable?
7546echo "$as_me:$LINENO: checking $ac_header usability" >&5
7547echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7548cat >conftest.$ac_ext <<_ACEOF
7549#line $LINENO "configure"
7550#include "confdefs.h"
7551$ac_includes_default
7552#include <$ac_header>
7553_ACEOF
7554rm -f conftest.$ac_objext
7555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7556 (eval $ac_compile) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -s conftest.$ac_objext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 (eval $ac_try) 2>&5
7563 ac_status=$?
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_header_compiler=yes
7567else
7568 echo "$as_me: failed program was:" >&5
7569cat conftest.$ac_ext >&5
7570ac_header_compiler=no
7571fi
7572rm -f conftest.$ac_objext conftest.$ac_ext
7573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7574echo "${ECHO_T}$ac_header_compiler" >&6
7575
7576# Is the header present?
7577echo "$as_me:$LINENO: checking $ac_header presence" >&5
7578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7579cat >conftest.$ac_ext <<_ACEOF
7580#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00007581#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007582#include <$ac_header>
7583_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7586 ac_status=$?
7587 egrep -v '^ *\+' conftest.er1 >conftest.err
7588 rm -f conftest.er1
7589 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007591 (exit $ac_status); } >/dev/null; then
7592 if test -s conftest.err; then
7593 ac_cpp_err=$ac_c_preproc_warn_flag
7594 else
7595 ac_cpp_err=
7596 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007597else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007598 ac_cpp_err=yes
7599fi
7600if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007601 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007602else
7603 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00007604 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007605 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007606fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007607rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007608echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7609echo "${ECHO_T}$ac_header_preproc" >&6
7610
7611# So? What about this header?
7612case $ac_header_compiler:$ac_header_preproc in
7613 yes:no )
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7617echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7618 no:yes )
7619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7622echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7625esac
7626echo "$as_me:$LINENO: checking for $ac_header" >&5
7627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7628if eval "test \"\${$as_ac_Header+set}\" = set"; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630else
7631 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007632fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007635
7636fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007637if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007638 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007639#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007640_ACEOF
7641 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007642echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7643if test "${ac_cv_lib_curses_waddch+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007645else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007646 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007647LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007648cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007649#line $LINENO "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007650#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007651
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007652/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007653#ifdef __cplusplus
7654extern "C"
7655#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007656/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007657 builtin and then its argument prototype would still apply. */
7658char waddch ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007659#ifdef F77_DUMMY_MAIN
7660# ifdef __cplusplus
7661 extern "C"
7662# endif
7663 int F77_DUMMY_MAIN() { return 1; }
7664#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007665int
7666main ()
7667{
7668waddch ();
7669 ;
7670 return 0;
7671}
7672_ACEOF
7673rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007675 (eval $ac_link) 2>&5
7676 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007678 (exit $ac_status); } &&
7679 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007681 (eval $ac_try) 2>&5
7682 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007684 (exit $ac_status); }; }; then
7685 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007686else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007687 echo "$as_me: failed program was:" >&5
7688cat conftest.$ac_ext >&5
7689ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007690fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007691rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7692LIBS=$ac_check_lib_save_LIBS
7693fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007694echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007695echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7696if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007697
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007698cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00007699#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007700_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007701
Alexandre Julliard48957682001-12-26 23:08:31 +00007702 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007703fi
7704
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007705fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007706
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007707done
7708
7709fi
Alexandre Julliard48957682001-12-26 23:08:31 +00007710
Alexandre Julliard48957682001-12-26 23:08:31 +00007711fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007712
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007713done
7714
Alexandre Julliard48957682001-12-26 23:08:31 +00007715 saved_libs="$LIBS"
7716 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007717
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007718
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007719for ac_func in getbkgd resizeterm
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007720do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007722echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7724if eval "test \"\${$as_ac_var+set}\" = set"; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard638f1691999-01-17 16:32:32 +00007726else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007727 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007728#line $LINENO "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007729#include "confdefs.h"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007730/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007731 which can conflict with char $ac_func (); below. */
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007732#include <assert.h>
Alexandre Julliard638f1691999-01-17 16:32:32 +00007733/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007734#ifdef __cplusplus
7735extern "C"
7736#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00007737/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007738 builtin and then its argument prototype would still apply. */
7739char $ac_func ();
7740char (*f) ();
Alexandre Julliard638f1691999-01-17 16:32:32 +00007741
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007742#ifdef F77_DUMMY_MAIN
7743# ifdef __cplusplus
7744 extern "C"
7745# endif
7746 int F77_DUMMY_MAIN() { return 1; }
7747#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007748int
7749main ()
7750{
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007751/* The GNU C library defines this for functions which it implements
7752 to always fail with ENOSYS. Some functions are actually named
7753 something starting with __ and the normal name is an alias. */
7754#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7755choke me
7756#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007757f = $ac_func;
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007758#endif
7759
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007760 ;
7761 return 0;
7762}
7763_ACEOF
7764rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007766 (eval $ac_link) 2>&5
7767 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007769 (exit $ac_status); } &&
7770 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007772 (eval $ac_try) 2>&5
7773 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007775 (exit $ac_status); }; }; then
7776 eval "$as_ac_var=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007777else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007778 echo "$as_me: failed program was:" >&5
7779cat conftest.$ac_ext >&5
7780eval "$as_ac_var=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007781fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard638f1691999-01-17 16:32:32 +00007783fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007785echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7786if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007787 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007788#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007789_ACEOF
Alexandre Julliard638f1691999-01-17 16:32:32 +00007790
Alexandre Julliard638f1691999-01-17 16:32:32 +00007791fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007792done
Alexandre Julliard638f1691999-01-17 16:32:32 +00007793
Alexandre Julliard48957682001-12-26 23:08:31 +00007794 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007795fi
7796
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007797
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007798CUPSLIBS=""
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007799wine_cv_warn_cups_h=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007800echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007801echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7802if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007804else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007805 ac_check_lib_save_LIBS=$LIBS
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007806LIBS="-lcups $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007807cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007808#line $LINENO "configure"
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007809#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007810
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007811/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007812#ifdef __cplusplus
7813extern "C"
7814#endif
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007815/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007816 builtin and then its argument prototype would still apply. */
7817char cupsGetPPD ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007818#ifdef F77_DUMMY_MAIN
7819# ifdef __cplusplus
7820 extern "C"
7821# endif
7822 int F77_DUMMY_MAIN() { return 1; }
7823#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007824int
7825main ()
7826{
7827cupsGetPPD ();
7828 ;
7829 return 0;
7830}
7831_ACEOF
7832rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007834 (eval $ac_link) 2>&5
7835 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007837 (exit $ac_status); } &&
7838 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007840 (eval $ac_try) 2>&5
7841 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007843 (exit $ac_status); }; }; then
7844 ac_cv_lib_cups_cupsGetPPD=yes
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007845else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007846 echo "$as_me: failed program was:" >&5
7847cat conftest.$ac_ext >&5
7848ac_cv_lib_cups_cupsGetPPD=no
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007849fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007850rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7851LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007852fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007853echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007854echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7855if test $ac_cv_lib_cups_cupsGetPPD = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007856 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7857 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007858echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7859if test "${ac_cv_header_cups_cups_h+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007861fi
7862echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7863echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007864else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007865 # Is the header compilable?
7866echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7867echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7868cat >conftest.$ac_ext <<_ACEOF
7869#line $LINENO "configure"
7870#include "confdefs.h"
7871$ac_includes_default
7872#include <cups/cups.h>
7873_ACEOF
7874rm -f conftest.$ac_objext
7875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7876 (eval $ac_compile) 2>&5
7877 ac_status=$?
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -s conftest.$ac_objext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 (eval $ac_try) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 ac_header_compiler=yes
7887else
7888 echo "$as_me: failed program was:" >&5
7889cat conftest.$ac_ext >&5
7890ac_header_compiler=no
7891fi
7892rm -f conftest.$ac_objext conftest.$ac_ext
7893echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7894echo "${ECHO_T}$ac_header_compiler" >&6
7895
7896# Is the header present?
7897echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7898echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
7899cat >conftest.$ac_ext <<_ACEOF
7900#line $LINENO "configure"
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007901#include "confdefs.h"
7902#include <cups/cups.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007903_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7906 ac_status=$?
7907 egrep -v '^ *\+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007911 (exit $ac_status); } >/dev/null; then
7912 if test -s conftest.err; then
7913 ac_cpp_err=$ac_c_preproc_warn_flag
7914 else
7915 ac_cpp_err=
7916 fi
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007917else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007918 ac_cpp_err=yes
7919fi
7920if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007921 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007922else
7923 echo "$as_me: failed program was:" >&5
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007924 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007925 ac_header_preproc=no
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007926fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007927rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007928echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7929echo "${ECHO_T}$ac_header_preproc" >&6
7930
7931# So? What about this header?
7932case $ac_header_compiler:$ac_header_preproc in
7933 yes:no )
7934 { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
7935echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7936 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7937echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7938 no:yes )
7939 { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
7940echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
7941 { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
7942echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
7943 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7944echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7945esac
7946echo "$as_me:$LINENO: checking for cups/cups.h" >&5
7947echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7948if test "${ac_cv_header_cups_cups_h+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7950else
7951 ac_cv_header_cups_cups_h=$ac_header_preproc
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007952fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007953echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007954echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007955
7956fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007957if test $ac_cv_header_cups_cups_h = yes; then
7958
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007959cat >>confdefs.h <<\_ACEOF
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007960#define HAVE_CUPS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007961_ACEOF
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007962
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007963 CUPSLIBS="-lcups"
7964else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007965 wine_cv_warn_cups_h=yes
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007966fi
7967
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007968
7969
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007970fi
7971
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007972
7973
Shi Quan He6b0720f2002-03-21 02:58:39 +00007974# Extract the first word of "sane-config", so it can be a program name with args.
7975set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007976echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00007977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7978if test "${ac_cv_prog_sane_devel+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980else
7981 if test -n "$sane_devel"; then
7982 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
7983else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985for as_dir in $PATH
7986do
7987 IFS=$as_save_IFS
7988 test -z "$as_dir" && as_dir=.
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7991 ac_cv_prog_sane_devel="sane-config"
7992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 break 2
7994 fi
7995done
Shi Quan He6b0720f2002-03-21 02:58:39 +00007996done
7997
7998 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
7999fi
8000fi
8001sane_devel=$ac_cv_prog_sane_devel
8002if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008003 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008004echo "${ECHO_T}$sane_devel" >&6
8005else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008006 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008007echo "${ECHO_T}no" >&6
8008fi
8009
8010if test "$sane_devel" = "no"
8011then
8012 SANELIBS=""
8013 SANEINCL=""
8014else
8015 SANELIBS="`$sane_devel --libs`"
8016 SANEINCL="`$sane_devel --cflags`"
8017 ac_save_CPPFLAGS="$CPPFLAGS"
8018 ac_save_LIBS="$LIBS"
8019 CPPFLAGS="$CPPFLAGS $SANEINCL"
8020 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008021 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8022 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008023echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8024if test "${ac_cv_header_sane_sane_h+set}" = set; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008026fi
8027echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8028echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00008029else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008030 # Is the header compilable?
8031echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8032echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8033cat >conftest.$ac_ext <<_ACEOF
8034#line $LINENO "configure"
8035#include "confdefs.h"
8036$ac_includes_default
8037#include <sane/sane.h>
8038_ACEOF
8039rm -f conftest.$ac_objext
8040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8041 (eval $ac_compile) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -s conftest.$ac_objext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 (eval $ac_try) 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 ac_header_compiler=yes
8052else
8053 echo "$as_me: failed program was:" >&5
8054cat conftest.$ac_ext >&5
8055ac_header_compiler=no
8056fi
8057rm -f conftest.$ac_objext conftest.$ac_ext
8058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8059echo "${ECHO_T}$ac_header_compiler" >&6
8060
8061# Is the header present?
8062echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8063echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8064cat >conftest.$ac_ext <<_ACEOF
8065#line $LINENO "configure"
Shi Quan He6b0720f2002-03-21 02:58:39 +00008066#include "confdefs.h"
8067#include <sane/sane.h>
8068_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8071 ac_status=$?
8072 egrep -v '^ *\+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008076 (exit $ac_status); } >/dev/null; then
8077 if test -s conftest.err; then
8078 ac_cpp_err=$ac_c_preproc_warn_flag
8079 else
8080 ac_cpp_err=
8081 fi
8082else
8083 ac_cpp_err=yes
8084fi
8085if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008086 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +00008087else
8088 echo "$as_me: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008090 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +00008091fi
8092rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008093echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8094echo "${ECHO_T}$ac_header_preproc" >&6
8095
8096# So? What about this header?
8097case $ac_header_compiler:$ac_header_preproc in
8098 yes:no )
8099 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8100echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8101 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8102echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8103 no:yes )
8104 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8105echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8106 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8107echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8108 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8109echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8110esac
8111echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8112echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8113if test "${ac_cv_header_sane_sane_h+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115else
8116 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +00008117fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008118echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008119echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008120
8121fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008122if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008123 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008124echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8125if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8127else
8128 ac_check_lib_save_LIBS=$LIBS
8129LIBS="-lsane $LIBS"
8130cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008131#line $LINENO "configure"
Shi Quan He6b0720f2002-03-21 02:58:39 +00008132#include "confdefs.h"
8133
8134/* Override any gcc2 internal prototype to avoid an error. */
8135#ifdef __cplusplus
8136extern "C"
8137#endif
8138/* We use char because int might match the return type of a gcc2
8139 builtin and then its argument prototype would still apply. */
8140char sane_open ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008141#ifdef F77_DUMMY_MAIN
8142# ifdef __cplusplus
8143 extern "C"
8144# endif
8145 int F77_DUMMY_MAIN() { return 1; }
8146#endif
Shi Quan He6b0720f2002-03-21 02:58:39 +00008147int
8148main ()
8149{
8150sane_open ();
8151 ;
8152 return 0;
8153}
8154_ACEOF
8155rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008157 (eval $ac_link) 2>&5
8158 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008160 (exit $ac_status); } &&
8161 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008163 (eval $ac_try) 2>&5
8164 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008166 (exit $ac_status); }; }; then
8167 ac_cv_lib_sane_sane_open=yes
8168else
8169 echo "$as_me: failed program was:" >&5
8170cat conftest.$ac_ext >&5
8171ac_cv_lib_sane_sane_open=no
8172fi
8173rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8174LIBS=$ac_check_lib_save_LIBS
8175fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008176echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008177echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8178if test $ac_cv_lib_sane_sane_open = yes; then
8179
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008180cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008181#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008182_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008183
8184else
8185 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +00008186 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00008187fi
8188
Alexandre Julliard96328b32002-03-31 19:23:41 +00008189else
8190 SANELIBS=""
8191 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00008192fi
8193
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008194
Shi Quan He6b0720f2002-03-21 02:58:39 +00008195 LIBS="$ac_save_LIBS"
8196 CPPFLAGS="$ac_save_CPPFLAGS"
8197fi
8198
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008199
8200
8201echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008202echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8203if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008205else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008206 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00008207LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008208cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008209#line $LINENO "configure"
Ian Pilcher563598d2001-05-16 20:56:05 +00008210#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008211
Ian Pilcher563598d2001-05-16 20:56:05 +00008212/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008213#ifdef __cplusplus
8214extern "C"
8215#endif
Ian Pilcher563598d2001-05-16 20:56:05 +00008216/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008217 builtin and then its argument prototype would still apply. */
8218char FT_Init_FreeType ();
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008219#ifdef F77_DUMMY_MAIN
8220# ifdef __cplusplus
8221 extern "C"
8222# endif
8223 int F77_DUMMY_MAIN() { return 1; }
8224#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008225int
8226main ()
8227{
8228FT_Init_FreeType ();
8229 ;
8230 return 0;
8231}
8232_ACEOF
8233rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008235 (eval $ac_link) 2>&5
8236 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008238 (exit $ac_status); } &&
8239 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008241 (eval $ac_try) 2>&5
8242 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008244 (exit $ac_status); }; }; then
8245 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +00008246else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008247 echo "$as_me: failed program was:" >&5
8248cat conftest.$ac_ext >&5
8249ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +00008250fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008251rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8252LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +00008253fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008254echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008255echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8256if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +00008257 ft_lib=yes
8258else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008259 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +00008260fi
8261
8262if test "$ft_lib" = "no"
8263then
Ian Pilcher563598d2001-05-16 20:56:05 +00008264 FREETYPEINCL=""
8265 wine_cv_msg_freetype=no
8266else
8267 # Extract the first word of "freetype-config", so it can be a program name with args.
8268set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008269echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8271if test "${ac_cv_prog_ft_devel+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008273else
8274 if test -n "$ft_devel"; then
8275 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8276else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278for as_dir in $PATH
8279do
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8284 ac_cv_prog_ft_devel="freetype-config"
8285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 break 2
8287 fi
8288done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008289done
8290
Ian Pilcher563598d2001-05-16 20:56:05 +00008291 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8292fi
8293fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008294ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +00008295if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008296 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008297echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008298else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008299 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008300echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008301fi
8302
8303 if test "$ft_devel" = "no"
8304 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008305 # Extract the first word of "freetype2-config", so it can be a program name with args.
8306set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008307echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8309if test "${ac_cv_prog_ft_devel2+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008311else
8312 if test -n "$ft_devel2"; then
8313 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8314else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316for as_dir in $PATH
8317do
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
8320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8322 ac_cv_prog_ft_devel2="freetype2-config"
8323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 break 2
8325 fi
8326done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008327done
8328
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008329 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8330fi
8331fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008332ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008333if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008334 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008335echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008336else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008337 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008338echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008339fi
8340
8341 if test "$ft_devel2" = "freetype2-config"
8342 then
8343 ft_devel=$ft_devel2
8344 fi
8345 fi
8346 if test "$ft_devel" = "no"
8347 then
Ian Pilcher563598d2001-05-16 20:56:05 +00008348 FREETYPEINCL=""
8349 wine_cv_msg_freetype=yes
8350 else
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008351 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +00008352 ac_save_CPPFLAGS="$CPPFLAGS"
8353 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008354
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008355
8356
8357
8358
8359
8360
8361
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008362for ac_header in freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +00008363 freetype/ftglyph.h \
8364 freetype/tttables.h \
8365 freetype/ftnames.h \
8366 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +00008367 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +00008368 freetype/ftoutln.h \
8369 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +00008370do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008372if eval "test \"\${$as_ac_Header+set}\" = set"; then
8373 echo "$as_me:$LINENO: checking for $ac_header" >&5
8374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8375if eval "test \"\${$as_ac_Header+set}\" = set"; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377fi
8378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8380else
8381 # Is the header compilable?
8382echo "$as_me:$LINENO: checking $ac_header usability" >&5
8383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8384cat >conftest.$ac_ext <<_ACEOF
8385#line $LINENO "configure"
8386#include "confdefs.h"
8387$ac_includes_default
8388#include <$ac_header>
8389_ACEOF
8390rm -f conftest.$ac_objext
8391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8392 (eval $ac_compile) 2>&5
8393 ac_status=$?
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); } &&
8396 { ac_try='test -s conftest.$ac_objext'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 (eval $ac_try) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 ac_header_compiler=yes
8403else
8404 echo "$as_me: failed program was:" >&5
8405cat conftest.$ac_ext >&5
8406ac_header_compiler=no
8407fi
8408rm -f conftest.$ac_objext conftest.$ac_ext
8409echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8410echo "${ECHO_T}$ac_header_compiler" >&6
8411
8412# Is the header present?
8413echo "$as_me:$LINENO: checking $ac_header presence" >&5
8414echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8415cat >conftest.$ac_ext <<_ACEOF
8416#line $LINENO "configure"
8417#include "confdefs.h"
8418#include <$ac_header>
8419_ACEOF
8420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8422 ac_status=$?
8423 egrep -v '^ *\+' conftest.er1 >conftest.err
8424 rm -f conftest.er1
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } >/dev/null; then
8428 if test -s conftest.err; then
8429 ac_cpp_err=$ac_c_preproc_warn_flag
8430 else
8431 ac_cpp_err=
8432 fi
8433else
8434 ac_cpp_err=yes
8435fi
8436if test -z "$ac_cpp_err"; then
8437 ac_header_preproc=yes
8438else
8439 echo "$as_me: failed program was:" >&5
8440 cat conftest.$ac_ext >&5
8441 ac_header_preproc=no
8442fi
8443rm -f conftest.err conftest.$ac_ext
8444echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8445echo "${ECHO_T}$ac_header_preproc" >&6
8446
8447# So? What about this header?
8448case $ac_header_compiler:$ac_header_preproc in
8449 yes:no )
8450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8454 no:yes )
8455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8456echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8458echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8461esac
8462echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8464if eval "test \"\${$as_ac_Header+set}\" = set"; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher40432fe2001-06-06 21:05:23 +00008466else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008467 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008468fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008470echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008471
Ian Pilcher40432fe2001-06-06 21:05:23 +00008472fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008473if test `eval echo '${'$as_ac_Header'}'` = yes; then
8474 cat >>confdefs.h <<_ACEOF
8475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8476_ACEOF
8477
8478fi
8479
Ian Pilcher40432fe2001-06-06 21:05:23 +00008480done
8481
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008482 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008483#line $LINENO "configure"
Alexandre Julliard18d75732002-01-29 03:02:50 +00008484#include "confdefs.h"
8485#include <ft2build.h>
8486 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008487_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8490 ac_status=$?
8491 egrep -v '^ *\+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008495 (exit $ac_status); } >/dev/null; then
8496 if test -s conftest.err; then
8497 ac_cpp_err=$ac_c_preproc_warn_flag
8498 else
8499 ac_cpp_err=
8500 fi
8501else
8502 ac_cpp_err=yes
8503fi
8504if test -z "$ac_cpp_err"; then
8505
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008506cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00008507#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008508_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00008509
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008510 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +00008511else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008512 echo "$as_me: failed program was:" >&5
Alexandre Julliard18d75732002-01-29 03:02:50 +00008513 cat conftest.$ac_ext >&5
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008514 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +00008515fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008516rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +00008517 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008518 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008519 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008520
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008521cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008522#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008523_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008524
8525 wine_cv_msg_freetype=no
8526 else
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008527 FREETYPEINCL=""
8528 wine_cv_msg_freetype=yes
8529 fi
Ian Pilcher563598d2001-05-16 20:56:05 +00008530 fi
8531fi
8532
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008533
8534echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008535echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8536if test "${ac_cv_c_ppdev+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00008538else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008539 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008540#line $LINENO "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00008541#include "confdefs.h"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008542#include <linux/ppdev.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008543#ifdef F77_DUMMY_MAIN
8544# ifdef __cplusplus
8545 extern "C"
8546# endif
8547 int F77_DUMMY_MAIN() { return 1; }
8548#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008549int
8550main ()
8551{
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008552ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008553 ;
8554 return 0;
8555}
8556_ACEOF
8557rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008559 (eval $ac_compile) 2>&5
8560 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008562 (exit $ac_status); } &&
8563 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008565 (eval $ac_try) 2>&5
8566 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008568 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008569 ac_cv_c_ppdev="yes"
8570else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008571 echo "$as_me: failed program was:" >&5
8572cat conftest.$ac_ext >&5
8573ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008574fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008575rm -f conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008576
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008577fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008578echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008579echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008580if test "$ac_cv_c_ppdev" = "yes"
8581then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008582
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008583cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008584#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008585_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008586
8587fi
8588
Marcus Meissner5ee517a2002-08-09 19:49:31 +00008589echo "$as_me:$LINENO: checking for va_copy" >&5
8590echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8591if test "${ac_cv_c_va_copy+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8593else
8594 cat >conftest.$ac_ext <<_ACEOF
8595#line $LINENO "configure"
8596#include "confdefs.h"
8597#include <stdarg.h>
8598#ifdef F77_DUMMY_MAIN
8599# ifdef __cplusplus
8600 extern "C"
8601# endif
8602 int F77_DUMMY_MAIN() { return 1; }
8603#endif
8604int
8605main ()
8606{
8607va_list ap1, ap2;
8608 va_copy(ap1,ap2);
8609
8610 ;
8611 return 0;
8612}
8613_ACEOF
8614rm -f conftest.$ac_objext conftest$ac_exeext
8615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8616 (eval $ac_link) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try='test -s conftest$ac_exeext'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 (eval $ac_try) 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
8626 ac_cv_c_va_copy="yes"
8627else
8628 echo "$as_me: failed program was:" >&5
8629cat conftest.$ac_ext >&5
8630ac_cv_c_va_copy="no"
8631fi
8632rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8633
8634fi
8635echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8636echo "${ECHO_T}$ac_cv_c_va_copy" >&6
8637if test "$ac_cv_c_va_copy" = "yes"
8638then
8639
8640cat >>confdefs.h <<\_ACEOF
8641#define HAVE_VA_COPY 1
8642_ACEOF
8643
8644fi
8645echo "$as_me:$LINENO: checking for __va_copy" >&5
8646echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8647if test "${ac_cv_c___va_copy+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8649else
8650 cat >conftest.$ac_ext <<_ACEOF
8651#line $LINENO "configure"
8652#include "confdefs.h"
8653#include <stdarg.h>
8654#ifdef F77_DUMMY_MAIN
8655# ifdef __cplusplus
8656 extern "C"
8657# endif
8658 int F77_DUMMY_MAIN() { return 1; }
8659#endif
8660int
8661main ()
8662{
8663va_list ap1, ap2;
8664 __va_copy(ap1,ap2);
8665
8666 ;
8667 return 0;
8668}
8669_ACEOF
8670rm -f conftest.$ac_objext conftest$ac_exeext
8671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672 (eval $ac_link) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } &&
8676 { ac_try='test -s conftest$ac_exeext'
8677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
8682 ac_cv_c___va_copy="yes"
8683else
8684 echo "$as_me: failed program was:" >&5
8685cat conftest.$ac_ext >&5
8686ac_cv_c___va_copy="no"
8687fi
8688rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8689
8690fi
8691echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8692echo "${ECHO_T}$ac_cv_c___va_copy" >&6
8693if test "$ac_cv_c___va_copy" = "yes"
8694then
8695
8696cat >>confdefs.h <<\_ACEOF
8697#define HAVE___VA_COPY 1
8698_ACEOF
8699
8700fi
8701
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008702echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008703echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8704if test "${ac_cv_c_ipx_gnu+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008706else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008707 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008708#line $LINENO "configure"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008709#include "confdefs.h"
Pavel Roskin94d99641998-12-26 11:52:51 +00008710#include <sys/socket.h>
8711 #include <netipx/ipx.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008712#ifdef F77_DUMMY_MAIN
8713# ifdef __cplusplus
8714 extern "C"
8715# endif
8716 int F77_DUMMY_MAIN() { return 1; }
8717#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008718int
8719main ()
8720{
Pavel Roskin94d99641998-12-26 11:52:51 +00008721((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008722 ;
8723 return 0;
8724}
8725_ACEOF
8726rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008728 (eval $ac_compile) 2>&5
8729 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008731 (exit $ac_status); } &&
8732 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008734 (eval $ac_try) 2>&5
8735 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008737 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00008738 ac_cv_c_ipx_gnu="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00008739else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008740 echo "$as_me: failed program was:" >&5
8741cat conftest.$ac_ext >&5
8742ac_cv_c_ipx_gnu="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00008743fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008744rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00008745
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008746fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008747echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008748echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00008749if test "$ac_cv_c_ipx_gnu" = "yes"
8750then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008751
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008752cat >>confdefs.h <<\_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008753#define HAVE_IPX_GNU 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008754_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008755
8756fi
Pavel Roskin94d99641998-12-26 11:52:51 +00008757
8758if test "$ac_cv_c_ipx_gnu" = "no"
8759then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008760 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008761echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8762if test "${ac_cv_c_ipx_linux+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00008764else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008765 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008766#line $LINENO "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00008767#include "confdefs.h"
8768#include <sys/socket.h>
8769 #include <asm/types.h>
8770 #include <linux/ipx.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008771#ifdef F77_DUMMY_MAIN
8772# ifdef __cplusplus
8773 extern "C"
8774# endif
8775 int F77_DUMMY_MAIN() { return 1; }
8776#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008777int
8778main ()
8779{
Pavel Roskin94d99641998-12-26 11:52:51 +00008780((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008781 ;
8782 return 0;
8783}
8784_ACEOF
8785rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008787 (eval $ac_compile) 2>&5
8788 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008790 (exit $ac_status); } &&
8791 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008793 (eval $ac_try) 2>&5
8794 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008796 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00008797 ac_cv_c_ipx_linux="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00008798else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008799 echo "$as_me: failed program was:" >&5
8800cat conftest.$ac_ext >&5
8801ac_cv_c_ipx_linux="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00008802fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008803rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00008804
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008805fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008806echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008807echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00008808 if test "$ac_cv_c_ipx_linux" = "yes"
8809 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008810
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008811cat >>confdefs.h <<\_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008812#define HAVE_IPX_LINUX 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008813_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008814
8815 fi
Pavel Roskin94d99641998-12-26 11:52:51 +00008816fi
8817
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008818
8819
8820
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008821for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008822do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008824if eval "test \"\${$as_ac_Header+set}\" = set"; then
8825 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8827if eval "test \"\${$as_ac_Header+set}\" = set"; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008829fi
8830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008832else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008833 # Is the header compilable?
8834echo "$as_me:$LINENO: checking $ac_header usability" >&5
8835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8836cat >conftest.$ac_ext <<_ACEOF
8837#line $LINENO "configure"
8838#include "confdefs.h"
8839$ac_includes_default
8840#include <$ac_header>
8841_ACEOF
8842rm -f conftest.$ac_objext
8843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8844 (eval $ac_compile) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try='test -s conftest.$ac_objext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_header_compiler=yes
8855else
8856 echo "$as_me: failed program was:" >&5
8857cat conftest.$ac_ext >&5
8858ac_header_compiler=no
8859fi
8860rm -f conftest.$ac_objext conftest.$ac_ext
8861echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8862echo "${ECHO_T}$ac_header_compiler" >&6
8863
8864# Is the header present?
8865echo "$as_me:$LINENO: checking $ac_header presence" >&5
8866echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8867cat >conftest.$ac_ext <<_ACEOF
8868#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008869#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008870#include <$ac_header>
8871_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8874 ac_status=$?
8875 egrep -v '^ *\+' conftest.er1 >conftest.err
8876 rm -f conftest.er1
8877 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008879 (exit $ac_status); } >/dev/null; then
8880 if test -s conftest.err; then
8881 ac_cpp_err=$ac_c_preproc_warn_flag
8882 else
8883 ac_cpp_err=
8884 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008885else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008886 ac_cpp_err=yes
8887fi
8888if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008889 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008890else
8891 echo "$as_me: failed program was:" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008892 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008893 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008894fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008895rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008896echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8897echo "${ECHO_T}$ac_header_preproc" >&6
8898
8899# So? What about this header?
8900case $ac_header_compiler:$ac_header_preproc in
8901 yes:no )
8902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8903echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8905echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8906 no:yes )
8907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8908echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8910echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8912echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8913esac
8914echo "$as_me:$LINENO: checking for $ac_header" >&5
8915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8916if eval "test \"\${$as_ac_Header+set}\" = set"; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8918else
8919 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008920fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008923
8924fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008925if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008926 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008928_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00008929 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008930fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008931
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008932done
8933
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008934
8935echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008936echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8937if test "${ac_cv_c_opensoundsystem+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008939else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008940 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008941#line $LINENO "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008942#include "confdefs.h"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008943
Todd Vierlingecc76691998-12-15 17:49:02 +00008944 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008945 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00008946 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008947 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00008948 #elif defined(HAVE_SOUNDCARD_H)
8949 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008950 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008951
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008952#ifdef F77_DUMMY_MAIN
8953# ifdef __cplusplus
8954 extern "C"
8955# endif
8956 int F77_DUMMY_MAIN() { return 1; }
8957#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008958int
8959main ()
8960{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008961
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008962
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00008963/* check for one of the Open Sound System specific SNDCTL_ defines */
8964#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008965#error No open sound system
8966#endif
8967
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008968 ;
8969 return 0;
8970}
8971_ACEOF
8972rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008974 (eval $ac_compile) 2>&5
8975 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008977 (exit $ac_status); } &&
8978 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008980 (eval $ac_try) 2>&5
8981 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008983 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008984 ac_cv_c_opensoundsystem="yes"
8985else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008986 echo "$as_me: failed program was:" >&5
8987cat conftest.$ac_ext >&5
8988ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008989fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008990rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008991fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008992echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008993echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008994
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00008995if test "$ac_cv_c_opensoundsystem" = "yes"
8996then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008997
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008998cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00008999#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009000_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009001
9002fi
9003
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009004echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009005echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
9006if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00009008else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009009 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009010#line $LINENO "configure"
Eric Pouech338d3b21999-05-22 18:52:21 +00009011#include "confdefs.h"
9012
9013 #if defined(HAVE_SYS_SOUNDCARD_H)
9014 #include <sys/soundcard.h>
9015 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9016 #include <machine/soundcard.h>
9017 #elif defined(HAVE_SOUNDCARD_H)
9018 #include <soundcard.h>
9019 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +00009020
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009021#ifdef F77_DUMMY_MAIN
9022# ifdef __cplusplus
9023 extern "C"
9024# endif
9025 int F77_DUMMY_MAIN() { return 1; }
9026#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009027int
9028main ()
9029{
Eric Pouech338d3b21999-05-22 18:52:21 +00009030
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009031
Eric Pouech338d3b21999-05-22 18:52:21 +00009032/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9033#if !defined(SNDCTL_SEQ_SYNC)
9034#error No open sound system MIDI interface
9035#endif
9036
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009037 ;
9038 return 0;
9039}
9040_ACEOF
9041rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009043 (eval $ac_compile) 2>&5
9044 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009046 (exit $ac_status); } &&
9047 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009049 (eval $ac_try) 2>&5
9050 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009052 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +00009053 ac_cv_c_opensoundsystem_midi="yes"
9054else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009055 echo "$as_me: failed program was:" >&5
9056cat conftest.$ac_ext >&5
9057ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +00009058fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009059rm -f conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +00009060fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009061echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009062echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00009063
9064if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9065then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009066
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009067cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +00009068#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009069_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +00009070
9071fi
9072
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009073# Extract the first word of "artsc-config", so it can be a program name with args.
9074set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009075echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9077if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079else
9080 case $ARTSCCONFIG in
9081 [\\/]* | ?:[\\/]*)
9082 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9083 ;;
9084 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086for as_dir in $PATH
9087do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9092 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 break 2
9095 fi
9096done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009097done
9098
9099 ;;
9100esac
9101fi
9102ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9103
9104if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009105 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009106echo "${ECHO_T}$ARTSCCONFIG" >&6
9107else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009108 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009109echo "${ECHO_T}no" >&6
9110fi
9111
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009112echo "$as_me:$LINENO: checking for aRts Sound server" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009113echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9114if test "${ac_cv_c_artsserver+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9116else
9117 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9118 then
9119 ac_cv_c_artsserver=no
9120 else
9121 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9122 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9123 ac_cv_c_artsserver=no
9124 save_CFLAGS="$CFLAGS"
9125 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9126 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009127#line $LINENO "configure"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009128#include "confdefs.h"
9129
9130 #include <artsc.h>
9131
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009132#ifdef F77_DUMMY_MAIN
9133# ifdef __cplusplus
9134 extern "C"
9135# endif
9136 int F77_DUMMY_MAIN() { return 1; }
9137#endif
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009138int
9139main ()
9140{
9141
9142 arts_stream_t stream;
9143
9144 ;
9145 return 0;
9146}
9147_ACEOF
9148rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009150 (eval $ac_compile) 2>&5
9151 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009153 (exit $ac_status); } &&
9154 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009156 (eval $ac_try) 2>&5
9157 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009159 (exit $ac_status); }; }; then
9160
9161 ac_cv_c_artsserver=yes
9162
9163else
9164 echo "$as_me: failed program was:" >&5
9165cat conftest.$ac_ext >&5
9166fi
9167rm -f conftest.$ac_objext conftest.$ac_ext
9168 CFLAGS="$save_CFLAGS"
9169 fi
9170fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009171echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009172echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9173
9174if test "$ac_cv_c_artsserver" = "yes"
9175then
9176 ARTSLIBS=$ARTSC_LIBS
9177
9178 ARTSINCL=$ARTSC_CFLAGS
9179
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009180
9181
9182cat >>confdefs.h <<\_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009183#define HAVE_ARTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009184_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009185
9186fi
9187
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009188ALSALIBS=""
9189
9190
Marco Pietrobono0e79a412002-08-29 01:51:31 +00009191
9192for ac_header in alsa/asoundlib.h sys/asoundlib.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009193do
9194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9195if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196 echo "$as_me:$LINENO: checking for $ac_header" >&5
9197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9198if eval "test \"\${$as_ac_Header+set}\" = set"; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9200fi
9201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9203else
9204 # Is the header compilable?
9205echo "$as_me:$LINENO: checking $ac_header usability" >&5
9206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9207cat >conftest.$ac_ext <<_ACEOF
9208#line $LINENO "configure"
9209#include "confdefs.h"
9210$ac_includes_default
9211#include <$ac_header>
9212_ACEOF
9213rm -f conftest.$ac_objext
9214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9215 (eval $ac_compile) 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -s conftest.$ac_objext'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_header_compiler=yes
9226else
9227 echo "$as_me: failed program was:" >&5
9228cat conftest.$ac_ext >&5
9229ac_header_compiler=no
9230fi
9231rm -f conftest.$ac_objext conftest.$ac_ext
9232echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9233echo "${ECHO_T}$ac_header_compiler" >&6
9234
9235# Is the header present?
9236echo "$as_me:$LINENO: checking $ac_header presence" >&5
9237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9238cat >conftest.$ac_ext <<_ACEOF
9239#line $LINENO "configure"
9240#include "confdefs.h"
9241#include <$ac_header>
9242_ACEOF
9243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9245 ac_status=$?
9246 egrep -v '^ *\+' conftest.er1 >conftest.err
9247 rm -f conftest.er1
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } >/dev/null; then
9251 if test -s conftest.err; then
9252 ac_cpp_err=$ac_c_preproc_warn_flag
9253 else
9254 ac_cpp_err=
9255 fi
9256else
9257 ac_cpp_err=yes
9258fi
9259if test -z "$ac_cpp_err"; then
9260 ac_header_preproc=yes
9261else
9262 echo "$as_me: failed program was:" >&5
9263 cat conftest.$ac_ext >&5
9264 ac_header_preproc=no
9265fi
9266rm -f conftest.err conftest.$ac_ext
9267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9268echo "${ECHO_T}$ac_header_preproc" >&6
9269
9270# So? What about this header?
9271case $ac_header_compiler:$ac_header_preproc in
9272 yes:no )
9273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9276echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9277 no:yes )
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9284esac
9285echo "$as_me:$LINENO: checking for $ac_header" >&5
9286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9287if eval "test \"\${$as_ac_Header+set}\" = set"; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9289else
9290 eval "$as_ac_Header=$ac_header_preproc"
9291fi
9292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9293echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9294
9295fi
9296if test `eval echo '${'$as_ac_Header'}'` = yes; then
9297 cat >>confdefs.h <<_ACEOF
9298#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9299_ACEOF
Marco Pietrobono0e79a412002-08-29 01:51:31 +00009300 break
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009301fi
9302
9303done
9304
Marco Pietrobono0e79a412002-08-29 01:51:31 +00009305if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009306then
9307 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9308echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9309if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
9312 ac_check_lib_save_LIBS=$LIBS
9313LIBS="-lasound $LIBS"
9314cat >conftest.$ac_ext <<_ACEOF
9315#line $LINENO "configure"
9316#include "confdefs.h"
9317
9318/* Override any gcc2 internal prototype to avoid an error. */
9319#ifdef __cplusplus
9320extern "C"
9321#endif
9322/* We use char because int might match the return type of a gcc2
9323 builtin and then its argument prototype would still apply. */
9324char snd_pcm_open ();
9325#ifdef F77_DUMMY_MAIN
9326# ifdef __cplusplus
9327 extern "C"
9328# endif
9329 int F77_DUMMY_MAIN() { return 1; }
9330#endif
9331int
9332main ()
9333{
9334snd_pcm_open ();
9335 ;
9336 return 0;
9337}
9338_ACEOF
9339rm -f conftest.$ac_objext conftest$ac_exeext
9340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9341 (eval $ac_link) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -s conftest$ac_exeext'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 (eval $ac_try) 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 ac_cv_lib_asound_snd_pcm_open=yes
9352else
9353 echo "$as_me: failed program was:" >&5
9354cat conftest.$ac_ext >&5
9355ac_cv_lib_asound_snd_pcm_open=no
9356fi
9357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9358LIBS=$ac_check_lib_save_LIBS
9359fi
9360echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9361echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9362if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9363
9364cat >>confdefs.h <<\_ACEOF
9365#define HAVE_ALSA 1
9366_ACEOF
9367
9368 ALSALIBS="-lasound"
9369fi
9370
9371fi
9372
Alexandre Julliard04b5a862002-07-30 02:44:19 +00009373NASLIBS=""
9374
9375
9376for ac_header in audio/audiolib.h
9377do
9378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9379if eval "test \"\${$as_ac_Header+set}\" = set"; then
9380 echo "$as_me:$LINENO: checking for $ac_header" >&5
9381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9382if eval "test \"\${$as_ac_Header+set}\" = set"; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384fi
9385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9387else
9388 # Is the header compilable?
9389echo "$as_me:$LINENO: checking $ac_header usability" >&5
9390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9391cat >conftest.$ac_ext <<_ACEOF
9392#line $LINENO "configure"
9393#include "confdefs.h"
9394$ac_includes_default
9395#include <$ac_header>
9396_ACEOF
9397rm -f conftest.$ac_objext
9398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9399 (eval $ac_compile) 2>&5
9400 ac_status=$?
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -s conftest.$ac_objext'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405 (eval $ac_try) 2>&5
9406 ac_status=$?
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; }; then
9409 ac_header_compiler=yes
9410else
9411 echo "$as_me: failed program was:" >&5
9412cat conftest.$ac_ext >&5
9413ac_header_compiler=no
9414fi
9415rm -f conftest.$ac_objext conftest.$ac_ext
9416echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9417echo "${ECHO_T}$ac_header_compiler" >&6
9418
9419# Is the header present?
9420echo "$as_me:$LINENO: checking $ac_header presence" >&5
9421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9422cat >conftest.$ac_ext <<_ACEOF
9423#line $LINENO "configure"
9424#include "confdefs.h"
9425#include <$ac_header>
9426_ACEOF
9427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9429 ac_status=$?
9430 egrep -v '^ *\+' conftest.er1 >conftest.err
9431 rm -f conftest.er1
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } >/dev/null; then
9435 if test -s conftest.err; then
9436 ac_cpp_err=$ac_c_preproc_warn_flag
9437 else
9438 ac_cpp_err=
9439 fi
9440else
9441 ac_cpp_err=yes
9442fi
9443if test -z "$ac_cpp_err"; then
9444 ac_header_preproc=yes
9445else
9446 echo "$as_me: failed program was:" >&5
9447 cat conftest.$ac_ext >&5
9448 ac_header_preproc=no
9449fi
9450rm -f conftest.err conftest.$ac_ext
9451echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9452echo "${ECHO_T}$ac_header_preproc" >&6
9453
9454# So? What about this header?
9455case $ac_header_compiler:$ac_header_preproc in
9456 yes:no )
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9458echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9461 no:yes )
9462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9463echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9465echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9468esac
9469echo "$as_me:$LINENO: checking for $ac_header" >&5
9470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9471if eval "test \"\${$as_ac_Header+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9473else
9474 eval "$as_ac_Header=$ac_header_preproc"
9475fi
9476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9478
9479fi
9480if test `eval echo '${'$as_ac_Header'}'` = yes; then
9481 cat >>confdefs.h <<_ACEOF
9482#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9483_ACEOF
9484
9485for ac_header in audio/soundlib.h
9486do
9487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9488echo "$as_me:$LINENO: checking for $ac_header" >&5
9489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9490if eval "test \"\${$as_ac_Header+set}\" = set"; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9492else
9493 cat >conftest.$ac_ext <<_ACEOF
9494#line $LINENO "configure"
9495#include "confdefs.h"
9496#include <audio/audiolib.h>
9497
9498#include <$ac_header>
9499_ACEOF
9500rm -f conftest.$ac_objext
9501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502 (eval $ac_compile) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } &&
9506 { ac_try='test -s conftest.$ac_objext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 eval "$as_ac_Header=yes"
9513else
9514 echo "$as_me: failed program was:" >&5
9515cat conftest.$ac_ext >&5
9516eval "$as_ac_Header=no"
9517fi
9518rm -f conftest.$ac_objext conftest.$ac_ext
9519fi
9520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9522if test `eval echo '${'$as_ac_Header'}'` = yes; then
9523 cat >>confdefs.h <<_ACEOF
9524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9525_ACEOF
9526
9527fi
9528
9529done
9530
9531 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9532echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9533if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9535else
9536 ac_check_lib_save_LIBS=$LIBS
9537LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9538cat >conftest.$ac_ext <<_ACEOF
9539#line $LINENO "configure"
9540#include "confdefs.h"
9541
9542/* Override any gcc2 internal prototype to avoid an error. */
9543#ifdef __cplusplus
9544extern "C"
9545#endif
9546/* We use char because int might match the return type of a gcc2
9547 builtin and then its argument prototype would still apply. */
9548char AuCreateFlow ();
9549#ifdef F77_DUMMY_MAIN
9550# ifdef __cplusplus
9551 extern "C"
9552# endif
9553 int F77_DUMMY_MAIN() { return 1; }
9554#endif
9555int
9556main ()
9557{
9558AuCreateFlow ();
9559 ;
9560 return 0;
9561}
9562_ACEOF
9563rm -f conftest.$ac_objext conftest$ac_exeext
9564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565 (eval $ac_link) 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -s conftest$ac_exeext'
9570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571 (eval $ac_try) 2>&5
9572 ac_status=$?
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 ac_cv_lib_audio_AuCreateFlow=yes
9576else
9577 echo "$as_me: failed program was:" >&5
9578cat conftest.$ac_ext >&5
9579ac_cv_lib_audio_AuCreateFlow=no
9580fi
9581rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9582LIBS=$ac_check_lib_save_LIBS
9583fi
9584echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9585echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9586if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9587
9588cat >>confdefs.h <<\_ACEOF
9589#define HAVE_NAS 1
9590_ACEOF
9591
9592 NASLIBS="-laudio -lXt \$(X_LIBS) \$(XLIB)"
9593fi
9594
9595fi
9596
9597done
9598
9599
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009600
Robert Lunnon2a91e3f2002-08-01 18:22:38 +00009601AUDIOIOLIBS=""
9602
9603
9604for ac_header in libaudioio.h
9605do
9606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9607if eval "test \"\${$as_ac_Header+set}\" = set"; then
9608 echo "$as_me:$LINENO: checking for $ac_header" >&5
9609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9610if eval "test \"\${$as_ac_Header+set}\" = set"; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9612fi
9613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9614echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9615else
9616 # Is the header compilable?
9617echo "$as_me:$LINENO: checking $ac_header usability" >&5
9618echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9619cat >conftest.$ac_ext <<_ACEOF
9620#line $LINENO "configure"
9621#include "confdefs.h"
9622$ac_includes_default
9623#include <$ac_header>
9624_ACEOF
9625rm -f conftest.$ac_objext
9626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627 (eval $ac_compile) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
9631 { ac_try='test -s conftest.$ac_objext'
9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633 (eval $ac_try) 2>&5
9634 ac_status=$?
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 ac_header_compiler=yes
9638else
9639 echo "$as_me: failed program was:" >&5
9640cat conftest.$ac_ext >&5
9641ac_header_compiler=no
9642fi
9643rm -f conftest.$ac_objext conftest.$ac_ext
9644echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9645echo "${ECHO_T}$ac_header_compiler" >&6
9646
9647# Is the header present?
9648echo "$as_me:$LINENO: checking $ac_header presence" >&5
9649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9650cat >conftest.$ac_ext <<_ACEOF
9651#line $LINENO "configure"
9652#include "confdefs.h"
9653#include <$ac_header>
9654_ACEOF
9655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9657 ac_status=$?
9658 egrep -v '^ *\+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } >/dev/null; then
9663 if test -s conftest.err; then
9664 ac_cpp_err=$ac_c_preproc_warn_flag
9665 else
9666 ac_cpp_err=
9667 fi
9668else
9669 ac_cpp_err=yes
9670fi
9671if test -z "$ac_cpp_err"; then
9672 ac_header_preproc=yes
9673else
9674 echo "$as_me: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9676 ac_header_preproc=no
9677fi
9678rm -f conftest.err conftest.$ac_ext
9679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9680echo "${ECHO_T}$ac_header_preproc" >&6
9681
9682# So? What about this header?
9683case $ac_header_compiler:$ac_header_preproc in
9684 yes:no )
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9688echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9689 no:yes )
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9691echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9693echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9695echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9696esac
9697echo "$as_me:$LINENO: checking for $ac_header" >&5
9698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9699if eval "test \"\${$as_ac_Header+set}\" = set"; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9701else
9702 eval "$as_ac_Header=$ac_header_preproc"
9703fi
9704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9706
9707fi
9708if test `eval echo '${'$as_ac_Header'}'` = yes; then
9709 cat >>confdefs.h <<_ACEOF
9710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9711_ACEOF
9712 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
9713echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
9714if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716else
9717 ac_check_lib_save_LIBS=$LIBS
9718LIBS="-laudioio $LIBS"
9719cat >conftest.$ac_ext <<_ACEOF
9720#line $LINENO "configure"
9721#include "confdefs.h"
9722
9723/* Override any gcc2 internal prototype to avoid an error. */
9724#ifdef __cplusplus
9725extern "C"
9726#endif
9727/* We use char because int might match the return type of a gcc2
9728 builtin and then its argument prototype would still apply. */
9729char AudioIOGetVersion ();
9730#ifdef F77_DUMMY_MAIN
9731# ifdef __cplusplus
9732 extern "C"
9733# endif
9734 int F77_DUMMY_MAIN() { return 1; }
9735#endif
9736int
9737main ()
9738{
9739AudioIOGetVersion ();
9740 ;
9741 return 0;
9742}
9743_ACEOF
9744rm -f conftest.$ac_objext conftest$ac_exeext
9745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9746 (eval $ac_link) 2>&5
9747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } &&
9750 { ac_try='test -s conftest$ac_exeext'
9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752 (eval $ac_try) 2>&5
9753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; }; then
9756 ac_cv_lib_audioio_AudioIOGetVersion=yes
9757else
9758 echo "$as_me: failed program was:" >&5
9759cat conftest.$ac_ext >&5
9760ac_cv_lib_audioio_AudioIOGetVersion=no
9761fi
9762rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9763LIBS=$ac_check_lib_save_LIBS
9764fi
9765echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
9766echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
9767if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
9768 AUDIOIOLIBS="-laudioio"
9769
9770cat >>confdefs.h <<\_ACEOF
9771#define HAVE_LIBAUDIOIO 1
9772_ACEOF
9773
9774fi
9775
9776fi
9777
9778done
9779
9780
9781
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009782echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009783echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9784if test "${ac_cv_mmap64_works+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009786else
9787 if test "$cross_compiling" = yes; then
9788 ac_cv_mmap64_works="no"
9789else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009790 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009791#line $LINENO "configure"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009792#include "confdefs.h"
9793
9794 #define _FILE_OFFSET_BITS 64
9795 #include <stdio.h>
9796 #include <unistd.h>
9797 #include <fcntl.h>
9798 #include <sys/mman.h>
9799 #include <errno.h>
9800
9801 int main(int argc,char **argv) {
9802 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9803 if (fd == -1) exit(1);
9804
9805 unlink("conftest.map");
9806
9807 write(fd,"test",4);
9808
9809 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9810 (errno == EINVAL)
9811 ) {
9812 exit(1);
9813 }
9814 close(fd);
9815 fprintf(stderr,"success!\n");
9816 exit(0);
9817 }
9818
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009819
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009820_ACEOF
9821rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009823 (eval $ac_link) 2>&5
9824 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009828 (eval $ac_try) 2>&5
9829 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009831 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009832 ac_cv_mmap64_works="yes"
9833else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009834 echo "$as_me: program exited with status $ac_status" >&5
9835echo "$as_me: failed program was:" >&5
9836cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009837( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009838ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009839fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009840rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009841fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009842fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009843echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009844echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009845
9846if test "$ac_cv_mmap64_works" = "yes"
9847then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009848
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009849cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009850#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009851_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009852
9853fi
9854
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009855
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009856if test "x${GCC}" = "xyes"
9857then
9858 CFLAGS="$CFLAGS -Wall"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009859 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009860echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9861if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009863else
9864 if test "$cross_compiling" = yes; then
9865 ac_cv_c_gcc_strength_bug="yes"
9866else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009867 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009868#line $LINENO "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009869#include "confdefs.h"
9870
Eric Pouech5aee80f2000-11-11 00:31:39 +00009871int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009872int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00009873 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009874 unsigned int B = 3;
9875 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00009876 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +00009877 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9878 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009879
Eric Pouech5aee80f2000-11-11 00:31:39 +00009880 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009881}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009882_ACEOF
9883rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009885 (eval $ac_link) 2>&5
9886 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009890 (eval $ac_try) 2>&5
9891 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009893 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009894 ac_cv_c_gcc_strength_bug="no"
9895else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009896 echo "$as_me: program exited with status $ac_status" >&5
9897echo "$as_me: failed program was:" >&5
9898cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009899( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009900ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009901fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009902rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009903fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009904fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009905echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009906echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009907 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9908 then
9909 CFLAGS="$CFLAGS -fno-strength-reduce"
9910 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009911
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009912 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009913echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9914if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009916else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009917 ac_wine_try_cflags_saved=$CFLAGS
9918CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9919cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009920#line $LINENO "configure"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009921#include "confdefs.h"
9922
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009923#ifdef F77_DUMMY_MAIN
9924# ifdef __cplusplus
9925 extern "C"
9926# endif
9927 int F77_DUMMY_MAIN() { return 1; }
9928#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009929int
9930main ()
9931{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009932
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009933 ;
9934 return 0;
9935}
9936_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009937rm -f conftest.$ac_objext conftest$ac_exeext
9938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939 (eval $ac_link) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009940 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009942 (exit $ac_status); } &&
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009943 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009945 (eval $ac_try) 2>&5
9946 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009948 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009949 ac_cv_c_gcc_stack_boundary="yes"
9950else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009951 echo "$as_me: failed program was:" >&5
9952cat conftest.$ac_ext >&5
9953ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009954fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009955rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9956CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009957fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009958echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009959echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009960 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9961 then
9962 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9963 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009964fi
9965
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009966
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009967echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
9968echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
9969if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009970 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009971else
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009972 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009973#line $LINENO "configure"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009974#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +00009975void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009976
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009977#ifdef F77_DUMMY_MAIN
9978# ifdef __cplusplus
9979 extern "C"
9980# endif
9981 int F77_DUMMY_MAIN() { return 1; }
9982#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009983int
9984main ()
9985{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009986
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009987 ;
9988 return 0;
9989}
9990_ACEOF
9991rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009993 (eval $ac_link) 2>&5
9994 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009996 (exit $ac_status); } &&
9997 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009999 (eval $ac_try) 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); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010003 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000010004else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010005 echo "$as_me: failed program was:" >&5
10006cat conftest.$ac_ext >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010007cat >conftest.$ac_ext <<_ACEOF
10008#line $LINENO "configure"
10009#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +000010010void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010011
10012#ifdef F77_DUMMY_MAIN
10013# ifdef __cplusplus
10014 extern "C"
10015# endif
10016 int F77_DUMMY_MAIN() { return 1; }
10017#endif
10018int
10019main ()
10020{
10021
10022 ;
10023 return 0;
10024}
10025_ACEOF
10026rm -f conftest.$ac_objext conftest$ac_exeext
10027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10028 (eval $ac_link) 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10035 ac_status=$?
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010038 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010039else
10040 echo "$as_me: failed program was:" >&5
10041cat conftest.$ac_ext >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010042cat >conftest.$ac_ext <<_ACEOF
10043#line $LINENO "configure"
10044#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +000010045void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010046
10047#ifdef F77_DUMMY_MAIN
10048# ifdef __cplusplus
10049 extern "C"
10050# endif
10051 int F77_DUMMY_MAIN() { return 1; }
10052#endif
10053int
10054main ()
10055{
10056
10057 ;
10058 return 0;
10059}
10060_ACEOF
10061rm -f conftest.$ac_objext conftest$ac_exeext
10062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063 (eval $ac_link) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -s conftest$ac_exeext'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_asm_func_def=".type 2"
10074else
10075 echo "$as_me: failed program was:" >&5
10076cat conftest.$ac_ext >&5
10077ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010078fi
10079rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010080fi
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010081rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10082fi
10083rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10084fi
10085echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
10086echo "${ECHO_T}$ac_cv_asm_func_def" >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010087
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010088
10089
10090case "$ac_cv_asm_func_def" in
10091 ".def")
10092 cat >>confdefs.h <<\_ACEOF
10093#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010094_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010095 ;;
10096 ".type @function")
10097 cat >>confdefs.h <<\_ACEOF
10098#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
10099_ACEOF
10100 ;;
10101 ".type 2")
10102 cat >>confdefs.h <<\_ACEOF
10103#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
10104_ACEOF
10105 ;;
10106 *)
10107 cat >>confdefs.h <<\_ACEOF
10108#define __ASM_FUNC(name) ""
10109_ACEOF
10110 ;;
10111esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010112
10113
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010114echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010115echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
10116if test "${ac_cv_c_extern_prefix+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010118else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010119 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010120#line $LINENO "configure"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010121#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +000010122void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010123extern int ac_test;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010124#ifdef F77_DUMMY_MAIN
10125# ifdef __cplusplus
10126 extern "C"
10127# endif
10128 int F77_DUMMY_MAIN() { return 1; }
10129#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010130int
10131main ()
10132{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010133if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010134 ;
10135 return 0;
10136}
10137_ACEOF
10138rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010140 (eval $ac_link) 2>&5
10141 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010143 (exit $ac_status); } &&
10144 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010146 (eval $ac_try) 2>&5
10147 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010149 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010150 ac_cv_c_extern_prefix="yes"
10151else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010152 echo "$as_me: failed program was:" >&5
10153cat conftest.$ac_ext >&5
10154ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010155fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010156rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010157fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010158echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010159echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010160
10161
10162
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010163if test "$ac_cv_c_extern_prefix" = "yes"
10164then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010165 cat >>confdefs.h <<\_ACEOF
10166#define __ASM_NAME(name) "_" name
10167_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010168
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010169else
10170 cat >>confdefs.h <<\_ACEOF
10171#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010172_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010173
10174fi
10175
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010176
10177echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010178echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
10179if test "${ac_cv_c_stdcall_decoration+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010181else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010182 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010183#line $LINENO "configure"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010184#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +000010185void ac_asm(void) { asm("\t.globl _ac_test@0\n_ac_test@0:\n\t.globl ac_test@0\nac_test@0:"); }
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010186extern void __attribute__((__stdcall__)) ac_test(void);
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010187#ifdef F77_DUMMY_MAIN
10188# ifdef __cplusplus
10189 extern "C"
10190# endif
10191 int F77_DUMMY_MAIN() { return 1; }
10192#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010193int
10194main ()
10195{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010196ac_test()
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010197 ;
10198 return 0;
10199}
10200_ACEOF
10201rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010203 (eval $ac_link) 2>&5
10204 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010206 (exit $ac_status); } &&
10207 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010209 (eval $ac_try) 2>&5
10210 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010212 (exit $ac_status); }; }; then
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010213 ac_cv_c_stdcall_decoration="yes"
10214else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010215 echo "$as_me: failed program was:" >&5
10216cat conftest.$ac_ext >&5
10217ac_cv_c_stdcall_decoration="no"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010218fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010220fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010221echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010222echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010223if test "$ac_cv_c_stdcall_decoration" = "yes"
10224then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010225
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010226cat >>confdefs.h <<\_ACEOF
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010227#define NEED_STDCALL_DECORATION 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010228_ACEOF
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010229
10230fi
10231
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010232
10233echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010234echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
10235if test "${ac_cv_c_asm_string+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010237else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010238 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010239#line $LINENO "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010240#include "confdefs.h"
Marcus Meissner49163d52002-08-20 00:26:40 +000010241void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010242
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010243#ifdef F77_DUMMY_MAIN
10244# ifdef __cplusplus
10245 extern "C"
10246# endif
10247 int F77_DUMMY_MAIN() { return 1; }
10248#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010249int
10250main ()
10251{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010252
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010253 ;
10254 return 0;
10255}
10256_ACEOF
10257rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010259 (eval $ac_link) 2>&5
10260 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010262 (exit $ac_status); } &&
10263 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010265 (eval $ac_try) 2>&5
10266 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010268 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010269 ac_cv_c_asm_string="yes"
10270else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010271 echo "$as_me: failed program was:" >&5
10272cat conftest.$ac_ext >&5
10273ac_cv_c_asm_string="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010274fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010275rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010276fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010277echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010278echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010279if test "$ac_cv_c_asm_string" = "yes"
10280then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010281
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010282cat >>confdefs.h <<\_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010283#define HAVE_ASM_STRING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010284_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010285
10286fi
10287
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010288
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010289DLLEXT=""
10290
10291DLLFLAGS=""
10292
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010293DLLIBS=""
10294
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010295LDDLLFLAGS=""
10296
10297LDSHARED=""
10298
10299
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010300case $host_os in
10301 cygwin*|mingw32*)
10302 if test -n "$ac_tool_prefix"; then
10303 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
10304set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +000010305echo "$as_me:$LINENO: checking for $ac_word" >&5
10306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10307if test "${ac_cv_prog_DLLWRAP+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309else
10310 if test -n "$DLLWRAP"; then
10311 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
10312else
10313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314for as_dir in $PATH
10315do
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
10318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010320 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000010321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 break 2
10323 fi
10324done
10325done
10326
Alexandre Julliard466ae142002-05-07 18:33:47 +000010327fi
10328fi
10329DLLWRAP=$ac_cv_prog_DLLWRAP
10330if test -n "$DLLWRAP"; then
10331 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
10332echo "${ECHO_T}$DLLWRAP" >&6
10333else
10334 echo "$as_me:$LINENO: result: no" >&5
10335echo "${ECHO_T}no" >&6
10336fi
10337
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010338fi
10339if test -z "$ac_cv_prog_DLLWRAP"; then
10340 ac_ct_DLLWRAP=$DLLWRAP
10341 # Extract the first word of "dllwrap", so it can be a program name with args.
10342set dummy dllwrap; ac_word=$2
10343echo "$as_me:$LINENO: checking for $ac_word" >&5
10344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10345if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
10346 echo $ECHO_N "(cached) $ECHO_C" >&6
10347else
10348 if test -n "$ac_ct_DLLWRAP"; then
10349 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
10350else
10351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352for as_dir in $PATH
10353do
10354 IFS=$as_save_IFS
10355 test -z "$as_dir" && as_dir=.
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10358 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
10359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10360 break 2
10361 fi
10362done
10363done
10364
10365 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
10366fi
10367fi
10368ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
10369if test -n "$ac_ct_DLLWRAP"; then
10370 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
10371echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
10372else
10373 echo "$as_me:$LINENO: result: no" >&5
10374echo "${ECHO_T}no" >&6
10375fi
10376
10377 DLLWRAP=$ac_ct_DLLWRAP
10378else
10379 DLLWRAP="$ac_cv_prog_DLLWRAP"
10380fi
10381
10382 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010383 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010384 else
10385 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010386 fi
10387 ;;
10388 *)
10389
10390for ac_header in dlfcn.h
10391do
10392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10393if eval "test \"\${$as_ac_Header+set}\" = set"; then
10394 echo "$as_me:$LINENO: checking for $ac_header" >&5
10395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10396if eval "test \"\${$as_ac_Header+set}\" = set"; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398fi
10399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10401else
10402 # Is the header compilable?
10403echo "$as_me:$LINENO: checking $ac_header usability" >&5
10404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10405cat >conftest.$ac_ext <<_ACEOF
10406#line $LINENO "configure"
10407#include "confdefs.h"
10408$ac_includes_default
10409#include <$ac_header>
10410_ACEOF
10411rm -f conftest.$ac_objext
10412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10413 (eval $ac_compile) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try='test -s conftest.$ac_objext'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
10423 ac_header_compiler=yes
10424else
10425 echo "$as_me: failed program was:" >&5
10426cat conftest.$ac_ext >&5
10427ac_header_compiler=no
10428fi
10429rm -f conftest.$ac_objext conftest.$ac_ext
10430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10431echo "${ECHO_T}$ac_header_compiler" >&6
10432
10433# Is the header present?
10434echo "$as_me:$LINENO: checking $ac_header presence" >&5
10435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10436cat >conftest.$ac_ext <<_ACEOF
10437#line $LINENO "configure"
10438#include "confdefs.h"
10439#include <$ac_header>
10440_ACEOF
10441if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10443 ac_status=$?
10444 egrep -v '^ *\+' conftest.er1 >conftest.err
10445 rm -f conftest.er1
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } >/dev/null; then
10449 if test -s conftest.err; then
10450 ac_cpp_err=$ac_c_preproc_warn_flag
10451 else
10452 ac_cpp_err=
10453 fi
10454else
10455 ac_cpp_err=yes
10456fi
10457if test -z "$ac_cpp_err"; then
10458 ac_header_preproc=yes
10459else
10460 echo "$as_me: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10462 ac_header_preproc=no
10463fi
10464rm -f conftest.err conftest.$ac_ext
10465echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10466echo "${ECHO_T}$ac_header_preproc" >&6
10467
10468# So? What about this header?
10469case $ac_header_compiler:$ac_header_preproc in
10470 yes:no )
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10472echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10474echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10475 no:yes )
10476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10477echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10479echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10481echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10482esac
10483echo "$as_me:$LINENO: checking for $ac_header" >&5
10484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10485if eval "test \"\${$as_ac_Header+set}\" = set"; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487else
10488 eval "$as_ac_Header=$ac_header_preproc"
10489fi
10490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10492
10493fi
10494if test `eval echo '${'$as_ac_Header'}'` = yes; then
10495 cat >>confdefs.h <<_ACEOF
10496#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10497_ACEOF
10498
10499for ac_func in dlopen
10500do
10501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10502echo "$as_me:$LINENO: checking for $ac_func" >&5
10503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10504if eval "test \"\${$as_ac_var+set}\" = set"; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506else
10507 cat >conftest.$ac_ext <<_ACEOF
10508#line $LINENO "configure"
10509#include "confdefs.h"
10510/* System header to define __stub macros and hopefully few prototypes,
10511 which can conflict with char $ac_func (); below. */
10512#include <assert.h>
10513/* Override any gcc2 internal prototype to avoid an error. */
10514#ifdef __cplusplus
10515extern "C"
10516#endif
10517/* We use char because int might match the return type of a gcc2
10518 builtin and then its argument prototype would still apply. */
10519char $ac_func ();
10520char (*f) ();
10521
10522#ifdef F77_DUMMY_MAIN
10523# ifdef __cplusplus
10524 extern "C"
10525# endif
10526 int F77_DUMMY_MAIN() { return 1; }
10527#endif
10528int
10529main ()
10530{
10531/* The GNU C library defines this for functions which it implements
10532 to always fail with ENOSYS. Some functions are actually named
10533 something starting with __ and the normal name is an alias. */
10534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10535choke me
10536#else
10537f = $ac_func;
10538#endif
10539
10540 ;
10541 return 0;
10542}
10543_ACEOF
10544rm -f conftest.$ac_objext conftest$ac_exeext
10545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546 (eval $ac_link) 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -s conftest$ac_exeext'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10553 ac_status=$?
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 eval "$as_ac_var=yes"
10557else
10558 echo "$as_me: failed program was:" >&5
10559cat conftest.$ac_ext >&5
10560eval "$as_ac_var=no"
10561fi
10562rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10563fi
10564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10566if test `eval echo '${'$as_ac_var'}'` = yes; then
10567 cat >>confdefs.h <<_ACEOF
10568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10569_ACEOF
10570
10571else
10572 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10573echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10574if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10576else
10577 ac_check_lib_save_LIBS=$LIBS
10578LIBS="-ldl $LIBS"
10579cat >conftest.$ac_ext <<_ACEOF
10580#line $LINENO "configure"
10581#include "confdefs.h"
10582
10583/* Override any gcc2 internal prototype to avoid an error. */
10584#ifdef __cplusplus
10585extern "C"
10586#endif
10587/* We use char because int might match the return type of a gcc2
10588 builtin and then its argument prototype would still apply. */
10589char dlopen ();
10590#ifdef F77_DUMMY_MAIN
10591# ifdef __cplusplus
10592 extern "C"
10593# endif
10594 int F77_DUMMY_MAIN() { return 1; }
10595#endif
10596int
10597main ()
10598{
10599dlopen ();
10600 ;
10601 return 0;
10602}
10603_ACEOF
10604rm -f conftest.$ac_objext conftest$ac_exeext
10605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606 (eval $ac_link) 2>&5
10607 ac_status=$?
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } &&
10610 { ac_try='test -s conftest$ac_exeext'
10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10613 ac_status=$?
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; }; then
10616 ac_cv_lib_dl_dlopen=yes
10617else
10618 echo "$as_me: failed program was:" >&5
10619cat conftest.$ac_ext >&5
10620ac_cv_lib_dl_dlopen=no
10621fi
10622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10623LIBS=$ac_check_lib_save_LIBS
10624fi
10625echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10626echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10627if test $ac_cv_lib_dl_dlopen = yes; then
10628
10629cat >>confdefs.h <<\_ACEOF
10630#define HAVE_DLOPEN 1
10631_ACEOF
10632
10633 DLLIBS="-ldl"
10634else
10635 LIBEXT="a"
10636fi
10637
10638fi
10639done
10640
10641else
10642 LIBEXT="a"
10643fi
10644
10645done
10646
10647
10648 if test "$LIBEXT" = "so"
10649 then
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010650 DLLFLAGS="-fPIC"
10651 DLLEXT=".so"
Alexandre Julliard466ae142002-05-07 18:33:47 +000010652 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010653echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10654if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010656else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010657 ac_wine_try_cflags_saved=$CFLAGS
10658CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10659cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010660#line $LINENO "configure"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010661#include "confdefs.h"
10662
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010663#ifdef F77_DUMMY_MAIN
10664# ifdef __cplusplus
10665 extern "C"
10666# endif
10667 int F77_DUMMY_MAIN() { return 1; }
10668#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010669int
10670main ()
10671{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010672
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010673 ;
10674 return 0;
10675}
10676_ACEOF
10677rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010679 (eval $ac_link) 2>&5
10680 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010682 (exit $ac_status); } &&
10683 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010685 (eval $ac_try) 2>&5
10686 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010688 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000010689 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010690else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010691 echo "$as_me: failed program was:" >&5
10692cat conftest.$ac_ext >&5
10693ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010694fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010695rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010696CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010697fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010698echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010699echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000010700 if test "$ac_cv_c_dll_gnuelf" = "yes"
10701 then
10702 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10703 LDDLLFLAGS="-Wl,-Bsymbolic"
10704 else
10705 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010706echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10707if test "${ac_cv_c_dll_unixware+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000010709else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010710 ac_wine_try_cflags_saved=$CFLAGS
10711CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10712cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010713#line $LINENO "configure"
Todd Vierling4b992b01998-12-15 15:26:27 +000010714#include "confdefs.h"
10715
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010716#ifdef F77_DUMMY_MAIN
10717# ifdef __cplusplus
10718 extern "C"
10719# endif
10720 int F77_DUMMY_MAIN() { return 1; }
10721#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010722int
10723main ()
10724{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010725
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010726 ;
10727 return 0;
10728}
10729_ACEOF
10730rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010732 (eval $ac_link) 2>&5
10733 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010735 (exit $ac_status); } &&
10736 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010738 (eval $ac_try) 2>&5
10739 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010741 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000010742 ac_cv_c_dll_unixware="yes"
10743else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010744 echo "$as_me: failed program was:" >&5
10745cat conftest.$ac_ext >&5
10746ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000010747fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010748rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010749CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010750fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010751echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010752echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000010753 if test "$ac_cv_c_dll_unixware" = "yes"
10754 then
10755 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10756 LDDLLFLAGS="-Wl,-B,symbolic"
10757 fi
10758 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010759 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000010760
10761 CROSSTEST=""
10762
10763 if test "$cross_compiling" = "no"
10764 then
10765 for ac_prog in i586-mingw32msvc-gcc
10766do
10767 # Extract the first word of "$ac_prog", so it can be a program name with args.
10768set dummy $ac_prog; ac_word=$2
10769echo "$as_me:$LINENO: checking for $ac_word" >&5
10770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10771if test "${ac_cv_prog_CROSSCC+set}" = set; then
10772 echo $ECHO_N "(cached) $ECHO_C" >&6
10773else
10774 if test -n "$CROSSCC"; then
10775 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
10776else
10777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778for as_dir in $PATH
10779do
10780 IFS=$as_save_IFS
10781 test -z "$as_dir" && as_dir=.
10782 for ac_exec_ext in '' $ac_executable_extensions; do
10783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10784 ac_cv_prog_CROSSCC="$ac_prog"
10785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10786 break 2
10787 fi
10788done
10789done
10790
10791fi
10792fi
10793CROSSCC=$ac_cv_prog_CROSSCC
10794if test -n "$CROSSCC"; then
10795 echo "$as_me:$LINENO: result: $CROSSCC" >&5
10796echo "${ECHO_T}$CROSSCC" >&6
10797else
10798 echo "$as_me:$LINENO: result: no" >&5
10799echo "${ECHO_T}no" >&6
10800fi
10801
10802 test -n "$CROSSCC" && break
10803done
10804test -n "$CROSSCC" || CROSSCC="false"
10805
10806 for ac_prog in i586-mingw32msvc-dlltool
10807do
10808 # Extract the first word of "$ac_prog", so it can be a program name with args.
10809set dummy $ac_prog; ac_word=$2
10810echo "$as_me:$LINENO: checking for $ac_word" >&5
10811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10812if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10814else
10815 if test -n "$DLLTOOL"; then
10816 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10817else
10818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819for as_dir in $PATH
10820do
10821 IFS=$as_save_IFS
10822 test -z "$as_dir" && as_dir=.
10823 for ac_exec_ext in '' $ac_executable_extensions; do
10824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10825 ac_cv_prog_DLLTOOL="$ac_prog"
10826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10827 break 2
10828 fi
10829done
10830done
10831
10832fi
10833fi
10834DLLTOOL=$ac_cv_prog_DLLTOOL
10835if test -n "$DLLTOOL"; then
10836 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10837echo "${ECHO_T}$DLLTOOL" >&6
10838else
10839 echo "$as_me:$LINENO: result: no" >&5
10840echo "${ECHO_T}no" >&6
10841fi
10842
10843 test -n "$DLLTOOL" && break
10844done
10845test -n "$DLLTOOL" || DLLTOOL="false"
10846
10847 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
10848 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010849 ;;
10850esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010851
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000010852if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010853 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010854It is currently not possible to build Wine without shared library
10855(.so) support to allow transparent switch between .so and .dll files.
10856If you are using Linux, you will need a newer binutils.
10857" >&5
10858echo "$as_me: error: could not find a way to build shared libraries.
10859It is currently not possible to build Wine without shared library
10860(.so) support to allow transparent switch between .so and .dll files.
10861If you are using Linux, you will need a newer binutils.
10862" >&2;}
10863 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000010864fi
10865
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010866case $build_os in
10867 cygwin*|mingw32*)
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010868 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
10869 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010870 *)
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010871 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
10872 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010873esac
10874
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010875CRTLIBS=""
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010876
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010877case $host_os in
10878 mingw32*)
10879 CRTLIBS="-lmsvcrt" ;;
10880esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010881
10882
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010883if test "$LIBEXT" = "so"
10884then
10885 # Extract the first word of "ldd", so it can be a program name with args.
10886set dummy ldd; ac_word=$2
10887echo "$as_me:$LINENO: checking for $ac_word" >&5
10888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10889if test "${ac_cv_path_LDD+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10891else
10892 case $LDD in
10893 [\\/]* | ?:[\\/]*)
10894 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10895 ;;
10896 *)
10897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10898for as_dir in /sbin:/usr/sbin:$PATH
10899do
10900 IFS=$as_save_IFS
10901 test -z "$as_dir" && as_dir=.
10902 for ac_exec_ext in '' $ac_executable_extensions; do
10903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10904 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10906 break 2
10907 fi
10908done
10909done
10910
10911 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10912 ;;
10913esac
10914fi
10915LDD=$ac_cv_path_LDD
10916
10917if test -n "$LDD"; then
10918 echo "$as_me:$LINENO: result: $LDD" >&5
10919echo "${ECHO_T}$LDD" >&6
10920else
10921 echo "$as_me:$LINENO: result: no" >&5
10922echo "${ECHO_T}no" >&6
10923fi
10924
10925
10926echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10927echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10928if test "${ac_cv_lib_soname_X11+set}" = set; then
10929 echo $ECHO_N "(cached) $ECHO_C" >&6
10930else
10931 ac_get_soname_save_LIBS=$LIBS
10932LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10933 cat >conftest.$ac_ext <<_ACEOF
10934#line $LINENO "configure"
10935#include "confdefs.h"
10936
10937/* Override any gcc2 internal prototype to avoid an error. */
10938#ifdef __cplusplus
10939extern "C"
10940#endif
10941/* We use char because int might match the return type of a gcc2
10942 builtin and then its argument prototype would still apply. */
10943char XCreateWindow ();
10944#ifdef F77_DUMMY_MAIN
10945# ifdef __cplusplus
10946 extern "C"
10947# endif
10948 int F77_DUMMY_MAIN() { return 1; }
10949#endif
10950int
10951main ()
10952{
10953XCreateWindow ();
10954 ;
10955 return 0;
10956}
10957_ACEOF
10958rm -f conftest.$ac_objext conftest$ac_exeext
10959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10960 (eval $ac_link) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } &&
10964 { ac_try='test -s conftest$ac_exeext'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
10970 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10971 if test "x$ac_cv_lib_soname_X11" = "x"
10972 then
10973 ac_cv_lib_soname_X11="libX11.so"
10974 fi
10975else
10976 echo "$as_me: failed program was:" >&5
10977cat conftest.$ac_ext >&5
10978ac_cv_lib_soname_X11="libX11.so"
10979fi
10980rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10981 LIBS=$ac_get_soname_save_LIBS
10982fi
10983echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10984echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10985if test "x$ac_cv_lib_soname_X11" != xNONE
10986then
10987cat >>confdefs.h <<_ACEOF
10988#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10989_ACEOF
10990fi
10991
10992echo "$as_me:$LINENO: checking for -lXext soname" >&5
10993echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10994if test "${ac_cv_lib_soname_Xext+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10996else
10997 ac_get_soname_save_LIBS=$LIBS
10998LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10999 cat >conftest.$ac_ext <<_ACEOF
11000#line $LINENO "configure"
11001#include "confdefs.h"
11002
11003/* Override any gcc2 internal prototype to avoid an error. */
11004#ifdef __cplusplus
11005extern "C"
11006#endif
11007/* We use char because int might match the return type of a gcc2
11008 builtin and then its argument prototype would still apply. */
11009char XextCreateExtension ();
11010#ifdef F77_DUMMY_MAIN
11011# ifdef __cplusplus
11012 extern "C"
11013# endif
11014 int F77_DUMMY_MAIN() { return 1; }
11015#endif
11016int
11017main ()
11018{
11019XextCreateExtension ();
11020 ;
11021 return 0;
11022}
11023_ACEOF
11024rm -f conftest.$ac_objext conftest$ac_exeext
11025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11026 (eval $ac_link) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } &&
11030 { ac_try='test -s conftest$ac_exeext'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11037 if test "x$ac_cv_lib_soname_Xext" = "x"
11038 then
11039 ac_cv_lib_soname_Xext="libXext.so"
11040 fi
11041else
11042 echo "$as_me: failed program was:" >&5
11043cat conftest.$ac_ext >&5
11044ac_cv_lib_soname_Xext="libXext.so"
11045fi
11046rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11047 LIBS=$ac_get_soname_save_LIBS
11048fi
11049echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
11050echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
11051if test "x$ac_cv_lib_soname_Xext" != xNONE
11052then
11053cat >>confdefs.h <<_ACEOF
11054#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
11055_ACEOF
11056fi
11057
11058echo "$as_me:$LINENO: checking for -lXrender soname" >&5
11059echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
11060if test "${ac_cv_lib_soname_Xrender+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11062else
11063 ac_get_soname_save_LIBS=$LIBS
11064LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
11065 cat >conftest.$ac_ext <<_ACEOF
11066#line $LINENO "configure"
11067#include "confdefs.h"
11068
11069/* Override any gcc2 internal prototype to avoid an error. */
11070#ifdef __cplusplus
11071extern "C"
11072#endif
11073/* We use char because int might match the return type of a gcc2
11074 builtin and then its argument prototype would still apply. */
11075char XRenderQueryExtension ();
11076#ifdef F77_DUMMY_MAIN
11077# ifdef __cplusplus
11078 extern "C"
11079# endif
11080 int F77_DUMMY_MAIN() { return 1; }
11081#endif
11082int
11083main ()
11084{
11085XRenderQueryExtension ();
11086 ;
11087 return 0;
11088}
11089_ACEOF
11090rm -f conftest.$ac_objext conftest$ac_exeext
11091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092 (eval $ac_link) 2>&5
11093 ac_status=$?
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
11096 { ac_try='test -s conftest$ac_exeext'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11099 ac_status=$?
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; }; then
11102 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11103 if test "x$ac_cv_lib_soname_Xrender" = "x"
11104 then
11105 ac_cv_lib_soname_Xrender="libXrender.so"
11106 fi
11107else
11108 echo "$as_me: failed program was:" >&5
11109cat conftest.$ac_ext >&5
11110ac_cv_lib_soname_Xrender="libXrender.so"
11111fi
11112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11113 LIBS=$ac_get_soname_save_LIBS
11114fi
11115echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
11116echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
11117if test "x$ac_cv_lib_soname_Xrender" != xNONE
11118then
11119cat >>confdefs.h <<_ACEOF
11120#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
11121_ACEOF
11122fi
11123
11124echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
11125echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
11126if test "${ac_cv_lib_soname_freetype+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11128else
11129 ac_get_soname_save_LIBS=$LIBS
11130LIBS="-lfreetype $X_LIBS $LIBS"
11131 cat >conftest.$ac_ext <<_ACEOF
11132#line $LINENO "configure"
11133#include "confdefs.h"
11134
11135/* Override any gcc2 internal prototype to avoid an error. */
11136#ifdef __cplusplus
11137extern "C"
11138#endif
11139/* We use char because int might match the return type of a gcc2
11140 builtin and then its argument prototype would still apply. */
11141char FT_Init_FreeType ();
11142#ifdef F77_DUMMY_MAIN
11143# ifdef __cplusplus
11144 extern "C"
11145# endif
11146 int F77_DUMMY_MAIN() { return 1; }
11147#endif
11148int
11149main ()
11150{
11151FT_Init_FreeType ();
11152 ;
11153 return 0;
11154}
11155_ACEOF
11156rm -f conftest.$ac_objext conftest$ac_exeext
11157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11158 (eval $ac_link) 2>&5
11159 ac_status=$?
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); } &&
11162 { ac_try='test -s conftest$ac_exeext'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11165 ac_status=$?
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
11169 if test "x$ac_cv_lib_soname_freetype" = "x"
11170 then
11171 ac_cv_lib_soname_freetype="libfreetype.so"
11172 fi
11173else
11174 echo "$as_me: failed program was:" >&5
11175cat conftest.$ac_ext >&5
11176ac_cv_lib_soname_freetype="libfreetype.so"
11177fi
11178rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11179 LIBS=$ac_get_soname_save_LIBS
11180fi
11181echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
11182echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
11183if test "x$ac_cv_lib_soname_freetype" != xNONE
11184then
11185cat >>confdefs.h <<_ACEOF
11186#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11187_ACEOF
11188fi
11189fi
11190
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011191
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011192
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011193wine_cv_libc_reentrant=no
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011194echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011195echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
11196if test "${wine_cv_libc_r___errno_location+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011198else
11199 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011200 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011201else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011202 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011203#line $LINENO "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011204#include "confdefs.h"
11205int myerrno = 0;
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011206int *__errno_location(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011207main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011208_ACEOF
11209rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011211 (eval $ac_link) 2>&5
11212 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011216 (eval $ac_try) 2>&5
11217 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011219 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000011220 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011221else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011222 echo "$as_me: program exited with status $ac_status" >&5
11223echo "$as_me: failed program was:" >&5
11224cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011225( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011226wine_cv_libc_r___errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011227fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011228rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011229fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011230fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011231echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011232echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011233if test "$wine_cv_libc_r___errno_location" = "yes"; then
11234 wine_cv_libc_reentrant=__errno_location
11235else
11236 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011237echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
11238if test "${wine_cv_libc_r___error+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011240else
11241 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011242 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000011243else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011244 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011245#line $LINENO "configure"
Marcus Meissnerc2606381999-04-11 15:20:29 +000011246#include "confdefs.h"
11247int myerrno = 0;
Marcus Meissnerc2606381999-04-11 15:20:29 +000011248int *__error(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011249main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011250_ACEOF
11251rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011253 (eval $ac_link) 2>&5
11254 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011258 (eval $ac_try) 2>&5
11259 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011261 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000011262 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000011263else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011264 echo "$as_me: program exited with status $ac_status" >&5
11265echo "$as_me: failed program was:" >&5
11266cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011267( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011268wine_cv_libc_r___error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +000011269fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011270rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissnerc2606381999-04-11 15:20:29 +000011271fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011272fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011273echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011274echo "${ECHO_T}$wine_cv_libc_r___error" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011275if test "$wine_cv_libc_r___error" = "yes"; then
11276 wine_cv_libc_reentrant=__error
11277else
11278 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011279echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
11280if test "${wine_cv_libc_r____errno+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011282else
11283 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011284 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011285else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011286 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011287#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011288#include "confdefs.h"
11289int myerrno = 0;
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011290int *___errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011291main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011292_ACEOF
11293rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011295 (eval $ac_link) 2>&5
11296 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011300 (eval $ac_try) 2>&5
11301 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011303 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000011304 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011305else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011306 echo "$as_me: program exited with status $ac_status" >&5
11307echo "$as_me: failed program was:" >&5
11308cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011309( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011310wine_cv_libc_r____errno=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011311fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011312rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011313fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011314fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011315echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011316echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011317if test "$wine_cv_libc_r____errno" = "yes"; then
11318 wine_cv_libc_reentrant=___errno
11319else
11320 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011321echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
11322if test "${wine_cv_libc_r___thr_errno+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
Ron Recorde977d6c1999-09-05 12:32:05 +000011324else
11325 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011326 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000011327else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011328 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011329#line $LINENO "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +000011330#include "confdefs.h"
11331int myerrno = 0;
Ron Recorde977d6c1999-09-05 12:32:05 +000011332int *__thr_errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011333main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011334_ACEOF
11335rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011337 (eval $ac_link) 2>&5
11338 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011342 (eval $ac_try) 2>&5
11343 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011345 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000011346 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000011347else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011348 echo "$as_me: program exited with status $ac_status" >&5
11349echo "$as_me: failed program was:" >&5
11350cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011351( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011352wine_cv_libc_r___thr_errno=no
Ron Recorde977d6c1999-09-05 12:32:05 +000011353fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011354rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ron Recorde977d6c1999-09-05 12:32:05 +000011355fi
Ron Recorde977d6c1999-09-05 12:32:05 +000011356fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011357echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011358echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011359if test "$wine_cv_libc_r___thr_errno" = "yes"; then
11360 wine_cv_libc_reentrant=__thr_errno
11361else
11362 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011363echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
11364if test "${wine_cv_libc_r___errno+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
Bang Jun-Young33dff342001-05-07 18:21:10 +000011366else
11367 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011368 wine_cv_libc_r___errno=yes
Bang Jun-Young33dff342001-05-07 18:21:10 +000011369else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011370 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011371#line $LINENO "configure"
Bang Jun-Young33dff342001-05-07 18:21:10 +000011372#include "confdefs.h"
11373int myerrno = 0;
Bang Jun-Young33dff342001-05-07 18:21:10 +000011374int *__errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011375main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011376_ACEOF
11377rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011379 (eval $ac_link) 2>&5
11380 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011384 (eval $ac_try) 2>&5
11385 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011387 (exit $ac_status); }; }; then
Bang Jun-Young33dff342001-05-07 18:21:10 +000011388 wine_cv_libc_r___errno=yes
11389else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011390 echo "$as_me: program exited with status $ac_status" >&5
11391echo "$as_me: failed program was:" >&5
11392cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011393( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011394wine_cv_libc_r___errno=no
Bang Jun-Young33dff342001-05-07 18:21:10 +000011395fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011396rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bang Jun-Young33dff342001-05-07 18:21:10 +000011397fi
Bang Jun-Young33dff342001-05-07 18:21:10 +000011398fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011399echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011400echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011401if test "$wine_cv_libc_r___errno" = "yes"; then
11402 wine_cv_libc_reentrant=__errno
11403fi
11404
11405
11406fi
11407
11408fi
11409
11410fi
11411
Bang Jun-Young33dff342001-05-07 18:21:10 +000011412fi
11413
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011414
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011415if test "$wine_cv_libc_reentrant" != "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011416then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011417
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011418cat >>confdefs.h <<_ACEOF
Alexandre Julliard598412e2001-01-17 20:22:22 +000011419#define ERRNO_LOCATION $wine_cv_libc_reentrant
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011420_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011421
11422fi
11423
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011424
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000011425if test "$have_x" = "yes"
Patrik Stridvall24110281999-02-04 10:09:54 +000011426then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011427echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011428echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
11429if test "${wine_cv_x_reentrant+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000011431else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000011432 libX11_check=none
11433 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
11434 if test -r $dir/libX11.so; then
11435 libX11_check="-D $dir/libX11.so"
11436 break
11437 fi
11438 if test -r $dir/libX11.a; then
11439 libX11_check="$dir/libX11.a"
11440 break
11441 fi
11442 done
11443 if test "$libX11_check" != "none"; then
11444 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
11445 then
11446 wine_cv_x_reentrant=yes
11447 else
11448 wine_cv_x_reentrant=no
11449 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000011450 else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000011451 wine_cv_x_reentrant=unknown
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011452 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000011453fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011454echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011455echo "${ECHO_T}$wine_cv_x_reentrant" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +000011456fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011457
11458
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011459# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11460# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011461echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011462echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11463if test "${ac_cv_working_alloca_h+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011465else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011466 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011467#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011468#include "confdefs.h"
11469#include <alloca.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011470#ifdef F77_DUMMY_MAIN
11471# ifdef __cplusplus
11472 extern "C"
11473# endif
11474 int F77_DUMMY_MAIN() { return 1; }
11475#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011476int
11477main ()
11478{
11479char *p = (char *) alloca (2 * sizeof (int));
11480 ;
11481 return 0;
11482}
11483_ACEOF
11484rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011486 (eval $ac_link) 2>&5
11487 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011489 (exit $ac_status); } &&
11490 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011492 (eval $ac_try) 2>&5
11493 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011495 (exit $ac_status); }; }; then
11496 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011497else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011498 echo "$as_me: failed program was:" >&5
11499cat conftest.$ac_ext >&5
11500ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011501fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011502rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011503fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011504echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011505echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11506if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011507
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011508cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011509#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011510_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011511
11512fi
11513
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011514echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011515echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11516if test "${ac_cv_func_alloca_works+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011518else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011519 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011520#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011521#include "confdefs.h"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011522#ifdef __GNUC__
11523# define alloca __builtin_alloca
11524#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000011525# ifdef _MSC_VER
11526# include <malloc.h>
11527# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011528# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000011529# if HAVE_ALLOCA_H
11530# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011531# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000011532# ifdef _AIX
11533 #pragma alloca
11534# else
11535# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011536char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000011537# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011538# endif
11539# endif
11540# endif
11541#endif
11542
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011543#ifdef F77_DUMMY_MAIN
11544# ifdef __cplusplus
11545 extern "C"
11546# endif
11547 int F77_DUMMY_MAIN() { return 1; }
11548#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011549int
11550main ()
11551{
11552char *p = (char *) alloca (1);
11553 ;
11554 return 0;
11555}
11556_ACEOF
11557rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011559 (eval $ac_link) 2>&5
11560 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011562 (exit $ac_status); } &&
11563 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011565 (eval $ac_try) 2>&5
11566 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011568 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011569 ac_cv_func_alloca_works=yes
11570else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011571 echo "$as_me: failed program was:" >&5
11572cat conftest.$ac_ext >&5
11573ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011574fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011576fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011577echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011578echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011579
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011580if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011581
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011582cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011583#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011584_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011585
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011586else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011587 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011588# that cause trouble. Some versions do not even contain alloca or
11589# contain a buggy version. If you still want to use their alloca,
11590# use ar to extract alloca.o from them instead of compiling alloca.c.
11591
11592ALLOCA=alloca.$ac_objext
11593
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011594cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011595#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011596_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011597
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011598
11599echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011600echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11601if test "${ac_cv_os_cray+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011603else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011604 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011605#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011606#include "confdefs.h"
11607#if defined(CRAY) && ! defined(CRAY2)
11608webecray
11609#else
11610wenotbecray
11611#endif
11612
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011613_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11615 egrep "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011616 ac_cv_os_cray=yes
11617else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011618 ac_cv_os_cray=no
11619fi
11620rm -f conftest*
11621
11622fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011623echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011624echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011625if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011626 for ac_func in _getb67 GETB67 getb67; do
11627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011628echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011629echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11630if eval "test \"\${$as_ac_var+set}\" = set"; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011632else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011633 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011634#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011635#include "confdefs.h"
11636/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011637 which can conflict with char $ac_func (); below. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011638#include <assert.h>
11639/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011640#ifdef __cplusplus
11641extern "C"
11642#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000011643/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011644 builtin and then its argument prototype would still apply. */
11645char $ac_func ();
11646char (*f) ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011647
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011648#ifdef F77_DUMMY_MAIN
11649# ifdef __cplusplus
11650 extern "C"
11651# endif
11652 int F77_DUMMY_MAIN() { return 1; }
11653#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011654int
11655main ()
11656{
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011657/* The GNU C library defines this for functions which it implements
11658 to always fail with ENOSYS. Some functions are actually named
11659 something starting with __ and the normal name is an alias. */
11660#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11661choke me
11662#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011663f = $ac_func;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011664#endif
11665
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011666 ;
11667 return 0;
11668}
11669_ACEOF
11670rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011672 (eval $ac_link) 2>&5
11673 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011675 (exit $ac_status); } &&
11676 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011678 (eval $ac_try) 2>&5
11679 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011681 (exit $ac_status); }; }; then
11682 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011683else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011684 echo "$as_me: failed program was:" >&5
11685cat conftest.$ac_ext >&5
11686eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011687fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011688rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011689fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011691echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11692if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011693
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011694cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011695#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011696_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011697
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011698 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011699fi
11700
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011701 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011702fi
11703
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011704echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011705echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11706if test "${ac_cv_c_stack_direction+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011708else
11709 if test "$cross_compiling" = yes; then
11710 ac_cv_c_stack_direction=0
11711else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011712 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011713#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011714#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011715int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011716find_stack_direction ()
11717{
11718 static char *addr = 0;
11719 auto char dummy;
11720 if (addr == 0)
11721 {
11722 addr = &dummy;
11723 return find_stack_direction ();
11724 }
11725 else
11726 return (&dummy > addr) ? 1 : -1;
11727}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011728
11729int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011730main ()
11731{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011732 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011733}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011734_ACEOF
11735rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011737 (eval $ac_link) 2>&5
11738 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011742 (eval $ac_try) 2>&5
11743 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011745 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011746 ac_cv_c_stack_direction=1
11747else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011748 echo "$as_me: program exited with status $ac_status" >&5
11749echo "$as_me: failed program was:" >&5
11750cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011751( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011752ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011753fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011754rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011755fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011756fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011757echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011758echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011759
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011760cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011761#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011762_ACEOF
11763
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011764
11765fi
11766
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
Steven Edwardsb9627c12002-05-05 21:03:44 +000011809
11810
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011811
11812
Alexandre Julliard142dab82002-07-01 18:17:30 +000011813
Marcus Meissner786d2492002-07-29 23:55:39 +000011814
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011815for ac_func in \
Eric Pouechf61d7e02000-04-29 16:44:19 +000011816 __libc_fork \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011817 _lwp_create \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011818 _pclose \
11819 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011820 _snprintf \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011821 _stricmp \
11822 _strnicmp \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011823 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011824 clone \
Andreas Mohra7ca2ba2001-01-12 23:07:11 +000011825 ecvt \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000011826 finite \
11827 fpclass \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011828 ftruncate \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000011829 ftruncate64 \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011830 getnetbyaddr \
11831 getnetbyname \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011832 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011833 getprotobyname \
11834 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000011835 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011836 getservbyport \
11837 getsockopt \
11838 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000011839 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000011840 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011841 memmove \
Marcus Meissner786d2492002-07-29 23:55:39 +000011842 mkstemp \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000011843 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011844 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011845 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011846 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000011847 pwrite \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011848 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011849 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011850 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011851 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011852 sigaltstack \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011853 snprintf \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011854 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000011855 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011856 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000011857 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011858 tcgetattr \
11859 timegm \
11860 usleep \
11861 vfscanf \
11862 wait4 \
11863 waitpid \
11864
11865do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011867echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11869if eval "test \"\${$as_ac_var+set}\" = set"; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011871else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011872 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011873#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011874#include "confdefs.h"
11875/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011876 which can conflict with char $ac_func (); below. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011877#include <assert.h>
11878/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011879#ifdef __cplusplus
11880extern "C"
11881#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011882/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011883 builtin and then its argument prototype would still apply. */
11884char $ac_func ();
11885char (*f) ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011886
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011887#ifdef F77_DUMMY_MAIN
11888# ifdef __cplusplus
11889 extern "C"
11890# endif
11891 int F77_DUMMY_MAIN() { return 1; }
11892#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011893int
11894main ()
11895{
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011896/* The GNU C library defines this for functions which it implements
11897 to always fail with ENOSYS. Some functions are actually named
11898 something starting with __ and the normal name is an alias. */
11899#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11900choke me
11901#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011902f = $ac_func;
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011903#endif
11904
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011905 ;
11906 return 0;
11907}
11908_ACEOF
11909rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011911 (eval $ac_link) 2>&5
11912 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011914 (exit $ac_status); } &&
11915 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011917 (eval $ac_try) 2>&5
11918 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011920 (exit $ac_status); }; }; then
11921 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011922else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011923 echo "$as_me: failed program was:" >&5
11924cat conftest.$ac_ext >&5
11925eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011926fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011928fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011930echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11931if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011932 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011934_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011935
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011936fi
11937done
11938
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
Laurent Pinchart0314a652002-05-01 22:01:30 +000012000
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000012001
12002
12003
Alexandre Julliard127ec922002-05-07 01:51:30 +000012004
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000012005
Patrik Stridvall57bf4502002-08-26 21:53:24 +000012006
12007
12008
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012009for ac_header in \
Patrik Stridvall96336321999-10-24 22:13:47 +000012010 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012011 arpa/nameser.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012012 direct.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012013 elf.h \
12014 float.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +000012015 ieeefp.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012016 io.h \
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000012017 libaudioio.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012018 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +000012019 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012020 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012021 linux/cdrom.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000012022 linux/hdreg.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +000012023 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +000012024 linux/joystick.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000012025 linux/major.h \
Laurent Pinchart0314a652002-05-01 22:01:30 +000012026 linux/param.h \
Lawson Whitney533e7ee2002-02-19 18:41:56 +000012027 linux/serial.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012028 linux/ucdrom.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +000012029 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012030 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000012031 netinet/in_systm.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012032 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +000012033 pty.h \
Steven Edwardsff4525c2002-06-24 23:00:25 +000012034 pwd.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012035 sched.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000012036 scsi/sg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012037 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +000012038 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012039 strings.h \
12040 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +000012041 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012042 sys/file.h \
12043 sys/filio.h \
Michal Pasternak60983992002-03-29 18:04:43 +000012044 sys/inttypes.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000012045 sys/ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012046 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +000012047 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012048 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +000012049 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012050 sys/modem.h \
12051 sys/mount.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012052 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012053 sys/param.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000012054 sys/poll.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000012055 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +000012056 sys/reg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012057 sys/shm.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000012058 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012059 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012060 sys/sockio.h \
12061 sys/statfs.h \
12062 sys/strtio.h \
12063 sys/syscall.h \
Alexandre Julliard127ec922002-05-07 01:51:30 +000012064 sys/sysctl.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012065 sys/time.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000012066 sys/times.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000012067 sys/user.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012068 sys/v86.h \
12069 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012070 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000012071 sys/vm86.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000012072 sys/wait.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012073 syscall.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000012074 termios.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000012075 ucontext.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012076 unistd.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000012077 utime.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012078
Alexandre Julliard02e90081998-01-04 17:49:09 +000012079do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012081if eval "test \"\${$as_ac_Header+set}\" = set"; then
12082 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12084if eval "test \"\${$as_ac_Header+set}\" = set"; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012086fi
12087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliard02e90081998-01-04 17:49:09 +000012089else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012090 # Is the header compilable?
12091echo "$as_me:$LINENO: checking $ac_header usability" >&5
12092echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12093cat >conftest.$ac_ext <<_ACEOF
12094#line $LINENO "configure"
12095#include "confdefs.h"
12096$ac_includes_default
12097#include <$ac_header>
12098_ACEOF
12099rm -f conftest.$ac_objext
12100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12101 (eval $ac_compile) 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -s conftest.$ac_objext'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 ac_header_compiler=yes
12112else
12113 echo "$as_me: failed program was:" >&5
12114cat conftest.$ac_ext >&5
12115ac_header_compiler=no
12116fi
12117rm -f conftest.$ac_objext conftest.$ac_ext
12118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12119echo "${ECHO_T}$ac_header_compiler" >&6
12120
12121# Is the header present?
12122echo "$as_me:$LINENO: checking $ac_header presence" >&5
12123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12124cat >conftest.$ac_ext <<_ACEOF
12125#line $LINENO "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +000012126#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012127#include <$ac_header>
12128_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12131 ac_status=$?
12132 egrep -v '^ *\+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012136 (exit $ac_status); } >/dev/null; then
12137 if test -s conftest.err; then
12138 ac_cpp_err=$ac_c_preproc_warn_flag
12139 else
12140 ac_cpp_err=
12141 fi
Alexandre Julliard02e90081998-01-04 17:49:09 +000012142else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012143 ac_cpp_err=yes
12144fi
12145if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012146 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012147else
12148 echo "$as_me: failed program was:" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +000012149 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012150 ac_header_preproc=no
Alexandre Julliard02e90081998-01-04 17:49:09 +000012151fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012152rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12154echo "${ECHO_T}$ac_header_preproc" >&6
12155
12156# So? What about this header?
12157case $ac_header_compiler:$ac_header_preproc in
12158 yes:no )
12159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12163 no:yes )
12164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12165echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12167echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12169echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12170esac
12171echo "$as_me:$LINENO: checking for $ac_header" >&5
12172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12173if eval "test \"\${$as_ac_Header+set}\" = set"; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12175else
12176 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliard02e90081998-01-04 17:49:09 +000012177fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012180
Alexandre Julliard02e90081998-01-04 17:49:09 +000012181fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012182if test `eval echo '${'$as_ac_Header'}'` = yes; then
12183 cat >>confdefs.h <<_ACEOF
12184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12185_ACEOF
12186
12187fi
12188
Alexandre Julliard02e90081998-01-04 17:49:09 +000012189done
12190
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012191echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012192echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12193if test "${ac_cv_header_stat_broken+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012195else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012196 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012197#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012198#include "confdefs.h"
12199#include <sys/types.h>
12200#include <sys/stat.h>
12201
12202#if defined(S_ISBLK) && defined(S_IFDIR)
12203# if S_ISBLK (S_IFDIR)
12204You lose.
12205# endif
12206#endif
12207
12208#if defined(S_ISBLK) && defined(S_IFCHR)
12209# if S_ISBLK (S_IFCHR)
12210You lose.
12211# endif
12212#endif
12213
12214#if defined(S_ISLNK) && defined(S_IFREG)
12215# if S_ISLNK (S_IFREG)
12216You lose.
12217# endif
12218#endif
12219
12220#if defined(S_ISSOCK) && defined(S_IFREG)
12221# if S_ISSOCK (S_IFREG)
12222You lose.
12223# endif
12224#endif
12225
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012226_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12228 egrep "You lose" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012229 ac_cv_header_stat_broken=yes
12230else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012231 ac_cv_header_stat_broken=no
12232fi
12233rm -f conftest*
12234
12235fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012236echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012237echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012238if test $ac_cv_header_stat_broken = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012239
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012240cat >>confdefs.h <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012241#define STAT_MACROS_BROKEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012242_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012243
12244fi
12245
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012246
12247
Gregg Mattinson044b5c42002-07-19 03:16:51 +000012248for ac_header in net/if.h
12249do
12250as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12251echo "$as_me:$LINENO: checking for $ac_header" >&5
12252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12253if eval "test \"\${$as_ac_Header+set}\" = set"; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12255else
12256 cat >conftest.$ac_ext <<_ACEOF
12257#line $LINENO "configure"
12258#include "confdefs.h"
Gerald Pfeifer87c369d2002-07-23 02:02:02 +000012259#if HAVE_SYS_TYPES_H
12260 # include <sys/types.h>
12261 #endif
12262 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000012263 # include <sys/socket.h>
12264 #endif
12265
12266#include <$ac_header>
12267_ACEOF
12268rm -f conftest.$ac_objext
12269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12270 (eval $ac_compile) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
12274 { ac_try='test -s conftest.$ac_objext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 eval "$as_ac_Header=yes"
12281else
12282 echo "$as_me: failed program was:" >&5
12283cat conftest.$ac_ext >&5
12284eval "$as_ac_Header=no"
12285fi
12286rm -f conftest.$ac_objext conftest.$ac_ext
12287fi
12288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12290if test `eval echo '${'$as_ac_Header'}'` = yes; then
12291 cat >>confdefs.h <<_ACEOF
12292#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12293_ACEOF
12294
12295fi
12296
12297done
12298
12299
12300
12301for ac_header in netinet/ip.h
12302do
12303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12304echo "$as_me:$LINENO: checking for $ac_header" >&5
12305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12306if eval "test \"\${$as_ac_Header+set}\" = set"; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309 cat >conftest.$ac_ext <<_ACEOF
12310#line $LINENO "configure"
12311#include "confdefs.h"
12312#if HAVE_SYS_SOCKET_H
12313 # include <sys/socket.h>
12314 #endif
12315 #if HAVE_NETINET_IN_SYSTM_H
12316 # include <netinet/in_systm.h>
12317 #endif
12318
12319#include <$ac_header>
12320_ACEOF
12321rm -f conftest.$ac_objext
12322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12323 (eval $ac_compile) 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
12327 { ac_try='test -s conftest.$ac_objext'
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; }; then
12333 eval "$as_ac_Header=yes"
12334else
12335 echo "$as_me: failed program was:" >&5
12336cat conftest.$ac_ext >&5
12337eval "$as_ac_Header=no"
12338fi
12339rm -f conftest.$ac_objext conftest.$ac_ext
12340fi
12341echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12342echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12343if test `eval echo '${'$as_ac_Header'}'` = yes; then
12344 cat >>confdefs.h <<_ACEOF
12345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12346_ACEOF
12347
12348fi
12349
12350done
12351
12352
12353
12354for ac_header in resolv.h
12355do
12356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12357echo "$as_me:$LINENO: checking for $ac_header" >&5
12358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12359if eval "test \"\${$as_ac_Header+set}\" = set"; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361else
12362 cat >conftest.$ac_ext <<_ACEOF
12363#line $LINENO "configure"
12364#include "confdefs.h"
12365#if HAVE_SYS_SOCKET_H
12366 # include <sys/socket.h>
12367 #endif
12368
12369#include <$ac_header>
12370_ACEOF
12371rm -f conftest.$ac_objext
12372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } &&
12377 { ac_try='test -s conftest.$ac_objext'
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 eval "$as_ac_Header=yes"
12384else
12385 echo "$as_me: failed program was:" >&5
12386cat conftest.$ac_ext >&5
12387eval "$as_ac_Header=no"
12388fi
12389rm -f conftest.$ac_objext conftest.$ac_ext
12390fi
12391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12393if test `eval echo '${'$as_ac_Header'}'` = yes; then
12394 cat >>confdefs.h <<_ACEOF
12395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12396_ACEOF
12397
12398fi
12399
12400done
12401
12402
12403
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012404echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012405echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12406if test "${ac_cv_prog_cc_stdc+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012408else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012409 ac_cv_prog_cc_stdc=no
12410ac_save_CC=$CC
12411cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012412#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012413#include "confdefs.h"
12414#include <stdarg.h>
12415#include <stdio.h>
12416#include <sys/types.h>
12417#include <sys/stat.h>
12418/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12419struct buf { int x; };
12420FILE * (*rcsopen) (struct buf *, struct stat *, int);
12421static char *e (p, i)
12422 char **p;
12423 int i;
12424{
12425 return p[i];
12426}
12427static char *f (char * (*g) (char **, int), char **p, ...)
12428{
12429 char *s;
12430 va_list v;
12431 va_start (v,p);
12432 s = g (p, va_arg (v,int));
12433 va_end (v);
12434 return s;
12435}
12436int test (int i, double x);
12437struct s1 {int (*f) (int a);};
12438struct s2 {int (*f) (double a);};
12439int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12440int argc;
12441char **argv;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012442#ifdef F77_DUMMY_MAIN
12443# ifdef __cplusplus
12444 extern "C"
12445# endif
12446 int F77_DUMMY_MAIN() { return 1; }
12447#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012448int
12449main ()
12450{
12451return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12452 ;
12453 return 0;
12454}
12455_ACEOF
12456# Don't try gcc -ansi; that turns off useful extensions and
12457# breaks some systems' header files.
12458# AIX -qlanglvl=ansi
12459# Ultrix and OSF/1 -std1
12460# HP-UX 10.20 and later -Ae
12461# HP-UX older versions -Aa -D_HPUX_SOURCE
12462# SVR4 -Xc -D__EXTENSIONS__
12463for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12464do
12465 CC="$ac_save_CC $ac_arg"
12466 rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012468 (eval $ac_compile) 2>&5
12469 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012471 (exit $ac_status); } &&
12472 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012474 (eval $ac_try) 2>&5
12475 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012477 (exit $ac_status); }; }; then
12478 ac_cv_prog_cc_stdc=$ac_arg
12479break
12480else
12481 echo "$as_me: failed program was:" >&5
12482cat conftest.$ac_ext >&5
12483fi
12484rm -f conftest.$ac_objext
12485done
12486rm -f conftest.$ac_ext conftest.$ac_objext
12487CC=$ac_save_CC
12488
12489fi
12490
12491case "x$ac_cv_prog_cc_stdc" in
12492 x|xno)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012493 echo "$as_me:$LINENO: result: none needed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012494echo "${ECHO_T}none needed" >&6 ;;
12495 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012496 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012497echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12498 CC="$CC $ac_cv_prog_cc_stdc" ;;
12499esac
12500
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012501echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012502echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12503if test "${ac_cv_c_const+set}" = set; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12505else
12506 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012507#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012508#include "confdefs.h"
12509
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012510#ifdef F77_DUMMY_MAIN
12511# ifdef __cplusplus
12512 extern "C"
12513# endif
12514 int F77_DUMMY_MAIN() { return 1; }
12515#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012516int
12517main ()
12518{
12519/* FIXME: Include the comments suggested by Paul. */
12520#ifndef __cplusplus
12521 /* Ultrix mips cc rejects this. */
12522 typedef int charset[2];
12523 const charset x;
12524 /* SunOS 4.1.1 cc rejects this. */
12525 char const *const *ccp;
12526 char **p;
12527 /* NEC SVR4.0.2 mips cc rejects this. */
12528 struct point {int x, y;};
12529 static struct point const zero = {0,0};
12530 /* AIX XL C 1.02.0.0 rejects this.
12531 It does not let you subtract one const X* pointer from another in
12532 an arm of an if-expression whose if-part is not a constant
12533 expression */
12534 const char *g = "string";
12535 ccp = &g + (g ? g-g : 0);
12536 /* HPUX 7.0 cc rejects these. */
12537 ++ccp;
12538 p = (char**) ccp;
12539 ccp = (char const *const *) p;
12540 { /* SCO 3.2v4 cc rejects this. */
12541 char *t;
12542 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012543
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012544 *t++ = 0;
12545 }
12546 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12547 int x[] = {25, 17};
12548 const int *foo = &x[0];
12549 ++foo;
12550 }
12551 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12552 typedef const int *iptr;
12553 iptr p = 0;
12554 ++p;
12555 }
12556 { /* AIX XL C 1.02.0.0 rejects this saying
12557 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12558 struct s { int j; const int *ap[3]; };
12559 struct s *b; b->j = 5;
12560 }
12561 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12562 const int foo = 10;
12563 }
12564#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012565
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012566 ;
12567 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012568}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012569_ACEOF
12570rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012572 (eval $ac_compile) 2>&5
12573 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012575 (exit $ac_status); } &&
12576 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012578 (eval $ac_try) 2>&5
12579 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012581 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012582 ac_cv_c_const=yes
12583else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012584 echo "$as_me: failed program was:" >&5
12585cat conftest.$ac_ext >&5
12586ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012587fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012588rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012589fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012590echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012591echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012592if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012593
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012594cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012595#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012596_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012597
12598fi
12599
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012600echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012601echo $ECHO_N "checking for inline... $ECHO_C" >&6
12602if test "${ac_cv_c_inline+set}" = set; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012604else
12605 ac_cv_c_inline=no
12606for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012607 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012608#line $LINENO "configure"
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012609#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012610#ifndef __cplusplus
12611static $ac_kw int static_foo () {return 0; }
12612$ac_kw int foo () {return 0; }
12613#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012614
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012615_ACEOF
12616rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012618 (eval $ac_compile) 2>&5
12619 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012621 (exit $ac_status); } &&
12622 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012624 (eval $ac_try) 2>&5
12625 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012627 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012628 ac_cv_c_inline=$ac_kw; break
12629else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012630 echo "$as_me: failed program was:" >&5
12631cat conftest.$ac_ext >&5
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012632fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012633rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012634done
12635
12636fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012637echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012638echo "${ECHO_T}$ac_cv_c_inline" >&6
12639case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012640 inline | yes) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012641 no)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012642cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012643#define inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012644_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012645 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012646 *) cat >>confdefs.h <<_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012647#define inline $ac_cv_c_inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012648_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012649 ;;
12650esac
12651
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012652echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012653echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12654if test "${ac_cv_type_mode_t+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12656else
12657 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012658#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012659#include "confdefs.h"
12660$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012661#ifdef F77_DUMMY_MAIN
12662# ifdef __cplusplus
12663 extern "C"
12664# endif
12665 int F77_DUMMY_MAIN() { return 1; }
12666#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012667int
12668main ()
12669{
12670if ((mode_t *) 0)
12671 return 0;
12672if (sizeof (mode_t))
12673 return 0;
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
12690 ac_cv_type_mode_t=yes
12691else
12692 echo "$as_me: failed program was:" >&5
12693cat conftest.$ac_ext >&5
12694ac_cv_type_mode_t=no
12695fi
12696rm -f conftest.$ac_objext conftest.$ac_ext
12697fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012698echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012699echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12700if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012701
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012702cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012703#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012704_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012705
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012706
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012707fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012708echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012709echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12710if test "${ac_cv_type_off_t+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12712else
12713 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012714#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012715#include "confdefs.h"
12716$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012717#ifdef F77_DUMMY_MAIN
12718# ifdef __cplusplus
12719 extern "C"
12720# endif
12721 int F77_DUMMY_MAIN() { return 1; }
12722#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012723int
12724main ()
12725{
12726if ((off_t *) 0)
12727 return 0;
12728if (sizeof (off_t))
12729 return 0;
12730 ;
12731 return 0;
12732}
12733_ACEOF
12734rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012736 (eval $ac_compile) 2>&5
12737 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012739 (exit $ac_status); } &&
12740 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012742 (eval $ac_try) 2>&5
12743 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012745 (exit $ac_status); }; }; then
12746 ac_cv_type_off_t=yes
12747else
12748 echo "$as_me: failed program was:" >&5
12749cat conftest.$ac_ext >&5
12750ac_cv_type_off_t=no
12751fi
12752rm -f conftest.$ac_objext conftest.$ac_ext
12753fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012754echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012755echo "${ECHO_T}$ac_cv_type_off_t" >&6
12756if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012757
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012758cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012759#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012760_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012761
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012762
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012763fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012764echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012765echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12766if test "${ac_cv_type_pid_t+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12768else
12769 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012770#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012771#include "confdefs.h"
12772$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012773#ifdef F77_DUMMY_MAIN
12774# ifdef __cplusplus
12775 extern "C"
12776# endif
12777 int F77_DUMMY_MAIN() { return 1; }
12778#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012779int
12780main ()
12781{
12782if ((pid_t *) 0)
12783 return 0;
12784if (sizeof (pid_t))
12785 return 0;
12786 ;
12787 return 0;
12788}
12789_ACEOF
12790rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012792 (eval $ac_compile) 2>&5
12793 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012795 (exit $ac_status); } &&
12796 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012798 (eval $ac_try) 2>&5
12799 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012801 (exit $ac_status); }; }; then
12802 ac_cv_type_pid_t=yes
12803else
12804 echo "$as_me: failed program was:" >&5
12805cat conftest.$ac_ext >&5
12806ac_cv_type_pid_t=no
12807fi
12808rm -f conftest.$ac_objext conftest.$ac_ext
12809fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012810echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012811echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12812if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012813
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012814cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012815#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012816_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012817
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012818
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012819fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012820echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012821echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12822if test "${ac_cv_type_size_t+set}" = set; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12824else
12825 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012826#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012827#include "confdefs.h"
12828$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012829#ifdef F77_DUMMY_MAIN
12830# ifdef __cplusplus
12831 extern "C"
12832# endif
12833 int F77_DUMMY_MAIN() { return 1; }
12834#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012835int
12836main ()
12837{
12838if ((size_t *) 0)
12839 return 0;
12840if (sizeof (size_t))
12841 return 0;
12842 ;
12843 return 0;
12844}
12845_ACEOF
12846rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012848 (eval $ac_compile) 2>&5
12849 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012851 (exit $ac_status); } &&
12852 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012854 (eval $ac_try) 2>&5
12855 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012857 (exit $ac_status); }; }; then
12858 ac_cv_type_size_t=yes
12859else
12860 echo "$as_me: failed program was:" >&5
12861cat conftest.$ac_ext >&5
12862ac_cv_type_size_t=no
12863fi
12864rm -f conftest.$ac_objext conftest.$ac_ext
12865fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012866echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012867echo "${ECHO_T}$ac_cv_type_size_t" >&6
12868if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012869
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012870cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012871#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012872_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012873
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012874
12875fi
12876echo "$as_me:$LINENO: checking for ssize_t" >&5
12877echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12878if test "${ac_cv_type_ssize_t+set}" = set; then
12879 echo $ECHO_N "(cached) $ECHO_C" >&6
12880else
12881 cat >conftest.$ac_ext <<_ACEOF
12882#line $LINENO "configure"
12883#include "confdefs.h"
12884$ac_includes_default
12885#ifdef F77_DUMMY_MAIN
12886# ifdef __cplusplus
12887 extern "C"
12888# endif
12889 int F77_DUMMY_MAIN() { return 1; }
12890#endif
12891int
12892main ()
12893{
12894if ((ssize_t *) 0)
12895 return 0;
12896if (sizeof (ssize_t))
12897 return 0;
12898 ;
12899 return 0;
12900}
12901_ACEOF
12902rm -f conftest.$ac_objext
12903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904 (eval $ac_compile) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -s conftest.$ac_objext'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 ac_cv_type_ssize_t=yes
12915else
12916 echo "$as_me: failed program was:" >&5
12917cat conftest.$ac_ext >&5
12918ac_cv_type_ssize_t=no
12919fi
12920rm -f conftest.$ac_objext conftest.$ac_ext
12921fi
12922echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12923echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12924if test $ac_cv_type_ssize_t = yes; then
12925
12926cat >>confdefs.h <<_ACEOF
12927#define HAVE_SSIZE_T 1
12928_ACEOF
12929
12930
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012931fi
12932
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012933echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012934echo $ECHO_N "checking for long long... $ECHO_C" >&6
12935if test "${ac_cv_type_long_long+set}" = set; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937else
12938 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012939#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012940#include "confdefs.h"
12941$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012942#ifdef F77_DUMMY_MAIN
12943# ifdef __cplusplus
12944 extern "C"
12945# endif
12946 int F77_DUMMY_MAIN() { return 1; }
12947#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012948int
12949main ()
12950{
12951if ((long long *) 0)
12952 return 0;
12953if (sizeof (long long))
12954 return 0;
12955 ;
12956 return 0;
12957}
12958_ACEOF
12959rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012961 (eval $ac_compile) 2>&5
12962 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012964 (exit $ac_status); } &&
12965 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012967 (eval $ac_try) 2>&5
12968 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012970 (exit $ac_status); }; }; then
12971 ac_cv_type_long_long=yes
12972else
12973 echo "$as_me: failed program was:" >&5
12974cat conftest.$ac_ext >&5
12975ac_cv_type_long_long=no
12976fi
12977rm -f conftest.$ac_objext conftest.$ac_ext
12978fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012979echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012980echo "${ECHO_T}$ac_cv_type_long_long" >&6
12981
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012982echo "$as_me:$LINENO: checking size of long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012983echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12984if test "${ac_cv_sizeof_long_long+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986else
12987 if test "$ac_cv_type_long_long" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012988 # The cast to unsigned long works around a bug in the HP C Compiler
12989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12991 # This bug is HP SR number 8606223364.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012992 if test "$cross_compiling" = yes; then
12993 # Depending upon the size, compute the lo and hi bounds.
12994cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012995#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012996#include "confdefs.h"
12997$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012998#ifdef F77_DUMMY_MAIN
12999# ifdef __cplusplus
13000 extern "C"
13001# endif
13002 int F77_DUMMY_MAIN() { return 1; }
13003#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013004int
13005main ()
13006{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013007static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
13008test_array [0] = 0
13009
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013010 ;
13011 return 0;
13012}
13013_ACEOF
13014rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013016 (eval $ac_compile) 2>&5
13017 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013019 (exit $ac_status); } &&
13020 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013022 (eval $ac_try) 2>&5
13023 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013025 (exit $ac_status); }; }; then
13026 ac_lo=0 ac_mid=0
13027 while :; do
13028 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013029#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013030#include "confdefs.h"
13031$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013032#ifdef F77_DUMMY_MAIN
13033# ifdef __cplusplus
13034 extern "C"
13035# endif
13036 int F77_DUMMY_MAIN() { return 1; }
13037#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013038int
13039main ()
13040{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013041static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13042test_array [0] = 0
13043
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013044 ;
13045 return 0;
13046}
13047_ACEOF
13048rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013050 (eval $ac_compile) 2>&5
13051 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013053 (exit $ac_status); } &&
13054 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013056 (eval $ac_try) 2>&5
13057 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013059 (exit $ac_status); }; }; then
13060 ac_hi=$ac_mid; break
13061else
13062 echo "$as_me: failed program was:" >&5
13063cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013064ac_lo=`expr $ac_mid + 1`
13065 if test $ac_lo -le $ac_mid; then
13066 ac_lo= ac_hi=
13067 break
13068 fi
13069 ac_mid=`expr 2 '*' $ac_mid + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013070fi
13071rm -f conftest.$ac_objext conftest.$ac_ext
13072 done
13073else
13074 echo "$as_me: failed program was:" >&5
13075cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013076cat >conftest.$ac_ext <<_ACEOF
13077#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013078#include "confdefs.h"
13079$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013080#ifdef F77_DUMMY_MAIN
13081# ifdef __cplusplus
13082 extern "C"
13083# endif
13084 int F77_DUMMY_MAIN() { return 1; }
13085#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013086int
13087main ()
13088{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013089static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
13090test_array [0] = 0
13091
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013092 ;
13093 return 0;
13094}
13095_ACEOF
13096rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013098 (eval $ac_compile) 2>&5
13099 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013101 (exit $ac_status); } &&
13102 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013104 (eval $ac_try) 2>&5
13105 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; }; then
13108 ac_hi=-1 ac_mid=-1
13109 while :; do
13110 cat >conftest.$ac_ext <<_ACEOF
13111#line $LINENO "configure"
13112#include "confdefs.h"
13113$ac_includes_default
13114#ifdef F77_DUMMY_MAIN
13115# ifdef __cplusplus
13116 extern "C"
13117# endif
13118 int F77_DUMMY_MAIN() { return 1; }
13119#endif
13120int
13121main ()
13122{
13123static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
13124test_array [0] = 0
13125
13126 ;
13127 return 0;
13128}
13129_ACEOF
13130rm -f conftest.$ac_objext
13131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13132 (eval $ac_compile) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -s conftest.$ac_objext'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013141 (exit $ac_status); }; }; then
13142 ac_lo=$ac_mid; break
13143else
13144 echo "$as_me: failed program was:" >&5
13145cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013146ac_hi=`expr '(' $ac_mid ')' - 1`
13147 if test $ac_mid -le $ac_hi; then
13148 ac_lo= ac_hi=
13149 break
13150 fi
13151 ac_mid=`expr 2 '*' $ac_mid`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013152fi
13153rm -f conftest.$ac_objext conftest.$ac_ext
13154 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013155else
13156 echo "$as_me: failed program was:" >&5
13157cat conftest.$ac_ext >&5
13158ac_lo= ac_hi=
13159fi
13160rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013161fi
13162rm -f conftest.$ac_objext conftest.$ac_ext
13163# Binary search between lo and hi bounds.
13164while test "x$ac_lo" != "x$ac_hi"; do
13165 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13166 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013167#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013168#include "confdefs.h"
13169$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013170#ifdef F77_DUMMY_MAIN
13171# ifdef __cplusplus
13172 extern "C"
13173# endif
13174 int F77_DUMMY_MAIN() { return 1; }
13175#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013176int
13177main ()
13178{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013179static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13180test_array [0] = 0
13181
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013182 ;
13183 return 0;
13184}
13185_ACEOF
13186rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013188 (eval $ac_compile) 2>&5
13189 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013191 (exit $ac_status); } &&
13192 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013194 (eval $ac_try) 2>&5
13195 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013197 (exit $ac_status); }; }; then
13198 ac_hi=$ac_mid
13199else
13200 echo "$as_me: failed program was:" >&5
13201cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013202ac_lo=`expr '(' $ac_mid ')' + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013203fi
13204rm -f conftest.$ac_objext conftest.$ac_ext
13205done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013206case $ac_lo in
13207?*) ac_cv_sizeof_long_long=$ac_lo;;
13208'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
13209echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
13210 { (exit 1); exit 1; }; } ;;
13211esac
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013212else
13213 if test "$cross_compiling" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013214 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013215echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13216 { (exit 1); exit 1; }; }
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013217else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013218 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013219#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013220#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013221$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013222long longval () { return (long) (sizeof (long long)); }
13223unsigned long ulongval () { return (long) (sizeof (long long)); }
13224#include <stdio.h>
13225#include <stdlib.h>
13226#ifdef F77_DUMMY_MAIN
13227# ifdef __cplusplus
13228 extern "C"
13229# endif
13230 int F77_DUMMY_MAIN() { return 1; }
13231#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013232int
13233main ()
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013234{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013235
13236 FILE *f = fopen ("conftest.val", "w");
13237 if (! f)
13238 exit (1);
13239 if (((long) (sizeof (long long))) < 0)
13240 {
13241 long i = longval ();
13242 if (i != ((long) (sizeof (long long))))
13243 exit (1);
13244 fprintf (f, "%ld\n", i);
13245 }
13246 else
13247 {
13248 unsigned long i = ulongval ();
13249 if (i != ((long) (sizeof (long long))))
13250 exit (1);
13251 fprintf (f, "%lu\n", i);
13252 }
13253 exit (ferror (f) || fclose (f) != 0);
13254
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013255 ;
13256 return 0;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013257}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013258_ACEOF
13259rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013261 (eval $ac_link) 2>&5
13262 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013266 (eval $ac_try) 2>&5
13267 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013269 (exit $ac_status); }; }; then
13270 ac_cv_sizeof_long_long=`cat conftest.val`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013271else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013272 echo "$as_me: program exited with status $ac_status" >&5
13273echo "$as_me: failed program was:" >&5
13274cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013275( exit $ac_status )
13276{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
13277echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
13278 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013279fi
13280rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13281fi
13282fi
13283rm -f conftest.val
13284else
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013285 ac_cv_sizeof_long_long=0
13286fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013287fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013288echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013289echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013290cat >>confdefs.h <<_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013291#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013292_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013293
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013294
13295
13296echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013297echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
13298if test "${wine_cv_linux_input_h+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013300else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013301 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013302#line $LINENO "configure"
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013303#include "confdefs.h"
13304
13305 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013306
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013307#ifdef F77_DUMMY_MAIN
13308# ifdef __cplusplus
13309 extern "C"
13310# endif
13311 int F77_DUMMY_MAIN() { return 1; }
13312#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013313int
13314main ()
13315{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013316
13317 int foo = EVIOCGBIT(EV_ABS,42);
13318 int bar = BTN_PINKIE;
13319 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013320
13321 ;
13322 return 0;
13323}
13324_ACEOF
13325rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013327 (eval $ac_compile) 2>&5
13328 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013330 (exit $ac_status); } &&
13331 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013333 (eval $ac_try) 2>&5
13334 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013336 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013337 wine_cv_linux_input_h=yes
13338else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013339 echo "$as_me: failed program was:" >&5
13340cat conftest.$ac_ext >&5
13341wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013342fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013343rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013344
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013345fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013346echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013347echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013348 if test "$wine_cv_linux_input_h" = "yes"
13349 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013350
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013351cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013352#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013353_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013354
13355 fi
13356
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013357
13358echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013359echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
13360if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
13361 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013362else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013363 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013364#line $LINENO "configure"
Rein Klazesff7a61f2000-09-24 19:41:57 +000013365#include "confdefs.h"
13366
13367#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013368
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013369#ifdef F77_DUMMY_MAIN
13370# ifdef __cplusplus
13371 extern "C"
13372# endif
13373 int F77_DUMMY_MAIN() { return 1; }
13374#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013375int
13376main ()
13377{
Rein Klazesff7a61f2000-09-24 19:41:57 +000013378
13379 char *name=NULL;
13380 struct hostent he;
13381 struct hostent *result;
13382 char *buf=NULL;
13383 int bufsize=0;
13384 int res,errnr;
13385 char *addr=NULL;
13386 int addrlen=0;
13387 int addrtype=0;
13388 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13389 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013390
13391 ;
13392 return 0;
13393}
13394_ACEOF
13395rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013397 (eval $ac_compile) 2>&5
13398 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013400 (exit $ac_status); } &&
13401 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013403 (eval $ac_try) 2>&5
13404 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013406 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000013407 wine_cv_linux_gethostbyname_r_6=yes
13408else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013409 echo "$as_me: failed program was:" >&5
13410cat conftest.$ac_ext >&5
13411wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000013412
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013413fi
13414rm -f conftest.$ac_objext conftest.$ac_ext
13415
13416fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013417echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013418echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013419 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13420 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013421
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013422cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000013423#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013424_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000013425
13426 fi
13427
Marcus Meissner028e9a11999-08-04 15:07:56 +000013428if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013429then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013430 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013431echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
13432if test "${wine_cv_linux_joystick_22_api+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013434else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013435 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013436#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013437#include "confdefs.h"
13438
Marcus Meissner028e9a11999-08-04 15:07:56 +000013439 #include <sys/ioctl.h>
13440 #include <linux/joystick.h>
13441
13442 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000013443 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13444 #error "no 2.2 header"
13445 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013446
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013447#ifdef F77_DUMMY_MAIN
13448# ifdef __cplusplus
13449 extern "C"
13450# endif
13451 int F77_DUMMY_MAIN() { return 1; }
13452#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013453int
13454main ()
13455{
Marcus Meissner028e9a11999-08-04 15:07:56 +000013456/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013457 ;
13458 return 0;
13459}
13460_ACEOF
13461rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013463 (eval $ac_compile) 2>&5
13464 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013466 (exit $ac_status); } &&
13467 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013469 (eval $ac_try) 2>&5
13470 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013472 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000013473 wine_cv_linux_joystick_22_api=yes
13474else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013475 echo "$as_me: failed program was:" >&5
13476cat conftest.$ac_ext >&5
13477wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000013478fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013479rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000013480
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013481fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013482echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013483echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000013484 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013485 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013486
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013487cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000013488#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013489_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000013490
13491 fi
13492fi
13493
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013494
Marcus Meissner028e9a11999-08-04 15:07:56 +000013495if test "$ac_cv_header_sys_vfs_h" = "yes"
13496then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013497 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013498echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
13499if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000013501else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013502 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013503#line $LINENO "configure"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013504#include "confdefs.h"
13505
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013506 #include <sys/types.h>
13507 #ifdef HAVE_SYS_PARAM_H
13508 # include <sys/param.h>
13509 #endif
13510 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013511
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013512#ifdef F77_DUMMY_MAIN
13513# ifdef __cplusplus
13514 extern "C"
13515# endif
13516 int F77_DUMMY_MAIN() { return 1; }
13517#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013518int
13519main ()
13520{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013521
13522 struct statfs stfs;
13523
13524 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013525
13526 ;
13527 return 0;
13528}
13529_ACEOF
13530rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013532 (eval $ac_compile) 2>&5
13533 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013535 (exit $ac_status); } &&
13536 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013538 (eval $ac_try) 2>&5
13539 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013541 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013542 wine_cv_sys_vfs_has_statfs=yes
13543else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013544 echo "$as_me: failed program was:" >&5
13545cat conftest.$ac_ext >&5
13546wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013547
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013548fi
13549rm -f conftest.$ac_objext conftest.$ac_ext
13550
13551fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013552echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013553echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013554 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
13555 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013556
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013557cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013558#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013559_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013560
13561 fi
13562fi
13563
13564if test "$ac_cv_header_sys_statfs_h" = "yes"
13565then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013566 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013567echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
13568if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013570else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013571 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013572#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013573#include "confdefs.h"
13574
13575 #include <sys/types.h>
13576 #ifdef HAVE_SYS_PARAM_H
13577 # include <sys/param.h>
13578 #endif
13579 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013580
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013581#ifdef F77_DUMMY_MAIN
13582# ifdef __cplusplus
13583 extern "C"
13584# endif
13585 int F77_DUMMY_MAIN() { return 1; }
13586#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013587int
13588main ()
13589{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013590
13591 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013592
13593 ;
13594 return 0;
13595}
13596_ACEOF
13597rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013599 (eval $ac_compile) 2>&5
13600 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013602 (exit $ac_status); } &&
13603 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013605 (eval $ac_try) 2>&5
13606 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013608 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013609 wine_cv_sys_statfs_has_statfs=yes
13610else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013611 echo "$as_me: failed program was:" >&5
13612cat conftest.$ac_ext >&5
13613wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013614
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013615fi
13616rm -f conftest.$ac_objext conftest.$ac_ext
13617
13618fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013619echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013620echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013621 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
13622 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013623
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013624cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013625#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013626_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013627
13628 fi
13629fi
13630
13631if test "$ac_cv_header_sys_mount_h" = "yes"
13632then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013633 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013634echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
13635if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013637else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013638 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013639#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013640#include "confdefs.h"
13641
13642 #include <sys/types.h>
13643 #ifdef HAVE_SYS_PARAM_H
13644 # include <sys/param.h>
13645 #endif
13646 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013647
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013648#ifdef F77_DUMMY_MAIN
13649# ifdef __cplusplus
13650 extern "C"
13651# endif
13652 int F77_DUMMY_MAIN() { return 1; }
13653#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013654int
13655main ()
13656{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013657
13658 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013659
13660 ;
13661 return 0;
13662}
13663_ACEOF
13664rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013666 (eval $ac_compile) 2>&5
13667 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013669 (exit $ac_status); } &&
13670 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013672 (eval $ac_try) 2>&5
13673 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013675 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013676 wine_cv_sys_mount_has_statfs=yes
13677else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013678 echo "$as_me: failed program was:" >&5
13679cat conftest.$ac_ext >&5
13680wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013681
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013682fi
13683rm -f conftest.$ac_objext conftest.$ac_ext
13684
13685fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013686echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013687echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013688 if test "$wine_cv_sys_mount_has_statfs" = "yes"
13689 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013690
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013691cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013692#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013693_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013694
13695 fi
13696fi
13697
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013698
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013699echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013700echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
13701if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013703else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013704 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013705#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013706#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013707#include <sys/types.h>
13708#ifdef HAVE_SYS_PARAM_H
13709# include <sys/param.h>
13710#endif
13711#ifdef STATFS_DEFINED_BY_SYS_MOUNT
13712# include <sys/mount.h>
13713#else
13714# ifdef STATFS_DEFINED_BY_SYS_VFS
13715# include <sys/vfs.h>
13716# else
13717# ifdef STATFS_DEFINED_BY_SYS_STATFS
13718# include <sys/statfs.h>
13719# endif
13720# endif
13721#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013722#ifdef F77_DUMMY_MAIN
13723# ifdef __cplusplus
13724 extern "C"
13725# endif
13726 int F77_DUMMY_MAIN() { return 1; }
13727#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013728int
13729main ()
13730{
13731struct statfs s; s.f_bfree = 0
13732 ;
13733 return 0;
13734}
13735_ACEOF
13736rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013738 (eval $ac_compile) 2>&5
13739 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013741 (exit $ac_status); } &&
13742 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013744 (eval $ac_try) 2>&5
13745 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013747 (exit $ac_status); }; }; then
13748 ac_cv_c_statfs_f_bfree="yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013749else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013750 echo "$as_me: failed program was:" >&5
13751cat conftest.$ac_ext >&5
13752ac_cv_c_statfs_f_bfree="no"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013753fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013754rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013755fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013756echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013757echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
13758if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013759
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013760cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013761#define STATFS_HAS_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013762_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013763
13764fi
13765
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013766
13767
13768echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013769echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
13770if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013772else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013773 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013774#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013775#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013776#include <sys/types.h>
13777#ifdef HAVE_SYS_PARAM_H
13778# include <sys/param.h>
13779#endif
13780#ifdef STATFS_DEFINED_BY_SYS_MOUNT
13781# include <sys/mount.h>
13782#else
13783# ifdef STATFS_DEFINED_BY_SYS_VFS
13784# include <sys/vfs.h>
13785# else
13786# ifdef STATFS_DEFINED_BY_SYS_STATFS
13787# include <sys/statfs.h>
13788# endif
13789# endif
13790#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013791#ifdef F77_DUMMY_MAIN
13792# ifdef __cplusplus
13793 extern "C"
13794# endif
13795 int F77_DUMMY_MAIN() { return 1; }
13796#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013797int
13798main ()
13799{
13800struct statfs s; s.f_bavail = 0
13801 ;
13802 return 0;
13803}
13804_ACEOF
13805rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013807 (eval $ac_compile) 2>&5
13808 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013810 (exit $ac_status); } &&
13811 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013813 (eval $ac_try) 2>&5
13814 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013816 (exit $ac_status); }; }; then
13817 ac_cv_c_statfs_f_bavail="yes"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013818else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013819 echo "$as_me: failed program was:" >&5
13820cat conftest.$ac_ext >&5
13821ac_cv_c_statfs_f_bavail="no"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013822fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013823rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013824fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013825echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013826echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13827if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013828
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013829cat >>confdefs.h <<\_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013830#define STATFS_HAS_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013831_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013832
13833fi
13834
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013835
13836
13837echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013838echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13839if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard829fe321998-07-26 14:27:39 +000013841else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013842 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013843#line $LINENO "configure"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013844#include "confdefs.h"
13845#include <sys/types.h>
13846#include <sys/socket.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013847#ifdef F77_DUMMY_MAIN
13848# ifdef __cplusplus
13849 extern "C"
13850# endif
13851 int F77_DUMMY_MAIN() { return 1; }
13852#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013853int
13854main ()
13855{
13856struct msghdr s; s.msg_accrights = 0
13857 ;
13858 return 0;
13859}
13860_ACEOF
13861rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013863 (eval $ac_compile) 2>&5
13864 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013866 (exit $ac_status); } &&
13867 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013869 (eval $ac_try) 2>&5
13870 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013872 (exit $ac_status); }; }; then
13873 ac_cv_c_msghdr_msg_accrights="yes"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013874else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013875 echo "$as_me: failed program was:" >&5
13876cat conftest.$ac_ext >&5
13877ac_cv_c_msghdr_msg_accrights="no"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013878fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013879rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000013880fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013881echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013882echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13883if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
Alexandre Julliard829fe321998-07-26 14:27:39 +000013884
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013885cat >>confdefs.h <<\_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000013886#define HAVE_MSGHDR_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013887_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000013888
13889fi
13890
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013891
13892
13893echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013894echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13895if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013897else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013898 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013899#line $LINENO "configure"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013900#include "confdefs.h"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013901#include <sys/types.h>
13902#include <sys/socket.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013903#ifdef F77_DUMMY_MAIN
13904# ifdef __cplusplus
13905 extern "C"
13906# endif
13907 int F77_DUMMY_MAIN() { return 1; }
13908#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013909int
13910main ()
13911{
13912struct sockaddr s; s.sa_len = 0
13913 ;
13914 return 0;
13915}
13916_ACEOF
13917rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013919 (eval $ac_compile) 2>&5
13920 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013922 (exit $ac_status); } &&
13923 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013925 (eval $ac_try) 2>&5
13926 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013928 (exit $ac_status); }; }; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000013929 ac_cv_c_sockaddr_sa_len="yes"
13930else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013931 echo "$as_me: failed program was:" >&5
13932cat conftest.$ac_ext >&5
13933ac_cv_c_sockaddr_sa_len="no"
Patrik Stridvall09da9662001-07-08 22:30:50 +000013934fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013935rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000013936fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013937echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013938echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13939if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000013940
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013941cat >>confdefs.h <<\_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013942#define HAVE_SOCKADDR_SA_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013943_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013944
13945fi
13946
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013947
13948
13949echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013950echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13951if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000013953else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013954 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013955#line $LINENO "configure"
Patrik Stridvall09da9662001-07-08 22:30:50 +000013956#include "confdefs.h"
13957#include <sys/types.h>
13958#include <sys/socket.h>
Juergen Lock2d33ab92000-02-13 16:03:29 +000013959#include <sys/un.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013960#ifdef F77_DUMMY_MAIN
13961# ifdef __cplusplus
13962 extern "C"
13963# endif
13964 int F77_DUMMY_MAIN() { return 1; }
13965#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013966int
13967main ()
13968{
13969struct sockaddr_un s; s.sun_len = 0
13970 ;
13971 return 0;
13972}
13973_ACEOF
13974rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013976 (eval $ac_compile) 2>&5
13977 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013979 (exit $ac_status); } &&
13980 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013982 (eval $ac_try) 2>&5
13983 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013985 (exit $ac_status); }; }; then
13986 ac_cv_c_sockaddr_un_sun_len="yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013987else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013988 echo "$as_me: failed program was:" >&5
13989cat conftest.$ac_ext >&5
13990ac_cv_c_sockaddr_un_sun_len="no"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013991fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013992rm -f conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000013993fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013994echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013995echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13996if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000013997
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013998cat >>confdefs.h <<\_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013999#define HAVE_SOCKADDR_SUN_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014000_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000014001
14002fi
14003
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014004
14005
14006
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014007case $host_cpu in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014008 *i345678986* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014009 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014010echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
14011if test "${ac_cv_cpp_def_i386+set}" = set; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000014013else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014014 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014015#line $LINENO "configure"
Juergen Lock2d33ab92000-02-13 16:03:29 +000014016#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014017#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014018yes
14019#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014020_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14022 egrep "yes" >/dev/null 2>&1; then
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014023 ac_cv_cpp_def_i386="yes"
14024else
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014025 ac_cv_cpp_def_i386="no"
14026fi
14027rm -f conftest*
14028
14029fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014030echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014031echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
14032 ;;
14033esac
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014034if test "$ac_cv_cpp_def_i386" = "yes"
14035then
14036 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +000014037 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014038fi
14039
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014040
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014041case $host_cpu in
14042 *sparc* )
14043 echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
14044echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
14045if test "${ac_cv_cpp_def_sparc+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14047else
14048 cat >conftest.$ac_ext <<_ACEOF
14049#line $LINENO "configure"
14050#include "confdefs.h"
14051#ifndef __sparc__
14052yes
14053#endif
14054_ACEOF
14055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14056 egrep "yes" >/dev/null 2>&1; then
14057 ac_cv_cpp_def_sparc="yes"
14058else
14059 ac_cv_cpp_def_sparc="no"
14060fi
14061rm -f conftest*
14062
14063fi
14064echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sparc" >&5
14065echo "${ECHO_T}$ac_cv_cpp_def_sparc" >&6
14066 ;;
14067esac
14068if test "$ac_cv_cpp_def_sparc" = "yes"
14069then
14070 CFLAGS="$CFLAGS -D__sparc__"
14071 LINTFLAGS="$LINTFLAGS -D__sparc__"
14072fi
14073
14074
14075case $host_vendor in
14076 *sun* )
14077 echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
14078echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
14079if test "${ac_cv_cpp_def_sun+set}" = set; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081else
14082 cat >conftest.$ac_ext <<_ACEOF
14083#line $LINENO "configure"
14084#include "confdefs.h"
14085#ifndef __sun__
14086yes
14087#endif
14088_ACEOF
14089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14090 egrep "yes" >/dev/null 2>&1; then
14091 ac_cv_cpp_def_sun="yes"
14092else
14093 ac_cv_cpp_def_sun="no"
14094fi
14095rm -f conftest*
14096
14097fi
14098echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sun" >&5
14099echo "${ECHO_T}$ac_cv_cpp_def_sun" >&6
14100 ;;
14101esac
14102if test "$ac_cv_cpp_def_sun" = "yes"
14103then
14104 CFLAGS="$CFLAGS -D__sun__"
14105 LINTFLAGS="$LINTFLAGS -D__sun__"
14106fi
14107
14108
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014109
14110
14111
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014112ac_config_commands="$ac_config_commands controls"
14113
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014114ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000014115
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014116ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000014117
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014118ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000014119
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014120ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000014121
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014122ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000014123
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014124ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014125
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014126ac_config_commands="$ac_config_commands dlls/dinput/joystick"
14127
14128ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
14129
14130ac_config_commands="$ac_config_commands dlls/dinput/mouse"
14131
Alexandre Julliard89118562002-03-27 21:13:40 +000014132ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
14133
14134ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
14135
14136ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
14137
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014138ac_config_commands="$ac_config_commands dlls/kernel/messages"
14139
14140ac_config_commands="$ac_config_commands dlls/user/dde"
14141
14142ac_config_commands="$ac_config_commands dlls/user/resources"
14143
14144ac_config_commands="$ac_config_commands dlls/wineps/data"
14145
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014146ac_config_commands="$ac_config_commands files"
14147
14148ac_config_commands="$ac_config_commands graphics"
14149
14150ac_config_commands="$ac_config_commands graphics/x11drv"
14151
14152ac_config_commands="$ac_config_commands if1632"
14153
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014154ac_config_commands="$ac_config_commands include/wine"
14155
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014156ac_config_commands="$ac_config_commands loader"
14157
14158ac_config_commands="$ac_config_commands loader/ne"
14159
14160ac_config_commands="$ac_config_commands memory"
14161
14162ac_config_commands="$ac_config_commands misc"
14163
14164ac_config_commands="$ac_config_commands msdos"
14165
14166ac_config_commands="$ac_config_commands objects"
14167
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000014168ac_config_commands="$ac_config_commands programs/regapi/tests"
14169
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000014170ac_config_commands="$ac_config_commands programs/regedit/tests"
14171
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000014172ac_config_commands="$ac_config_commands programs/winetest/tests"
14173
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014174ac_config_commands="$ac_config_commands relay32"
14175
14176ac_config_commands="$ac_config_commands scheduler"
14177
14178ac_config_commands="$ac_config_commands win32"
14179
14180ac_config_commands="$ac_config_commands windows"
14181
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014182
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014183MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014184
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014185
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000014186MAKE_DLL_RULES=dlls/Makedll.rules
14187
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014188
Alexandre Julliardedeee892002-08-09 01:22:40 +000014189MAKE_TEST_RULES=dlls/Maketest.rules
14190
14191
Alexandre Julliard626f4252000-11-10 23:35:20 +000014192MAKE_PROG_RULES=programs/Makeprog.rules
14193
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014194
Andriy Palamarchukb812c902002-09-11 02:35:17 +000014195ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/d3d8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/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/kernel/tests/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/msacm/winemp3/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/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/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/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/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/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/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/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/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/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wpp/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014196
Alexandre Julliard626f4252000-11-10 23:35:20 +000014197
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014198cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014199# This file is a shell script that caches the results of configure
14200# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014201# scripts and configure runs, see configure's option --config-cache.
14202# It is not useful on other systems. If it contains results you don't
14203# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014204#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014205# config.status only pays attention to the cache file if you give it
14206# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014207#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014208# `ac_cv_env_foo' variables (set or unset) will be overriden when
14209# loading this file, other *unset* `ac_cv_foo' will be assigned the
14210# following values.
14211
14212_ACEOF
14213
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014214# The following way of writing the cache mishandles newlines in values,
14215# but we know of no workaround that is simple, portable, and efficient.
14216# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014217# Ultrix sh set writes to stderr and can't be redirected directly,
14218# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014219{
14220 (set) 2>&1 |
14221 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14222 *ac_space=\ *)
14223 # `set' does not quote correctly, so add quotes (double-quote
14224 # substitution turns \\\\ into \\, and sed turns \\ into \).
14225 sed -n \
14226 "s/'/'\\\\''/g;
14227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14228 ;;
14229 *)
14230 # `set' quotes correctly as required by POSIX, so do not add quotes.
14231 sed -n \
14232 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14233 ;;
14234 esac;
14235} |
14236 sed '
14237 t clear
14238 : clear
14239 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14240 t end
14241 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14242 : end' >>confcache
14243if cmp -s $cache_file confcache; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014244 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014245 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14246 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014247 else
14248 echo "not updating unwritable cache $cache_file"
14249 fi
14250fi
14251rm -f confcache
14252
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014253test "x$prefix" = xNONE && prefix=$ac_default_prefix
14254# Let make expand exec_prefix.
14255test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14256
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014257# VPATH may cause trouble with some makes, so we remove $(srcdir),
14258# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14259# trailing colons and then remove the whole line if VPATH becomes empty
14260# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014261if test "x$srcdir" = x.; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014262 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14263s/:*\$(srcdir):*/:/;
14264s/:*\${srcdir}:*/:/;
14265s/:*@srcdir@:*/:/;
14266s/^\([^=]*=[ ]*\):*/\1/;
14267s/:*$//;
14268s/^[^=]*=[ ]*$//;
14269}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014270fi
14271
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014272DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014273
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014274
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014275: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014276ac_clean_files_save=$ac_clean_files
14277ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014278{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014279echo "$as_me: creating $CONFIG_STATUS" >&6;}
14280cat >$CONFIG_STATUS <<_ACEOF
14281#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014282# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014283# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014284# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014285# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014286
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014287debug=false
14288SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014289_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014290
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014291cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014292
14293## --------------------- ##
14294## M4sh Initialization. ##
14295## --------------------- ##
14296
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014297# Be Bourne compatible
14298if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14299 emulate sh
14300 NULLCMD=:
14301elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14302 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000014303fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014304
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014305# NLS nuisances.
14306# Support unset when possible.
14307if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14308 as_unset=unset
14309else
14310 as_unset=false
14311fi
14312
14313(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
14314 { $as_unset LANG || test "${LANG+set}" != set; } ||
14315 { LANG=C; export LANG; }
14316(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
14317 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
14318 { LC_ALL=C; export LC_ALL; }
14319(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
14320 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
14321 { LC_TIME=C; export LC_TIME; }
14322(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
14323 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
14324 { LC_CTYPE=C; export LC_CTYPE; }
14325(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
14326 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
14327 { LANGUAGE=C; export LANGUAGE; }
14328(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
14329 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
14330 { LC_COLLATE=C; export LC_COLLATE; }
14331(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
14332 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
14333 { LC_NUMERIC=C; export LC_NUMERIC; }
14334(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
14335 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
14336 { LC_MESSAGES=C; export LC_MESSAGES; }
14337
14338
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014339# Name of the executable.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014340as_me=`(basename "$0") 2>/dev/null ||
14341$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14342 X"$0" : 'X\(//\)$' \| \
14343 X"$0" : 'X\(/\)$' \| \
14344 . : '\(.\)' 2>/dev/null ||
14345echo X/"$0" |
14346 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14347 /^X\/\(\/\/\)$/{ s//\1/; q; }
14348 /^X\/\(\/\).*/{ s//\1/; q; }
14349 s/.*/./; q'`
14350
14351# PATH needs CR, and LINENO needs CR and PATH.
14352# Avoid depending upon Character Ranges.
14353as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14354as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14355as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14356as_cr_digits='0123456789'
14357as_cr_alnum=$as_cr_Letters$as_cr_digits
14358
14359# The user is always right.
14360if test "${PATH_SEPARATOR+set}" != set; then
14361 echo "#! /bin/sh" >conftest.sh
14362 echo "exit 0" >>conftest.sh
14363 chmod +x conftest.sh
14364 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
14365 PATH_SEPARATOR=';'
14366 else
14367 PATH_SEPARATOR=:
14368 fi
14369 rm -f conftest.sh
14370fi
14371
14372
14373 as_lineno_1=$LINENO
14374 as_lineno_2=$LINENO
14375 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14376 test "x$as_lineno_1" != "x$as_lineno_2" &&
14377 test "x$as_lineno_3" = "x$as_lineno_2" || {
14378 # Find who we are. Look in the path if we contain no path at all
14379 # relative or not.
14380 case $0 in
14381 *[\\/]* ) as_myself=$0 ;;
14382 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383for as_dir in $PATH
14384do
14385 IFS=$as_save_IFS
14386 test -z "$as_dir" && as_dir=.
14387 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14388done
14389
14390 ;;
14391 esac
14392 # We did not find ourselves, most probably we were run as `sh COMMAND'
14393 # in which case we are not to be found in the path.
14394 if test "x$as_myself" = x; then
14395 as_myself=$0
14396 fi
14397 if test ! -f "$as_myself"; then
14398 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14399echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14400 { (exit 1); exit 1; }; }
14401 fi
14402 case $CONFIG_SHELL in
14403 '')
14404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14406do
14407 IFS=$as_save_IFS
14408 test -z "$as_dir" && as_dir=.
14409 for as_base in sh bash ksh sh5; do
14410 case $as_dir in
14411 /*)
14412 if ("$as_dir/$as_base" -c '
14413 as_lineno_1=$LINENO
14414 as_lineno_2=$LINENO
14415 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14416 test "x$as_lineno_1" != "x$as_lineno_2" &&
14417 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14418 CONFIG_SHELL=$as_dir/$as_base
14419 export CONFIG_SHELL
14420 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14421 fi;;
14422 esac
14423 done
14424done
14425;;
14426 esac
14427
14428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14429 # uniformly replaced by the line number. The first 'sed' inserts a
14430 # line-number line before each line; the second 'sed' does the real
14431 # work. The second script uses 'N' to pair each line-number line
14432 # with the numbered line, and appends trailing '-' during
14433 # substitution so that $LINENO is not a special case at line end.
14434 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14435 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14436 sed '=' <$as_myself |
14437 sed '
14438 N
14439 s,$,-,
14440 : loop
14441 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14442 t loop
14443 s,-$,,
14444 s,^['$as_cr_digits']*\n,,
14445 ' >$as_me.lineno &&
14446 chmod +x $as_me.lineno ||
14447 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14448echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14449 { (exit 1); exit 1; }; }
14450
14451 # Don't try to exec as it changes $[0], causing all sort of problems
14452 # (the dirname of $[0] is not the place where we might find the
14453 # original and so on. Autoconf is especially sensible to this).
14454 . ./$as_me.lineno
14455 # Exit status is that of the last command.
14456 exit
14457}
14458
14459
14460case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14461 *c*,-n*) ECHO_N= ECHO_C='
14462' ECHO_T=' ' ;;
14463 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14464 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14465esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014466
14467if expr a : '\(a\)' >/dev/null 2>&1; then
14468 as_expr=expr
14469else
14470 as_expr=false
14471fi
14472
14473rm -f conf$$ conf$$.exe conf$$.file
14474echo >conf$$.file
14475if ln -s conf$$.file conf$$ 2>/dev/null; then
14476 # We could just check for DJGPP; but this test a) works b) is more generic
14477 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14478 if test -f conf$$.exe; then
14479 # Don't use ln at all; we don't have any links
14480 as_ln_s='cp -p'
14481 else
14482 as_ln_s='ln -s'
14483 fi
14484elif ln conf$$.file conf$$ 2>/dev/null; then
14485 as_ln_s=ln
14486else
14487 as_ln_s='cp -p'
14488fi
14489rm -f conf$$ conf$$.exe conf$$.file
14490
14491as_executable_p="test -f"
14492
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014493# Sed expression to map a string onto a valid CPP name.
14494as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014495
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014496# Sed expression to map a string onto a valid variable name.
14497as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14498
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014499
14500# IFS
14501# We need space, tab and new line, in precisely that order.
14502as_nl='
14503'
14504IFS=" $as_nl"
14505
14506# CDPATH.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014507$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014508
14509exec 6>&1
14510
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014511# Open the log real soon, to keep \$[0] and so on meaningful, and to
14512# report actual input values of CONFIG_FILES etc. instead of their
14513# values after options handling. Logging --version etc. is OK.
14514exec 5>>config.log
14515{
14516 echo
14517 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14518## Running $as_me. ##
14519_ASBOX
14520} >&5
14521cat >&5 <<_CSEOF
14522
Alexandre Julliard77ef4d12002-09-05 01:25:33 +000014523This file was extended by Wine $as_me 20020904, which was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014524generated by GNU Autoconf 2.53. Invocation command line was
14525
14526 CONFIG_FILES = $CONFIG_FILES
14527 CONFIG_HEADERS = $CONFIG_HEADERS
14528 CONFIG_LINKS = $CONFIG_LINKS
14529 CONFIG_COMMANDS = $CONFIG_COMMANDS
14530 $ $0 $@
14531
14532_CSEOF
14533echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14534echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014535_ACEOF
14536
14537# Files that config.status was made for.
14538if test -n "$ac_config_files"; then
14539 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14540fi
14541
14542if test -n "$ac_config_headers"; then
14543 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14544fi
14545
14546if test -n "$ac_config_links"; then
14547 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14548fi
14549
14550if test -n "$ac_config_commands"; then
14551 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14552fi
14553
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014554cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014555
14556ac_cs_usage="\
14557\`$as_me' instantiates files from templates according to the
14558current configuration.
14559
14560Usage: $0 [OPTIONS] [FILE]...
14561
14562 -h, --help print this help, then exit
14563 -V, --version print version number, then exit
14564 -d, --debug don't remove temporary files
14565 --recheck update $as_me by reconfiguring in the same conditions
14566 --file=FILE[:TEMPLATE]
14567 instantiate the configuration file FILE
14568 --header=FILE[:TEMPLATE]
14569 instantiate the configuration header FILE
14570
14571Configuration files:
14572$config_files
14573
14574Configuration headers:
14575$config_headers
14576
14577Configuration commands:
14578$config_commands
14579
14580Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014581_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000014582
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014583cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014584ac_cs_version="\\
Alexandre Julliard77ef4d12002-09-05 01:25:33 +000014585Wine config.status 20020904
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014586configured by $0, generated by GNU Autoconf 2.53,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014587 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014588
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014589Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14590Free Software Foundation, Inc.
14591This config.status script is free software; the Free Software Foundation
14592gives unlimited permission to copy, distribute and modify it."
14593srcdir=$srcdir
14594INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014595_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014596
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014597cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014598# If no file are specified by the user, then we need to provide default
14599# value. By we need to know if files were specified by the user.
14600ac_need_defaults=:
14601while test $# != 0
14602do
14603 case $1 in
14604 --*=*)
14605 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14606 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14607 shift
14608 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14609 shift
14610 ;;
14611 -*);;
14612 *) # This is not an option, so the user has probably given explicit
14613 # arguments.
14614 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014615 esac
14616
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014617 case $1 in
14618 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014619_ACEOF
14620cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014621 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14622 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14623 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014624_ACEOF
14625cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014626 --version | --vers* | -V )
14627 echo "$ac_cs_version"; exit 0 ;;
14628 --he | --h)
14629 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014630 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014631Try \`$0 --help' for more information." >&5
14632echo "$as_me: error: ambiguous option: $1
14633Try \`$0 --help' for more information." >&2;}
14634 { (exit 1); exit 1; }; };;
14635 --help | --hel | -h )
14636 echo "$ac_cs_usage"; exit 0 ;;
14637 --debug | --d* | -d )
14638 debug=: ;;
14639 --file | --fil | --fi | --f )
14640 shift
14641 CONFIG_FILES="$CONFIG_FILES $1"
14642 ac_need_defaults=false;;
14643 --header | --heade | --head | --hea )
14644 shift
14645 CONFIG_HEADERS="$CONFIG_HEADERS $1"
14646 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014647
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014648 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014649 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014650Try \`$0 --help' for more information." >&5
14651echo "$as_me: error: unrecognized option: $1
14652Try \`$0 --help' for more information." >&2;}
14653 { (exit 1); exit 1; }; } ;;
14654
14655 *) ac_config_targets="$ac_config_targets $1" ;;
14656
14657 esac
14658 shift
14659done
14660
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014661_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014662
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014663
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014664
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014665
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014666
14667cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014668for ac_config_target in $ac_config_targets
14669do
14670 case "$ac_config_target" in
14671 # Handling of arguments.
14672 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
14673 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014674 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014675 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
14676 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014677 "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
14678 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
14679 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014680 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014681 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
14682 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000014683 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014684 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
14685 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
14686 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
14687 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
Sylvain Petreolle3a99d8b2002-06-25 23:23:03 +000014688 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014689 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
14690 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
14691 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
14692 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
Ove Kaavend2d08f02002-06-14 00:39:44 +000014693 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014694 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
14695 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
14696 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
14697 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
14698 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
14699 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
14700 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
14701 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
14702 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014703 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014704 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
14705 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
14706 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
14707 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000014708 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000014709 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000014710 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Eric Pouechb706b232002-06-04 17:53:46 +000014711 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014712 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
14713 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000014714 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014715 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
14716 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
14717 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
14718 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
14719 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
14720 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
Andriy Palamarchukb812c902002-09-11 02:35:17 +000014721 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014722 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
Jon Griffiths1da29712002-08-15 22:08:40 +000014723 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014724 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
14725 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
14726 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014727 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014728 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
14729 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
14730 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
14731 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
14732 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
14733 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
14734 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
14735 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
14736 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
14737 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
14738 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
14739 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
14740 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
14741 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
14742 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
Andriy Palamarchuk5b5bea02002-08-27 01:34:33 +000014743 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014744 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
14745 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014746 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000014747 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014748 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
14749 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
14750 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000014751 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014752 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
14753 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
14754 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014755 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014756 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
14757 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
14758 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
14759 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
14760 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
14761 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014762 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014763 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
14764 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
14765 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
14766 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
14767 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
14768 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
14769 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
14770 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
14771 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Eric Pouecha120ce02002-06-28 17:40:16 +000014772 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014773 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014774 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
14775 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014776 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
14777 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
14778 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014779 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014780 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
14781 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
14782 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
14783 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
14784 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
14785 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014786 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14787 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014788 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014789 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
14790 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14791 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
14792 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
14793 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
14794 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000014795 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014796 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
14797 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
14798 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
14799 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000014800 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000014801 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014802 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
14803 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
14804 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
14805 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
14806 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
Alexandre Julliard65a42162002-06-04 21:29:40 +000014807 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014808 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000014809 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014810 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
14811 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
14812 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014813 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14814 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000014815 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014816 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
14817 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
14818 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
14819 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
Alexandre Julliardb7d3c792002-07-16 02:33:10 +000014820 "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014821 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
14822 "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
14823 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014824 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014825 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
14826 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
14827 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
14828 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
14829 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
14830 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
14831 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
14832 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
14833 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000014834 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
14835 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
14836 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014837 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
14838 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
14839 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
14840 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014841 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
14842 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
14843 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
14844 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014845 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014846 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
14847 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
14848 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
14849 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
14850 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
14851 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000014852 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000014853 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000014854 "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014855 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
14856 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
14857 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
14858 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014859 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014860 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014861echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14862 { (exit 1); exit 1; }; };;
14863 esac
14864done
14865
14866# If the user did not use the arguments to specify the items to instantiate,
14867# then the envvar interface is used. Set only those that are not.
14868# We use the long form for the default assignment because of an extremely
14869# bizarre bug on SunOS 4.1.3.
14870if $ac_need_defaults; then
14871 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14872 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14873 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14874fi
14875
14876# Create a temporary directory, and hook for its removal unless debugging.
14877$debug ||
14878{
14879 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14880 trap '{ (exit 1); exit 1; }' 1 2 13 15
14881}
14882
14883# Create a (secure) tmp directory for tmp files.
14884: ${TMPDIR=/tmp}
14885{
14886 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14887 test -n "$tmp" && test -d "$tmp"
14888} ||
14889{
14890 tmp=$TMPDIR/cs$$-$RANDOM
14891 (umask 077 && mkdir $tmp)
14892} ||
14893{
14894 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14895 { (exit 1); exit 1; }
14896}
14897
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014898_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014899
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014900cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014901
14902#
14903# CONFIG_FILES section.
14904#
14905
14906# No need to generate the scripts if there are no CONFIG_FILES.
14907# This happens for instance when ./config.status config.h
14908if test -n "\$CONFIG_FILES"; then
14909 # Protect against being on the right side of a sed subst in config.status.
14910 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14911 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14912s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014913s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14914s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14915s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14916s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14917s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14918s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014919s,@exec_prefix@,$exec_prefix,;t t
14920s,@prefix@,$prefix,;t t
14921s,@program_transform_name@,$program_transform_name,;t t
14922s,@bindir@,$bindir,;t t
14923s,@sbindir@,$sbindir,;t t
14924s,@libexecdir@,$libexecdir,;t t
14925s,@datadir@,$datadir,;t t
14926s,@sysconfdir@,$sysconfdir,;t t
14927s,@sharedstatedir@,$sharedstatedir,;t t
14928s,@localstatedir@,$localstatedir,;t t
14929s,@libdir@,$libdir,;t t
14930s,@includedir@,$includedir,;t t
14931s,@oldincludedir@,$oldincludedir,;t t
14932s,@infodir@,$infodir,;t t
14933s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014934s,@build_alias@,$build_alias,;t t
14935s,@host_alias@,$host_alias,;t t
14936s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014937s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014938s,@ECHO_C@,$ECHO_C,;t t
14939s,@ECHO_N@,$ECHO_N,;t t
14940s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014941s,@LIBS@,$LIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014942s,@LIBEXT@,$LIBEXT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014943s,@OPTIONS@,$OPTIONS,;t t
14944s,@build@,$build,;t t
14945s,@build_cpu@,$build_cpu,;t t
14946s,@build_vendor@,$build_vendor,;t t
14947s,@build_os@,$build_os,;t t
14948s,@host@,$host,;t t
14949s,@host_cpu@,$host_cpu,;t t
14950s,@host_vendor@,$host_vendor,;t t
14951s,@host_os@,$host_os,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014952s,@SET_MAKE@,$SET_MAKE,;t t
14953s,@CC@,$CC,;t t
14954s,@CFLAGS@,$CFLAGS,;t t
14955s,@LDFLAGS@,$LDFLAGS,;t t
14956s,@CPPFLAGS@,$CPPFLAGS,;t t
14957s,@ac_ct_CC@,$ac_ct_CC,;t t
14958s,@EXEEXT@,$EXEEXT,;t t
14959s,@OBJEXT@,$OBJEXT,;t t
14960s,@CPP@,$CPP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014961s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014962s,@X_CFLAGS@,$X_CFLAGS,;t t
14963s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14964s,@X_LIBS@,$X_LIBS,;t t
14965s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14966s,@YACC@,$YACC,;t t
14967s,@LEX@,$LEX,;t t
14968s,@LEXLIB@,$LEXLIB,;t t
14969s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14970s,@XYACC@,$XYACC,;t t
14971s,@XLEX@,$XLEX,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000014972s,@LD@,$LD,;t t
14973s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014974s,@AR@,$AR,;t t
14975s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014976s,@RANLIB@,$RANLIB,;t t
14977s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014978s,@STRIP@,$STRIP,;t t
14979s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14980s,@WINDRES@,$WINDRES,;t t
14981s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014982s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14983s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14984s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14985s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000014986s,@LN@,$LN,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014987s,@C2MAN@,$C2MAN,;t t
14988s,@LDCONFIG@,$LDCONFIG,;t t
14989s,@LINT@,$LINT,;t t
14990s,@LINTFLAGS@,$LINTFLAGS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014991s,@JPEGLIB@,$JPEGLIB,;t t
14992s,@XLIB@,$XLIB,;t t
14993s,@XFILES@,$XFILES,;t t
14994s,@OPENGLFILES@,$OPENGLFILES,;t t
14995s,@GLU32FILES@,$GLU32FILES,;t t
14996s,@CURSESLIBS@,$CURSESLIBS,;t t
14997s,@CUPSLIBS@,$CUPSLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000014998s,@sane_devel@,$sane_devel,;t t
14999s,@SANELIBS@,$SANELIBS,;t t
15000s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015001s,@ft_devel@,$ft_devel,;t t
15002s,@ft_devel2@,$ft_devel2,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015003s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000015004s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
15005s,@ARTSLIBS@,$ARTSLIBS,;t t
15006s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000015007s,@ALSALIBS@,$ALSALIBS,;t t
Alexandre Julliard04b5a862002-07-30 02:44:19 +000015008s,@NASLIBS@,$NASLIBS,;t t
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000015009s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015010s,@DLLEXT@,$DLLEXT,;t t
15011s,@DLLFLAGS@,$DLLFLAGS,;t t
15012s,@DLLIBS@,$DLLIBS,;t t
15013s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
15014s,@LDSHARED@,$LDSHARED,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015015s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015016s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015017s,@CROSSTEST@,$CROSSTEST,;t t
15018s,@CROSSCC@,$CROSSCC,;t t
15019s,@DLLTOOL@,$DLLTOOL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015020s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015021s,@CRTLIBS@,$CRTLIBS,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015022s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015023s,@ALLOCA@,$ALLOCA,;t t
15024/@MAKE_RULES@/r $MAKE_RULES
15025s,@MAKE_RULES@,,;t t
15026/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
15027s,@MAKE_DLL_RULES@,,;t t
Alexandre Julliardedeee892002-08-09 01:22:40 +000015028/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
15029s,@MAKE_TEST_RULES@,,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015030/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
15031s,@MAKE_PROG_RULES@,,;t t
15032CEOF
15033
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015034_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015035
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015036 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015037 # Split the substitutions into bite-sized pieces for seds with
15038 # small command number limits, like on Digital OSF/1 and HP-UX.
15039 ac_max_sed_lines=48
15040 ac_sed_frag=1 # Number of current file.
15041 ac_beg=1 # First line for current file.
15042 ac_end=$ac_max_sed_lines # Line after last line for current file.
15043 ac_more_lines=:
15044 ac_sed_cmds=
15045 while $ac_more_lines; do
15046 if test $ac_beg -gt 1; then
15047 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15048 else
15049 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15050 fi
15051 if test ! -s $tmp/subs.frag; then
15052 ac_more_lines=false
15053 else
15054 # The purpose of the label and of the branching condition is to
15055 # speed up the sed processing (if there are no `@' at all, there
15056 # is no need to browse any of the substitutions).
15057 # These are the two extra sed commands mentioned above.
15058 (echo ':t
15059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15060 if test -z "$ac_sed_cmds"; then
15061 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15062 else
15063 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15064 fi
15065 ac_sed_frag=`expr $ac_sed_frag + 1`
15066 ac_beg=$ac_end
15067 ac_end=`expr $ac_end + $ac_max_sed_lines`
15068 fi
15069 done
15070 if test -z "$ac_sed_cmds"; then
15071 ac_sed_cmds=cat
15072 fi
15073fi # test -n "$CONFIG_FILES"
15074
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015075_ACEOF
15076cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015077for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15078 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15079 case $ac_file in
15080 - | *:- | *:-:* ) # input from stdin
15081 cat >$tmp/stdin
15082 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15083 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15084 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15085 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15086 * ) ac_file_in=$ac_file.in ;;
15087 esac
15088
15089 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015090 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15091$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015092 X"$ac_file" : 'X\(//\)[^/]' \| \
15093 X"$ac_file" : 'X\(//\)$' \| \
15094 X"$ac_file" : 'X\(/\)' \| \
15095 . : '\(.\)' 2>/dev/null ||
15096echo X"$ac_file" |
15097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15098 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15099 /^X\(\/\/\)$/{ s//\1/; q; }
15100 /^X\(\/\).*/{ s//\1/; q; }
15101 s/.*/./; q'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015102 { case "$ac_dir" in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015103 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15104 *) as_incr_dir=.;;
15105esac
15106as_dummy="$ac_dir"
15107for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15108 case $as_mkdir_dir in
15109 # Skip DOS drivespec
15110 ?:) as_incr_dir=$as_mkdir_dir ;;
15111 *)
15112 as_incr_dir=$as_incr_dir/$as_mkdir_dir
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015113 test -d "$as_incr_dir" ||
15114 mkdir "$as_incr_dir" ||
15115 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15116echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15117 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015118 ;;
15119 esac
15120done; }
15121
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015122 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015123
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015124if test "$ac_dir" != .; then
15125 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15126 # A "../" for each directory in $ac_dir_suffix.
15127 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15128else
15129 ac_dir_suffix= ac_top_builddir=
15130fi
15131
15132case $srcdir in
15133 .) # No --srcdir option. We are building in place.
15134 ac_srcdir=.
15135 if test -z "$ac_top_builddir"; then
15136 ac_top_srcdir=.
15137 else
15138 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15139 fi ;;
15140 [\\/]* | ?:[\\/]* ) # Absolute path.
15141 ac_srcdir=$srcdir$ac_dir_suffix;
15142 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015143 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015144 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15145 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15146esac
15147# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15148# absolute.
15149ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15150ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15151ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15152ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15153
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015154
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015155 case $INSTALL in
15156 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015157 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000015158 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015159
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015160 if test x"$ac_file" != x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015161 { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015162echo "$as_me: creating $ac_file" >&6;}
15163 rm -f "$ac_file"
15164 fi
15165 # Let's still pretend it is `configure' which instantiates (i.e., don't
15166 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015167 # /* config.h. Generated by config.status. */
15168 if test x"$ac_file" = x-; then
15169 configure_input=
15170 else
15171 configure_input="$ac_file. "
15172 fi
15173 configure_input=$configure_input"Generated from `echo $ac_file_in |
15174 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015175
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015176 # First look for the input files in the build tree, otherwise in the
15177 # src tree.
15178 ac_file_inputs=`IFS=:
15179 for f in $ac_file_in; do
15180 case $f in
15181 -) echo $tmp/stdin ;;
15182 [\\/$]*)
15183 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015184 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015185echo "$as_me: error: cannot find input file: $f" >&2;}
15186 { (exit 1); exit 1; }; }
15187 echo $f;;
15188 *) # Relative
15189 if test -f "$f"; then
15190 # Build tree
15191 echo $f
15192 elif test -f "$srcdir/$f"; then
15193 # Source tree
15194 echo $srcdir/$f
15195 else
15196 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015197 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015198echo "$as_me: error: cannot find input file: $f" >&2;}
15199 { (exit 1); exit 1; }; }
15200 fi;;
15201 esac
15202 done` || { (exit 1); exit 1; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015203_ACEOF
15204cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015205 sed "$ac_vpsub
15206$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015207_ACEOF
15208cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015209:t
15210/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15211s,@configure_input@,$configure_input,;t t
15212s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015213s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015214s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015215s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15216s,@builddir@,$ac_builddir,;t t
15217s,@abs_builddir@,$ac_abs_builddir,;t t
15218s,@top_builddir@,$ac_top_builddir,;t t
15219s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015220s,@INSTALL@,$ac_INSTALL,;t t
15221" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15222 rm -f $tmp/stdin
15223 if test x"$ac_file" != x-; then
15224 mv $tmp/out $ac_file
15225 else
15226 cat $tmp/out
15227 rm -f $tmp/out
15228 fi
15229
15230done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015231_ACEOF
15232cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015233
15234#
15235# CONFIG_HEADER section.
15236#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015237
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015238# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15239# NAME is the cpp macro being defined and VALUE is the value it is being given.
15240#
15241# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015242ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15243ac_dB='[ ].*$,\1#\2'
15244ac_dC=' '
15245ac_dD=',;t'
15246# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15247ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15248ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015249ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015250ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015251
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015252for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015253 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015254 case $ac_file in
15255 - | *:- | *:-:* ) # input from stdin
15256 cat >$tmp/stdin
15257 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15258 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15259 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15260 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15261 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015262 esac
15263
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015264 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015265echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015266
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015267 # First look for the input files in the build tree, otherwise in the
15268 # src tree.
15269 ac_file_inputs=`IFS=:
15270 for f in $ac_file_in; do
15271 case $f in
15272 -) echo $tmp/stdin ;;
15273 [\\/$]*)
15274 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015275 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015276echo "$as_me: error: cannot find input file: $f" >&2;}
15277 { (exit 1); exit 1; }; }
15278 echo $f;;
15279 *) # Relative
15280 if test -f "$f"; then
15281 # Build tree
15282 echo $f
15283 elif test -f "$srcdir/$f"; then
15284 # Source tree
15285 echo $srcdir/$f
15286 else
15287 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015288 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015289echo "$as_me: error: cannot find input file: $f" >&2;}
15290 { (exit 1); exit 1; }; }
15291 fi;;
15292 esac
15293 done` || { (exit 1); exit 1; }
15294 # Remove the trailing spaces.
15295 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015296
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015297_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015298
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015299# Transform confdefs.h into two sed scripts, `conftest.defines' and
15300# `conftest.undefs', that substitutes the proper values into
15301# config.h.in to produce config.h. The first handles `#define'
15302# templates, and the second `#undef' templates.
15303# And first: Protect against being on the right side of a sed subst in
15304# config.status. Protect against being in an unquoted here document
15305# in config.status.
15306rm -f conftest.defines conftest.undefs
15307# Using a here document instead of a string reduces the quoting nightmare.
15308# Putting comments in sed scripts is not portable.
15309#
15310# `end' is used to avoid that the second main sed command (meant for
15311# 0-ary CPP macros) applies to n-ary macro definitions.
15312# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015313cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015314s/[\\&,]/\\&/g
15315s,[\\$`],\\&,g
15316t clear
15317: clear
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015318s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015319t end
15320s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15321: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015322_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015323# If some macros were called several times there might be several times
15324# the same #defines, which is useless. Nevertheless, we may not want to
15325# sort them, since we want the *last* AC-DEFINE to be honored.
15326uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15327sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15328rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015329
15330# This sed command replaces #undef with comments. This is necessary, for
15331# example, in the case of _POSIX_SOURCE, which is predefined and required
15332# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015333cat >>conftest.undefs <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015334s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015335_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015336
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015337# Break up conftest.defines because some shells have a limit on the size
15338# of here documents, and old seds have small limits too (100 cmds).
15339echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15340echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15341echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15342echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015343rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015344while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015345do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015346 # Write a limited-size here document to $tmp/defines.sed.
15347 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15348 # Speed up: don't consider the non `#define' lines.
15349 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15350 # Work around the forget-to-reset-the-flag bug.
15351 echo 't clr' >>$CONFIG_STATUS
15352 echo ': clr' >>$CONFIG_STATUS
15353 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015354 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015355 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15356 rm -f $tmp/in
15357 mv $tmp/out $tmp/in
15358' >>$CONFIG_STATUS
15359 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15360 rm -f conftest.defines
15361 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015362done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015363rm -f conftest.defines
15364echo ' fi # egrep' >>$CONFIG_STATUS
15365echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015366
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015367# Break up conftest.undefs because some shells have a limit on the size
15368# of here documents, and old seds have small limits too (100 cmds).
15369echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15370rm -f conftest.tail
15371while grep . conftest.undefs >/dev/null
15372do
15373 # Write a limited-size here document to $tmp/undefs.sed.
15374 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15375 # Speed up: don't consider the non `#undef'
15376 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15377 # Work around the forget-to-reset-the-flag bug.
15378 echo 't clr' >>$CONFIG_STATUS
15379 echo ': clr' >>$CONFIG_STATUS
15380 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15381 echo 'CEOF
15382 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15383 rm -f $tmp/in
15384 mv $tmp/out $tmp/in
15385' >>$CONFIG_STATUS
15386 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15387 rm -f conftest.undefs
15388 mv conftest.tail conftest.undefs
15389done
15390rm -f conftest.undefs
15391
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015392cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015393 # Let's still pretend it is `configure' which instantiates (i.e., don't
15394 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015395 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015396 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015397 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015398 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015399 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015400 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015401 cat $tmp/in >>$tmp/config.h
15402 rm -f $tmp/in
15403 if test x"$ac_file" != x-; then
15404 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015405 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015406echo "$as_me: $ac_file is unchanged" >&6;}
15407 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015408 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15409$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015410 X"$ac_file" : 'X\(//\)[^/]' \| \
15411 X"$ac_file" : 'X\(//\)$' \| \
15412 X"$ac_file" : 'X\(/\)' \| \
15413 . : '\(.\)' 2>/dev/null ||
15414echo X"$ac_file" |
15415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15417 /^X\(\/\/\)$/{ s//\1/; q; }
15418 /^X\(\/\).*/{ s//\1/; q; }
15419 s/.*/./; q'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015420 { case "$ac_dir" in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015421 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15422 *) as_incr_dir=.;;
15423esac
15424as_dummy="$ac_dir"
15425for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15426 case $as_mkdir_dir in
15427 # Skip DOS drivespec
15428 ?:) as_incr_dir=$as_mkdir_dir ;;
15429 *)
15430 as_incr_dir=$as_incr_dir/$as_mkdir_dir
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015431 test -d "$as_incr_dir" ||
15432 mkdir "$as_incr_dir" ||
15433 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15434echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15435 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015436 ;;
15437 esac
15438done; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015439
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015440 rm -f $ac_file
15441 mv $tmp/config.h $ac_file
15442 fi
15443 else
15444 cat $tmp/config.h
15445 rm -f $tmp/config.h
15446 fi
15447done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015448_ACEOF
15449cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015450
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015451#
15452# CONFIG_COMMANDS section.
15453#
15454for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15455 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15456 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015457 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15458$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15459 X"$ac_dest" : 'X\(//\)[^/]' \| \
15460 X"$ac_dest" : 'X\(//\)$' \| \
15461 X"$ac_dest" : 'X\(/\)' \| \
15462 . : '\(.\)' 2>/dev/null ||
15463echo X"$ac_dest" |
15464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15466 /^X\(\/\/\)$/{ s//\1/; q; }
15467 /^X\(\/\).*/{ s//\1/; q; }
15468 s/.*/./; q'`
15469 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000015470
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015471if test "$ac_dir" != .; then
15472 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15473 # A "../" for each directory in $ac_dir_suffix.
15474 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015475else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015476 ac_dir_suffix= ac_top_builddir=
15477fi
15478
15479case $srcdir in
15480 .) # No --srcdir option. We are building in place.
15481 ac_srcdir=.
15482 if test -z "$ac_top_builddir"; then
15483 ac_top_srcdir=.
15484 else
15485 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15486 fi ;;
15487 [\\/]* | ?:[\\/]* ) # Absolute path.
15488 ac_srcdir=$srcdir$ac_dir_suffix;
15489 ac_top_srcdir=$srcdir ;;
15490 *) # Relative path.
15491 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15492 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15493esac
15494# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15495# absolute.
15496ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15497ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15498ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15499ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15500
15501
15502 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15503echo "$as_me: executing $ac_dest commands" >&6;}
15504 case $ac_dest in
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015505 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
15506echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015507 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
15508echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
15509 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
15510echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
15511 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
15512echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
15513 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
15514echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
15515 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
15516echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
15517 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
15518echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
15519 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
15520echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
15521 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
15522echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
15523 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
15524echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
15525 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
15526echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
15527 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
15528echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
15529 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
15530echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
15531 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
15532echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015533 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
15534echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
15535 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
15536echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015537 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
15538echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015539 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
15540echo "$as_me: creating files" >&6;} && mkdir "files") ;;
15541 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
15542echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
15543 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
15544echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
15545 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
15546echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015547 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
15548echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015549 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
15550echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
15551 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
15552echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
15553 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
15554echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
15555 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
15556echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
15557 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
15558echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
15559 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
15560echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015561 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
15562echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000015563 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
15564echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015565 programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
15566echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015567 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
15568echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
15569 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
15570echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
15571 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
15572echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
15573 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
15574echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015575 esac
15576done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015577_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015578
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015579cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000015580
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015581{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015582_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015583chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015584ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015585
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015586
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015587# configure is writing to config.log, and then calls config.status.
15588# config.status does its own redirection, appending to config.log.
15589# Unfortunately, on DOS this fails, as config.log is still kept open
15590# by configure, so config.status won't be able to write to it; its
15591# output is simply discarded. So we exec the FD to /dev/null,
15592# effectively closing config.log, so it can be properly (re)opened and
15593# appended to by config.status. When coming back to configure, we
15594# need to make the FD available again.
15595if test "$no_create" != yes; then
15596 ac_cs_success=:
15597 exec 5>/dev/null
15598 $SHELL $CONFIG_STATUS || ac_cs_success=false
15599 exec 5>>config.log
15600 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15601 # would make configure fail if this is the last instruction.
15602 $ac_cs_success || { (exit 1); exit 1; }
15603fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015604
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015605
Ove Kaaven8b4431f1999-01-23 13:59:11 +000015606if test "$have_x" = "no"
15607then
15608 echo
15609 echo "*** Warning: X development files not found. Wine will be built without"
15610 echo "*** X support, which currently does not work, and would probably not be"
15611 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000015612 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000015613fi
15614
Alexandre Julliard638f1691999-01-17 16:32:32 +000015615if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
15616then
15617 echo
15618 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
15619 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +000015620fi
15621
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015622if test "$wine_cv_libc_reentrant" = "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000015623then
15624 echo
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015625 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
15626 echo "*** threading support. Consider upgrading libc to a more recent"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000015627 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000015628fi
15629
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000015630if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
15631then
15632 echo
15633 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
15634 echo "*** applications won't work properly. You should upgrade your X11 library."
15635fi
15636
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000015637if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000015638then
15639 echo
15640 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000015641 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
15642fi
15643
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015644if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000015645then
15646 echo
15647 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015648 echo "*** thread-safety. To prevent crashes, OpenGL support has been disabled."
Andreas Mohr18a9d742001-01-17 21:52:42 +000015649 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 +000015650 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +000015651fi
15652
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015653if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000015654then
15655 echo
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +000015656 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000015657 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
15658 echo "*** support before reporting bugs."
15659fi
15660
Marcus Meissner3ee02ba2001-04-30 18:18:50 +000015661if test "$wine_cv_warn_cups_h" = "yes"
15662then
15663 echo
15664 echo "*** Note: You have cups runtime libraries, but no development"
15665 echo "*** libraries. Install the cups-devel package or whichever package"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015666 echo "*** contains cups.h to enable CUPS support in Wine."
Marcus Meissner3ee02ba2001-04-30 18:18:50 +000015667fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000015668
Ian Pilcher563598d2001-05-16 20:56:05 +000015669if test "$wine_cv_msg_freetype" = "yes"
15670then
15671 echo
15672 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015673 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
15674 echo "*** freetype-devel package (or its equivalent on your distribution) to"
15675 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000015676fi
15677
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015678echo
Steffen Moeller1511bae1999-02-17 15:27:03 +000015679echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015680echo
15681