blob: f2040d6d950c18b4900a5510e8e5d844ad26e75b [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 Julliard390aa832002-07-11 01:30:53 +00003# Generated by GNU Autoconf 2.53 for Wine 20020710.
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 Julliard390aa832002-07-11 01:30:53 +0000257PACKAGE_VERSION='20020710'
258PACKAGE_STRING='Wine 20020710'
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 Julliard390aa832002-07-11 01:30:53 +0000763\`configure' configures Wine 20020710 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 Julliard390aa832002-07-11 01:30:53 +0000828 short | recursive ) echo "Configuration of Wine 20020710:";;
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 Julliard390aa832002-07-11 01:30:53 +0000921Wine configure 20020710
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 Julliard390aa832002-07-11 01:30:53 +0000936It was created by Wine $as_me 20020710, 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
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008589echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008590echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8591if test "${ac_cv_c_ipx_gnu+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008593else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008594 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008595#line $LINENO "configure"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008596#include "confdefs.h"
Pavel Roskin94d99641998-12-26 11:52:51 +00008597#include <sys/socket.h>
8598 #include <netipx/ipx.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008599#ifdef F77_DUMMY_MAIN
8600# ifdef __cplusplus
8601 extern "C"
8602# endif
8603 int F77_DUMMY_MAIN() { return 1; }
8604#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008605int
8606main ()
8607{
Pavel Roskin94d99641998-12-26 11:52:51 +00008608((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008609 ;
8610 return 0;
8611}
8612_ACEOF
8613rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008615 (eval $ac_compile) 2>&5
8616 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008618 (exit $ac_status); } &&
8619 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008621 (eval $ac_try) 2>&5
8622 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008624 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00008625 ac_cv_c_ipx_gnu="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00008626else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008627 echo "$as_me: failed program was:" >&5
8628cat conftest.$ac_ext >&5
8629ac_cv_c_ipx_gnu="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00008630fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008631rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00008632
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008633fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008634echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008635echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00008636if test "$ac_cv_c_ipx_gnu" = "yes"
8637then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008638
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008639cat >>confdefs.h <<\_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008640#define HAVE_IPX_GNU 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008641_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008642
8643fi
Pavel Roskin94d99641998-12-26 11:52:51 +00008644
8645if test "$ac_cv_c_ipx_gnu" = "no"
8646then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008647 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008648echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8649if test "${ac_cv_c_ipx_linux+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00008651else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008652 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008653#line $LINENO "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00008654#include "confdefs.h"
8655#include <sys/socket.h>
8656 #include <asm/types.h>
8657 #include <linux/ipx.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008658#ifdef F77_DUMMY_MAIN
8659# ifdef __cplusplus
8660 extern "C"
8661# endif
8662 int F77_DUMMY_MAIN() { return 1; }
8663#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008664int
8665main ()
8666{
Pavel Roskin94d99641998-12-26 11:52:51 +00008667((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008668 ;
8669 return 0;
8670}
8671_ACEOF
8672rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008674 (eval $ac_compile) 2>&5
8675 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008677 (exit $ac_status); } &&
8678 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008680 (eval $ac_try) 2>&5
8681 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008683 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00008684 ac_cv_c_ipx_linux="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00008685else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008686 echo "$as_me: failed program was:" >&5
8687cat conftest.$ac_ext >&5
8688ac_cv_c_ipx_linux="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00008689fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008690rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00008691
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008692fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008693echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008694echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00008695 if test "$ac_cv_c_ipx_linux" = "yes"
8696 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008697
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008698cat >>confdefs.h <<\_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008699#define HAVE_IPX_LINUX 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008700_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008701
8702 fi
Pavel Roskin94d99641998-12-26 11:52:51 +00008703fi
8704
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008705
8706
8707
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008708for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008709do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008711if eval "test \"\${$as_ac_Header+set}\" = set"; then
8712 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8714if eval "test \"\${$as_ac_Header+set}\" = set"; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008716fi
8717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008719else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008720 # Is the header compilable?
8721echo "$as_me:$LINENO: checking $ac_header usability" >&5
8722echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8723cat >conftest.$ac_ext <<_ACEOF
8724#line $LINENO "configure"
8725#include "confdefs.h"
8726$ac_includes_default
8727#include <$ac_header>
8728_ACEOF
8729rm -f conftest.$ac_objext
8730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8731 (eval $ac_compile) 2>&5
8732 ac_status=$?
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
8735 { ac_try='test -s conftest.$ac_objext'
8736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8737 (eval $ac_try) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); }; }; then
8741 ac_header_compiler=yes
8742else
8743 echo "$as_me: failed program was:" >&5
8744cat conftest.$ac_ext >&5
8745ac_header_compiler=no
8746fi
8747rm -f conftest.$ac_objext conftest.$ac_ext
8748echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8749echo "${ECHO_T}$ac_header_compiler" >&6
8750
8751# Is the header present?
8752echo "$as_me:$LINENO: checking $ac_header presence" >&5
8753echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8754cat >conftest.$ac_ext <<_ACEOF
8755#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008756#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008757#include <$ac_header>
8758_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8761 ac_status=$?
8762 egrep -v '^ *\+' conftest.er1 >conftest.err
8763 rm -f conftest.er1
8764 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008766 (exit $ac_status); } >/dev/null; then
8767 if test -s conftest.err; then
8768 ac_cpp_err=$ac_c_preproc_warn_flag
8769 else
8770 ac_cpp_err=
8771 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008772else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008773 ac_cpp_err=yes
8774fi
8775if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008776 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008777else
8778 echo "$as_me: failed program was:" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008779 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008780 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008781fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008782rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008783echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8784echo "${ECHO_T}$ac_header_preproc" >&6
8785
8786# So? What about this header?
8787case $ac_header_compiler:$ac_header_preproc in
8788 yes:no )
8789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8793 no:yes )
8794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8795echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8797echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8799echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8800esac
8801echo "$as_me:$LINENO: checking for $ac_header" >&5
8802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8803if eval "test \"\${$as_ac_Header+set}\" = set"; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805else
8806 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008807fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008810
8811fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008812if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008813 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008814#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008815_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00008816 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008817fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008818
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008819done
8820
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008821
8822echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008823echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8824if test "${ac_cv_c_opensoundsystem+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008826else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008827 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008828#line $LINENO "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008829#include "confdefs.h"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008830
Todd Vierlingecc76691998-12-15 17:49:02 +00008831 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008832 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00008833 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008834 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00008835 #elif defined(HAVE_SOUNDCARD_H)
8836 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008837 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008838
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008839#ifdef F77_DUMMY_MAIN
8840# ifdef __cplusplus
8841 extern "C"
8842# endif
8843 int F77_DUMMY_MAIN() { return 1; }
8844#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008845int
8846main ()
8847{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008848
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008849
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00008850/* check for one of the Open Sound System specific SNDCTL_ defines */
8851#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008852#error No open sound system
8853#endif
8854
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008855 ;
8856 return 0;
8857}
8858_ACEOF
8859rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008861 (eval $ac_compile) 2>&5
8862 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008864 (exit $ac_status); } &&
8865 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008867 (eval $ac_try) 2>&5
8868 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008870 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008871 ac_cv_c_opensoundsystem="yes"
8872else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008873 echo "$as_me: failed program was:" >&5
8874cat conftest.$ac_ext >&5
8875ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008876fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008877rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008878fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008879echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008880echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008881
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00008882if test "$ac_cv_c_opensoundsystem" = "yes"
8883then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008884
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008885cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00008886#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008887_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00008888
8889fi
8890
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008891echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008892echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
8893if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00008895else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008896 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008897#line $LINENO "configure"
Eric Pouech338d3b21999-05-22 18:52:21 +00008898#include "confdefs.h"
8899
8900 #if defined(HAVE_SYS_SOUNDCARD_H)
8901 #include <sys/soundcard.h>
8902 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
8903 #include <machine/soundcard.h>
8904 #elif defined(HAVE_SOUNDCARD_H)
8905 #include <soundcard.h>
8906 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +00008907
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008908#ifdef F77_DUMMY_MAIN
8909# ifdef __cplusplus
8910 extern "C"
8911# endif
8912 int F77_DUMMY_MAIN() { return 1; }
8913#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008914int
8915main ()
8916{
Eric Pouech338d3b21999-05-22 18:52:21 +00008917
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008918
Eric Pouech338d3b21999-05-22 18:52:21 +00008919/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
8920#if !defined(SNDCTL_SEQ_SYNC)
8921#error No open sound system MIDI interface
8922#endif
8923
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008924 ;
8925 return 0;
8926}
8927_ACEOF
8928rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008930 (eval $ac_compile) 2>&5
8931 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008933 (exit $ac_status); } &&
8934 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008936 (eval $ac_try) 2>&5
8937 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008939 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +00008940 ac_cv_c_opensoundsystem_midi="yes"
8941else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008942 echo "$as_me: failed program was:" >&5
8943cat conftest.$ac_ext >&5
8944ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +00008945fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008946rm -f conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +00008947fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008948echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008949echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00008950
8951if test "$ac_cv_c_opensoundsystem_midi" = "yes"
8952then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008953
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008954cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +00008955#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008956_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +00008957
8958fi
8959
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00008960# Extract the first word of "artsc-config", so it can be a program name with args.
8961set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008962echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00008963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8964if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8966else
8967 case $ARTSCCONFIG in
8968 [\\/]* | ?:[\\/]*)
8969 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
8970 ;;
8971 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973for as_dir in $PATH
8974do
8975 IFS=$as_save_IFS
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
8980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8981 break 2
8982 fi
8983done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00008984done
8985
8986 ;;
8987esac
8988fi
8989ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
8990
8991if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008992 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00008993echo "${ECHO_T}$ARTSCCONFIG" >&6
8994else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008995 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00008996echo "${ECHO_T}no" >&6
8997fi
8998
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008999echo "$as_me:$LINENO: checking for aRts Sound server" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009000echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9001if test "${ac_cv_c_artsserver+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003else
9004 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9005 then
9006 ac_cv_c_artsserver=no
9007 else
9008 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9009 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9010 ac_cv_c_artsserver=no
9011 save_CFLAGS="$CFLAGS"
9012 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9013 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009014#line $LINENO "configure"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009015#include "confdefs.h"
9016
9017 #include <artsc.h>
9018
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009019#ifdef F77_DUMMY_MAIN
9020# ifdef __cplusplus
9021 extern "C"
9022# endif
9023 int F77_DUMMY_MAIN() { return 1; }
9024#endif
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009025int
9026main ()
9027{
9028
9029 arts_stream_t stream;
9030
9031 ;
9032 return 0;
9033}
9034_ACEOF
9035rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009037 (eval $ac_compile) 2>&5
9038 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009040 (exit $ac_status); } &&
9041 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009043 (eval $ac_try) 2>&5
9044 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009046 (exit $ac_status); }; }; then
9047
9048 ac_cv_c_artsserver=yes
9049
9050else
9051 echo "$as_me: failed program was:" >&5
9052cat conftest.$ac_ext >&5
9053fi
9054rm -f conftest.$ac_objext conftest.$ac_ext
9055 CFLAGS="$save_CFLAGS"
9056 fi
9057fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009058echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009059echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9060
9061if test "$ac_cv_c_artsserver" = "yes"
9062then
9063 ARTSLIBS=$ARTSC_LIBS
9064
9065 ARTSINCL=$ARTSC_CFLAGS
9066
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009067
9068
9069cat >>confdefs.h <<\_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009070#define HAVE_ARTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009071_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009072
9073fi
9074
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009075ALSALIBS=""
9076
9077
9078for ac_header in sys/asoundlib.h
9079do
9080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9081if eval "test \"\${$as_ac_Header+set}\" = set"; then
9082 echo "$as_me:$LINENO: checking for $ac_header" >&5
9083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9084if eval "test \"\${$as_ac_Header+set}\" = set"; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086fi
9087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9089else
9090 # Is the header compilable?
9091echo "$as_me:$LINENO: checking $ac_header usability" >&5
9092echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9093cat >conftest.$ac_ext <<_ACEOF
9094#line $LINENO "configure"
9095#include "confdefs.h"
9096$ac_includes_default
9097#include <$ac_header>
9098_ACEOF
9099rm -f conftest.$ac_objext
9100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9101 (eval $ac_compile) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try='test -s conftest.$ac_objext'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 (eval $ac_try) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 ac_header_compiler=yes
9112else
9113 echo "$as_me: failed program was:" >&5
9114cat conftest.$ac_ext >&5
9115ac_header_compiler=no
9116fi
9117rm -f conftest.$ac_objext conftest.$ac_ext
9118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9119echo "${ECHO_T}$ac_header_compiler" >&6
9120
9121# Is the header present?
9122echo "$as_me:$LINENO: checking $ac_header presence" >&5
9123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9124cat >conftest.$ac_ext <<_ACEOF
9125#line $LINENO "configure"
9126#include "confdefs.h"
9127#include <$ac_header>
9128_ACEOF
9129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9131 ac_status=$?
9132 egrep -v '^ *\+' conftest.er1 >conftest.err
9133 rm -f conftest.er1
9134 cat conftest.err >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } >/dev/null; then
9137 if test -s conftest.err; then
9138 ac_cpp_err=$ac_c_preproc_warn_flag
9139 else
9140 ac_cpp_err=
9141 fi
9142else
9143 ac_cpp_err=yes
9144fi
9145if test -z "$ac_cpp_err"; then
9146 ac_header_preproc=yes
9147else
9148 echo "$as_me: failed program was:" >&5
9149 cat conftest.$ac_ext >&5
9150 ac_header_preproc=no
9151fi
9152rm -f conftest.err conftest.$ac_ext
9153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9154echo "${ECHO_T}$ac_header_preproc" >&6
9155
9156# So? What about this header?
9157case $ac_header_compiler:$ac_header_preproc in
9158 yes:no )
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9163 no:yes )
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9165echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9167echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9169echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9170esac
9171echo "$as_me:$LINENO: checking for $ac_header" >&5
9172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9173if eval "test \"\${$as_ac_Header+set}\" = set"; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9175else
9176 eval "$as_ac_Header=$ac_header_preproc"
9177fi
9178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9180
9181fi
9182if test `eval echo '${'$as_ac_Header'}'` = yes; then
9183 cat >>confdefs.h <<_ACEOF
9184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9185_ACEOF
9186
9187fi
9188
9189done
9190
9191if test "$ac_cv_header_sys_asoundlib_h" = "yes"
9192then
9193 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9194echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9195if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9197else
9198 ac_check_lib_save_LIBS=$LIBS
9199LIBS="-lasound $LIBS"
9200cat >conftest.$ac_ext <<_ACEOF
9201#line $LINENO "configure"
9202#include "confdefs.h"
9203
9204/* Override any gcc2 internal prototype to avoid an error. */
9205#ifdef __cplusplus
9206extern "C"
9207#endif
9208/* We use char because int might match the return type of a gcc2
9209 builtin and then its argument prototype would still apply. */
9210char snd_pcm_open ();
9211#ifdef F77_DUMMY_MAIN
9212# ifdef __cplusplus
9213 extern "C"
9214# endif
9215 int F77_DUMMY_MAIN() { return 1; }
9216#endif
9217int
9218main ()
9219{
9220snd_pcm_open ();
9221 ;
9222 return 0;
9223}
9224_ACEOF
9225rm -f conftest.$ac_objext conftest$ac_exeext
9226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9227 (eval $ac_link) 2>&5
9228 ac_status=$?
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
9231 { ac_try='test -s conftest$ac_exeext'
9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9233 (eval $ac_try) 2>&5
9234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9237 ac_cv_lib_asound_snd_pcm_open=yes
9238else
9239 echo "$as_me: failed program was:" >&5
9240cat conftest.$ac_ext >&5
9241ac_cv_lib_asound_snd_pcm_open=no
9242fi
9243rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9244LIBS=$ac_check_lib_save_LIBS
9245fi
9246echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9247echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9248if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9249
9250cat >>confdefs.h <<\_ACEOF
9251#define HAVE_ALSA 1
9252_ACEOF
9253
9254 ALSALIBS="-lasound"
9255fi
9256
9257fi
9258
Alexandre Julliard04b5a862002-07-30 02:44:19 +00009259NASLIBS=""
9260
9261
9262for ac_header in audio/audiolib.h
9263do
9264as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9265if eval "test \"\${$as_ac_Header+set}\" = set"; then
9266 echo "$as_me:$LINENO: checking for $ac_header" >&5
9267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9268if eval "test \"\${$as_ac_Header+set}\" = set"; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270fi
9271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9272echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9273else
9274 # Is the header compilable?
9275echo "$as_me:$LINENO: checking $ac_header usability" >&5
9276echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9277cat >conftest.$ac_ext <<_ACEOF
9278#line $LINENO "configure"
9279#include "confdefs.h"
9280$ac_includes_default
9281#include <$ac_header>
9282_ACEOF
9283rm -f conftest.$ac_objext
9284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9285 (eval $ac_compile) 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try='test -s conftest.$ac_objext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 (eval $ac_try) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_header_compiler=yes
9296else
9297 echo "$as_me: failed program was:" >&5
9298cat conftest.$ac_ext >&5
9299ac_header_compiler=no
9300fi
9301rm -f conftest.$ac_objext conftest.$ac_ext
9302echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9303echo "${ECHO_T}$ac_header_compiler" >&6
9304
9305# Is the header present?
9306echo "$as_me:$LINENO: checking $ac_header presence" >&5
9307echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9308cat >conftest.$ac_ext <<_ACEOF
9309#line $LINENO "configure"
9310#include "confdefs.h"
9311#include <$ac_header>
9312_ACEOF
9313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9315 ac_status=$?
9316 egrep -v '^ *\+' conftest.er1 >conftest.err
9317 rm -f conftest.er1
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } >/dev/null; then
9321 if test -s conftest.err; then
9322 ac_cpp_err=$ac_c_preproc_warn_flag
9323 else
9324 ac_cpp_err=
9325 fi
9326else
9327 ac_cpp_err=yes
9328fi
9329if test -z "$ac_cpp_err"; then
9330 ac_header_preproc=yes
9331else
9332 echo "$as_me: failed program was:" >&5
9333 cat conftest.$ac_ext >&5
9334 ac_header_preproc=no
9335fi
9336rm -f conftest.err conftest.$ac_ext
9337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9338echo "${ECHO_T}$ac_header_preproc" >&6
9339
9340# So? What about this header?
9341case $ac_header_compiler:$ac_header_preproc in
9342 yes:no )
9343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9346echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9347 no:yes )
9348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9354esac
9355echo "$as_me:$LINENO: checking for $ac_header" >&5
9356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9357if eval "test \"\${$as_ac_Header+set}\" = set"; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359else
9360 eval "$as_ac_Header=$ac_header_preproc"
9361fi
9362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9363echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9364
9365fi
9366if test `eval echo '${'$as_ac_Header'}'` = yes; then
9367 cat >>confdefs.h <<_ACEOF
9368#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9369_ACEOF
9370
9371for ac_header in audio/soundlib.h
9372do
9373as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9374echo "$as_me:$LINENO: checking for $ac_header" >&5
9375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9376if eval "test \"\${$as_ac_Header+set}\" = set"; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9378else
9379 cat >conftest.$ac_ext <<_ACEOF
9380#line $LINENO "configure"
9381#include "confdefs.h"
9382#include <audio/audiolib.h>
9383
9384#include <$ac_header>
9385_ACEOF
9386rm -f conftest.$ac_objext
9387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388 (eval $ac_compile) 2>&5
9389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -s conftest.$ac_objext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 (eval $ac_try) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 eval "$as_ac_Header=yes"
9399else
9400 echo "$as_me: failed program was:" >&5
9401cat conftest.$ac_ext >&5
9402eval "$as_ac_Header=no"
9403fi
9404rm -f conftest.$ac_objext conftest.$ac_ext
9405fi
9406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9408if test `eval echo '${'$as_ac_Header'}'` = yes; then
9409 cat >>confdefs.h <<_ACEOF
9410#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9411_ACEOF
9412
9413fi
9414
9415done
9416
9417 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9418echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9419if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9421else
9422 ac_check_lib_save_LIBS=$LIBS
9423LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9424cat >conftest.$ac_ext <<_ACEOF
9425#line $LINENO "configure"
9426#include "confdefs.h"
9427
9428/* Override any gcc2 internal prototype to avoid an error. */
9429#ifdef __cplusplus
9430extern "C"
9431#endif
9432/* We use char because int might match the return type of a gcc2
9433 builtin and then its argument prototype would still apply. */
9434char AuCreateFlow ();
9435#ifdef F77_DUMMY_MAIN
9436# ifdef __cplusplus
9437 extern "C"
9438# endif
9439 int F77_DUMMY_MAIN() { return 1; }
9440#endif
9441int
9442main ()
9443{
9444AuCreateFlow ();
9445 ;
9446 return 0;
9447}
9448_ACEOF
9449rm -f conftest.$ac_objext conftest$ac_exeext
9450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9451 (eval $ac_link) 2>&5
9452 ac_status=$?
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } &&
9455 { ac_try='test -s conftest$ac_exeext'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 (eval $ac_try) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; }; then
9461 ac_cv_lib_audio_AuCreateFlow=yes
9462else
9463 echo "$as_me: failed program was:" >&5
9464cat conftest.$ac_ext >&5
9465ac_cv_lib_audio_AuCreateFlow=no
9466fi
9467rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9468LIBS=$ac_check_lib_save_LIBS
9469fi
9470echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9471echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9472if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9473
9474cat >>confdefs.h <<\_ACEOF
9475#define HAVE_NAS 1
9476_ACEOF
9477
9478 NASLIBS="-laudio -lXt \$(X_LIBS) \$(XLIB)"
9479fi
9480
9481fi
9482
9483done
9484
9485
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009486
Robert Lunnon2a91e3f2002-08-01 18:22:38 +00009487AUDIOIOLIBS=""
9488
9489
9490for ac_header in libaudioio.h
9491do
9492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9493if eval "test \"\${$as_ac_Header+set}\" = set"; then
9494 echo "$as_me:$LINENO: checking for $ac_header" >&5
9495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9496if eval "test \"\${$as_ac_Header+set}\" = set"; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498fi
9499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9501else
9502 # Is the header compilable?
9503echo "$as_me:$LINENO: checking $ac_header usability" >&5
9504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9505cat >conftest.$ac_ext <<_ACEOF
9506#line $LINENO "configure"
9507#include "confdefs.h"
9508$ac_includes_default
9509#include <$ac_header>
9510_ACEOF
9511rm -f conftest.$ac_objext
9512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9513 (eval $ac_compile) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
9517 { ac_try='test -s conftest.$ac_objext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 (eval $ac_try) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 ac_header_compiler=yes
9524else
9525 echo "$as_me: failed program was:" >&5
9526cat conftest.$ac_ext >&5
9527ac_header_compiler=no
9528fi
9529rm -f conftest.$ac_objext conftest.$ac_ext
9530echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9531echo "${ECHO_T}$ac_header_compiler" >&6
9532
9533# Is the header present?
9534echo "$as_me:$LINENO: checking $ac_header presence" >&5
9535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9536cat >conftest.$ac_ext <<_ACEOF
9537#line $LINENO "configure"
9538#include "confdefs.h"
9539#include <$ac_header>
9540_ACEOF
9541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9543 ac_status=$?
9544 egrep -v '^ *\+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } >/dev/null; then
9549 if test -s conftest.err; then
9550 ac_cpp_err=$ac_c_preproc_warn_flag
9551 else
9552 ac_cpp_err=
9553 fi
9554else
9555 ac_cpp_err=yes
9556fi
9557if test -z "$ac_cpp_err"; then
9558 ac_header_preproc=yes
9559else
9560 echo "$as_me: failed program was:" >&5
9561 cat conftest.$ac_ext >&5
9562 ac_header_preproc=no
9563fi
9564rm -f conftest.err conftest.$ac_ext
9565echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9566echo "${ECHO_T}$ac_header_preproc" >&6
9567
9568# So? What about this header?
9569case $ac_header_compiler:$ac_header_preproc in
9570 yes:no )
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9575 no:yes )
9576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9577echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9579echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9582esac
9583echo "$as_me:$LINENO: checking for $ac_header" >&5
9584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9585if eval "test \"\${$as_ac_Header+set}\" = set"; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9587else
9588 eval "$as_ac_Header=$ac_header_preproc"
9589fi
9590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9592
9593fi
9594if test `eval echo '${'$as_ac_Header'}'` = yes; then
9595 cat >>confdefs.h <<_ACEOF
9596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9597_ACEOF
9598 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
9599echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
9600if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9602else
9603 ac_check_lib_save_LIBS=$LIBS
9604LIBS="-laudioio $LIBS"
9605cat >conftest.$ac_ext <<_ACEOF
9606#line $LINENO "configure"
9607#include "confdefs.h"
9608
9609/* Override any gcc2 internal prototype to avoid an error. */
9610#ifdef __cplusplus
9611extern "C"
9612#endif
9613/* We use char because int might match the return type of a gcc2
9614 builtin and then its argument prototype would still apply. */
9615char AudioIOGetVersion ();
9616#ifdef F77_DUMMY_MAIN
9617# ifdef __cplusplus
9618 extern "C"
9619# endif
9620 int F77_DUMMY_MAIN() { return 1; }
9621#endif
9622int
9623main ()
9624{
9625AudioIOGetVersion ();
9626 ;
9627 return 0;
9628}
9629_ACEOF
9630rm -f conftest.$ac_objext conftest$ac_exeext
9631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9632 (eval $ac_link) 2>&5
9633 ac_status=$?
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } &&
9636 { ac_try='test -s conftest$ac_exeext'
9637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 (eval $ac_try) 2>&5
9639 ac_status=$?
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; }; then
9642 ac_cv_lib_audioio_AudioIOGetVersion=yes
9643else
9644 echo "$as_me: failed program was:" >&5
9645cat conftest.$ac_ext >&5
9646ac_cv_lib_audioio_AudioIOGetVersion=no
9647fi
9648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9649LIBS=$ac_check_lib_save_LIBS
9650fi
9651echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
9652echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
9653if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
9654 AUDIOIOLIBS="-laudioio"
9655
9656cat >>confdefs.h <<\_ACEOF
9657#define HAVE_LIBAUDIOIO 1
9658_ACEOF
9659
9660fi
9661
9662fi
9663
9664done
9665
9666
9667
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009668echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009669echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9670if test "${ac_cv_mmap64_works+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009672else
9673 if test "$cross_compiling" = yes; then
9674 ac_cv_mmap64_works="no"
9675else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009676 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009677#line $LINENO "configure"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009678#include "confdefs.h"
9679
9680 #define _FILE_OFFSET_BITS 64
9681 #include <stdio.h>
9682 #include <unistd.h>
9683 #include <fcntl.h>
9684 #include <sys/mman.h>
9685 #include <errno.h>
9686
9687 int main(int argc,char **argv) {
9688 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9689 if (fd == -1) exit(1);
9690
9691 unlink("conftest.map");
9692
9693 write(fd,"test",4);
9694
9695 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9696 (errno == EINVAL)
9697 ) {
9698 exit(1);
9699 }
9700 close(fd);
9701 fprintf(stderr,"success!\n");
9702 exit(0);
9703 }
9704
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009705
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009706_ACEOF
9707rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009709 (eval $ac_link) 2>&5
9710 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009714 (eval $ac_try) 2>&5
9715 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009717 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009718 ac_cv_mmap64_works="yes"
9719else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009720 echo "$as_me: program exited with status $ac_status" >&5
9721echo "$as_me: failed program was:" >&5
9722cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009723( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009724ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009725fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009726rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009727fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009728fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009729echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009730echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009731
9732if test "$ac_cv_mmap64_works" = "yes"
9733then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009734
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009735cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009736#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009737_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009738
9739fi
9740
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009741
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009742if test "x${GCC}" = "xyes"
9743then
9744 CFLAGS="$CFLAGS -Wall"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009745 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009746echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9747if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009749else
9750 if test "$cross_compiling" = yes; then
9751 ac_cv_c_gcc_strength_bug="yes"
9752else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009753 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009754#line $LINENO "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009755#include "confdefs.h"
9756
Eric Pouech5aee80f2000-11-11 00:31:39 +00009757int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009758int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00009759 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009760 unsigned int B = 3;
9761 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00009762 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +00009763 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9764 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009765
Eric Pouech5aee80f2000-11-11 00:31:39 +00009766 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009767}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009768_ACEOF
9769rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009771 (eval $ac_link) 2>&5
9772 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009776 (eval $ac_try) 2>&5
9777 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009779 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009780 ac_cv_c_gcc_strength_bug="no"
9781else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009782 echo "$as_me: program exited with status $ac_status" >&5
9783echo "$as_me: failed program was:" >&5
9784cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009785( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009786ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009787fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009788rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009789fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009790fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009791echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009792echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009793 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9794 then
9795 CFLAGS="$CFLAGS -fno-strength-reduce"
9796 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009797
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009798 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009799echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9800if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009802else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009803 ac_wine_try_cflags_saved=$CFLAGS
9804CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9805cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009806#line $LINENO "configure"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009807#include "confdefs.h"
9808
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009809#ifdef F77_DUMMY_MAIN
9810# ifdef __cplusplus
9811 extern "C"
9812# endif
9813 int F77_DUMMY_MAIN() { return 1; }
9814#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009815int
9816main ()
9817{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009818
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009819 ;
9820 return 0;
9821}
9822_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009823rm -f conftest.$ac_objext conftest$ac_exeext
9824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9825 (eval $ac_link) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009826 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009828 (exit $ac_status); } &&
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009829 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009831 (eval $ac_try) 2>&5
9832 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009834 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009835 ac_cv_c_gcc_stack_boundary="yes"
9836else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009837 echo "$as_me: failed program was:" >&5
9838cat conftest.$ac_ext >&5
9839ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009840fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009841rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9842CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009843fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009844echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009845echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009846 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9847 then
9848 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9849 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009850fi
9851
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009852
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009853echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
9854echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
9855if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009856 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009857else
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009858 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009859#line $LINENO "configure"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009860#include "confdefs.h"
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009861static void 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 +00009862
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009863#ifdef F77_DUMMY_MAIN
9864# ifdef __cplusplus
9865 extern "C"
9866# endif
9867 int F77_DUMMY_MAIN() { return 1; }
9868#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009869int
9870main ()
9871{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009872
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009873 ;
9874 return 0;
9875}
9876_ACEOF
9877rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009879 (eval $ac_link) 2>&5
9880 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009882 (exit $ac_status); } &&
9883 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009885 (eval $ac_try) 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); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009889 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009890else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009891 echo "$as_me: failed program was:" >&5
9892cat conftest.$ac_ext >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009893cat >conftest.$ac_ext <<_ACEOF
9894#line $LINENO "configure"
9895#include "confdefs.h"
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009896static void 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 +00009897
9898#ifdef F77_DUMMY_MAIN
9899# ifdef __cplusplus
9900 extern "C"
9901# endif
9902 int F77_DUMMY_MAIN() { return 1; }
9903#endif
9904int
9905main ()
9906{
9907
9908 ;
9909 return 0;
9910}
9911_ACEOF
9912rm -f conftest.$ac_objext conftest$ac_exeext
9913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>&5
9915 ac_status=$?
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
9918 { ac_try='test -s conftest$ac_exeext'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 (eval $ac_try) 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009924 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009925else
9926 echo "$as_me: failed program was:" >&5
9927cat conftest.$ac_ext >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009928cat >conftest.$ac_ext <<_ACEOF
9929#line $LINENO "configure"
9930#include "confdefs.h"
9931static void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
9932
9933#ifdef F77_DUMMY_MAIN
9934# ifdef __cplusplus
9935 extern "C"
9936# endif
9937 int F77_DUMMY_MAIN() { return 1; }
9938#endif
9939int
9940main ()
9941{
9942
9943 ;
9944 return 0;
9945}
9946_ACEOF
9947rm -f conftest.$ac_objext conftest$ac_exeext
9948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>&5
9950 ac_status=$?
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } &&
9953 { ac_try='test -s conftest$ac_exeext'
9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955 (eval $ac_try) 2>&5
9956 ac_status=$?
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }; }; then
9959 ac_cv_asm_func_def=".type 2"
9960else
9961 echo "$as_me: failed program was:" >&5
9962cat conftest.$ac_ext >&5
9963ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009964fi
9965rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009966fi
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009967rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9968fi
9969rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9970fi
9971echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
9972echo "${ECHO_T}$ac_cv_asm_func_def" >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009973
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009974
9975
9976case "$ac_cv_asm_func_def" in
9977 ".def")
9978 cat >>confdefs.h <<\_ACEOF
9979#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009980_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009981 ;;
9982 ".type @function")
9983 cat >>confdefs.h <<\_ACEOF
9984#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
9985_ACEOF
9986 ;;
9987 ".type 2")
9988 cat >>confdefs.h <<\_ACEOF
9989#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
9990_ACEOF
9991 ;;
9992 *)
9993 cat >>confdefs.h <<\_ACEOF
9994#define __ASM_FUNC(name) ""
9995_ACEOF
9996 ;;
9997esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009998
9999
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010000echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010001echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
10002if test "${ac_cv_c_extern_prefix+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010004else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010005 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010006#line $LINENO "configure"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010007#include "confdefs.h"
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010008static void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010009extern int ac_test;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010010#ifdef F77_DUMMY_MAIN
10011# ifdef __cplusplus
10012 extern "C"
10013# endif
10014 int F77_DUMMY_MAIN() { return 1; }
10015#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010016int
10017main ()
10018{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010019if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010020 ;
10021 return 0;
10022}
10023_ACEOF
10024rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010026 (eval $ac_link) 2>&5
10027 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010029 (exit $ac_status); } &&
10030 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010032 (eval $ac_try) 2>&5
10033 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010035 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010036 ac_cv_c_extern_prefix="yes"
10037else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010038 echo "$as_me: failed program was:" >&5
10039cat conftest.$ac_ext >&5
10040ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010041fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010042rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010043fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010044echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010045echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010046
10047
10048
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010049if test "$ac_cv_c_extern_prefix" = "yes"
10050then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010051 cat >>confdefs.h <<\_ACEOF
10052#define __ASM_NAME(name) "_" name
10053_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010054
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010055else
10056 cat >>confdefs.h <<\_ACEOF
10057#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010058_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000010059
10060fi
10061
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010062
10063echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010064echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
10065if test "${ac_cv_c_stdcall_decoration+set}" = set; then
10066 echo $ECHO_N "(cached) $ECHO_C" >&6
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010067else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010068 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010069#line $LINENO "configure"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010070#include "confdefs.h"
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010071static void 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 +000010072extern void __attribute__((__stdcall__)) ac_test(void);
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010073#ifdef F77_DUMMY_MAIN
10074# ifdef __cplusplus
10075 extern "C"
10076# endif
10077 int F77_DUMMY_MAIN() { return 1; }
10078#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010079int
10080main ()
10081{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010082ac_test()
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010083 ;
10084 return 0;
10085}
10086_ACEOF
10087rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010089 (eval $ac_link) 2>&5
10090 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010092 (exit $ac_status); } &&
10093 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010095 (eval $ac_try) 2>&5
10096 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010098 (exit $ac_status); }; }; then
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010099 ac_cv_c_stdcall_decoration="yes"
10100else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010101 echo "$as_me: failed program was:" >&5
10102cat conftest.$ac_ext >&5
10103ac_cv_c_stdcall_decoration="no"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010104fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010105rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010106fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010107echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010108echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010109if test "$ac_cv_c_stdcall_decoration" = "yes"
10110then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010111
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010112cat >>confdefs.h <<\_ACEOF
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010113#define NEED_STDCALL_DECORATION 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010114_ACEOF
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +000010115
10116fi
10117
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010118
10119echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010120echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
10121if test "${ac_cv_c_asm_string+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010123else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010124 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010125#line $LINENO "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010126#include "confdefs.h"
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010127static void ac_asm(void) { asm(".string \"test\""); }
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010128
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010129#ifdef F77_DUMMY_MAIN
10130# ifdef __cplusplus
10131 extern "C"
10132# endif
10133 int F77_DUMMY_MAIN() { return 1; }
10134#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010135int
10136main ()
10137{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010138
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010139 ;
10140 return 0;
10141}
10142_ACEOF
10143rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010145 (eval $ac_link) 2>&5
10146 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010148 (exit $ac_status); } &&
10149 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010151 (eval $ac_try) 2>&5
10152 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010154 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010155 ac_cv_c_asm_string="yes"
10156else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010157 echo "$as_me: failed program was:" >&5
10158cat conftest.$ac_ext >&5
10159ac_cv_c_asm_string="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010160fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010161rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010162fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010163echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010164echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010165if test "$ac_cv_c_asm_string" = "yes"
10166then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010167
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010168cat >>confdefs.h <<\_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010169#define HAVE_ASM_STRING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010170_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010171
10172fi
10173
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010174
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010175DLLEXT=""
10176
10177DLLFLAGS=""
10178
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010179DLLIBS=""
10180
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010181LDDLLFLAGS=""
10182
10183LDSHARED=""
10184
10185
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010186case $host_os in
10187 cygwin*|mingw32*)
10188 if test -n "$ac_tool_prefix"; then
10189 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
10190set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +000010191echo "$as_me:$LINENO: checking for $ac_word" >&5
10192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10193if test "${ac_cv_prog_DLLWRAP+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195else
10196 if test -n "$DLLWRAP"; then
10197 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
10198else
10199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200for as_dir in $PATH
10201do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010206 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000010207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10208 break 2
10209 fi
10210done
10211done
10212
Alexandre Julliard466ae142002-05-07 18:33:47 +000010213fi
10214fi
10215DLLWRAP=$ac_cv_prog_DLLWRAP
10216if test -n "$DLLWRAP"; then
10217 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
10218echo "${ECHO_T}$DLLWRAP" >&6
10219else
10220 echo "$as_me:$LINENO: result: no" >&5
10221echo "${ECHO_T}no" >&6
10222fi
10223
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010224fi
10225if test -z "$ac_cv_prog_DLLWRAP"; then
10226 ac_ct_DLLWRAP=$DLLWRAP
10227 # Extract the first word of "dllwrap", so it can be a program name with args.
10228set dummy dllwrap; ac_word=$2
10229echo "$as_me:$LINENO: checking for $ac_word" >&5
10230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10231if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10233else
10234 if test -n "$ac_ct_DLLWRAP"; then
10235 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
10236else
10237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238for as_dir in $PATH
10239do
10240 IFS=$as_save_IFS
10241 test -z "$as_dir" && as_dir=.
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10244 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
10245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10246 break 2
10247 fi
10248done
10249done
10250
10251 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
10252fi
10253fi
10254ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
10255if test -n "$ac_ct_DLLWRAP"; then
10256 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
10257echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
10258else
10259 echo "$as_me:$LINENO: result: no" >&5
10260echo "${ECHO_T}no" >&6
10261fi
10262
10263 DLLWRAP=$ac_ct_DLLWRAP
10264else
10265 DLLWRAP="$ac_cv_prog_DLLWRAP"
10266fi
10267
10268 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010269 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010270 else
10271 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010272 fi
10273 ;;
10274 *)
10275
10276for ac_header in dlfcn.h
10277do
10278as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10279if eval "test \"\${$as_ac_Header+set}\" = set"; then
10280 echo "$as_me:$LINENO: checking for $ac_header" >&5
10281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10282if eval "test \"\${$as_ac_Header+set}\" = set"; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
10284fi
10285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10286echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10287else
10288 # Is the header compilable?
10289echo "$as_me:$LINENO: checking $ac_header usability" >&5
10290echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10291cat >conftest.$ac_ext <<_ACEOF
10292#line $LINENO "configure"
10293#include "confdefs.h"
10294$ac_includes_default
10295#include <$ac_header>
10296_ACEOF
10297rm -f conftest.$ac_objext
10298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10299 (eval $ac_compile) 2>&5
10300 ac_status=$?
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } &&
10303 { ac_try='test -s conftest.$ac_objext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10306 ac_status=$?
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 ac_header_compiler=yes
10310else
10311 echo "$as_me: failed program was:" >&5
10312cat conftest.$ac_ext >&5
10313ac_header_compiler=no
10314fi
10315rm -f conftest.$ac_objext conftest.$ac_ext
10316echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10317echo "${ECHO_T}$ac_header_compiler" >&6
10318
10319# Is the header present?
10320echo "$as_me:$LINENO: checking $ac_header presence" >&5
10321echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10322cat >conftest.$ac_ext <<_ACEOF
10323#line $LINENO "configure"
10324#include "confdefs.h"
10325#include <$ac_header>
10326_ACEOF
10327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10329 ac_status=$?
10330 egrep -v '^ *\+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); } >/dev/null; then
10335 if test -s conftest.err; then
10336 ac_cpp_err=$ac_c_preproc_warn_flag
10337 else
10338 ac_cpp_err=
10339 fi
10340else
10341 ac_cpp_err=yes
10342fi
10343if test -z "$ac_cpp_err"; then
10344 ac_header_preproc=yes
10345else
10346 echo "$as_me: failed program was:" >&5
10347 cat conftest.$ac_ext >&5
10348 ac_header_preproc=no
10349fi
10350rm -f conftest.err conftest.$ac_ext
10351echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10352echo "${ECHO_T}$ac_header_preproc" >&6
10353
10354# So? What about this header?
10355case $ac_header_compiler:$ac_header_preproc in
10356 yes:no )
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10358echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10361 no:yes )
10362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10363echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10365echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10367echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10368esac
10369echo "$as_me:$LINENO: checking for $ac_header" >&5
10370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10371if eval "test \"\${$as_ac_Header+set}\" = set"; then
10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10373else
10374 eval "$as_ac_Header=$ac_header_preproc"
10375fi
10376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10378
10379fi
10380if test `eval echo '${'$as_ac_Header'}'` = yes; then
10381 cat >>confdefs.h <<_ACEOF
10382#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10383_ACEOF
10384
10385for ac_func in dlopen
10386do
10387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10388echo "$as_me:$LINENO: checking for $ac_func" >&5
10389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10390if eval "test \"\${$as_ac_var+set}\" = set"; then
10391 echo $ECHO_N "(cached) $ECHO_C" >&6
10392else
10393 cat >conftest.$ac_ext <<_ACEOF
10394#line $LINENO "configure"
10395#include "confdefs.h"
10396/* System header to define __stub macros and hopefully few prototypes,
10397 which can conflict with char $ac_func (); below. */
10398#include <assert.h>
10399/* Override any gcc2 internal prototype to avoid an error. */
10400#ifdef __cplusplus
10401extern "C"
10402#endif
10403/* We use char because int might match the return type of a gcc2
10404 builtin and then its argument prototype would still apply. */
10405char $ac_func ();
10406char (*f) ();
10407
10408#ifdef F77_DUMMY_MAIN
10409# ifdef __cplusplus
10410 extern "C"
10411# endif
10412 int F77_DUMMY_MAIN() { return 1; }
10413#endif
10414int
10415main ()
10416{
10417/* The GNU C library defines this for functions which it implements
10418 to always fail with ENOSYS. Some functions are actually named
10419 something starting with __ and the normal name is an alias. */
10420#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10421choke me
10422#else
10423f = $ac_func;
10424#endif
10425
10426 ;
10427 return 0;
10428}
10429_ACEOF
10430rm -f conftest.$ac_objext conftest$ac_exeext
10431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10432 (eval $ac_link) 2>&5
10433 ac_status=$?
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -s conftest$ac_exeext'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }; then
10442 eval "$as_ac_var=yes"
10443else
10444 echo "$as_me: failed program was:" >&5
10445cat conftest.$ac_ext >&5
10446eval "$as_ac_var=no"
10447fi
10448rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10449fi
10450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10451echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10452if test `eval echo '${'$as_ac_var'}'` = yes; then
10453 cat >>confdefs.h <<_ACEOF
10454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10455_ACEOF
10456
10457else
10458 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10459echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10460if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10462else
10463 ac_check_lib_save_LIBS=$LIBS
10464LIBS="-ldl $LIBS"
10465cat >conftest.$ac_ext <<_ACEOF
10466#line $LINENO "configure"
10467#include "confdefs.h"
10468
10469/* Override any gcc2 internal prototype to avoid an error. */
10470#ifdef __cplusplus
10471extern "C"
10472#endif
10473/* We use char because int might match the return type of a gcc2
10474 builtin and then its argument prototype would still apply. */
10475char dlopen ();
10476#ifdef F77_DUMMY_MAIN
10477# ifdef __cplusplus
10478 extern "C"
10479# endif
10480 int F77_DUMMY_MAIN() { return 1; }
10481#endif
10482int
10483main ()
10484{
10485dlopen ();
10486 ;
10487 return 0;
10488}
10489_ACEOF
10490rm -f conftest.$ac_objext conftest$ac_exeext
10491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10492 (eval $ac_link) 2>&5
10493 ac_status=$?
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } &&
10496 { ac_try='test -s conftest$ac_exeext'
10497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498 (eval $ac_try) 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }; }; then
10502 ac_cv_lib_dl_dlopen=yes
10503else
10504 echo "$as_me: failed program was:" >&5
10505cat conftest.$ac_ext >&5
10506ac_cv_lib_dl_dlopen=no
10507fi
10508rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10509LIBS=$ac_check_lib_save_LIBS
10510fi
10511echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10512echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10513if test $ac_cv_lib_dl_dlopen = yes; then
10514
10515cat >>confdefs.h <<\_ACEOF
10516#define HAVE_DLOPEN 1
10517_ACEOF
10518
10519 DLLIBS="-ldl"
10520else
10521 LIBEXT="a"
10522fi
10523
10524fi
10525done
10526
10527else
10528 LIBEXT="a"
10529fi
10530
10531done
10532
10533
10534 if test "$LIBEXT" = "so"
10535 then
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010536 DLLFLAGS="-fPIC"
10537 DLLEXT=".so"
Alexandre Julliard466ae142002-05-07 18:33:47 +000010538 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010539echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10540if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010542else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010543 ac_wine_try_cflags_saved=$CFLAGS
10544CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10545cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010546#line $LINENO "configure"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010547#include "confdefs.h"
10548
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010549#ifdef F77_DUMMY_MAIN
10550# ifdef __cplusplus
10551 extern "C"
10552# endif
10553 int F77_DUMMY_MAIN() { return 1; }
10554#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010555int
10556main ()
10557{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010558
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010559 ;
10560 return 0;
10561}
10562_ACEOF
10563rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010565 (eval $ac_link) 2>&5
10566 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010568 (exit $ac_status); } &&
10569 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010571 (eval $ac_try) 2>&5
10572 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010574 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000010575 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010576else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010577 echo "$as_me: failed program was:" >&5
10578cat conftest.$ac_ext >&5
10579ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010580fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010581rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010582CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010583fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010584echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010585echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000010586 if test "$ac_cv_c_dll_gnuelf" = "yes"
10587 then
10588 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10589 LDDLLFLAGS="-Wl,-Bsymbolic"
10590 else
10591 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010592echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10593if test "${ac_cv_c_dll_unixware+set}" = set; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000010595else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010596 ac_wine_try_cflags_saved=$CFLAGS
10597CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10598cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010599#line $LINENO "configure"
Todd Vierling4b992b01998-12-15 15:26:27 +000010600#include "confdefs.h"
10601
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010602#ifdef F77_DUMMY_MAIN
10603# ifdef __cplusplus
10604 extern "C"
10605# endif
10606 int F77_DUMMY_MAIN() { return 1; }
10607#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010608int
10609main ()
10610{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010611
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010612 ;
10613 return 0;
10614}
10615_ACEOF
10616rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010618 (eval $ac_link) 2>&5
10619 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010621 (exit $ac_status); } &&
10622 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010624 (eval $ac_try) 2>&5
10625 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010627 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000010628 ac_cv_c_dll_unixware="yes"
10629else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010630 echo "$as_me: failed program was:" >&5
10631cat conftest.$ac_ext >&5
10632ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000010633fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010634rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010635CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010636fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010637echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010638echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000010639 if test "$ac_cv_c_dll_unixware" = "yes"
10640 then
10641 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10642 LDDLLFLAGS="-Wl,-B,symbolic"
10643 fi
10644 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010645 fi
10646 ;;
10647esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010648
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000010649if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010650 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010651It is currently not possible to build Wine without shared library
10652(.so) support to allow transparent switch between .so and .dll files.
10653If you are using Linux, you will need a newer binutils.
10654" >&5
10655echo "$as_me: error: could not find a way to build shared libraries.
10656It is currently not possible to build Wine without shared library
10657(.so) support to allow transparent switch between .so and .dll files.
10658If you are using Linux, you will need a newer binutils.
10659" >&2;}
10660 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000010661fi
10662
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010663case $build_os in
10664 cygwin*|mingw32*)
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010665 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
10666 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010667 *)
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010668 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
10669 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010670esac
10671
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010672CRTLIBS=""
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010673
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010674case $host_os in
10675 mingw32*)
10676 CRTLIBS="-lmsvcrt" ;;
10677esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010678
10679
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010680if test "$LIBEXT" = "so"
10681then
10682 # Extract the first word of "ldd", so it can be a program name with args.
10683set dummy ldd; ac_word=$2
10684echo "$as_me:$LINENO: checking for $ac_word" >&5
10685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10686if test "${ac_cv_path_LDD+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10688else
10689 case $LDD in
10690 [\\/]* | ?:[\\/]*)
10691 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10692 ;;
10693 *)
10694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10695for as_dir in /sbin:/usr/sbin:$PATH
10696do
10697 IFS=$as_save_IFS
10698 test -z "$as_dir" && as_dir=.
10699 for ac_exec_ext in '' $ac_executable_extensions; do
10700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10701 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10703 break 2
10704 fi
10705done
10706done
10707
10708 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10709 ;;
10710esac
10711fi
10712LDD=$ac_cv_path_LDD
10713
10714if test -n "$LDD"; then
10715 echo "$as_me:$LINENO: result: $LDD" >&5
10716echo "${ECHO_T}$LDD" >&6
10717else
10718 echo "$as_me:$LINENO: result: no" >&5
10719echo "${ECHO_T}no" >&6
10720fi
10721
10722
10723echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10724echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10725if test "${ac_cv_lib_soname_X11+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727else
10728 ac_get_soname_save_LIBS=$LIBS
10729LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10730 cat >conftest.$ac_ext <<_ACEOF
10731#line $LINENO "configure"
10732#include "confdefs.h"
10733
10734/* Override any gcc2 internal prototype to avoid an error. */
10735#ifdef __cplusplus
10736extern "C"
10737#endif
10738/* We use char because int might match the return type of a gcc2
10739 builtin and then its argument prototype would still apply. */
10740char XCreateWindow ();
10741#ifdef F77_DUMMY_MAIN
10742# ifdef __cplusplus
10743 extern "C"
10744# endif
10745 int F77_DUMMY_MAIN() { return 1; }
10746#endif
10747int
10748main ()
10749{
10750XCreateWindow ();
10751 ;
10752 return 0;
10753}
10754_ACEOF
10755rm -f conftest.$ac_objext conftest$ac_exeext
10756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10757 (eval $ac_link) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
10761 { ac_try='test -s conftest$ac_exeext'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10768 if test "x$ac_cv_lib_soname_X11" = "x"
10769 then
10770 ac_cv_lib_soname_X11="libX11.so"
10771 fi
10772else
10773 echo "$as_me: failed program was:" >&5
10774cat conftest.$ac_ext >&5
10775ac_cv_lib_soname_X11="libX11.so"
10776fi
10777rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10778 LIBS=$ac_get_soname_save_LIBS
10779fi
10780echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10781echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10782if test "x$ac_cv_lib_soname_X11" != xNONE
10783then
10784cat >>confdefs.h <<_ACEOF
10785#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10786_ACEOF
10787fi
10788
10789echo "$as_me:$LINENO: checking for -lXext soname" >&5
10790echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10791if test "${ac_cv_lib_soname_Xext+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793else
10794 ac_get_soname_save_LIBS=$LIBS
10795LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10796 cat >conftest.$ac_ext <<_ACEOF
10797#line $LINENO "configure"
10798#include "confdefs.h"
10799
10800/* Override any gcc2 internal prototype to avoid an error. */
10801#ifdef __cplusplus
10802extern "C"
10803#endif
10804/* We use char because int might match the return type of a gcc2
10805 builtin and then its argument prototype would still apply. */
10806char XextCreateExtension ();
10807#ifdef F77_DUMMY_MAIN
10808# ifdef __cplusplus
10809 extern "C"
10810# endif
10811 int F77_DUMMY_MAIN() { return 1; }
10812#endif
10813int
10814main ()
10815{
10816XextCreateExtension ();
10817 ;
10818 return 0;
10819}
10820_ACEOF
10821rm -f conftest.$ac_objext conftest$ac_exeext
10822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10823 (eval $ac_link) 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } &&
10827 { ac_try='test -s conftest$ac_exeext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10834 if test "x$ac_cv_lib_soname_Xext" = "x"
10835 then
10836 ac_cv_lib_soname_Xext="libXext.so"
10837 fi
10838else
10839 echo "$as_me: failed program was:" >&5
10840cat conftest.$ac_ext >&5
10841ac_cv_lib_soname_Xext="libXext.so"
10842fi
10843rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10844 LIBS=$ac_get_soname_save_LIBS
10845fi
10846echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10847echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10848if test "x$ac_cv_lib_soname_Xext" != xNONE
10849then
10850cat >>confdefs.h <<_ACEOF
10851#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10852_ACEOF
10853fi
10854
10855echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10856echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10857if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10859else
10860 ac_get_soname_save_LIBS=$LIBS
10861LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10862 cat >conftest.$ac_ext <<_ACEOF
10863#line $LINENO "configure"
10864#include "confdefs.h"
10865
10866/* Override any gcc2 internal prototype to avoid an error. */
10867#ifdef __cplusplus
10868extern "C"
10869#endif
10870/* We use char because int might match the return type of a gcc2
10871 builtin and then its argument prototype would still apply. */
10872char XRenderQueryExtension ();
10873#ifdef F77_DUMMY_MAIN
10874# ifdef __cplusplus
10875 extern "C"
10876# endif
10877 int F77_DUMMY_MAIN() { return 1; }
10878#endif
10879int
10880main ()
10881{
10882XRenderQueryExtension ();
10883 ;
10884 return 0;
10885}
10886_ACEOF
10887rm -f conftest.$ac_objext conftest$ac_exeext
10888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10889 (eval $ac_link) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try='test -s conftest$ac_exeext'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; }; then
10899 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10900 if test "x$ac_cv_lib_soname_Xrender" = "x"
10901 then
10902 ac_cv_lib_soname_Xrender="libXrender.so"
10903 fi
10904else
10905 echo "$as_me: failed program was:" >&5
10906cat conftest.$ac_ext >&5
10907ac_cv_lib_soname_Xrender="libXrender.so"
10908fi
10909rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10910 LIBS=$ac_get_soname_save_LIBS
10911fi
10912echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10913echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10914if test "x$ac_cv_lib_soname_Xrender" != xNONE
10915then
10916cat >>confdefs.h <<_ACEOF
10917#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10918_ACEOF
10919fi
10920
10921echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10922echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10923if test "${ac_cv_lib_soname_freetype+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925else
10926 ac_get_soname_save_LIBS=$LIBS
10927LIBS="-lfreetype $X_LIBS $LIBS"
10928 cat >conftest.$ac_ext <<_ACEOF
10929#line $LINENO "configure"
10930#include "confdefs.h"
10931
10932/* Override any gcc2 internal prototype to avoid an error. */
10933#ifdef __cplusplus
10934extern "C"
10935#endif
10936/* We use char because int might match the return type of a gcc2
10937 builtin and then its argument prototype would still apply. */
10938char FT_Init_FreeType ();
10939#ifdef F77_DUMMY_MAIN
10940# ifdef __cplusplus
10941 extern "C"
10942# endif
10943 int F77_DUMMY_MAIN() { return 1; }
10944#endif
10945int
10946main ()
10947{
10948FT_Init_FreeType ();
10949 ;
10950 return 0;
10951}
10952_ACEOF
10953rm -f conftest.$ac_objext conftest$ac_exeext
10954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10955 (eval $ac_link) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); } &&
10959 { ac_try='test -s conftest$ac_exeext'
10960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961 (eval $ac_try) 2>&5
10962 ac_status=$?
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10966 if test "x$ac_cv_lib_soname_freetype" = "x"
10967 then
10968 ac_cv_lib_soname_freetype="libfreetype.so"
10969 fi
10970else
10971 echo "$as_me: failed program was:" >&5
10972cat conftest.$ac_ext >&5
10973ac_cv_lib_soname_freetype="libfreetype.so"
10974fi
10975rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_get_soname_save_LIBS
10977fi
10978echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10979echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10980if test "x$ac_cv_lib_soname_freetype" != xNONE
10981then
10982cat >>confdefs.h <<_ACEOF
10983#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10984_ACEOF
10985fi
10986fi
10987
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010988
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010989
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010990wine_cv_libc_reentrant=no
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010991echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010992echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10993if test "${wine_cv_libc_r___errno_location+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010995else
10996 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010997 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010998else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010999 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011000#line $LINENO "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011001#include "confdefs.h"
11002int myerrno = 0;
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011003int *__errno_location(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011004main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011005_ACEOF
11006rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011008 (eval $ac_link) 2>&5
11009 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011013 (eval $ac_try) 2>&5
11014 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011016 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000011017 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011018else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011019 echo "$as_me: program exited with status $ac_status" >&5
11020echo "$as_me: failed program was:" >&5
11021cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011022( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011023wine_cv_libc_r___errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011024fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011025rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011026fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011027fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011028echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011029echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011030if test "$wine_cv_libc_r___errno_location" = "yes"; then
11031 wine_cv_libc_reentrant=__errno_location
11032else
11033 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011034echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
11035if test "${wine_cv_libc_r___error+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011037else
11038 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011039 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000011040else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011041 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011042#line $LINENO "configure"
Marcus Meissnerc2606381999-04-11 15:20:29 +000011043#include "confdefs.h"
11044int myerrno = 0;
Marcus Meissnerc2606381999-04-11 15:20:29 +000011045int *__error(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011046main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011047_ACEOF
11048rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011050 (eval $ac_link) 2>&5
11051 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011055 (eval $ac_try) 2>&5
11056 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011058 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000011059 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000011060else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011061 echo "$as_me: program exited with status $ac_status" >&5
11062echo "$as_me: failed program was:" >&5
11063cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011064( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011065wine_cv_libc_r___error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +000011066fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011067rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissnerc2606381999-04-11 15:20:29 +000011068fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011069fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011070echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011071echo "${ECHO_T}$wine_cv_libc_r___error" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011072if test "$wine_cv_libc_r___error" = "yes"; then
11073 wine_cv_libc_reentrant=__error
11074else
11075 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011076echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
11077if test "${wine_cv_libc_r____errno+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011079else
11080 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011081 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011082else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011083 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011084#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011085#include "confdefs.h"
11086int myerrno = 0;
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011087int *___errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011088main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011089_ACEOF
11090rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011092 (eval $ac_link) 2>&5
11093 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011097 (eval $ac_try) 2>&5
11098 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011100 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000011101 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011102else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011103 echo "$as_me: program exited with status $ac_status" >&5
11104echo "$as_me: failed program was:" >&5
11105cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011106( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011107wine_cv_libc_r____errno=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011108fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011109rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011110fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000011111fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011112echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011113echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011114if test "$wine_cv_libc_r____errno" = "yes"; then
11115 wine_cv_libc_reentrant=___errno
11116else
11117 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011118echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
11119if test "${wine_cv_libc_r___thr_errno+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
Ron Recorde977d6c1999-09-05 12:32:05 +000011121else
11122 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011123 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000011124else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011125 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011126#line $LINENO "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +000011127#include "confdefs.h"
11128int myerrno = 0;
Ron Recorde977d6c1999-09-05 12:32:05 +000011129int *__thr_errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011130main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011131_ACEOF
11132rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011134 (eval $ac_link) 2>&5
11135 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011139 (eval $ac_try) 2>&5
11140 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011142 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000011143 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000011144else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011145 echo "$as_me: program exited with status $ac_status" >&5
11146echo "$as_me: failed program was:" >&5
11147cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011148( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011149wine_cv_libc_r___thr_errno=no
Ron Recorde977d6c1999-09-05 12:32:05 +000011150fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011151rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ron Recorde977d6c1999-09-05 12:32:05 +000011152fi
Ron Recorde977d6c1999-09-05 12:32:05 +000011153fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011154echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011155echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011156if test "$wine_cv_libc_r___thr_errno" = "yes"; then
11157 wine_cv_libc_reentrant=__thr_errno
11158else
11159 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011160echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
11161if test "${wine_cv_libc_r___errno+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
Bang Jun-Young33dff342001-05-07 18:21:10 +000011163else
11164 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011165 wine_cv_libc_r___errno=yes
Bang Jun-Young33dff342001-05-07 18:21:10 +000011166else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011167 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011168#line $LINENO "configure"
Bang Jun-Young33dff342001-05-07 18:21:10 +000011169#include "confdefs.h"
11170int myerrno = 0;
Bang Jun-Young33dff342001-05-07 18:21:10 +000011171int *__errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011172main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011173_ACEOF
11174rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011176 (eval $ac_link) 2>&5
11177 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011181 (eval $ac_try) 2>&5
11182 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011184 (exit $ac_status); }; }; then
Bang Jun-Young33dff342001-05-07 18:21:10 +000011185 wine_cv_libc_r___errno=yes
11186else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011187 echo "$as_me: program exited with status $ac_status" >&5
11188echo "$as_me: failed program was:" >&5
11189cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011190( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011191wine_cv_libc_r___errno=no
Bang Jun-Young33dff342001-05-07 18:21:10 +000011192fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011193rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bang Jun-Young33dff342001-05-07 18:21:10 +000011194fi
Bang Jun-Young33dff342001-05-07 18:21:10 +000011195fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011196echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011197echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011198if test "$wine_cv_libc_r___errno" = "yes"; then
11199 wine_cv_libc_reentrant=__errno
11200fi
11201
11202
11203fi
11204
11205fi
11206
11207fi
11208
Bang Jun-Young33dff342001-05-07 18:21:10 +000011209fi
11210
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011211
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011212if test "$wine_cv_libc_reentrant" != "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011213then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011214
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011215cat >>confdefs.h <<_ACEOF
Alexandre Julliard598412e2001-01-17 20:22:22 +000011216#define ERRNO_LOCATION $wine_cv_libc_reentrant
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011217_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011218
11219fi
11220
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011221
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000011222if test "$have_x" = "yes"
Patrik Stridvall24110281999-02-04 10:09:54 +000011223then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011224echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011225echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
11226if test "${wine_cv_x_reentrant+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000011228else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000011229 libX11_check=none
11230 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
11231 if test -r $dir/libX11.so; then
11232 libX11_check="-D $dir/libX11.so"
11233 break
11234 fi
11235 if test -r $dir/libX11.a; then
11236 libX11_check="$dir/libX11.a"
11237 break
11238 fi
11239 done
11240 if test "$libX11_check" != "none"; then
11241 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
11242 then
11243 wine_cv_x_reentrant=yes
11244 else
11245 wine_cv_x_reentrant=no
11246 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000011247 else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000011248 wine_cv_x_reentrant=unknown
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011249 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000011250fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011251echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011252echo "${ECHO_T}$wine_cv_x_reentrant" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +000011253fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011254
11255
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011256# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11257# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011258echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011259echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11260if test "${ac_cv_working_alloca_h+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011262else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011263 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011264#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011265#include "confdefs.h"
11266#include <alloca.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011267#ifdef F77_DUMMY_MAIN
11268# ifdef __cplusplus
11269 extern "C"
11270# endif
11271 int F77_DUMMY_MAIN() { return 1; }
11272#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011273int
11274main ()
11275{
11276char *p = (char *) alloca (2 * sizeof (int));
11277 ;
11278 return 0;
11279}
11280_ACEOF
11281rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011283 (eval $ac_link) 2>&5
11284 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011286 (exit $ac_status); } &&
11287 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011289 (eval $ac_try) 2>&5
11290 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011292 (exit $ac_status); }; }; then
11293 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011294else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011295 echo "$as_me: failed program was:" >&5
11296cat conftest.$ac_ext >&5
11297ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011298fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011299rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011300fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011301echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011302echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11303if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011304
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011305cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011306#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011307_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011308
11309fi
11310
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011311echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011312echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11313if test "${ac_cv_func_alloca_works+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011315else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011316 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011317#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011318#include "confdefs.h"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011319#ifdef __GNUC__
11320# define alloca __builtin_alloca
11321#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000011322# ifdef _MSC_VER
11323# include <malloc.h>
11324# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011325# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000011326# if HAVE_ALLOCA_H
11327# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011328# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000011329# ifdef _AIX
11330 #pragma alloca
11331# else
11332# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011333char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000011334# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011335# endif
11336# endif
11337# endif
11338#endif
11339
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011340#ifdef F77_DUMMY_MAIN
11341# ifdef __cplusplus
11342 extern "C"
11343# endif
11344 int F77_DUMMY_MAIN() { return 1; }
11345#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011346int
11347main ()
11348{
11349char *p = (char *) alloca (1);
11350 ;
11351 return 0;
11352}
11353_ACEOF
11354rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011356 (eval $ac_link) 2>&5
11357 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011359 (exit $ac_status); } &&
11360 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011362 (eval $ac_try) 2>&5
11363 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011365 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011366 ac_cv_func_alloca_works=yes
11367else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011368 echo "$as_me: failed program was:" >&5
11369cat conftest.$ac_ext >&5
11370ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011371fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011372rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011373fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011374echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011375echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011376
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011377if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011378
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011379cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011380#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011381_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011382
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011383else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011384 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011385# that cause trouble. Some versions do not even contain alloca or
11386# contain a buggy version. If you still want to use their alloca,
11387# use ar to extract alloca.o from them instead of compiling alloca.c.
11388
11389ALLOCA=alloca.$ac_objext
11390
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011391cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011392#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011393_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011394
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011395
11396echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011397echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11398if test "${ac_cv_os_cray+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011400else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011401 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011402#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011403#include "confdefs.h"
11404#if defined(CRAY) && ! defined(CRAY2)
11405webecray
11406#else
11407wenotbecray
11408#endif
11409
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011410_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11412 egrep "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011413 ac_cv_os_cray=yes
11414else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011415 ac_cv_os_cray=no
11416fi
11417rm -f conftest*
11418
11419fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011420echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011421echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011422if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011423 for ac_func in _getb67 GETB67 getb67; do
11424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011425echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11427if eval "test \"\${$as_ac_var+set}\" = set"; then
11428 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011429else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011430 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011431#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011432#include "confdefs.h"
11433/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011434 which can conflict with char $ac_func (); below. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011435#include <assert.h>
11436/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011437#ifdef __cplusplus
11438extern "C"
11439#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000011440/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011441 builtin and then its argument prototype would still apply. */
11442char $ac_func ();
11443char (*f) ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011444
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011445#ifdef F77_DUMMY_MAIN
11446# ifdef __cplusplus
11447 extern "C"
11448# endif
11449 int F77_DUMMY_MAIN() { return 1; }
11450#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011451int
11452main ()
11453{
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011454/* The GNU C library defines this for functions which it implements
11455 to always fail with ENOSYS. Some functions are actually named
11456 something starting with __ and the normal name is an alias. */
11457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11458choke me
11459#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011460f = $ac_func;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011461#endif
11462
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011463 ;
11464 return 0;
11465}
11466_ACEOF
11467rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011469 (eval $ac_link) 2>&5
11470 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011472 (exit $ac_status); } &&
11473 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011475 (eval $ac_try) 2>&5
11476 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011478 (exit $ac_status); }; }; then
11479 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011480else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011481 echo "$as_me: failed program was:" >&5
11482cat conftest.$ac_ext >&5
11483eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011484fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011486fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11489if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011490
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011491cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011492#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011493_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011494
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011495 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011496fi
11497
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011498 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011499fi
11500
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011501echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011502echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11503if test "${ac_cv_c_stack_direction+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011505else
11506 if test "$cross_compiling" = yes; then
11507 ac_cv_c_stack_direction=0
11508else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011509 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011510#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011511#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011512int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011513find_stack_direction ()
11514{
11515 static char *addr = 0;
11516 auto char dummy;
11517 if (addr == 0)
11518 {
11519 addr = &dummy;
11520 return find_stack_direction ();
11521 }
11522 else
11523 return (&dummy > addr) ? 1 : -1;
11524}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011525
11526int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011527main ()
11528{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011529 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011530}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011531_ACEOF
11532rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011534 (eval $ac_link) 2>&5
11535 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011539 (eval $ac_try) 2>&5
11540 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011542 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011543 ac_cv_c_stack_direction=1
11544else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011545 echo "$as_me: program exited with status $ac_status" >&5
11546echo "$as_me: failed program was:" >&5
11547cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011548( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011549ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011550fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011551rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011552fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011553fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011554echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011555echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011556
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011557cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011558#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011559_ACEOF
11560
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011561
11562fi
11563
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
Steven Edwardsb9627c12002-05-05 21:03:44 +000011606
11607
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011608
11609
Alexandre Julliard142dab82002-07-01 18:17:30 +000011610
Marcus Meissner786d2492002-07-29 23:55:39 +000011611
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011612for ac_func in \
Eric Pouechf61d7e02000-04-29 16:44:19 +000011613 __libc_fork \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011614 _lwp_create \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011615 _pclose \
11616 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011617 _snprintf \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011618 _stricmp \
11619 _strnicmp \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011620 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011621 clone \
Andreas Mohra7ca2ba2001-01-12 23:07:11 +000011622 ecvt \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000011623 finite \
11624 fpclass \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011625 ftruncate \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000011626 ftruncate64 \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011627 getnetbyaddr \
11628 getnetbyname \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011629 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011630 getprotobyname \
11631 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000011632 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011633 getservbyport \
11634 getsockopt \
11635 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000011636 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000011637 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011638 memmove \
Marcus Meissner786d2492002-07-29 23:55:39 +000011639 mkstemp \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000011640 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011641 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011642 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011643 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000011644 pwrite \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011645 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011646 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011647 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011648 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011649 sigaltstack \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011650 snprintf \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011651 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000011652 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011653 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000011654 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011655 tcgetattr \
11656 timegm \
11657 usleep \
11658 vfscanf \
11659 wait4 \
11660 waitpid \
11661
11662do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011663as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011664echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011665echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11666if eval "test \"\${$as_ac_var+set}\" = set"; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011668else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011669 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011670#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011671#include "confdefs.h"
11672/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011673 which can conflict with char $ac_func (); below. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011674#include <assert.h>
11675/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011676#ifdef __cplusplus
11677extern "C"
11678#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011679/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011680 builtin and then its argument prototype would still apply. */
11681char $ac_func ();
11682char (*f) ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011683
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011684#ifdef F77_DUMMY_MAIN
11685# ifdef __cplusplus
11686 extern "C"
11687# endif
11688 int F77_DUMMY_MAIN() { return 1; }
11689#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011690int
11691main ()
11692{
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011693/* The GNU C library defines this for functions which it implements
11694 to always fail with ENOSYS. Some functions are actually named
11695 something starting with __ and the normal name is an alias. */
11696#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11697choke me
11698#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011699f = $ac_func;
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011700#endif
11701
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011702 ;
11703 return 0;
11704}
11705_ACEOF
11706rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011708 (eval $ac_link) 2>&5
11709 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011711 (exit $ac_status); } &&
11712 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011714 (eval $ac_try) 2>&5
11715 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011717 (exit $ac_status); }; }; then
11718 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011719else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011720 echo "$as_me: failed program was:" >&5
11721cat conftest.$ac_ext >&5
11722eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011723fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011724rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011725fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011727echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11728if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011729 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011730#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011731_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011732
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011733fi
11734done
11735
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
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
Laurent Pinchart0314a652002-05-01 22:01:30 +000011797
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011798
11799
11800
Alexandre Julliard127ec922002-05-07 01:51:30 +000011801
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011802
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011803for ac_header in \
Patrik Stridvall96336321999-10-24 22:13:47 +000011804 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011805 arpa/nameser.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011806 direct.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011807 elf.h \
11808 float.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +000011809 ieeefp.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011810 io.h \
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011811 libaudioio.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011812 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +000011813 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011814 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011815 linux/cdrom.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011816 linux/hdreg.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +000011817 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +000011818 linux/joystick.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011819 linux/major.h \
Laurent Pinchart0314a652002-05-01 22:01:30 +000011820 linux/param.h \
Lawson Whitney533e7ee2002-02-19 18:41:56 +000011821 linux/serial.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011822 linux/ucdrom.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +000011823 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011824 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000011825 netinet/in_systm.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011826 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +000011827 pty.h \
Steven Edwardsff4525c2002-06-24 23:00:25 +000011828 pwd.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011829 sched.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011830 scsi/sg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011831 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +000011832 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011833 strings.h \
11834 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +000011835 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011836 sys/file.h \
11837 sys/filio.h \
Michal Pasternak60983992002-03-29 18:04:43 +000011838 sys/inttypes.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000011839 sys/ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011840 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +000011841 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011842 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +000011843 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011844 sys/modem.h \
11845 sys/mount.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011846 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011847 sys/param.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000011848 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +000011849 sys/reg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011850 sys/shm.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011851 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011852 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011853 sys/sockio.h \
11854 sys/statfs.h \
11855 sys/strtio.h \
11856 sys/syscall.h \
Alexandre Julliard127ec922002-05-07 01:51:30 +000011857 sys/sysctl.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011858 sys/time.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000011859 sys/user.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011860 sys/v86.h \
11861 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011862 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011863 sys/vm86.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011864 sys/wait.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011865 syscall.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000011866 termios.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000011867 ucontext.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011868 unistd.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011869
Alexandre Julliard02e90081998-01-04 17:49:09 +000011870do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011872if eval "test \"\${$as_ac_Header+set}\" = set"; then
11873 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11875if eval "test \"\${$as_ac_Header+set}\" = set"; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011877fi
11878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliard02e90081998-01-04 17:49:09 +000011880else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011881 # Is the header compilable?
11882echo "$as_me:$LINENO: checking $ac_header usability" >&5
11883echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11884cat >conftest.$ac_ext <<_ACEOF
11885#line $LINENO "configure"
11886#include "confdefs.h"
11887$ac_includes_default
11888#include <$ac_header>
11889_ACEOF
11890rm -f conftest.$ac_objext
11891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11892 (eval $ac_compile) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try='test -s conftest.$ac_objext'
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11899 ac_status=$?
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; }; then
11902 ac_header_compiler=yes
11903else
11904 echo "$as_me: failed program was:" >&5
11905cat conftest.$ac_ext >&5
11906ac_header_compiler=no
11907fi
11908rm -f conftest.$ac_objext conftest.$ac_ext
11909echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11910echo "${ECHO_T}$ac_header_compiler" >&6
11911
11912# Is the header present?
11913echo "$as_me:$LINENO: checking $ac_header presence" >&5
11914echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11915cat >conftest.$ac_ext <<_ACEOF
11916#line $LINENO "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +000011917#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011918#include <$ac_header>
11919_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11922 ac_status=$?
11923 egrep -v '^ *\+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011927 (exit $ac_status); } >/dev/null; then
11928 if test -s conftest.err; then
11929 ac_cpp_err=$ac_c_preproc_warn_flag
11930 else
11931 ac_cpp_err=
11932 fi
Alexandre Julliard02e90081998-01-04 17:49:09 +000011933else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011934 ac_cpp_err=yes
11935fi
11936if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011937 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011938else
11939 echo "$as_me: failed program was:" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +000011940 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011941 ac_header_preproc=no
Alexandre Julliard02e90081998-01-04 17:49:09 +000011942fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011943rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011944echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11945echo "${ECHO_T}$ac_header_preproc" >&6
11946
11947# So? What about this header?
11948case $ac_header_compiler:$ac_header_preproc in
11949 yes:no )
11950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11951echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11954 no:yes )
11955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11958echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11960echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11961esac
11962echo "$as_me:$LINENO: checking for $ac_header" >&5
11963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11964if eval "test \"\${$as_ac_Header+set}\" = set"; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966else
11967 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliard02e90081998-01-04 17:49:09 +000011968fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011970echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011971
Alexandre Julliard02e90081998-01-04 17:49:09 +000011972fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011973if test `eval echo '${'$as_ac_Header'}'` = yes; then
11974 cat >>confdefs.h <<_ACEOF
11975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11976_ACEOF
11977
11978fi
11979
Alexandre Julliard02e90081998-01-04 17:49:09 +000011980done
11981
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011982echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011983echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11984if test "${ac_cv_header_stat_broken+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011986else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011987 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011988#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011989#include "confdefs.h"
11990#include <sys/types.h>
11991#include <sys/stat.h>
11992
11993#if defined(S_ISBLK) && defined(S_IFDIR)
11994# if S_ISBLK (S_IFDIR)
11995You lose.
11996# endif
11997#endif
11998
11999#if defined(S_ISBLK) && defined(S_IFCHR)
12000# if S_ISBLK (S_IFCHR)
12001You lose.
12002# endif
12003#endif
12004
12005#if defined(S_ISLNK) && defined(S_IFREG)
12006# if S_ISLNK (S_IFREG)
12007You lose.
12008# endif
12009#endif
12010
12011#if defined(S_ISSOCK) && defined(S_IFREG)
12012# if S_ISSOCK (S_IFREG)
12013You lose.
12014# endif
12015#endif
12016
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012017_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12019 egrep "You lose" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012020 ac_cv_header_stat_broken=yes
12021else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012022 ac_cv_header_stat_broken=no
12023fi
12024rm -f conftest*
12025
12026fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012027echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012028echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012029if test $ac_cv_header_stat_broken = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012030
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012031cat >>confdefs.h <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012032#define STAT_MACROS_BROKEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012033_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012034
12035fi
12036
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012037
12038
Gregg Mattinson044b5c42002-07-19 03:16:51 +000012039for ac_header in net/if.h
12040do
12041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12042echo "$as_me:$LINENO: checking for $ac_header" >&5
12043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12044if eval "test \"\${$as_ac_Header+set}\" = set"; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046else
12047 cat >conftest.$ac_ext <<_ACEOF
12048#line $LINENO "configure"
12049#include "confdefs.h"
Gerald Pfeifer87c369d2002-07-23 02:02:02 +000012050#if HAVE_SYS_TYPES_H
12051 # include <sys/types.h>
12052 #endif
12053 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000012054 # include <sys/socket.h>
12055 #endif
12056
12057#include <$ac_header>
12058_ACEOF
12059rm -f conftest.$ac_objext
12060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12061 (eval $ac_compile) 2>&5
12062 ac_status=$?
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } &&
12065 { ac_try='test -s conftest.$ac_objext'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 eval "$as_ac_Header=yes"
12072else
12073 echo "$as_me: failed program was:" >&5
12074cat conftest.$ac_ext >&5
12075eval "$as_ac_Header=no"
12076fi
12077rm -f conftest.$ac_objext conftest.$ac_ext
12078fi
12079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12081if test `eval echo '${'$as_ac_Header'}'` = yes; then
12082 cat >>confdefs.h <<_ACEOF
12083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12084_ACEOF
12085
12086fi
12087
12088done
12089
12090
12091
12092for ac_header in netinet/ip.h
12093do
12094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12095echo "$as_me:$LINENO: checking for $ac_header" >&5
12096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12097if eval "test \"\${$as_ac_Header+set}\" = set"; then
12098 echo $ECHO_N "(cached) $ECHO_C" >&6
12099else
12100 cat >conftest.$ac_ext <<_ACEOF
12101#line $LINENO "configure"
12102#include "confdefs.h"
12103#if HAVE_SYS_SOCKET_H
12104 # include <sys/socket.h>
12105 #endif
12106 #if HAVE_NETINET_IN_SYSTM_H
12107 # include <netinet/in_systm.h>
12108 #endif
12109
12110#include <$ac_header>
12111_ACEOF
12112rm -f conftest.$ac_objext
12113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114 (eval $ac_compile) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 eval "$as_ac_Header=yes"
12125else
12126 echo "$as_me: failed program was:" >&5
12127cat conftest.$ac_ext >&5
12128eval "$as_ac_Header=no"
12129fi
12130rm -f conftest.$ac_objext conftest.$ac_ext
12131fi
12132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12133echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12134if test `eval echo '${'$as_ac_Header'}'` = yes; then
12135 cat >>confdefs.h <<_ACEOF
12136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12137_ACEOF
12138
12139fi
12140
12141done
12142
12143
12144
12145for ac_header in resolv.h
12146do
12147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12148echo "$as_me:$LINENO: checking for $ac_header" >&5
12149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12150if eval "test \"\${$as_ac_Header+set}\" = set"; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152else
12153 cat >conftest.$ac_ext <<_ACEOF
12154#line $LINENO "configure"
12155#include "confdefs.h"
12156#if HAVE_SYS_SOCKET_H
12157 # include <sys/socket.h>
12158 #endif
12159
12160#include <$ac_header>
12161_ACEOF
12162rm -f conftest.$ac_objext
12163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12164 (eval $ac_compile) 2>&5
12165 ac_status=$?
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -s conftest.$ac_objext'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12171 ac_status=$?
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; }; then
12174 eval "$as_ac_Header=yes"
12175else
12176 echo "$as_me: failed program was:" >&5
12177cat conftest.$ac_ext >&5
12178eval "$as_ac_Header=no"
12179fi
12180rm -f conftest.$ac_objext conftest.$ac_ext
12181fi
12182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12184if test `eval echo '${'$as_ac_Header'}'` = yes; then
12185 cat >>confdefs.h <<_ACEOF
12186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12187_ACEOF
12188
12189fi
12190
12191done
12192
12193
12194
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012195echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012196echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12197if test "${ac_cv_prog_cc_stdc+set}" = set; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012199else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012200 ac_cv_prog_cc_stdc=no
12201ac_save_CC=$CC
12202cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012203#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012204#include "confdefs.h"
12205#include <stdarg.h>
12206#include <stdio.h>
12207#include <sys/types.h>
12208#include <sys/stat.h>
12209/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12210struct buf { int x; };
12211FILE * (*rcsopen) (struct buf *, struct stat *, int);
12212static char *e (p, i)
12213 char **p;
12214 int i;
12215{
12216 return p[i];
12217}
12218static char *f (char * (*g) (char **, int), char **p, ...)
12219{
12220 char *s;
12221 va_list v;
12222 va_start (v,p);
12223 s = g (p, va_arg (v,int));
12224 va_end (v);
12225 return s;
12226}
12227int test (int i, double x);
12228struct s1 {int (*f) (int a);};
12229struct s2 {int (*f) (double a);};
12230int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12231int argc;
12232char **argv;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012233#ifdef F77_DUMMY_MAIN
12234# ifdef __cplusplus
12235 extern "C"
12236# endif
12237 int F77_DUMMY_MAIN() { return 1; }
12238#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012239int
12240main ()
12241{
12242return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12243 ;
12244 return 0;
12245}
12246_ACEOF
12247# Don't try gcc -ansi; that turns off useful extensions and
12248# breaks some systems' header files.
12249# AIX -qlanglvl=ansi
12250# Ultrix and OSF/1 -std1
12251# HP-UX 10.20 and later -Ae
12252# HP-UX older versions -Aa -D_HPUX_SOURCE
12253# SVR4 -Xc -D__EXTENSIONS__
12254for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12255do
12256 CC="$ac_save_CC $ac_arg"
12257 rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012259 (eval $ac_compile) 2>&5
12260 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012262 (exit $ac_status); } &&
12263 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012265 (eval $ac_try) 2>&5
12266 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012268 (exit $ac_status); }; }; then
12269 ac_cv_prog_cc_stdc=$ac_arg
12270break
12271else
12272 echo "$as_me: failed program was:" >&5
12273cat conftest.$ac_ext >&5
12274fi
12275rm -f conftest.$ac_objext
12276done
12277rm -f conftest.$ac_ext conftest.$ac_objext
12278CC=$ac_save_CC
12279
12280fi
12281
12282case "x$ac_cv_prog_cc_stdc" in
12283 x|xno)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012284 echo "$as_me:$LINENO: result: none needed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012285echo "${ECHO_T}none needed" >&6 ;;
12286 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012287 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012288echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12289 CC="$CC $ac_cv_prog_cc_stdc" ;;
12290esac
12291
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012292echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012293echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12294if test "${ac_cv_c_const+set}" = set; then
12295 echo $ECHO_N "(cached) $ECHO_C" >&6
12296else
12297 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012298#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012299#include "confdefs.h"
12300
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012301#ifdef F77_DUMMY_MAIN
12302# ifdef __cplusplus
12303 extern "C"
12304# endif
12305 int F77_DUMMY_MAIN() { return 1; }
12306#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012307int
12308main ()
12309{
12310/* FIXME: Include the comments suggested by Paul. */
12311#ifndef __cplusplus
12312 /* Ultrix mips cc rejects this. */
12313 typedef int charset[2];
12314 const charset x;
12315 /* SunOS 4.1.1 cc rejects this. */
12316 char const *const *ccp;
12317 char **p;
12318 /* NEC SVR4.0.2 mips cc rejects this. */
12319 struct point {int x, y;};
12320 static struct point const zero = {0,0};
12321 /* AIX XL C 1.02.0.0 rejects this.
12322 It does not let you subtract one const X* pointer from another in
12323 an arm of an if-expression whose if-part is not a constant
12324 expression */
12325 const char *g = "string";
12326 ccp = &g + (g ? g-g : 0);
12327 /* HPUX 7.0 cc rejects these. */
12328 ++ccp;
12329 p = (char**) ccp;
12330 ccp = (char const *const *) p;
12331 { /* SCO 3.2v4 cc rejects this. */
12332 char *t;
12333 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012334
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012335 *t++ = 0;
12336 }
12337 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12338 int x[] = {25, 17};
12339 const int *foo = &x[0];
12340 ++foo;
12341 }
12342 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12343 typedef const int *iptr;
12344 iptr p = 0;
12345 ++p;
12346 }
12347 { /* AIX XL C 1.02.0.0 rejects this saying
12348 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12349 struct s { int j; const int *ap[3]; };
12350 struct s *b; b->j = 5;
12351 }
12352 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12353 const int foo = 10;
12354 }
12355#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012356
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012357 ;
12358 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012359}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012360_ACEOF
12361rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012363 (eval $ac_compile) 2>&5
12364 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012366 (exit $ac_status); } &&
12367 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012369 (eval $ac_try) 2>&5
12370 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012372 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012373 ac_cv_c_const=yes
12374else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012375 echo "$as_me: failed program was:" >&5
12376cat conftest.$ac_ext >&5
12377ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012378fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012379rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012380fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012381echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012382echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012383if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012384
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012385cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012386#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012387_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012388
12389fi
12390
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012391echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012392echo $ECHO_N "checking for inline... $ECHO_C" >&6
12393if test "${ac_cv_c_inline+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012395else
12396 ac_cv_c_inline=no
12397for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012398 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012399#line $LINENO "configure"
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012400#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012401#ifndef __cplusplus
12402static $ac_kw int static_foo () {return 0; }
12403$ac_kw int foo () {return 0; }
12404#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012405
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012406_ACEOF
12407rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012409 (eval $ac_compile) 2>&5
12410 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012412 (exit $ac_status); } &&
12413 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012415 (eval $ac_try) 2>&5
12416 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012418 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012419 ac_cv_c_inline=$ac_kw; break
12420else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012421 echo "$as_me: failed program was:" >&5
12422cat conftest.$ac_ext >&5
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012423fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012424rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012425done
12426
12427fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012428echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012429echo "${ECHO_T}$ac_cv_c_inline" >&6
12430case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012431 inline | yes) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012432 no)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012433cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012434#define inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012435_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012436 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012437 *) cat >>confdefs.h <<_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012438#define inline $ac_cv_c_inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012439_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012440 ;;
12441esac
12442
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012443echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012444echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12445if test "${ac_cv_type_mode_t+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12447else
12448 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012449#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012450#include "confdefs.h"
12451$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012452#ifdef F77_DUMMY_MAIN
12453# ifdef __cplusplus
12454 extern "C"
12455# endif
12456 int F77_DUMMY_MAIN() { return 1; }
12457#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012458int
12459main ()
12460{
12461if ((mode_t *) 0)
12462 return 0;
12463if (sizeof (mode_t))
12464 return 0;
12465 ;
12466 return 0;
12467}
12468_ACEOF
12469rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012471 (eval $ac_compile) 2>&5
12472 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012474 (exit $ac_status); } &&
12475 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012477 (eval $ac_try) 2>&5
12478 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012480 (exit $ac_status); }; }; then
12481 ac_cv_type_mode_t=yes
12482else
12483 echo "$as_me: failed program was:" >&5
12484cat conftest.$ac_ext >&5
12485ac_cv_type_mode_t=no
12486fi
12487rm -f conftest.$ac_objext conftest.$ac_ext
12488fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012489echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012490echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12491if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012492
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012493cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012494#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012495_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012496
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012497
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012498fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012499echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012500echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12501if test "${ac_cv_type_off_t+set}" = set; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12503else
12504 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012505#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012506#include "confdefs.h"
12507$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012508#ifdef F77_DUMMY_MAIN
12509# ifdef __cplusplus
12510 extern "C"
12511# endif
12512 int F77_DUMMY_MAIN() { return 1; }
12513#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012514int
12515main ()
12516{
12517if ((off_t *) 0)
12518 return 0;
12519if (sizeof (off_t))
12520 return 0;
12521 ;
12522 return 0;
12523}
12524_ACEOF
12525rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012527 (eval $ac_compile) 2>&5
12528 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012530 (exit $ac_status); } &&
12531 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012533 (eval $ac_try) 2>&5
12534 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012536 (exit $ac_status); }; }; then
12537 ac_cv_type_off_t=yes
12538else
12539 echo "$as_me: failed program was:" >&5
12540cat conftest.$ac_ext >&5
12541ac_cv_type_off_t=no
12542fi
12543rm -f conftest.$ac_objext conftest.$ac_ext
12544fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012545echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012546echo "${ECHO_T}$ac_cv_type_off_t" >&6
12547if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012548
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012549cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012550#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012551_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012552
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012553
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012554fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012555echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012556echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12557if test "${ac_cv_type_pid_t+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12559else
12560 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012561#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012562#include "confdefs.h"
12563$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012564#ifdef F77_DUMMY_MAIN
12565# ifdef __cplusplus
12566 extern "C"
12567# endif
12568 int F77_DUMMY_MAIN() { return 1; }
12569#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012570int
12571main ()
12572{
12573if ((pid_t *) 0)
12574 return 0;
12575if (sizeof (pid_t))
12576 return 0;
12577 ;
12578 return 0;
12579}
12580_ACEOF
12581rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012583 (eval $ac_compile) 2>&5
12584 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012586 (exit $ac_status); } &&
12587 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012589 (eval $ac_try) 2>&5
12590 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012592 (exit $ac_status); }; }; then
12593 ac_cv_type_pid_t=yes
12594else
12595 echo "$as_me: failed program was:" >&5
12596cat conftest.$ac_ext >&5
12597ac_cv_type_pid_t=no
12598fi
12599rm -f conftest.$ac_objext conftest.$ac_ext
12600fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012601echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012602echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12603if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012604
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012605cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012606#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012607_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012608
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012609
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012610fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012611echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012612echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12613if test "${ac_cv_type_size_t+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12615else
12616 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012617#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012618#include "confdefs.h"
12619$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012620#ifdef F77_DUMMY_MAIN
12621# ifdef __cplusplus
12622 extern "C"
12623# endif
12624 int F77_DUMMY_MAIN() { return 1; }
12625#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012626int
12627main ()
12628{
12629if ((size_t *) 0)
12630 return 0;
12631if (sizeof (size_t))
12632 return 0;
12633 ;
12634 return 0;
12635}
12636_ACEOF
12637rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012639 (eval $ac_compile) 2>&5
12640 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012642 (exit $ac_status); } &&
12643 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012645 (eval $ac_try) 2>&5
12646 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012648 (exit $ac_status); }; }; then
12649 ac_cv_type_size_t=yes
12650else
12651 echo "$as_me: failed program was:" >&5
12652cat conftest.$ac_ext >&5
12653ac_cv_type_size_t=no
12654fi
12655rm -f conftest.$ac_objext conftest.$ac_ext
12656fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012657echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012658echo "${ECHO_T}$ac_cv_type_size_t" >&6
12659if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012660
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012661cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012662#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012663_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012664
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012665
12666fi
12667echo "$as_me:$LINENO: checking for ssize_t" >&5
12668echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12669if test "${ac_cv_type_ssize_t+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12671else
12672 cat >conftest.$ac_ext <<_ACEOF
12673#line $LINENO "configure"
12674#include "confdefs.h"
12675$ac_includes_default
12676#ifdef F77_DUMMY_MAIN
12677# ifdef __cplusplus
12678 extern "C"
12679# endif
12680 int F77_DUMMY_MAIN() { return 1; }
12681#endif
12682int
12683main ()
12684{
12685if ((ssize_t *) 0)
12686 return 0;
12687if (sizeof (ssize_t))
12688 return 0;
12689 ;
12690 return 0;
12691}
12692_ACEOF
12693rm -f conftest.$ac_objext
12694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12695 (eval $ac_compile) 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -s conftest.$ac_objext'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12705 ac_cv_type_ssize_t=yes
12706else
12707 echo "$as_me: failed program was:" >&5
12708cat conftest.$ac_ext >&5
12709ac_cv_type_ssize_t=no
12710fi
12711rm -f conftest.$ac_objext conftest.$ac_ext
12712fi
12713echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12714echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12715if test $ac_cv_type_ssize_t = yes; then
12716
12717cat >>confdefs.h <<_ACEOF
12718#define HAVE_SSIZE_T 1
12719_ACEOF
12720
12721
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012722fi
12723
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012724echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012725echo $ECHO_N "checking for long long... $ECHO_C" >&6
12726if test "${ac_cv_type_long_long+set}" = set; then
12727 echo $ECHO_N "(cached) $ECHO_C" >&6
12728else
12729 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012730#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012731#include "confdefs.h"
12732$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012733#ifdef F77_DUMMY_MAIN
12734# ifdef __cplusplus
12735 extern "C"
12736# endif
12737 int F77_DUMMY_MAIN() { return 1; }
12738#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012739int
12740main ()
12741{
12742if ((long long *) 0)
12743 return 0;
12744if (sizeof (long long))
12745 return 0;
12746 ;
12747 return 0;
12748}
12749_ACEOF
12750rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012752 (eval $ac_compile) 2>&5
12753 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012755 (exit $ac_status); } &&
12756 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012758 (eval $ac_try) 2>&5
12759 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012761 (exit $ac_status); }; }; then
12762 ac_cv_type_long_long=yes
12763else
12764 echo "$as_me: failed program was:" >&5
12765cat conftest.$ac_ext >&5
12766ac_cv_type_long_long=no
12767fi
12768rm -f conftest.$ac_objext conftest.$ac_ext
12769fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012770echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012771echo "${ECHO_T}$ac_cv_type_long_long" >&6
12772
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012773echo "$as_me:$LINENO: checking size of long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012774echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12775if test "${ac_cv_sizeof_long_long+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12777else
12778 if test "$ac_cv_type_long_long" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012779 # The cast to unsigned long works around a bug in the HP C Compiler
12780 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12781 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12782 # This bug is HP SR number 8606223364.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012783 if test "$cross_compiling" = yes; then
12784 # Depending upon the size, compute the lo and hi bounds.
12785cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012786#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012787#include "confdefs.h"
12788$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012789#ifdef F77_DUMMY_MAIN
12790# ifdef __cplusplus
12791 extern "C"
12792# endif
12793 int F77_DUMMY_MAIN() { return 1; }
12794#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012795int
12796main ()
12797{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012798static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12799test_array [0] = 0
12800
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012801 ;
12802 return 0;
12803}
12804_ACEOF
12805rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012807 (eval $ac_compile) 2>&5
12808 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012810 (exit $ac_status); } &&
12811 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012813 (eval $ac_try) 2>&5
12814 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012816 (exit $ac_status); }; }; then
12817 ac_lo=0 ac_mid=0
12818 while :; do
12819 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012820#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012821#include "confdefs.h"
12822$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012823#ifdef F77_DUMMY_MAIN
12824# ifdef __cplusplus
12825 extern "C"
12826# endif
12827 int F77_DUMMY_MAIN() { return 1; }
12828#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012829int
12830main ()
12831{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012832static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12833test_array [0] = 0
12834
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012835 ;
12836 return 0;
12837}
12838_ACEOF
12839rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012841 (eval $ac_compile) 2>&5
12842 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012844 (exit $ac_status); } &&
12845 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012847 (eval $ac_try) 2>&5
12848 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012850 (exit $ac_status); }; }; then
12851 ac_hi=$ac_mid; break
12852else
12853 echo "$as_me: failed program was:" >&5
12854cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012855ac_lo=`expr $ac_mid + 1`
12856 if test $ac_lo -le $ac_mid; then
12857 ac_lo= ac_hi=
12858 break
12859 fi
12860 ac_mid=`expr 2 '*' $ac_mid + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012861fi
12862rm -f conftest.$ac_objext conftest.$ac_ext
12863 done
12864else
12865 echo "$as_me: failed program was:" >&5
12866cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012867cat >conftest.$ac_ext <<_ACEOF
12868#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012869#include "confdefs.h"
12870$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012871#ifdef F77_DUMMY_MAIN
12872# ifdef __cplusplus
12873 extern "C"
12874# endif
12875 int F77_DUMMY_MAIN() { return 1; }
12876#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012877int
12878main ()
12879{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012880static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12881test_array [0] = 0
12882
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012883 ;
12884 return 0;
12885}
12886_ACEOF
12887rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012889 (eval $ac_compile) 2>&5
12890 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012892 (exit $ac_status); } &&
12893 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012895 (eval $ac_try) 2>&5
12896 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 ac_hi=-1 ac_mid=-1
12900 while :; do
12901 cat >conftest.$ac_ext <<_ACEOF
12902#line $LINENO "configure"
12903#include "confdefs.h"
12904$ac_includes_default
12905#ifdef F77_DUMMY_MAIN
12906# ifdef __cplusplus
12907 extern "C"
12908# endif
12909 int F77_DUMMY_MAIN() { return 1; }
12910#endif
12911int
12912main ()
12913{
12914static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12915test_array [0] = 0
12916
12917 ;
12918 return 0;
12919}
12920_ACEOF
12921rm -f conftest.$ac_objext
12922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12923 (eval $ac_compile) 2>&5
12924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } &&
12927 { ac_try='test -s conftest.$ac_objext'
12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 (eval $ac_try) 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012932 (exit $ac_status); }; }; then
12933 ac_lo=$ac_mid; break
12934else
12935 echo "$as_me: failed program was:" >&5
12936cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012937ac_hi=`expr '(' $ac_mid ')' - 1`
12938 if test $ac_mid -le $ac_hi; then
12939 ac_lo= ac_hi=
12940 break
12941 fi
12942 ac_mid=`expr 2 '*' $ac_mid`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012943fi
12944rm -f conftest.$ac_objext conftest.$ac_ext
12945 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012946else
12947 echo "$as_me: failed program was:" >&5
12948cat conftest.$ac_ext >&5
12949ac_lo= ac_hi=
12950fi
12951rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012952fi
12953rm -f conftest.$ac_objext conftest.$ac_ext
12954# Binary search between lo and hi bounds.
12955while test "x$ac_lo" != "x$ac_hi"; do
12956 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12957 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012958#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012959#include "confdefs.h"
12960$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012961#ifdef F77_DUMMY_MAIN
12962# ifdef __cplusplus
12963 extern "C"
12964# endif
12965 int F77_DUMMY_MAIN() { return 1; }
12966#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012967int
12968main ()
12969{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012970static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12971test_array [0] = 0
12972
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012973 ;
12974 return 0;
12975}
12976_ACEOF
12977rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012979 (eval $ac_compile) 2>&5
12980 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012982 (exit $ac_status); } &&
12983 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012985 (eval $ac_try) 2>&5
12986 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012988 (exit $ac_status); }; }; then
12989 ac_hi=$ac_mid
12990else
12991 echo "$as_me: failed program was:" >&5
12992cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012993ac_lo=`expr '(' $ac_mid ')' + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012994fi
12995rm -f conftest.$ac_objext conftest.$ac_ext
12996done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012997case $ac_lo in
12998?*) ac_cv_sizeof_long_long=$ac_lo;;
12999'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
13000echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
13001 { (exit 1); exit 1; }; } ;;
13002esac
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013003else
13004 if test "$cross_compiling" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013005 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013006echo "$as_me: error: cannot run test program while cross compiling" >&2;}
13007 { (exit 1); exit 1; }; }
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013008else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013009 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013010#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013011#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013012$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013013long longval () { return (long) (sizeof (long long)); }
13014unsigned long ulongval () { return (long) (sizeof (long long)); }
13015#include <stdio.h>
13016#include <stdlib.h>
13017#ifdef F77_DUMMY_MAIN
13018# ifdef __cplusplus
13019 extern "C"
13020# endif
13021 int F77_DUMMY_MAIN() { return 1; }
13022#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013023int
13024main ()
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013025{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013026
13027 FILE *f = fopen ("conftest.val", "w");
13028 if (! f)
13029 exit (1);
13030 if (((long) (sizeof (long long))) < 0)
13031 {
13032 long i = longval ();
13033 if (i != ((long) (sizeof (long long))))
13034 exit (1);
13035 fprintf (f, "%ld\n", i);
13036 }
13037 else
13038 {
13039 unsigned long i = ulongval ();
13040 if (i != ((long) (sizeof (long long))))
13041 exit (1);
13042 fprintf (f, "%lu\n", i);
13043 }
13044 exit (ferror (f) || fclose (f) != 0);
13045
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013046 ;
13047 return 0;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013048}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013049_ACEOF
13050rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013052 (eval $ac_link) 2>&5
13053 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013057 (eval $ac_try) 2>&5
13058 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013060 (exit $ac_status); }; }; then
13061 ac_cv_sizeof_long_long=`cat conftest.val`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013062else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013063 echo "$as_me: program exited with status $ac_status" >&5
13064echo "$as_me: failed program was:" >&5
13065cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013066( exit $ac_status )
13067{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
13068echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
13069 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013070fi
13071rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13072fi
13073fi
13074rm -f conftest.val
13075else
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013076 ac_cv_sizeof_long_long=0
13077fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013078fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013079echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013080echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013081cat >>confdefs.h <<_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013082#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013083_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013084
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013085
13086
13087echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013088echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
13089if test "${wine_cv_linux_input_h+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013091else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013092 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013093#line $LINENO "configure"
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013094#include "confdefs.h"
13095
13096 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013097
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013098#ifdef F77_DUMMY_MAIN
13099# ifdef __cplusplus
13100 extern "C"
13101# endif
13102 int F77_DUMMY_MAIN() { return 1; }
13103#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013104int
13105main ()
13106{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013107
13108 int foo = EVIOCGBIT(EV_ABS,42);
13109 int bar = BTN_PINKIE;
13110 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013111
13112 ;
13113 return 0;
13114}
13115_ACEOF
13116rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013118 (eval $ac_compile) 2>&5
13119 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013121 (exit $ac_status); } &&
13122 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013124 (eval $ac_try) 2>&5
13125 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013127 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013128 wine_cv_linux_input_h=yes
13129else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013130 echo "$as_me: failed program was:" >&5
13131cat conftest.$ac_ext >&5
13132wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013133fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013134rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013135
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013136fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013137echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013138echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013139 if test "$wine_cv_linux_input_h" = "yes"
13140 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013141
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013142cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013143#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013144_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000013145
13146 fi
13147
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013148
13149echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013150echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
13151if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
13152 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013153else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013154 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013155#line $LINENO "configure"
Rein Klazesff7a61f2000-09-24 19:41:57 +000013156#include "confdefs.h"
13157
13158#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013159
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013160#ifdef F77_DUMMY_MAIN
13161# ifdef __cplusplus
13162 extern "C"
13163# endif
13164 int F77_DUMMY_MAIN() { return 1; }
13165#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013166int
13167main ()
13168{
Rein Klazesff7a61f2000-09-24 19:41:57 +000013169
13170 char *name=NULL;
13171 struct hostent he;
13172 struct hostent *result;
13173 char *buf=NULL;
13174 int bufsize=0;
13175 int res,errnr;
13176 char *addr=NULL;
13177 int addrlen=0;
13178 int addrtype=0;
13179 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13180 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013181
13182 ;
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
Rein Klazesff7a61f2000-09-24 19:41:57 +000013198 wine_cv_linux_gethostbyname_r_6=yes
13199else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013200 echo "$as_me: failed program was:" >&5
13201cat conftest.$ac_ext >&5
13202wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000013203
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013204fi
13205rm -f conftest.$ac_objext conftest.$ac_ext
13206
13207fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013208echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013209echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013210 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13211 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013212
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013213cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000013214#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013215_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000013216
13217 fi
13218
Marcus Meissner028e9a11999-08-04 15:07:56 +000013219if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013220then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013221 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013222echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
13223if test "${wine_cv_linux_joystick_22_api+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013225else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013226 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013227#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013228#include "confdefs.h"
13229
Marcus Meissner028e9a11999-08-04 15:07:56 +000013230 #include <sys/ioctl.h>
13231 #include <linux/joystick.h>
13232
13233 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000013234 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13235 #error "no 2.2 header"
13236 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013237
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013238#ifdef F77_DUMMY_MAIN
13239# ifdef __cplusplus
13240 extern "C"
13241# endif
13242 int F77_DUMMY_MAIN() { return 1; }
13243#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013244int
13245main ()
13246{
Marcus Meissner028e9a11999-08-04 15:07:56 +000013247/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013248 ;
13249 return 0;
13250}
13251_ACEOF
13252rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013254 (eval $ac_compile) 2>&5
13255 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013257 (exit $ac_status); } &&
13258 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013260 (eval $ac_try) 2>&5
13261 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013263 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000013264 wine_cv_linux_joystick_22_api=yes
13265else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013266 echo "$as_me: failed program was:" >&5
13267cat conftest.$ac_ext >&5
13268wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000013269fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013270rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000013271
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013272fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013273echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013274echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000013275 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013276 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013277
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013278cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000013279#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013280_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000013281
13282 fi
13283fi
13284
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013285
Marcus Meissner028e9a11999-08-04 15:07:56 +000013286if test "$ac_cv_header_sys_vfs_h" = "yes"
13287then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013288 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013289echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
13290if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000013292else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013293 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013294#line $LINENO "configure"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013295#include "confdefs.h"
13296
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013297 #include <sys/types.h>
13298 #ifdef HAVE_SYS_PARAM_H
13299 # include <sys/param.h>
13300 #endif
13301 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013302
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013303#ifdef F77_DUMMY_MAIN
13304# ifdef __cplusplus
13305 extern "C"
13306# endif
13307 int F77_DUMMY_MAIN() { return 1; }
13308#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013309int
13310main ()
13311{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013312
13313 struct statfs stfs;
13314
13315 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013316
13317 ;
13318 return 0;
13319}
13320_ACEOF
13321rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013323 (eval $ac_compile) 2>&5
13324 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013326 (exit $ac_status); } &&
13327 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013329 (eval $ac_try) 2>&5
13330 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013332 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013333 wine_cv_sys_vfs_has_statfs=yes
13334else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013335 echo "$as_me: failed program was:" >&5
13336cat conftest.$ac_ext >&5
13337wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013338
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013339fi
13340rm -f conftest.$ac_objext conftest.$ac_ext
13341
13342fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013343echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013344echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013345 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
13346 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013347
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013348cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013349#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013350_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013351
13352 fi
13353fi
13354
13355if test "$ac_cv_header_sys_statfs_h" = "yes"
13356then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013357 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013358echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
13359if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013361else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013362 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013363#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013364#include "confdefs.h"
13365
13366 #include <sys/types.h>
13367 #ifdef HAVE_SYS_PARAM_H
13368 # include <sys/param.h>
13369 #endif
13370 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013371
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013372#ifdef F77_DUMMY_MAIN
13373# ifdef __cplusplus
13374 extern "C"
13375# endif
13376 int F77_DUMMY_MAIN() { return 1; }
13377#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013378int
13379main ()
13380{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013381
13382 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013383
13384 ;
13385 return 0;
13386}
13387_ACEOF
13388rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013390 (eval $ac_compile) 2>&5
13391 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013393 (exit $ac_status); } &&
13394 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013396 (eval $ac_try) 2>&5
13397 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013399 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013400 wine_cv_sys_statfs_has_statfs=yes
13401else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013402 echo "$as_me: failed program was:" >&5
13403cat conftest.$ac_ext >&5
13404wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013405
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013406fi
13407rm -f conftest.$ac_objext conftest.$ac_ext
13408
13409fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013410echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013411echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013412 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
13413 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013414
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013415cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013416#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013417_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013418
13419 fi
13420fi
13421
13422if test "$ac_cv_header_sys_mount_h" = "yes"
13423then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013424 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013425echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
13426if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013428else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013429 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013430#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013431#include "confdefs.h"
13432
13433 #include <sys/types.h>
13434 #ifdef HAVE_SYS_PARAM_H
13435 # include <sys/param.h>
13436 #endif
13437 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013438
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013439#ifdef F77_DUMMY_MAIN
13440# ifdef __cplusplus
13441 extern "C"
13442# endif
13443 int F77_DUMMY_MAIN() { return 1; }
13444#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013445int
13446main ()
13447{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013448
13449 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013450
13451 ;
13452 return 0;
13453}
13454_ACEOF
13455rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013457 (eval $ac_compile) 2>&5
13458 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013460 (exit $ac_status); } &&
13461 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013463 (eval $ac_try) 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); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013467 wine_cv_sys_mount_has_statfs=yes
13468else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013469 echo "$as_me: failed program was:" >&5
13470cat conftest.$ac_ext >&5
13471wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013472
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013473fi
13474rm -f conftest.$ac_objext conftest.$ac_ext
13475
13476fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013477echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013478echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013479 if test "$wine_cv_sys_mount_has_statfs" = "yes"
13480 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013481
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013482cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013483#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013484_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013485
13486 fi
13487fi
13488
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013489
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013490echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013491echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
13492if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013494else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013495 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013496#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013497#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013498#include <sys/types.h>
13499#ifdef HAVE_SYS_PARAM_H
13500# include <sys/param.h>
13501#endif
13502#ifdef STATFS_DEFINED_BY_SYS_MOUNT
13503# include <sys/mount.h>
13504#else
13505# ifdef STATFS_DEFINED_BY_SYS_VFS
13506# include <sys/vfs.h>
13507# else
13508# ifdef STATFS_DEFINED_BY_SYS_STATFS
13509# include <sys/statfs.h>
13510# endif
13511# endif
13512#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013513#ifdef F77_DUMMY_MAIN
13514# ifdef __cplusplus
13515 extern "C"
13516# endif
13517 int F77_DUMMY_MAIN() { return 1; }
13518#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013519int
13520main ()
13521{
13522struct statfs s; s.f_bfree = 0
13523 ;
13524 return 0;
13525}
13526_ACEOF
13527rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013529 (eval $ac_compile) 2>&5
13530 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013532 (exit $ac_status); } &&
13533 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013535 (eval $ac_try) 2>&5
13536 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013538 (exit $ac_status); }; }; then
13539 ac_cv_c_statfs_f_bfree="yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013540else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013541 echo "$as_me: failed program was:" >&5
13542cat conftest.$ac_ext >&5
13543ac_cv_c_statfs_f_bfree="no"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013544fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013545rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013546fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013547echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013548echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
13549if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013550
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013551cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013552#define STATFS_HAS_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013553_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013554
13555fi
13556
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013557
13558
13559echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013560echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
13561if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013563else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013564 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013565#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013566#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013567#include <sys/types.h>
13568#ifdef HAVE_SYS_PARAM_H
13569# include <sys/param.h>
13570#endif
13571#ifdef STATFS_DEFINED_BY_SYS_MOUNT
13572# include <sys/mount.h>
13573#else
13574# ifdef STATFS_DEFINED_BY_SYS_VFS
13575# include <sys/vfs.h>
13576# else
13577# ifdef STATFS_DEFINED_BY_SYS_STATFS
13578# include <sys/statfs.h>
13579# endif
13580# endif
13581#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013582#ifdef F77_DUMMY_MAIN
13583# ifdef __cplusplus
13584 extern "C"
13585# endif
13586 int F77_DUMMY_MAIN() { return 1; }
13587#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013588int
13589main ()
13590{
13591struct statfs s; s.f_bavail = 0
13592 ;
13593 return 0;
13594}
13595_ACEOF
13596rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013598 (eval $ac_compile) 2>&5
13599 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013601 (exit $ac_status); } &&
13602 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013604 (eval $ac_try) 2>&5
13605 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013607 (exit $ac_status); }; }; then
13608 ac_cv_c_statfs_f_bavail="yes"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013609else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013610 echo "$as_me: failed program was:" >&5
13611cat conftest.$ac_ext >&5
13612ac_cv_c_statfs_f_bavail="no"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013613fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013614rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013615fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013616echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013617echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13618if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013619
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013620cat >>confdefs.h <<\_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013621#define STATFS_HAS_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013622_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013623
13624fi
13625
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013626
13627
13628echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013629echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13630if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13631 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard829fe321998-07-26 14:27:39 +000013632else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013633 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013634#line $LINENO "configure"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013635#include "confdefs.h"
13636#include <sys/types.h>
13637#include <sys/socket.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013638#ifdef F77_DUMMY_MAIN
13639# ifdef __cplusplus
13640 extern "C"
13641# endif
13642 int F77_DUMMY_MAIN() { return 1; }
13643#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013644int
13645main ()
13646{
13647struct msghdr s; s.msg_accrights = 0
13648 ;
13649 return 0;
13650}
13651_ACEOF
13652rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013654 (eval $ac_compile) 2>&5
13655 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013657 (exit $ac_status); } &&
13658 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013660 (eval $ac_try) 2>&5
13661 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013663 (exit $ac_status); }; }; then
13664 ac_cv_c_msghdr_msg_accrights="yes"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013665else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013666 echo "$as_me: failed program was:" >&5
13667cat conftest.$ac_ext >&5
13668ac_cv_c_msghdr_msg_accrights="no"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013669fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013670rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000013671fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013672echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013673echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13674if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
Alexandre Julliard829fe321998-07-26 14:27:39 +000013675
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013676cat >>confdefs.h <<\_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000013677#define HAVE_MSGHDR_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013678_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000013679
13680fi
13681
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013682
13683
13684echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013685echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13686if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013688else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013689 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013690#line $LINENO "configure"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013691#include "confdefs.h"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013692#include <sys/types.h>
13693#include <sys/socket.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013694#ifdef F77_DUMMY_MAIN
13695# ifdef __cplusplus
13696 extern "C"
13697# endif
13698 int F77_DUMMY_MAIN() { return 1; }
13699#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013700int
13701main ()
13702{
13703struct sockaddr s; s.sa_len = 0
13704 ;
13705 return 0;
13706}
13707_ACEOF
13708rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013710 (eval $ac_compile) 2>&5
13711 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013713 (exit $ac_status); } &&
13714 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013716 (eval $ac_try) 2>&5
13717 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013719 (exit $ac_status); }; }; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000013720 ac_cv_c_sockaddr_sa_len="yes"
13721else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013722 echo "$as_me: failed program was:" >&5
13723cat conftest.$ac_ext >&5
13724ac_cv_c_sockaddr_sa_len="no"
Patrik Stridvall09da9662001-07-08 22:30:50 +000013725fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013726rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000013727fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013728echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013729echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13730if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000013731
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013732cat >>confdefs.h <<\_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013733#define HAVE_SOCKADDR_SA_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013734_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013735
13736fi
13737
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013738
13739
13740echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013741echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13742if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000013744else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013745 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013746#line $LINENO "configure"
Patrik Stridvall09da9662001-07-08 22:30:50 +000013747#include "confdefs.h"
13748#include <sys/types.h>
13749#include <sys/socket.h>
Juergen Lock2d33ab92000-02-13 16:03:29 +000013750#include <sys/un.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013751#ifdef F77_DUMMY_MAIN
13752# ifdef __cplusplus
13753 extern "C"
13754# endif
13755 int F77_DUMMY_MAIN() { return 1; }
13756#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013757int
13758main ()
13759{
13760struct sockaddr_un s; s.sun_len = 0
13761 ;
13762 return 0;
13763}
13764_ACEOF
13765rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013767 (eval $ac_compile) 2>&5
13768 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013770 (exit $ac_status); } &&
13771 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013773 (eval $ac_try) 2>&5
13774 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013776 (exit $ac_status); }; }; then
13777 ac_cv_c_sockaddr_un_sun_len="yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013778else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013779 echo "$as_me: failed program was:" >&5
13780cat conftest.$ac_ext >&5
13781ac_cv_c_sockaddr_un_sun_len="no"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013782fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013783rm -f conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000013784fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013785echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013786echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13787if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000013788
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013789cat >>confdefs.h <<\_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013790#define HAVE_SOCKADDR_SUN_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013791_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013792
13793fi
13794
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013795
13796
13797
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013798case $host_cpu in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013799 *i345678986* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013800 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013801echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13802if test "${ac_cv_cpp_def_i386+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000013804else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013805 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013806#line $LINENO "configure"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013807#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013808#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013809yes
13810#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013811_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13813 egrep "yes" >/dev/null 2>&1; then
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013814 ac_cv_cpp_def_i386="yes"
13815else
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013816 ac_cv_cpp_def_i386="no"
13817fi
13818rm -f conftest*
13819
13820fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013821echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013822echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
13823 ;;
13824esac
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013825if test "$ac_cv_cpp_def_i386" = "yes"
13826then
13827 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +000013828 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013829fi
13830
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013831
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013832case $host_cpu in
13833 *sparc* )
13834 echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
13835echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
13836if test "${ac_cv_cpp_def_sparc+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13838else
13839 cat >conftest.$ac_ext <<_ACEOF
13840#line $LINENO "configure"
13841#include "confdefs.h"
13842#ifndef __sparc__
13843yes
13844#endif
13845_ACEOF
13846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13847 egrep "yes" >/dev/null 2>&1; then
13848 ac_cv_cpp_def_sparc="yes"
13849else
13850 ac_cv_cpp_def_sparc="no"
13851fi
13852rm -f conftest*
13853
13854fi
13855echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sparc" >&5
13856echo "${ECHO_T}$ac_cv_cpp_def_sparc" >&6
13857 ;;
13858esac
13859if test "$ac_cv_cpp_def_sparc" = "yes"
13860then
13861 CFLAGS="$CFLAGS -D__sparc__"
13862 LINTFLAGS="$LINTFLAGS -D__sparc__"
13863fi
13864
13865
13866case $host_vendor in
13867 *sun* )
13868 echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
13869echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
13870if test "${ac_cv_cpp_def_sun+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873 cat >conftest.$ac_ext <<_ACEOF
13874#line $LINENO "configure"
13875#include "confdefs.h"
13876#ifndef __sun__
13877yes
13878#endif
13879_ACEOF
13880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13881 egrep "yes" >/dev/null 2>&1; then
13882 ac_cv_cpp_def_sun="yes"
13883else
13884 ac_cv_cpp_def_sun="no"
13885fi
13886rm -f conftest*
13887
13888fi
13889echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sun" >&5
13890echo "${ECHO_T}$ac_cv_cpp_def_sun" >&6
13891 ;;
13892esac
13893if test "$ac_cv_cpp_def_sun" = "yes"
13894then
13895 CFLAGS="$CFLAGS -D__sun__"
13896 LINTFLAGS="$LINTFLAGS -D__sun__"
13897fi
13898
13899
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013900
13901
13902
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013903ac_config_commands="$ac_config_commands controls"
13904
Alexandre Julliardc345f7b2002-07-10 03:30:14 +000013905ac_config_commands="$ac_config_commands dlls/advapi32/tests"
13906
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013907ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000013908
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013909ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000013910
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013911ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013912
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013913ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000013914
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013915ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000013916
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013917ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000013918
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013919ac_config_commands="$ac_config_commands dlls/dinput/joystick"
13920
13921ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
13922
13923ac_config_commands="$ac_config_commands dlls/dinput/mouse"
13924
Alexandre Julliard89118562002-03-27 21:13:40 +000013925ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
13926
13927ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
13928
13929ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
13930
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013931ac_config_commands="$ac_config_commands dlls/kernel/messages"
13932
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013933ac_config_commands="$ac_config_commands dlls/kernel/tests"
13934
Marcus Meissnere8d97702002-03-26 01:54:25 +000013935ac_config_commands="$ac_config_commands dlls/oleaut32/tests"
13936
Juergen Schmiedc74a7912002-05-09 19:48:07 +000013937ac_config_commands="$ac_config_commands dlls/shlwapi/tests"
13938
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013939ac_config_commands="$ac_config_commands dlls/user/dde"
13940
13941ac_config_commands="$ac_config_commands dlls/user/resources"
13942
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013943ac_config_commands="$ac_config_commands dlls/user/tests"
13944
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013945ac_config_commands="$ac_config_commands dlls/wineps/data"
13946
Aric Stewartff9b9d42002-06-21 23:59:49 +000013947ac_config_commands="$ac_config_commands dlls/wininet/tests"
13948
Alexandre Julliard9a68b7b2002-04-27 21:19:22 +000013949ac_config_commands="$ac_config_commands dlls/winsock/tests"
13950
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013951ac_config_commands="$ac_config_commands files"
13952
13953ac_config_commands="$ac_config_commands graphics"
13954
13955ac_config_commands="$ac_config_commands graphics/x11drv"
13956
13957ac_config_commands="$ac_config_commands if1632"
13958
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013959ac_config_commands="$ac_config_commands include/wine"
13960
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013961ac_config_commands="$ac_config_commands loader"
13962
13963ac_config_commands="$ac_config_commands loader/ne"
13964
13965ac_config_commands="$ac_config_commands memory"
13966
13967ac_config_commands="$ac_config_commands misc"
13968
13969ac_config_commands="$ac_config_commands msdos"
13970
13971ac_config_commands="$ac_config_commands objects"
13972
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013973ac_config_commands="$ac_config_commands programs/regapi/tests"
13974
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000013975ac_config_commands="$ac_config_commands programs/regedit/tests"
13976
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013977ac_config_commands="$ac_config_commands programs/winetest/tests"
13978
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013979ac_config_commands="$ac_config_commands relay32"
13980
13981ac_config_commands="$ac_config_commands scheduler"
13982
13983ac_config_commands="$ac_config_commands win32"
13984
13985ac_config_commands="$ac_config_commands windows"
13986
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000013987
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000013988MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013989
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013990
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000013991MAKE_DLL_RULES=dlls/Makedll.rules
13992
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013993
Alexandre Julliard626f4252000-11-10 23:35:20 +000013994MAKE_PROG_RULES=programs/Makeprog.rules
13995
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013996
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013997ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/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/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/ntdll/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/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/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 +000013998
Alexandre Julliard626f4252000-11-10 23:35:20 +000013999
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014000cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014001# This file is a shell script that caches the results of configure
14002# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014003# scripts and configure runs, see configure's option --config-cache.
14004# It is not useful on other systems. If it contains results you don't
14005# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014006#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014007# config.status only pays attention to the cache file if you give it
14008# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014009#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014010# `ac_cv_env_foo' variables (set or unset) will be overriden when
14011# loading this file, other *unset* `ac_cv_foo' will be assigned the
14012# following values.
14013
14014_ACEOF
14015
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014016# The following way of writing the cache mishandles newlines in values,
14017# but we know of no workaround that is simple, portable, and efficient.
14018# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014019# Ultrix sh set writes to stderr and can't be redirected directly,
14020# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014021{
14022 (set) 2>&1 |
14023 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14024 *ac_space=\ *)
14025 # `set' does not quote correctly, so add quotes (double-quote
14026 # substitution turns \\\\ into \\, and sed turns \\ into \).
14027 sed -n \
14028 "s/'/'\\\\''/g;
14029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14030 ;;
14031 *)
14032 # `set' quotes correctly as required by POSIX, so do not add quotes.
14033 sed -n \
14034 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14035 ;;
14036 esac;
14037} |
14038 sed '
14039 t clear
14040 : clear
14041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14042 t end
14043 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14044 : end' >>confcache
14045if cmp -s $cache_file confcache; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014046 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014047 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14048 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014049 else
14050 echo "not updating unwritable cache $cache_file"
14051 fi
14052fi
14053rm -f confcache
14054
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014055test "x$prefix" = xNONE && prefix=$ac_default_prefix
14056# Let make expand exec_prefix.
14057test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14058
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014059# VPATH may cause trouble with some makes, so we remove $(srcdir),
14060# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14061# trailing colons and then remove the whole line if VPATH becomes empty
14062# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014063if test "x$srcdir" = x.; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014064 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14065s/:*\$(srcdir):*/:/;
14066s/:*\${srcdir}:*/:/;
14067s/:*@srcdir@:*/:/;
14068s/^\([^=]*=[ ]*\):*/\1/;
14069s/:*$//;
14070s/^[^=]*=[ ]*$//;
14071}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014072fi
14073
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014074DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014075
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014076
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014077: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014078ac_clean_files_save=$ac_clean_files
14079ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014080{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014081echo "$as_me: creating $CONFIG_STATUS" >&6;}
14082cat >$CONFIG_STATUS <<_ACEOF
14083#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014084# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014085# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014086# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014087# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014088
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014089debug=false
14090SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014091_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014092
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014093cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014094
14095## --------------------- ##
14096## M4sh Initialization. ##
14097## --------------------- ##
14098
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014099# Be Bourne compatible
14100if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14101 emulate sh
14102 NULLCMD=:
14103elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14104 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000014105fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014106
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014107# NLS nuisances.
14108# Support unset when possible.
14109if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14110 as_unset=unset
14111else
14112 as_unset=false
14113fi
14114
14115(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
14116 { $as_unset LANG || test "${LANG+set}" != set; } ||
14117 { LANG=C; export LANG; }
14118(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
14119 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
14120 { LC_ALL=C; export LC_ALL; }
14121(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
14122 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
14123 { LC_TIME=C; export LC_TIME; }
14124(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
14125 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
14126 { LC_CTYPE=C; export LC_CTYPE; }
14127(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
14128 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
14129 { LANGUAGE=C; export LANGUAGE; }
14130(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
14131 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
14132 { LC_COLLATE=C; export LC_COLLATE; }
14133(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
14134 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
14135 { LC_NUMERIC=C; export LC_NUMERIC; }
14136(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
14137 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
14138 { LC_MESSAGES=C; export LC_MESSAGES; }
14139
14140
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014141# Name of the executable.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014142as_me=`(basename "$0") 2>/dev/null ||
14143$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14144 X"$0" : 'X\(//\)$' \| \
14145 X"$0" : 'X\(/\)$' \| \
14146 . : '\(.\)' 2>/dev/null ||
14147echo X/"$0" |
14148 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14149 /^X\/\(\/\/\)$/{ s//\1/; q; }
14150 /^X\/\(\/\).*/{ s//\1/; q; }
14151 s/.*/./; q'`
14152
14153# PATH needs CR, and LINENO needs CR and PATH.
14154# Avoid depending upon Character Ranges.
14155as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14156as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14157as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14158as_cr_digits='0123456789'
14159as_cr_alnum=$as_cr_Letters$as_cr_digits
14160
14161# The user is always right.
14162if test "${PATH_SEPARATOR+set}" != set; then
14163 echo "#! /bin/sh" >conftest.sh
14164 echo "exit 0" >>conftest.sh
14165 chmod +x conftest.sh
14166 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
14167 PATH_SEPARATOR=';'
14168 else
14169 PATH_SEPARATOR=:
14170 fi
14171 rm -f conftest.sh
14172fi
14173
14174
14175 as_lineno_1=$LINENO
14176 as_lineno_2=$LINENO
14177 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14178 test "x$as_lineno_1" != "x$as_lineno_2" &&
14179 test "x$as_lineno_3" = "x$as_lineno_2" || {
14180 # Find who we are. Look in the path if we contain no path at all
14181 # relative or not.
14182 case $0 in
14183 *[\\/]* ) as_myself=$0 ;;
14184 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14185for as_dir in $PATH
14186do
14187 IFS=$as_save_IFS
14188 test -z "$as_dir" && as_dir=.
14189 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14190done
14191
14192 ;;
14193 esac
14194 # We did not find ourselves, most probably we were run as `sh COMMAND'
14195 # in which case we are not to be found in the path.
14196 if test "x$as_myself" = x; then
14197 as_myself=$0
14198 fi
14199 if test ! -f "$as_myself"; then
14200 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14201echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14202 { (exit 1); exit 1; }; }
14203 fi
14204 case $CONFIG_SHELL in
14205 '')
14206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14208do
14209 IFS=$as_save_IFS
14210 test -z "$as_dir" && as_dir=.
14211 for as_base in sh bash ksh sh5; do
14212 case $as_dir in
14213 /*)
14214 if ("$as_dir/$as_base" -c '
14215 as_lineno_1=$LINENO
14216 as_lineno_2=$LINENO
14217 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14218 test "x$as_lineno_1" != "x$as_lineno_2" &&
14219 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14220 CONFIG_SHELL=$as_dir/$as_base
14221 export CONFIG_SHELL
14222 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14223 fi;;
14224 esac
14225 done
14226done
14227;;
14228 esac
14229
14230 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14231 # uniformly replaced by the line number. The first 'sed' inserts a
14232 # line-number line before each line; the second 'sed' does the real
14233 # work. The second script uses 'N' to pair each line-number line
14234 # with the numbered line, and appends trailing '-' during
14235 # substitution so that $LINENO is not a special case at line end.
14236 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14237 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14238 sed '=' <$as_myself |
14239 sed '
14240 N
14241 s,$,-,
14242 : loop
14243 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14244 t loop
14245 s,-$,,
14246 s,^['$as_cr_digits']*\n,,
14247 ' >$as_me.lineno &&
14248 chmod +x $as_me.lineno ||
14249 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14250echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14251 { (exit 1); exit 1; }; }
14252
14253 # Don't try to exec as it changes $[0], causing all sort of problems
14254 # (the dirname of $[0] is not the place where we might find the
14255 # original and so on. Autoconf is especially sensible to this).
14256 . ./$as_me.lineno
14257 # Exit status is that of the last command.
14258 exit
14259}
14260
14261
14262case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14263 *c*,-n*) ECHO_N= ECHO_C='
14264' ECHO_T=' ' ;;
14265 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14266 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14267esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014268
14269if expr a : '\(a\)' >/dev/null 2>&1; then
14270 as_expr=expr
14271else
14272 as_expr=false
14273fi
14274
14275rm -f conf$$ conf$$.exe conf$$.file
14276echo >conf$$.file
14277if ln -s conf$$.file conf$$ 2>/dev/null; then
14278 # We could just check for DJGPP; but this test a) works b) is more generic
14279 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14280 if test -f conf$$.exe; then
14281 # Don't use ln at all; we don't have any links
14282 as_ln_s='cp -p'
14283 else
14284 as_ln_s='ln -s'
14285 fi
14286elif ln conf$$.file conf$$ 2>/dev/null; then
14287 as_ln_s=ln
14288else
14289 as_ln_s='cp -p'
14290fi
14291rm -f conf$$ conf$$.exe conf$$.file
14292
14293as_executable_p="test -f"
14294
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014295# Sed expression to map a string onto a valid CPP name.
14296as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014297
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014298# Sed expression to map a string onto a valid variable name.
14299as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14300
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014301
14302# IFS
14303# We need space, tab and new line, in precisely that order.
14304as_nl='
14305'
14306IFS=" $as_nl"
14307
14308# CDPATH.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014309$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014310
14311exec 6>&1
14312
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014313# Open the log real soon, to keep \$[0] and so on meaningful, and to
14314# report actual input values of CONFIG_FILES etc. instead of their
14315# values after options handling. Logging --version etc. is OK.
14316exec 5>>config.log
14317{
14318 echo
14319 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14320## Running $as_me. ##
14321_ASBOX
14322} >&5
14323cat >&5 <<_CSEOF
14324
Alexandre Julliard390aa832002-07-11 01:30:53 +000014325This file was extended by Wine $as_me 20020710, which was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014326generated by GNU Autoconf 2.53. Invocation command line was
14327
14328 CONFIG_FILES = $CONFIG_FILES
14329 CONFIG_HEADERS = $CONFIG_HEADERS
14330 CONFIG_LINKS = $CONFIG_LINKS
14331 CONFIG_COMMANDS = $CONFIG_COMMANDS
14332 $ $0 $@
14333
14334_CSEOF
14335echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14336echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014337_ACEOF
14338
14339# Files that config.status was made for.
14340if test -n "$ac_config_files"; then
14341 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14342fi
14343
14344if test -n "$ac_config_headers"; then
14345 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14346fi
14347
14348if test -n "$ac_config_links"; then
14349 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14350fi
14351
14352if test -n "$ac_config_commands"; then
14353 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14354fi
14355
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014356cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014357
14358ac_cs_usage="\
14359\`$as_me' instantiates files from templates according to the
14360current configuration.
14361
14362Usage: $0 [OPTIONS] [FILE]...
14363
14364 -h, --help print this help, then exit
14365 -V, --version print version number, then exit
14366 -d, --debug don't remove temporary files
14367 --recheck update $as_me by reconfiguring in the same conditions
14368 --file=FILE[:TEMPLATE]
14369 instantiate the configuration file FILE
14370 --header=FILE[:TEMPLATE]
14371 instantiate the configuration header FILE
14372
14373Configuration files:
14374$config_files
14375
14376Configuration headers:
14377$config_headers
14378
14379Configuration commands:
14380$config_commands
14381
14382Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014383_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000014384
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014385cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014386ac_cs_version="\\
Alexandre Julliard390aa832002-07-11 01:30:53 +000014387Wine config.status 20020710
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014388configured by $0, generated by GNU Autoconf 2.53,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014389 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014390
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014391Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14392Free Software Foundation, Inc.
14393This config.status script is free software; the Free Software Foundation
14394gives unlimited permission to copy, distribute and modify it."
14395srcdir=$srcdir
14396INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014397_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014398
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014399cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014400# If no file are specified by the user, then we need to provide default
14401# value. By we need to know if files were specified by the user.
14402ac_need_defaults=:
14403while test $# != 0
14404do
14405 case $1 in
14406 --*=*)
14407 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14408 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14409 shift
14410 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14411 shift
14412 ;;
14413 -*);;
14414 *) # This is not an option, so the user has probably given explicit
14415 # arguments.
14416 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014417 esac
14418
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014419 case $1 in
14420 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014421_ACEOF
14422cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14424 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14425 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014426_ACEOF
14427cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014428 --version | --vers* | -V )
14429 echo "$ac_cs_version"; exit 0 ;;
14430 --he | --h)
14431 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014432 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014433Try \`$0 --help' for more information." >&5
14434echo "$as_me: error: ambiguous option: $1
14435Try \`$0 --help' for more information." >&2;}
14436 { (exit 1); exit 1; }; };;
14437 --help | --hel | -h )
14438 echo "$ac_cs_usage"; exit 0 ;;
14439 --debug | --d* | -d )
14440 debug=: ;;
14441 --file | --fil | --fi | --f )
14442 shift
14443 CONFIG_FILES="$CONFIG_FILES $1"
14444 ac_need_defaults=false;;
14445 --header | --heade | --head | --hea )
14446 shift
14447 CONFIG_HEADERS="$CONFIG_HEADERS $1"
14448 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014449
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014450 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014451 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014452Try \`$0 --help' for more information." >&5
14453echo "$as_me: error: unrecognized option: $1
14454Try \`$0 --help' for more information." >&2;}
14455 { (exit 1); exit 1; }; } ;;
14456
14457 *) ac_config_targets="$ac_config_targets $1" ;;
14458
14459 esac
14460 shift
14461done
14462
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014463_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014464
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014465
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014466
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014467
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014468
14469cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014470for ac_config_target in $ac_config_targets
14471do
14472 case "$ac_config_target" in
14473 # Handling of arguments.
14474 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
14475 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
14476 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
14477 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014478 "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;;
14479 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
14480 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
14481 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
14482 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000014483 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014484 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
14485 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
14486 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
14487 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
Sylvain Petreolle3a99d8b2002-06-25 23:23:03 +000014488 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014489 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
14490 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
14491 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
14492 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
Ove Kaavend2d08f02002-06-14 00:39:44 +000014493 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014494 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
14495 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
14496 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
14497 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
14498 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
14499 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
14500 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
14501 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
14502 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
14503 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
14504 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
14505 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
14506 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000014507 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000014508 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000014509 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Eric Pouechb706b232002-06-04 17:53:46 +000014510 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014511 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
14512 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000014513 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014514 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
14515 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
14516 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
14517 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
14518 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
14519 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
14520 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
14521 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
14522 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
14523 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
14524 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
14525 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
14526 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
14527 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
14528 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
14529 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
14530 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
14531 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
14532 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
14533 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
14534 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
14535 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
14536 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
14537 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
14538 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
14539 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
14540 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000014541 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014542 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
14543 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
14544 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000014545 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014546 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
14547 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
14548 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
14549 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
14550 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
14551 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
14552 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
14553 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
14554 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
14555 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
14556 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
14557 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
14558 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
14559 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
14560 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
14561 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
14562 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
14563 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Eric Pouecha120ce02002-06-28 17:40:16 +000014564 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014565 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014566 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
14567 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014568 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
14569 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
14570 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
14571 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
14572 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
14573 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
14574 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
14575 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
14576 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014577 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14578 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014579 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014580 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
14581 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14582 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
14583 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
14584 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
14585 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000014586 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014587 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
14588 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
14589 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
14590 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000014591 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000014592 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014593 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
14594 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
14595 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
14596 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
14597 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
Alexandre Julliard65a42162002-06-04 21:29:40 +000014598 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014599 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000014600 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014601 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
14602 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
14603 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014604 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14605 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000014606 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014607 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
14608 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
14609 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
14610 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
Alexandre Julliardb7d3c792002-07-16 02:33:10 +000014611 "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014612 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
14613 "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;;
14614 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014615 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
Alexandre Julliardc345f7b2002-07-10 03:30:14 +000014616 "dlls/advapi32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/advapi32/tests" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014617 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
14618 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
14619 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
14620 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
14621 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
14622 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
14623 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
14624 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
14625 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000014626 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
14627 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
14628 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014629 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000014630 "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;;
Marcus Meissnere8d97702002-03-26 01:54:25 +000014631 "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;;
Juergen Schmiedc74a7912002-05-09 19:48:07 +000014632 "dlls/shlwapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/shlwapi/tests" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014633 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
14634 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000014635 "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014636 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
Aric Stewartff9b9d42002-06-21 23:59:49 +000014637 "dlls/wininet/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wininet/tests" ;;
Alexandre Julliard9a68b7b2002-04-27 21:19:22 +000014638 "dlls/winsock/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/winsock/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014639 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
14640 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
14641 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
14642 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014643 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014644 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
14645 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
14646 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
14647 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
14648 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
14649 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000014650 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000014651 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000014652 "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014653 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
14654 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
14655 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
14656 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014657 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014658 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014659echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14660 { (exit 1); exit 1; }; };;
14661 esac
14662done
14663
14664# If the user did not use the arguments to specify the items to instantiate,
14665# then the envvar interface is used. Set only those that are not.
14666# We use the long form for the default assignment because of an extremely
14667# bizarre bug on SunOS 4.1.3.
14668if $ac_need_defaults; then
14669 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14670 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14671 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14672fi
14673
14674# Create a temporary directory, and hook for its removal unless debugging.
14675$debug ||
14676{
14677 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14678 trap '{ (exit 1); exit 1; }' 1 2 13 15
14679}
14680
14681# Create a (secure) tmp directory for tmp files.
14682: ${TMPDIR=/tmp}
14683{
14684 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14685 test -n "$tmp" && test -d "$tmp"
14686} ||
14687{
14688 tmp=$TMPDIR/cs$$-$RANDOM
14689 (umask 077 && mkdir $tmp)
14690} ||
14691{
14692 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14693 { (exit 1); exit 1; }
14694}
14695
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014696_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014697
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014698cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014699
14700#
14701# CONFIG_FILES section.
14702#
14703
14704# No need to generate the scripts if there are no CONFIG_FILES.
14705# This happens for instance when ./config.status config.h
14706if test -n "\$CONFIG_FILES"; then
14707 # Protect against being on the right side of a sed subst in config.status.
14708 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14709 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14710s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014711s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14712s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14713s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14714s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14715s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14716s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014717s,@exec_prefix@,$exec_prefix,;t t
14718s,@prefix@,$prefix,;t t
14719s,@program_transform_name@,$program_transform_name,;t t
14720s,@bindir@,$bindir,;t t
14721s,@sbindir@,$sbindir,;t t
14722s,@libexecdir@,$libexecdir,;t t
14723s,@datadir@,$datadir,;t t
14724s,@sysconfdir@,$sysconfdir,;t t
14725s,@sharedstatedir@,$sharedstatedir,;t t
14726s,@localstatedir@,$localstatedir,;t t
14727s,@libdir@,$libdir,;t t
14728s,@includedir@,$includedir,;t t
14729s,@oldincludedir@,$oldincludedir,;t t
14730s,@infodir@,$infodir,;t t
14731s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014732s,@build_alias@,$build_alias,;t t
14733s,@host_alias@,$host_alias,;t t
14734s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014735s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014736s,@ECHO_C@,$ECHO_C,;t t
14737s,@ECHO_N@,$ECHO_N,;t t
14738s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014739s,@LIBS@,$LIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014740s,@LIBEXT@,$LIBEXT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014741s,@OPTIONS@,$OPTIONS,;t t
14742s,@build@,$build,;t t
14743s,@build_cpu@,$build_cpu,;t t
14744s,@build_vendor@,$build_vendor,;t t
14745s,@build_os@,$build_os,;t t
14746s,@host@,$host,;t t
14747s,@host_cpu@,$host_cpu,;t t
14748s,@host_vendor@,$host_vendor,;t t
14749s,@host_os@,$host_os,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014750s,@SET_MAKE@,$SET_MAKE,;t t
14751s,@CC@,$CC,;t t
14752s,@CFLAGS@,$CFLAGS,;t t
14753s,@LDFLAGS@,$LDFLAGS,;t t
14754s,@CPPFLAGS@,$CPPFLAGS,;t t
14755s,@ac_ct_CC@,$ac_ct_CC,;t t
14756s,@EXEEXT@,$EXEEXT,;t t
14757s,@OBJEXT@,$OBJEXT,;t t
14758s,@CPP@,$CPP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014759s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014760s,@X_CFLAGS@,$X_CFLAGS,;t t
14761s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14762s,@X_LIBS@,$X_LIBS,;t t
14763s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14764s,@YACC@,$YACC,;t t
14765s,@LEX@,$LEX,;t t
14766s,@LEXLIB@,$LEXLIB,;t t
14767s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14768s,@XYACC@,$XYACC,;t t
14769s,@XLEX@,$XLEX,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000014770s,@LD@,$LD,;t t
14771s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014772s,@AR@,$AR,;t t
14773s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014774s,@RANLIB@,$RANLIB,;t t
14775s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014776s,@STRIP@,$STRIP,;t t
14777s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14778s,@WINDRES@,$WINDRES,;t t
14779s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014780s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14781s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14782s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14783s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000014784s,@LN@,$LN,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014785s,@C2MAN@,$C2MAN,;t t
14786s,@LDCONFIG@,$LDCONFIG,;t t
14787s,@LINT@,$LINT,;t t
14788s,@LINTFLAGS@,$LINTFLAGS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014789s,@JPEGLIB@,$JPEGLIB,;t t
14790s,@XLIB@,$XLIB,;t t
14791s,@XFILES@,$XFILES,;t t
14792s,@OPENGLFILES@,$OPENGLFILES,;t t
14793s,@GLU32FILES@,$GLU32FILES,;t t
14794s,@CURSESLIBS@,$CURSESLIBS,;t t
14795s,@CUPSLIBS@,$CUPSLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000014796s,@sane_devel@,$sane_devel,;t t
14797s,@SANELIBS@,$SANELIBS,;t t
14798s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014799s,@ft_devel@,$ft_devel,;t t
14800s,@ft_devel2@,$ft_devel2,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014801s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014802s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14803s,@ARTSLIBS@,$ARTSLIBS,;t t
14804s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014805s,@ALSALIBS@,$ALSALIBS,;t t
Alexandre Julliard04b5a862002-07-30 02:44:19 +000014806s,@NASLIBS@,$NASLIBS,;t t
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014807s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014808s,@DLLEXT@,$DLLEXT,;t t
14809s,@DLLFLAGS@,$DLLFLAGS,;t t
14810s,@DLLIBS@,$DLLIBS,;t t
14811s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14812s,@LDSHARED@,$LDSHARED,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014813s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014814s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014815s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014816s,@CRTLIBS@,$CRTLIBS,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014817s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014818s,@ALLOCA@,$ALLOCA,;t t
14819/@MAKE_RULES@/r $MAKE_RULES
14820s,@MAKE_RULES@,,;t t
14821/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
14822s,@MAKE_DLL_RULES@,,;t t
14823/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
14824s,@MAKE_PROG_RULES@,,;t t
14825CEOF
14826
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014827_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014828
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014829 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014830 # Split the substitutions into bite-sized pieces for seds with
14831 # small command number limits, like on Digital OSF/1 and HP-UX.
14832 ac_max_sed_lines=48
14833 ac_sed_frag=1 # Number of current file.
14834 ac_beg=1 # First line for current file.
14835 ac_end=$ac_max_sed_lines # Line after last line for current file.
14836 ac_more_lines=:
14837 ac_sed_cmds=
14838 while $ac_more_lines; do
14839 if test $ac_beg -gt 1; then
14840 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14841 else
14842 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14843 fi
14844 if test ! -s $tmp/subs.frag; then
14845 ac_more_lines=false
14846 else
14847 # The purpose of the label and of the branching condition is to
14848 # speed up the sed processing (if there are no `@' at all, there
14849 # is no need to browse any of the substitutions).
14850 # These are the two extra sed commands mentioned above.
14851 (echo ':t
14852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14853 if test -z "$ac_sed_cmds"; then
14854 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14855 else
14856 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14857 fi
14858 ac_sed_frag=`expr $ac_sed_frag + 1`
14859 ac_beg=$ac_end
14860 ac_end=`expr $ac_end + $ac_max_sed_lines`
14861 fi
14862 done
14863 if test -z "$ac_sed_cmds"; then
14864 ac_sed_cmds=cat
14865 fi
14866fi # test -n "$CONFIG_FILES"
14867
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014868_ACEOF
14869cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014870for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14871 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14872 case $ac_file in
14873 - | *:- | *:-:* ) # input from stdin
14874 cat >$tmp/stdin
14875 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14876 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14877 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14878 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14879 * ) ac_file_in=$ac_file.in ;;
14880 esac
14881
14882 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014883 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14884$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014885 X"$ac_file" : 'X\(//\)[^/]' \| \
14886 X"$ac_file" : 'X\(//\)$' \| \
14887 X"$ac_file" : 'X\(/\)' \| \
14888 . : '\(.\)' 2>/dev/null ||
14889echo X"$ac_file" |
14890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14891 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14892 /^X\(\/\/\)$/{ s//\1/; q; }
14893 /^X\(\/\).*/{ s//\1/; q; }
14894 s/.*/./; q'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014895 { case "$ac_dir" in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014896 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14897 *) as_incr_dir=.;;
14898esac
14899as_dummy="$ac_dir"
14900for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14901 case $as_mkdir_dir in
14902 # Skip DOS drivespec
14903 ?:) as_incr_dir=$as_mkdir_dir ;;
14904 *)
14905 as_incr_dir=$as_incr_dir/$as_mkdir_dir
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014906 test -d "$as_incr_dir" ||
14907 mkdir "$as_incr_dir" ||
14908 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14909echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14910 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014911 ;;
14912 esac
14913done; }
14914
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014915 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014916
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014917if test "$ac_dir" != .; then
14918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14919 # A "../" for each directory in $ac_dir_suffix.
14920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14921else
14922 ac_dir_suffix= ac_top_builddir=
14923fi
14924
14925case $srcdir in
14926 .) # No --srcdir option. We are building in place.
14927 ac_srcdir=.
14928 if test -z "$ac_top_builddir"; then
14929 ac_top_srcdir=.
14930 else
14931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14932 fi ;;
14933 [\\/]* | ?:[\\/]* ) # Absolute path.
14934 ac_srcdir=$srcdir$ac_dir_suffix;
14935 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014936 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14939esac
14940# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14941# absolute.
14942ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14943ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14944ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14945ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14946
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014947
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014948 case $INSTALL in
14949 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014950 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014951 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000014952
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014953 if test x"$ac_file" != x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014954 { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014955echo "$as_me: creating $ac_file" >&6;}
14956 rm -f "$ac_file"
14957 fi
14958 # Let's still pretend it is `configure' which instantiates (i.e., don't
14959 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014960 # /* config.h. Generated by config.status. */
14961 if test x"$ac_file" = x-; then
14962 configure_input=
14963 else
14964 configure_input="$ac_file. "
14965 fi
14966 configure_input=$configure_input"Generated from `echo $ac_file_in |
14967 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014968
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014969 # First look for the input files in the build tree, otherwise in the
14970 # src tree.
14971 ac_file_inputs=`IFS=:
14972 for f in $ac_file_in; do
14973 case $f in
14974 -) echo $tmp/stdin ;;
14975 [\\/$]*)
14976 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014977 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014978echo "$as_me: error: cannot find input file: $f" >&2;}
14979 { (exit 1); exit 1; }; }
14980 echo $f;;
14981 *) # Relative
14982 if test -f "$f"; then
14983 # Build tree
14984 echo $f
14985 elif test -f "$srcdir/$f"; then
14986 # Source tree
14987 echo $srcdir/$f
14988 else
14989 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014990 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014991echo "$as_me: error: cannot find input file: $f" >&2;}
14992 { (exit 1); exit 1; }; }
14993 fi;;
14994 esac
14995 done` || { (exit 1); exit 1; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014996_ACEOF
14997cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014998 sed "$ac_vpsub
14999$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015000_ACEOF
15001cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015002:t
15003/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15004s,@configure_input@,$configure_input,;t t
15005s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015006s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015007s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015008s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15009s,@builddir@,$ac_builddir,;t t
15010s,@abs_builddir@,$ac_abs_builddir,;t t
15011s,@top_builddir@,$ac_top_builddir,;t t
15012s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015013s,@INSTALL@,$ac_INSTALL,;t t
15014" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15015 rm -f $tmp/stdin
15016 if test x"$ac_file" != x-; then
15017 mv $tmp/out $ac_file
15018 else
15019 cat $tmp/out
15020 rm -f $tmp/out
15021 fi
15022
15023done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015024_ACEOF
15025cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015026
15027#
15028# CONFIG_HEADER section.
15029#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015030
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015031# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15032# NAME is the cpp macro being defined and VALUE is the value it is being given.
15033#
15034# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015035ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15036ac_dB='[ ].*$,\1#\2'
15037ac_dC=' '
15038ac_dD=',;t'
15039# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15040ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15041ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015042ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015043ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015044
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015045for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015046 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015047 case $ac_file in
15048 - | *:- | *:-:* ) # input from stdin
15049 cat >$tmp/stdin
15050 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15051 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15052 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15053 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15054 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015055 esac
15056
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015057 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015058echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015059
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015060 # First look for the input files in the build tree, otherwise in the
15061 # src tree.
15062 ac_file_inputs=`IFS=:
15063 for f in $ac_file_in; do
15064 case $f in
15065 -) echo $tmp/stdin ;;
15066 [\\/$]*)
15067 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015068 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015069echo "$as_me: error: cannot find input file: $f" >&2;}
15070 { (exit 1); exit 1; }; }
15071 echo $f;;
15072 *) # Relative
15073 if test -f "$f"; then
15074 # Build tree
15075 echo $f
15076 elif test -f "$srcdir/$f"; then
15077 # Source tree
15078 echo $srcdir/$f
15079 else
15080 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015081 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015082echo "$as_me: error: cannot find input file: $f" >&2;}
15083 { (exit 1); exit 1; }; }
15084 fi;;
15085 esac
15086 done` || { (exit 1); exit 1; }
15087 # Remove the trailing spaces.
15088 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015089
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015090_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015091
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015092# Transform confdefs.h into two sed scripts, `conftest.defines' and
15093# `conftest.undefs', that substitutes the proper values into
15094# config.h.in to produce config.h. The first handles `#define'
15095# templates, and the second `#undef' templates.
15096# And first: Protect against being on the right side of a sed subst in
15097# config.status. Protect against being in an unquoted here document
15098# in config.status.
15099rm -f conftest.defines conftest.undefs
15100# Using a here document instead of a string reduces the quoting nightmare.
15101# Putting comments in sed scripts is not portable.
15102#
15103# `end' is used to avoid that the second main sed command (meant for
15104# 0-ary CPP macros) applies to n-ary macro definitions.
15105# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015106cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015107s/[\\&,]/\\&/g
15108s,[\\$`],\\&,g
15109t clear
15110: clear
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015111s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015112t end
15113s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15114: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015115_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015116# If some macros were called several times there might be several times
15117# the same #defines, which is useless. Nevertheless, we may not want to
15118# sort them, since we want the *last* AC-DEFINE to be honored.
15119uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15120sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15121rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015122
15123# This sed command replaces #undef with comments. This is necessary, for
15124# example, in the case of _POSIX_SOURCE, which is predefined and required
15125# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015126cat >>conftest.undefs <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015127s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015128_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015129
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015130# Break up conftest.defines because some shells have a limit on the size
15131# of here documents, and old seds have small limits too (100 cmds).
15132echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15133echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15134echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15135echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015136rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015137while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015138do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015139 # Write a limited-size here document to $tmp/defines.sed.
15140 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15141 # Speed up: don't consider the non `#define' lines.
15142 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15143 # Work around the forget-to-reset-the-flag bug.
15144 echo 't clr' >>$CONFIG_STATUS
15145 echo ': clr' >>$CONFIG_STATUS
15146 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015147 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015148 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15149 rm -f $tmp/in
15150 mv $tmp/out $tmp/in
15151' >>$CONFIG_STATUS
15152 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15153 rm -f conftest.defines
15154 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015155done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015156rm -f conftest.defines
15157echo ' fi # egrep' >>$CONFIG_STATUS
15158echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015159
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015160# Break up conftest.undefs because some shells have a limit on the size
15161# of here documents, and old seds have small limits too (100 cmds).
15162echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15163rm -f conftest.tail
15164while grep . conftest.undefs >/dev/null
15165do
15166 # Write a limited-size here document to $tmp/undefs.sed.
15167 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15168 # Speed up: don't consider the non `#undef'
15169 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15170 # Work around the forget-to-reset-the-flag bug.
15171 echo 't clr' >>$CONFIG_STATUS
15172 echo ': clr' >>$CONFIG_STATUS
15173 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15174 echo 'CEOF
15175 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15176 rm -f $tmp/in
15177 mv $tmp/out $tmp/in
15178' >>$CONFIG_STATUS
15179 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15180 rm -f conftest.undefs
15181 mv conftest.tail conftest.undefs
15182done
15183rm -f conftest.undefs
15184
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015185cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015186 # Let's still pretend it is `configure' which instantiates (i.e., don't
15187 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015188 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015189 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015190 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015191 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015192 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015193 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015194 cat $tmp/in >>$tmp/config.h
15195 rm -f $tmp/in
15196 if test x"$ac_file" != x-; then
15197 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015198 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015199echo "$as_me: $ac_file is unchanged" >&6;}
15200 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015201 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15202$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015203 X"$ac_file" : 'X\(//\)[^/]' \| \
15204 X"$ac_file" : 'X\(//\)$' \| \
15205 X"$ac_file" : 'X\(/\)' \| \
15206 . : '\(.\)' 2>/dev/null ||
15207echo X"$ac_file" |
15208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15210 /^X\(\/\/\)$/{ s//\1/; q; }
15211 /^X\(\/\).*/{ s//\1/; q; }
15212 s/.*/./; q'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015213 { case "$ac_dir" in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015214 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15215 *) as_incr_dir=.;;
15216esac
15217as_dummy="$ac_dir"
15218for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15219 case $as_mkdir_dir in
15220 # Skip DOS drivespec
15221 ?:) as_incr_dir=$as_mkdir_dir ;;
15222 *)
15223 as_incr_dir=$as_incr_dir/$as_mkdir_dir
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015224 test -d "$as_incr_dir" ||
15225 mkdir "$as_incr_dir" ||
15226 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
15227echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
15228 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015229 ;;
15230 esac
15231done; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015232
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015233 rm -f $ac_file
15234 mv $tmp/config.h $ac_file
15235 fi
15236 else
15237 cat $tmp/config.h
15238 rm -f $tmp/config.h
15239 fi
15240done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015241_ACEOF
15242cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015243
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015244#
15245# CONFIG_COMMANDS section.
15246#
15247for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15248 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15249 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015250 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15251$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15252 X"$ac_dest" : 'X\(//\)[^/]' \| \
15253 X"$ac_dest" : 'X\(//\)$' \| \
15254 X"$ac_dest" : 'X\(/\)' \| \
15255 . : '\(.\)' 2>/dev/null ||
15256echo X"$ac_dest" |
15257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15259 /^X\(\/\/\)$/{ s//\1/; q; }
15260 /^X\(\/\).*/{ s//\1/; q; }
15261 s/.*/./; q'`
15262 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000015263
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015264if test "$ac_dir" != .; then
15265 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15266 # A "../" for each directory in $ac_dir_suffix.
15267 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015268else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015269 ac_dir_suffix= ac_top_builddir=
15270fi
15271
15272case $srcdir in
15273 .) # No --srcdir option. We are building in place.
15274 ac_srcdir=.
15275 if test -z "$ac_top_builddir"; then
15276 ac_top_srcdir=.
15277 else
15278 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15279 fi ;;
15280 [\\/]* | ?:[\\/]* ) # Absolute path.
15281 ac_srcdir=$srcdir$ac_dir_suffix;
15282 ac_top_srcdir=$srcdir ;;
15283 *) # Relative path.
15284 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15285 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15286esac
15287# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15288# absolute.
15289ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15290ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
15291ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15292ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15293
15294
15295 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15296echo "$as_me: executing $ac_dest commands" >&6;}
15297 case $ac_dest in
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015298 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
15299echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
Alexandre Julliardc345f7b2002-07-10 03:30:14 +000015300 dlls/advapi32/tests ) test -d "dlls/advapi32/tests" || ({ echo "$as_me:$LINENO: creating dlls/advapi32/tests" >&5
15301echo "$as_me: creating dlls/advapi32/tests" >&6;} && mkdir "dlls/advapi32/tests") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015302 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
15303echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
15304 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
15305echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
15306 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
15307echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
15308 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
15309echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
15310 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
15311echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
15312 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
15313echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
15314 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
15315echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
15316 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
15317echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
15318 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
15319echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
15320 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
15321echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
15322 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
15323echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
15324 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
15325echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
15326 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
15327echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
15328 dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:$LINENO: creating dlls/kernel/tests" >&5
15329echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;;
15330 dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:$LINENO: creating dlls/oleaut32/tests" >&5
15331echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;;
Juergen Schmiedc74a7912002-05-09 19:48:07 +000015332 dlls/shlwapi/tests ) test -d "dlls/shlwapi/tests" || ({ echo "$as_me:$LINENO: creating dlls/shlwapi/tests" >&5
15333echo "$as_me: creating dlls/shlwapi/tests" >&6;} && mkdir "dlls/shlwapi/tests") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015334 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
15335echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
15336 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
15337echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
15338 dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:$LINENO: creating dlls/user/tests" >&5
15339echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;;
15340 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
15341echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
Aric Stewartff9b9d42002-06-21 23:59:49 +000015342 dlls/wininet/tests ) test -d "dlls/wininet/tests" || ({ echo "$as_me:$LINENO: creating dlls/wininet/tests" >&5
15343echo "$as_me: creating dlls/wininet/tests" >&6;} && mkdir "dlls/wininet/tests") ;;
Alexandre Julliard9a68b7b2002-04-27 21:19:22 +000015344 dlls/winsock/tests ) test -d "dlls/winsock/tests" || ({ echo "$as_me:$LINENO: creating dlls/winsock/tests" >&5
15345echo "$as_me: creating dlls/winsock/tests" >&6;} && mkdir "dlls/winsock/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015346 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
15347echo "$as_me: creating files" >&6;} && mkdir "files") ;;
15348 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
15349echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
15350 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
15351echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
15352 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
15353echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015354 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
15355echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015356 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
15357echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
15358 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
15359echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
15360 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
15361echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
15362 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
15363echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
15364 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
15365echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
15366 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
15367echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015368 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
15369echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000015370 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
15371echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015372 programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5
15373echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015374 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
15375echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
15376 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
15377echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
15378 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
15379echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
15380 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
15381echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015382 esac
15383done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015384_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015385
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015386cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000015387
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015388{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015389_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015390chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015391ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015392
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015393
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015394# configure is writing to config.log, and then calls config.status.
15395# config.status does its own redirection, appending to config.log.
15396# Unfortunately, on DOS this fails, as config.log is still kept open
15397# by configure, so config.status won't be able to write to it; its
15398# output is simply discarded. So we exec the FD to /dev/null,
15399# effectively closing config.log, so it can be properly (re)opened and
15400# appended to by config.status. When coming back to configure, we
15401# need to make the FD available again.
15402if test "$no_create" != yes; then
15403 ac_cs_success=:
15404 exec 5>/dev/null
15405 $SHELL $CONFIG_STATUS || ac_cs_success=false
15406 exec 5>>config.log
15407 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15408 # would make configure fail if this is the last instruction.
15409 $ac_cs_success || { (exit 1); exit 1; }
15410fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015411
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015412
Ove Kaaven8b4431f1999-01-23 13:59:11 +000015413if test "$have_x" = "no"
15414then
15415 echo
15416 echo "*** Warning: X development files not found. Wine will be built without"
15417 echo "*** X support, which currently does not work, and would probably not be"
15418 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000015419 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000015420fi
15421
Alexandre Julliard638f1691999-01-17 16:32:32 +000015422if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
15423then
15424 echo
15425 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
15426 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +000015427fi
15428
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015429if test "$wine_cv_libc_reentrant" = "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000015430then
15431 echo
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015432 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
15433 echo "*** threading support. Consider upgrading libc to a more recent"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000015434 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000015435fi
15436
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000015437if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
15438then
15439 echo
15440 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
15441 echo "*** applications won't work properly. You should upgrade your X11 library."
15442fi
15443
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000015444if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000015445then
15446 echo
15447 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000015448 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
15449fi
15450
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015451if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000015452then
15453 echo
15454 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000015455 echo "*** thread-safety. To prevent crashes, OpenGL support has been removed."
Andreas Mohr18a9d742001-01-17 21:52:42 +000015456 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 +000015457 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +000015458fi
15459
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015460if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000015461then
15462 echo
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +000015463 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000015464 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
15465 echo "*** support before reporting bugs."
15466fi
15467
Marcus Meissner3ee02ba2001-04-30 18:18:50 +000015468if test "$wine_cv_warn_cups_h" = "yes"
15469then
15470 echo
15471 echo "*** Note: You have cups runtime libraries, but no development"
15472 echo "*** libraries. Install the cups-devel package or whichever package"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015473 echo "*** contains cups.h to enable CUPS support in Wine."
Marcus Meissner3ee02ba2001-04-30 18:18:50 +000015474fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000015475
Ian Pilcher563598d2001-05-16 20:56:05 +000015476if test "$wine_cv_msg_freetype" = "yes"
15477then
15478 echo
15479 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015480 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
15481 echo "*** freetype-devel package (or its equivalent on your distribution) to"
15482 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000015483fi
15484
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015485echo
Steffen Moeller1511bae1999-02-17 15:27:03 +000015486echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015487echo
15488