blob: aebe44601b29020658086af56206cb9912807145 [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 Julliarde8d0f972002-11-01 02:30:46 +00003# Generated by GNU Autoconf 2.54 for Wine 20021031.
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.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
Alexandre Julliard11af04e2002-10-10 03:48:04 +000031
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
40do
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
43 else
44 $as_unset $as_var
45 fi
46done
47
48# Required to use basename.
49if expr a : '\(a\)' >/dev/null 2>&1; then
50 as_expr=expr
51else
52 as_expr=false
53fi
54
55if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56 as_basename=basename
57else
58 as_basename=false
59fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000060
61
Alexandre Julliardf5818d22002-02-14 19:47:29 +000062# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000063as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000064$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
68echo X/"$0" |
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
72 s/.*/./; q'`
73
Alexandre Julliard11af04e2002-10-10 03:48:04 +000074
Alexandre Julliarddaa28862002-04-11 21:54:01 +000075# 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
Alexandre Julliard11af04e2002-10-10 03:48:04 +000088 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000089 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
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000143 CONFIG_SHELL=$as_dir/$as_base
144 export CONFIG_SHELL
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146 fi;;
147 esac
148 done
149done
150;;
151 esac
152
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
162 sed '
163 N
164 s,$,-,
165 : loop
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 t loop
168 s,-$,,
169 s,^['$as_cr_digits']*\n,,
170 ' >$as_me.lineno &&
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
174
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
178 . ./$as_me.lineno
179 # Exit status is that of the last command.
180 exit
181}
182
183
184case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
186' ECHO_T=' ' ;;
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000190
191if expr a : '\(a\)' >/dev/null 2>&1; then
192 as_expr=expr
193else
194 as_expr=false
195fi
196
197rm -f conf$$ conf$$.exe conf$$.file
198echo >conf$$.file
199if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
204 as_ln_s='cp -p'
205 else
206 as_ln_s='ln -s'
207 fi
208elif ln conf$$.file conf$$ 2>/dev/null; then
209 as_ln_s=ln
210else
211 as_ln_s='cp -p'
212fi
213rm -f conf$$ conf$$.exe conf$$.file
214
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000215if mkdir -p . 2>/dev/null; then
216 as_mkdir_p=:
217else
218 as_mkdir_p=false
219fi
220
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000221as_executable_p="test -f"
222
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000223# Sed expression to map a string onto a valid CPP name.
224as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000225
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000226# Sed expression to map a string onto a valid variable name.
227as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
228
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000229
230# IFS
231# We need space, tab and new line, in precisely that order.
232as_nl='
233'
234IFS=" $as_nl"
235
236# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000237$as_unset CDPATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000238
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000239
240# Name of the host.
241# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242# so uname gets run too.
243ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
244
245exec 6>&1
246
247#
248# Initializations.
249#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000250ac_default_prefix=/usr/local
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000251ac_config_libobj_dir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000252cross_compiling=no
253subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000254MFLAGS=
255MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000256SHELL=${CONFIG_SHELL-/bin/sh}
257
258# Maximum number of lines to put in a shell here document.
259# This variable seems obsolete. It should probably be removed, and
260# only ac_max_sed_lines should be used.
261: ${ac_max_here_lines=38}
262
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000263# Identity of this package.
264PACKAGE_NAME='Wine'
265PACKAGE_TARNAME='wine'
Alexandre Julliarde8d0f972002-11-01 02:30:46 +0000266PACKAGE_VERSION='20021031'
267PACKAGE_STRING='Wine 20021031'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000268PACKAGE_BUGREPORT=''
269
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000270ac_unique_file="server/atom.c"
271# Factoring default headers for most tests.
272ac_includes_default="\
273#include <stdio.h>
274#if HAVE_SYS_TYPES_H
275# include <sys/types.h>
276#endif
277#if HAVE_SYS_STAT_H
278# include <sys/stat.h>
279#endif
280#if STDC_HEADERS
281# include <stdlib.h>
282# include <stddef.h>
283#else
284# if HAVE_STDLIB_H
285# include <stdlib.h>
286# endif
287#endif
288#if HAVE_STRING_H
289# if !STDC_HEADERS && HAVE_MEMORY_H
290# include <memory.h>
291# endif
292# include <string.h>
293#endif
294#if HAVE_STRINGS_H
295# include <strings.h>
296#endif
297#if HAVE_INTTYPES_H
298# include <inttypes.h>
299#else
300# if HAVE_STDINT_H
301# include <stdint.h>
302# endif
303#endif
304#if HAVE_UNISTD_H
305# include <unistd.h>
306#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000307
Francois Gouget6f670b12002-10-10 17:54:27 +0000308ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBEXT OPTIONS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S LN C2MAN LDCONFIG LINT LINTFLAGS JPEGLIB EGREP XLIB XFILES OPENGLFILES GLU32FILES NASLIBS CURSESLIBS CUPSLIBS sane_devel SANELIBS SANEINCL ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED DLLWRAP ac_ct_DLLWRAP CROSSTEST CROSSCC DLLTOOL LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000309ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_PROG_RULES'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000310
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000311# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000312ac_init_help=
313ac_init_version=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000314# The variables have the same names as the options, with
315# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000316cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000317exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000318no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000319no_recursion=
320prefix=NONE
321program_prefix=NONE
322program_suffix=NONE
323program_transform_name=s,x,x,
324silent=
325site=
326srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000327verbose=
328x_includes=NONE
329x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000330
331# Installation directory options.
332# These are left unexpanded so users can "make install exec_prefix=/foo"
333# and all the variables that are supposed to be based on exec_prefix
334# by default will actually change.
335# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000336bindir='${exec_prefix}/bin'
337sbindir='${exec_prefix}/sbin'
338libexecdir='${exec_prefix}/libexec'
339datadir='${prefix}/share'
340sysconfdir='${prefix}/etc'
341sharedstatedir='${prefix}/com'
342localstatedir='${prefix}/var'
343libdir='${exec_prefix}/lib'
344includedir='${prefix}/include'
345oldincludedir='/usr/include'
346infodir='${prefix}/info'
347mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000348
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000349ac_prev=
350for ac_option
351do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000352 # If the previous option needs an argument, assign it.
353 if test -n "$ac_prev"; then
354 eval "$ac_prev=\$ac_option"
355 ac_prev=
356 continue
357 fi
358
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000359 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000360
361 # Accept the important Cygnus configure options, so we can diagnose typos.
362
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000363 case $ac_option in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000364
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
366 ac_prev=bindir ;;
367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000368 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000369
370 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000371 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000373 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000374
375 -cache-file | --cache-file | --cache-fil | --cache-fi \
376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
377 ac_prev=cache_file ;;
378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000380 cache_file=$ac_optarg ;;
381
382 --config-cache | -C)
383 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000384
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000385 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
386 ac_prev=datadir ;;
387 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
388 | --da=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000389 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000390
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000391 -disable-* | --disable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000392 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000393 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000394 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396 { (exit 1); exit 1; }; }
397 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398 eval "enable_$ac_feature=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000399
400 -enable-* | --enable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000401 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000402 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 case $ac_option in
408 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000409 *) ac_optarg=yes ;;
410 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000411 eval "enable_$ac_feature='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000412
413 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
414 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
415 | --exec | --exe | --ex)
416 ac_prev=exec_prefix ;;
417 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
418 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
419 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000420 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000421
422 -gas | --gas | --ga | --g)
423 # Obsolete; use --with-gas.
424 with_gas=yes ;;
425
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000426 -help | --help | --hel | --he | -h)
427 ac_init_help=long ;;
428 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
429 ac_init_help=recursive ;;
430 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
431 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000432
433 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000434 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000435 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000436 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000437
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000438 -includedir | --includedir | --includedi | --included | --include \
439 | --includ | --inclu | --incl | --inc)
440 ac_prev=includedir ;;
441 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
442 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000443 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000444
445 -infodir | --infodir | --infodi | --infod | --info | --inf)
446 ac_prev=infodir ;;
447 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000448 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000449
450 -libdir | --libdir | --libdi | --libd)
451 ac_prev=libdir ;;
452 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000453 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000454
455 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
456 | --libexe | --libex | --libe)
457 ac_prev=libexecdir ;;
458 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
459 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000460 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000461
462 -localstatedir | --localstatedir | --localstatedi | --localstated \
463 | --localstate | --localstat | --localsta | --localst \
464 | --locals | --local | --loca | --loc | --lo)
465 ac_prev=localstatedir ;;
466 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
467 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
468 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000469 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000470
471 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
472 ac_prev=mandir ;;
473 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000474 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000475
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000476 -nfp | --nfp | --nf)
477 # Obsolete; use --without-fp.
478 with_fp=no ;;
479
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000481 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000482 no_create=yes ;;
483
484 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
485 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
486 no_recursion=yes ;;
487
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000488 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
489 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
490 | --oldin | --oldi | --old | --ol | --o)
491 ac_prev=oldincludedir ;;
492 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
493 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
494 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000495 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000496
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
498 ac_prev=prefix ;;
499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000500 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000501
502 -program-prefix | --program-prefix | --program-prefi | --program-pref \
503 | --program-pre | --program-pr | --program-p)
504 ac_prev=program_prefix ;;
505 -program-prefix=* | --program-prefix=* | --program-prefi=* \
506 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000507 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000508
509 -program-suffix | --program-suffix | --program-suffi | --program-suff \
510 | --program-suf | --program-su | --program-s)
511 ac_prev=program_suffix ;;
512 -program-suffix=* | --program-suffix=* | --program-suffi=* \
513 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000514 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000515
516 -program-transform-name | --program-transform-name \
517 | --program-transform-nam | --program-transform-na \
518 | --program-transform-n | --program-transform- \
519 | --program-transform | --program-transfor \
520 | --program-transfo | --program-transf \
521 | --program-trans | --program-tran \
522 | --progr-tra | --program-tr | --program-t)
523 ac_prev=program_transform_name ;;
524 -program-transform-name=* | --program-transform-name=* \
525 | --program-transform-nam=* | --program-transform-na=* \
526 | --program-transform-n=* | --program-transform-=* \
527 | --program-transform=* | --program-transfor=* \
528 | --program-transfo=* | --program-transf=* \
529 | --program-trans=* | --program-tran=* \
530 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000531 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000532
533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
534 | -silent | --silent | --silen | --sile | --sil)
535 silent=yes ;;
536
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000537 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
538 ac_prev=sbindir ;;
539 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
540 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000541 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000542
543 -sharedstatedir | --sharedstatedir | --sharedstatedi \
544 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
545 | --sharedst | --shareds | --shared | --share | --shar \
546 | --sha | --sh)
547 ac_prev=sharedstatedir ;;
548 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
549 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
550 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
551 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000552 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000553
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000554 -site | --site | --sit)
555 ac_prev=site ;;
556 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000557 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000558
559 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
560 ac_prev=srcdir ;;
561 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000562 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000563
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000564 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
565 | --syscon | --sysco | --sysc | --sys | --sy)
566 ac_prev=sysconfdir ;;
567 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
568 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000569 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000570
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000571 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000572 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000573 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000574 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000575
576 -v | -verbose | --verbose | --verbos | --verbo | --verb)
577 verbose=yes ;;
578
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000579 -version | --version | --versio | --versi | --vers | -V)
580 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000581
582 -with-* | --with-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000583 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000584 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000585 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586 { echo "$as_me: error: invalid package name: $ac_package" >&2
587 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000588 ac_package=`echo $ac_package| sed 's/-/_/g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000589 case $ac_option in
590 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000591 *) ac_optarg=yes ;;
592 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000593 eval "with_$ac_package='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000594
595 -without-* | --without-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000596 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000597 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000598 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid package name: $ac_package" >&2
600 { (exit 1); exit 1; }; }
601 ac_package=`echo $ac_package | sed 's/-/_/g'`
602 eval "with_$ac_package=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000603
604 --x)
605 # Obsolete; use --with-x.
606 with_x=yes ;;
607
608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
609 | --x-incl | --x-inc | --x-in | --x-i)
610 ac_prev=x_includes ;;
611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000613 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000614
615 -x-libraries | --x-libraries | --x-librarie | --x-librari \
616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
617 ac_prev=x_libraries ;;
618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000620 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000621
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000622 -*) { echo "$as_me: error: unrecognized option: $ac_option
623Try \`$0 --help' for more information." >&2
624 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000625 ;;
626
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000627 *=*)
628 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
629 # Reject names that are not valid shell variable names.
630 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
631 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
632 { (exit 1); exit 1; }; }
633 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
634 eval "$ac_envvar='$ac_optarg'"
635 export $ac_envvar ;;
636
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000637 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000638 # FIXME: should be removed in autoconf 3.0.
639 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
640 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
641 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
642 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000643 ;;
644
645 esac
646done
647
648if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000649 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
650 { echo "$as_me: error: missing argument to $ac_option" >&2
651 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000652fi
653
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000654# Be sure to have absolute paths.
655for ac_var in exec_prefix prefix
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000656do
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000657 eval ac_val=$`echo $ac_var`
658 case $ac_val in
659 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000661 { (exit 1); exit 1; }; };;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000662 esac
663done
664
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000665# Be sure to have absolute paths.
666for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
667 localstatedir libdir includedir oldincludedir infodir mandir
668do
669 eval ac_val=$`echo $ac_var`
670 case $ac_val in
671 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000672 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000673 { (exit 1); exit 1; }; };;
674 esac
675done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000676
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000677# There might be people who depend on the old broken behavior: `$host'
678# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000679# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000680build=$build_alias
681host=$host_alias
682target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000683
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000684# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000685if test "x$host_alias" != x; then
686 if test "x$build_alias" = x; then
687 cross_compiling=maybe
688 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
689 If a cross compiler is detected then cross compile mode will be used." >&2
690 elif test "x$build_alias" != "x$host_alias"; then
691 cross_compiling=yes
692 fi
693fi
694
695ac_tool_prefix=
696test -n "$host_alias" && ac_tool_prefix=$host_alias-
697
698test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000699
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000700
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000701# Find the source files, if location was not specified.
702if test -z "$srcdir"; then
703 ac_srcdir_defaulted=yes
704 # Try the directory containing this script, then its parent.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000705 ac_confdir=`(dirname "$0") 2>/dev/null ||
706$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
707 X"$0" : 'X\(//\)[^/]' \| \
708 X"$0" : 'X\(//\)$' \| \
709 X"$0" : 'X\(/\)' \| \
710 . : '\(.\)' 2>/dev/null ||
711echo X"$0" |
712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
713 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
714 /^X\(\/\/\)$/{ s//\1/; q; }
715 /^X\(\/\).*/{ s//\1/; q; }
716 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000717 srcdir=$ac_confdir
718 if test ! -r $srcdir/$ac_unique_file; then
719 srcdir=..
720 fi
721else
722 ac_srcdir_defaulted=no
723fi
724if test ! -r $srcdir/$ac_unique_file; then
725 if test "$ac_srcdir_defaulted" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000726 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000727 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000728 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000730 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000731 fi
732fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000733(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
734 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
735 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000736srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
737ac_env_build_alias_set=${build_alias+set}
738ac_env_build_alias_value=$build_alias
739ac_cv_env_build_alias_set=${build_alias+set}
740ac_cv_env_build_alias_value=$build_alias
741ac_env_host_alias_set=${host_alias+set}
742ac_env_host_alias_value=$host_alias
743ac_cv_env_host_alias_set=${host_alias+set}
744ac_cv_env_host_alias_value=$host_alias
745ac_env_target_alias_set=${target_alias+set}
746ac_env_target_alias_value=$target_alias
747ac_cv_env_target_alias_set=${target_alias+set}
748ac_cv_env_target_alias_value=$target_alias
749ac_env_CC_set=${CC+set}
750ac_env_CC_value=$CC
751ac_cv_env_CC_set=${CC+set}
752ac_cv_env_CC_value=$CC
753ac_env_CFLAGS_set=${CFLAGS+set}
754ac_env_CFLAGS_value=$CFLAGS
755ac_cv_env_CFLAGS_set=${CFLAGS+set}
756ac_cv_env_CFLAGS_value=$CFLAGS
757ac_env_LDFLAGS_set=${LDFLAGS+set}
758ac_env_LDFLAGS_value=$LDFLAGS
759ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
760ac_cv_env_LDFLAGS_value=$LDFLAGS
761ac_env_CPPFLAGS_set=${CPPFLAGS+set}
762ac_env_CPPFLAGS_value=$CPPFLAGS
763ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
764ac_cv_env_CPPFLAGS_value=$CPPFLAGS
765ac_env_CPP_set=${CPP+set}
766ac_env_CPP_value=$CPP
767ac_cv_env_CPP_set=${CPP+set}
768ac_cv_env_CPP_value=$CPP
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000769
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000770#
771# Report the --help message.
772#
773if test "$ac_init_help" = "long"; then
774 # Omit some internal or obsolete options to make the list less imposing.
775 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000776 cat <<_ACEOF
Alexandre Julliarde8d0f972002-11-01 02:30:46 +0000777\`configure' configures Wine 20021031 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000778
779Usage: $0 [OPTION]... [VAR=VALUE]...
780
781To assign environment variables (e.g., CC, CFLAGS...), specify them as
782VAR=VALUE. See below for descriptions of some of the useful variables.
783
784Defaults for the options are specified in brackets.
785
786Configuration:
787 -h, --help display this help and exit
788 --help=short display options specific to this package
789 --help=recursive display the short help of all the included packages
790 -V, --version display version information and exit
791 -q, --quiet, --silent do not print \`checking...' messages
792 --cache-file=FILE cache test results in FILE [disabled]
793 -C, --config-cache alias for \`--cache-file=config.cache'
794 -n, --no-create do not create output files
795 --srcdir=DIR find the sources in DIR [configure dir or \`..']
796
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000797_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000798
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000799 cat <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000800Installation directories:
801 --prefix=PREFIX install architecture-independent files in PREFIX
802 [$ac_default_prefix]
803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
804 [PREFIX]
805
806By default, \`make install' will install all the files in
807\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
808an installation prefix other than \`$ac_default_prefix' using \`--prefix',
809for instance \`--prefix=\$HOME'.
810
811For better control, use the options below.
812
813Fine tuning of the installation directories:
814 --bindir=DIR user executables [EPREFIX/bin]
815 --sbindir=DIR system admin executables [EPREFIX/sbin]
816 --libexecdir=DIR program executables [EPREFIX/libexec]
817 --datadir=DIR read-only architecture-independent data [PREFIX/share]
818 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
819 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
820 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
821 --libdir=DIR object code libraries [EPREFIX/lib]
822 --includedir=DIR C header files [PREFIX/include]
823 --oldincludedir=DIR C header files for non-gcc [/usr/include]
824 --infodir=DIR info documentation [PREFIX/info]
825 --mandir=DIR man documentation [PREFIX/man]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000826_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000827
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000828 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000829
830X features:
831 --x-includes=DIR X include files are in DIR
832 --x-libraries=DIR X library files are in DIR
833
834System types:
835 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000837_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000838fi
839
840if test -n "$ac_init_help"; then
841 case $ac_init_help in
Alexandre Julliarde8d0f972002-11-01 02:30:46 +0000842 short | recursive ) echo "Configuration of Wine 20021031:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000843 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000844 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000845
846Optional Features:
847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Alexandre Julliardc728efc2002-10-02 02:34:09 +0000849 --disable-win16 do not include Win16 support
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000850 --disable-debug compile out all debugging messages
851 --disable-trace compile out TRACE messages
852 --enable-opengl force usage of OpenGL even if the latter is
853 thread-safe via pthread
854
855Optional Packages:
856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
858 --without-curses do not use curses
Alexandre Julliardfc01b722002-05-12 03:16:39 +0000859 --with-wine-tools=<dir> use Wine tools from directory <dir>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000860 --with-x use the X Window System
861
862Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
869 CPP C preprocessor
870
871Use these variables to override the choices made by `configure' or to help
872it to find libraries and programs with nonstandard names/locations.
873
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000874_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000875fi
876
877if test "$ac_init_help" = "recursive"; then
878 # If there are subdirs, report their specific --help.
879 ac_popdir=`pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881 test -d $ac_dir || continue
882 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000883
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000884if test "$ac_dir" != .; then
885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886 # A "../" for each directory in $ac_dir_suffix.
887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888else
889 ac_dir_suffix= ac_top_builddir=
890fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000891
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000892case $srcdir in
893 .) # No --srcdir option. We are building in place.
894 ac_srcdir=.
895 if test -z "$ac_top_builddir"; then
896 ac_top_srcdir=.
897 else
898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899 fi ;;
900 [\\/]* | ?:[\\/]* ) # Absolute path.
901 ac_srcdir=$srcdir$ac_dir_suffix;
902 ac_top_srcdir=$srcdir ;;
903 *) # Relative path.
904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906esac
907# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908# absolute.
909ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000910ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000911ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
912ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
913
914 cd $ac_dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000915 # Check for guested configure; otherwise get Cygnus style configure.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000916 if test -f $ac_srcdir/configure.gnu; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000917 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000918 $SHELL $ac_srcdir/configure.gnu --help=recursive
919 elif test -f $ac_srcdir/configure; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000920 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000921 $SHELL $ac_srcdir/configure --help=recursive
922 elif test -f $ac_srcdir/configure.ac ||
923 test -f $ac_srcdir/configure.in; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000924 echo
925 $ac_configure --help
926 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000928 fi
929 cd $ac_popdir
930 done
931fi
932
933test -n "$ac_init_help" && exit 0
934if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000935 cat <<\_ACEOF
Alexandre Julliarde8d0f972002-11-01 02:30:46 +0000936Wine configure 20021031
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000937generated by GNU Autoconf 2.54
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000938
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000939Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000940Free Software Foundation, Inc.
941This configure script is free software; the Free Software Foundation
942gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000943_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000944 exit 0
945fi
946exec 5>config.log
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000947cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000948This file contains any messages produced by compilers while
949running configure, to aid debugging if configure makes a mistake.
950
Alexandre Julliarde8d0f972002-11-01 02:30:46 +0000951It was created by Wine $as_me 20021031, which was
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000952generated by GNU Autoconf 2.54. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000953
954 $ $0 $@
955
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000956_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000957{
958cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000959## --------- ##
960## Platform. ##
961## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000962
963hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
964uname -m = `(uname -m) 2>/dev/null || echo unknown`
965uname -r = `(uname -r) 2>/dev/null || echo unknown`
966uname -s = `(uname -s) 2>/dev/null || echo unknown`
967uname -v = `(uname -v) 2>/dev/null || echo unknown`
968
969/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
970/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
971
972/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
973/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
974/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
975hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
976/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
977/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
978/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
979
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000980_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000981
982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983for as_dir in $PATH
984do
985 IFS=$as_save_IFS
986 test -z "$as_dir" && as_dir=.
987 echo "PATH: $as_dir"
988done
989
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000990} >&5
991
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000992cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000993
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000994
995## ----------- ##
996## Core tests. ##
997## ----------- ##
998
999_ACEOF
1000
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001001
1002# Keep a trace of the command line.
1003# Strip out --no-create and --no-recursion so they do not pile up.
1004# Also quote any args containing shell meta-characters.
1005ac_configure_args=
1006ac_sep=
1007for ac_arg
1008do
1009 case $ac_arg in
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001011 | --no-cr | --no-c | -n ) continue ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 continue ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001015 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001016 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1017 esac
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001018 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001019 # Get rid of the leading space.
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001020 ac_sep=" "
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001021done
1022
1023# When interrupted or exit'd, cleanup temporary files, and complete
1024# config.log. We remove comments because anyway the quotes in there
1025# would cause problems or look ugly.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001026# WARNING: Be sure not to use single quotes in there, as some shells,
1027# such as our DU 5.0 friend, will then `close' the trap.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001028trap 'exit_status=$?
1029 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001030 {
1031 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001032
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001033 cat <<\_ASBOX
1034## ---------------- ##
1035## Cache variables. ##
1036## ---------------- ##
1037_ASBOX
1038 echo
1039 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001040{
1041 (set) 2>&1 |
1042 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1043 *ac_space=\ *)
1044 sed -n \
1045 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1047 ;;
1048 *)
1049 sed -n \
1050 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1051 ;;
1052 esac;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001053}
1054 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001055
1056 cat <<\_ASBOX
1057## ----------------- ##
1058## Output variables. ##
1059## ----------------- ##
1060_ASBOX
1061 echo
1062 for ac_var in $ac_subst_vars
1063 do
1064 eval ac_val=$`echo $ac_var`
1065 echo "$ac_var='"'"'$ac_val'"'"'"
1066 done | sort
1067 echo
1068
1069 if test -n "$ac_subst_files"; then
1070 cat <<\_ASBOX
1071## ------------- ##
1072## Output files. ##
1073## ------------- ##
1074_ASBOX
1075 echo
1076 for ac_var in $ac_subst_files
1077 do
1078 eval ac_val=$`echo $ac_var`
1079 echo "$ac_var='"'"'$ac_val'"'"'"
1080 done | sort
1081 echo
1082 fi
1083
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001084 if test -s confdefs.h; then
1085 cat <<\_ASBOX
1086## ----------- ##
1087## confdefs.h. ##
1088## ----------- ##
1089_ASBOX
1090 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001091 sed "/^$/d" confdefs.h | sort
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001092 echo
1093 fi
1094 test "$ac_signal" != 0 &&
1095 echo "$as_me: caught signal $ac_signal"
1096 echo "$as_me: exit $exit_status"
1097 } >&5
1098 rm -f core core.* *.core &&
1099 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001100 exit $exit_status
1101 ' 0
1102for ac_signal in 1 2 13 15; do
1103 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1104done
1105ac_signal=0
1106
1107# confdefs.h avoids OS command line length limits that DEFS can exceed.
1108rm -rf conftest* confdefs.h
1109# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1110echo >confdefs.h
1111
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001112# Predefined preprocessor variables.
1113
1114cat >>confdefs.h <<_ACEOF
1115#define PACKAGE_NAME "$PACKAGE_NAME"
1116_ACEOF
1117
1118
1119cat >>confdefs.h <<_ACEOF
1120#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1121_ACEOF
1122
1123
1124cat >>confdefs.h <<_ACEOF
1125#define PACKAGE_VERSION "$PACKAGE_VERSION"
1126_ACEOF
1127
1128
1129cat >>confdefs.h <<_ACEOF
1130#define PACKAGE_STRING "$PACKAGE_STRING"
1131_ACEOF
1132
1133
1134cat >>confdefs.h <<_ACEOF
1135#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1136_ACEOF
1137
1138
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001139# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001140# Prefer explicitly selected file to automatically selected ones.
1141if test -z "$CONFIG_SITE"; then
1142 if test "x$prefix" != xNONE; then
1143 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1144 else
1145 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1146 fi
1147fi
1148for ac_site_file in $CONFIG_SITE; do
1149 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001150 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001151echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001152 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001153 . "$ac_site_file"
1154 fi
1155done
1156
1157if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001158 # Some versions of bash will fail to source /dev/null (special
1159 # files actually), so we avoid doing that.
1160 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001161 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001162echo "$as_me: loading cache $cache_file" >&6;}
1163 case $cache_file in
1164 [\\/]* | ?:[\\/]* ) . $cache_file;;
1165 *) . ./$cache_file;;
1166 esac
1167 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001168else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001169 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001170echo "$as_me: creating cache $cache_file" >&6;}
1171 >$cache_file
1172fi
1173
1174# Check that the precious variables saved in the cache have kept the same
1175# value.
1176ac_cache_corrupted=false
1177for ac_var in `(set) 2>&1 |
1178 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1179 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1180 eval ac_new_set=\$ac_env_${ac_var}_set
1181 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1182 eval ac_new_val="\$ac_env_${ac_var}_value"
1183 case $ac_old_set,$ac_new_set in
1184 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001185 { 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 +00001186echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1187 ac_cache_corrupted=: ;;
1188 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001189 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001190echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1191 ac_cache_corrupted=: ;;
1192 ,);;
1193 *)
1194 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001195 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001196echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001197 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001198echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001199 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001200echo "$as_me: current value: $ac_new_val" >&2;}
1201 ac_cache_corrupted=:
1202 fi;;
1203 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001204 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001205 if test "$ac_new_set" = set; then
1206 case $ac_new_val in
1207 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001208 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1209 *) ac_arg=$ac_var=$ac_new_val ;;
1210 esac
1211 case " $ac_configure_args " in
1212 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1213 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001214 esac
1215 fi
1216done
1217if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001218 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001219echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001220 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001221echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1222 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001223fi
1224
1225ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001226ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1229ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001230
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001256
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001257
1258 ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001259
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001260ac_aux_dir=
1261for ac_dir in tools $srcdir/tools; do
1262 if test -f $ac_dir/install-sh; then
1263 ac_aux_dir=$ac_dir
1264 ac_install_sh="$ac_aux_dir/install-sh -c"
1265 break
1266 elif test -f $ac_dir/install.sh; then
1267 ac_aux_dir=$ac_dir
1268 ac_install_sh="$ac_aux_dir/install.sh -c"
1269 break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001270 elif test -f $ac_dir/shtool; then
1271 ac_aux_dir=$ac_dir
1272 ac_install_sh="$ac_aux_dir/shtool install -c"
1273 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001274 fi
1275done
1276if test -z "$ac_aux_dir"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001277 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001278echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1279 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001280fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001281ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1282ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1283ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Howard Abrams13277481999-07-10 13:16:29 +00001284
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001285
1286
Alexandre Julliard7bf07d12002-08-03 00:25:59 +00001287LIBEXT="so"
1288
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001289
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001290# Check whether --enable-win16 or --disable-win16 was given.
1291if test "${enable_win16+set}" = set; then
1292 enableval="$enable_win16"
1293
1294fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001295# Check whether --enable-debug or --disable-debug was given.
1296if test "${enable_debug+set}" = set; then
1297 enableval="$enable_debug"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001298
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001299fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001300# Check whether --enable-trace or --disable-trace was given.
1301if test "${enable_trace+set}" = set; then
1302 enableval="$enable_trace"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001303
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001304fi;
1305# Check whether --enable-opengl or --disable-opengl was given.
1306if test "${enable_opengl+set}" = set; then
1307 enableval="$enable_opengl"
1308
1309fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001310
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001311# Check whether --with-curses or --without-curses was given.
1312if test "${with_curses+set}" = set; then
1313 withval="$with_curses"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001314
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001315fi;
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001316
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001317# Check whether --with-wine-tools or --without-wine-tools was given.
1318if test "${with_wine_tools+set}" = set; then
1319 withval="$with_wine_tools"
1320
1321fi;
1322
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001323
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001324WIN16_FILES="\$(WIN16_FILES)"
1325
1326WIN16_INSTALL="\$(WIN16_INSTALL)"
1327
1328if test "x$enable_win16" = "xno"
1329then
1330 WIN16_FILES=""
1331 WIN16_INSTALL=""
1332fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001333if test "x$enable_debug" = "xno"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001334then
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001335
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001336cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001337#define NO_DEBUG_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001338_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001339
1340fi
1341if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001342then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001343
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001344cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001345#define NO_TRACE_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001346_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001347
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001348fi
1349
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001350
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001351# Make sure we can run config.sub.
1352$ac_config_sub sun4 >/dev/null 2>&1 ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001353 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001354echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001356
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001357echo "$as_me:$LINENO: checking build system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001358echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359if test "${ac_cv_build+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001361else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001362 ac_cv_build_alias=$build_alias
1363test -z "$ac_cv_build_alias" &&
1364 ac_cv_build_alias=`$ac_config_guess`
1365test -z "$ac_cv_build_alias" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001366 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001367echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368 { (exit 1); exit 1; }; }
1369ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001370 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001372 { (exit 1); exit 1; }; }
1373
1374fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001375echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001376echo "${ECHO_T}$ac_cv_build" >&6
1377build=$ac_cv_build
1378build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001382
1383echo "$as_me:$LINENO: checking host system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001384echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385if test "${ac_cv_host+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1387else
1388 ac_cv_host_alias=$host_alias
1389test -z "$ac_cv_host_alias" &&
1390 ac_cv_host_alias=$ac_cv_build_alias
1391ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001393echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1395
1396fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001397echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001398echo "${ECHO_T}$ac_cv_host" >&6
1399host=$ac_cv_host
1400host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001404
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001405echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001406echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1407set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1408if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001411 cat >conftest.make <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001412all:
1413 @echo 'ac_maketemp="${MAKE}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001414_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001415# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001416eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001417if test -n "$ac_maketemp"; then
1418 eval ac_cv_prog_make_${ac_make}_set=yes
1419else
1420 eval ac_cv_prog_make_${ac_make}_set=no
1421fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001422rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001423fi
1424if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001425 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001426echo "${ECHO_T}yes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001427 SET_MAKE=
1428else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001429 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001430echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001431 SET_MAKE="MAKE=${MAKE-make}"
1432fi
1433
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001434ac_ext=c
1435ac_cpp='$CPP $CPPFLAGS'
1436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1438ac_compiler_gnu=$ac_cv_c_compiler_gnu
1439if test -n "$ac_tool_prefix"; then
1440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1441set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001442echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444if test "${ac_cv_prog_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001446else
1447 if test -n "$CC"; then
1448 ac_cv_prog_CC="$CC" # Let the user override the test.
1449else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451for as_dir in $PATH
1452do
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 break 2
1460 fi
1461done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001462done
1463
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001464fi
1465fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001466CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001467if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001468 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001469echo "${ECHO_T}$CC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001470else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001471 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001472echo "${ECHO_T}no" >&6
1473fi
1474
1475fi
1476if test -z "$ac_cv_prog_CC"; then
1477 ac_ct_CC=$CC
1478 # Extract the first word of "gcc", so it can be a program name with args.
1479set dummy gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001480echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484else
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489for as_dir in $PATH
1490do
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_ac_ct_CC="gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1498 fi
1499done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001500done
1501
1502fi
1503fi
1504ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001507echo "${ECHO_T}$ac_ct_CC" >&6
1508else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001509 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001510echo "${ECHO_T}no" >&6
1511fi
1512
1513 CC=$ac_ct_CC
1514else
1515 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001516fi
1517
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001518if test -z "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001519 if test -n "$ac_tool_prefix"; then
1520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1521set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001522echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001526else
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1529else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531for as_dir in $PATH
1532do
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_CC="${ac_tool_prefix}cc"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 break 2
1540 fi
1541done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001542done
1543
1544fi
1545fi
1546CC=$ac_cv_prog_CC
1547if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001548 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001549echo "${ECHO_T}$CC" >&6
1550else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001551 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001552echo "${ECHO_T}no" >&6
1553fi
1554
1555fi
1556if test -z "$ac_cv_prog_CC"; then
1557 ac_ct_CC=$CC
1558 # Extract the first word of "cc", so it can be a program name with args.
1559set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001560echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564else
1565 if test -n "$ac_ct_CC"; then
1566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1567else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569for as_dir in $PATH
1570do
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_ac_ct_CC="cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 break 2
1578 fi
1579done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001580done
1581
1582fi
1583fi
1584ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001586 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001587echo "${ECHO_T}$ac_ct_CC" >&6
1588else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001589 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001590echo "${ECHO_T}no" >&6
1591fi
1592
1593 CC=$ac_ct_CC
1594else
1595 CC="$ac_cv_prog_CC"
1596fi
1597
1598fi
1599if test -z "$CC"; then
1600 # Extract the first word of "cc", so it can be a program name with args.
1601set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001602echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604if test "${ac_cv_prog_CC+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606else
1607 if test -n "$CC"; then
1608 ac_cv_prog_CC="$CC" # Let the user override the test.
1609else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001610 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612for as_dir in $PATH
1613do
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1619 ac_prog_rejected=yes
1620 continue
1621 fi
1622 ac_cv_prog_CC="cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1625 fi
1626done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001627done
1628
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001629if test $ac_prog_rejected = yes; then
1630 # We found a bogon in the path, so make sure we never use it.
1631 set dummy $ac_cv_prog_CC
1632 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001633 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001634 # We chose a different compiler from the bogus one.
1635 # However, it has the same basename, so the bogon will be chosen
1636 # first if we set CC to just the basename; use the full file name.
1637 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001639 fi
1640fi
1641fi
1642fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001643CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001644if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001645 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001646echo "${ECHO_T}$CC" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001647else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001648 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001649echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001650fi
1651
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001652fi
1653if test -z "$CC"; then
1654 if test -n "$ac_tool_prefix"; then
1655 for ac_prog in cl
1656 do
1657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1658set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001659echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661if test "${ac_cv_prog_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001663else
1664 if test -n "$CC"; then
1665 ac_cv_prog_CC="$CC" # Let the user override the test.
1666else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668for as_dir in $PATH
1669do
1670 IFS=$as_save_IFS
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 break 2
1677 fi
1678done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001679done
1680
Eric Pouech18ad24a2000-01-16 22:16:33 +00001681fi
1682fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001683CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00001684if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001685 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001686echo "${ECHO_T}$CC" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001687else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001688 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001689echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001690fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001691
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001692 test -n "$CC" && break
1693 done
1694fi
1695if test -z "$CC"; then
1696 ac_ct_CC=$CC
1697 for ac_prog in cl
1698do
1699 # Extract the first word of "$ac_prog", so it can be a program name with args.
1700set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001701echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710for as_dir in $PATH
1711do
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="$ac_prog"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
1719 fi
1720done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001721done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001722
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001723fi
1724fi
1725ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001728echo "${ECHO_T}$ac_ct_CC" >&6
1729else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001730 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001731echo "${ECHO_T}no" >&6
1732fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001733
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001734 test -n "$ac_ct_CC" && break
1735done
Eric Pouech18ad24a2000-01-16 22:16:33 +00001736
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001737 CC=$ac_ct_CC
1738fi
1739
1740fi
1741
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001742
1743test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1744echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001745 { (exit 1); exit 1; }; }
1746
1747# Provide some information about the compiler.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001748echo "$as_me:$LINENO:" \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001749 "checking for C compiler version" >&5
1750ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001751{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001752 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001755 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001756{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001757 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001760 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001761{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001762 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001765 (exit $ac_status); }
1766
1767cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001768#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001769#include "confdefs.h"
Eric Pouech18ad24a2000-01-16 22:16:33 +00001770
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001771int
1772main ()
1773{
1774
1775 ;
1776 return 0;
1777}
1778_ACEOF
1779ac_clean_files_save=$ac_clean_files
1780ac_clean_files="$ac_clean_files a.out a.exe"
1781# Try to create an executable without -o first, disregard a.out.
1782# It will help us diagnose broken compilers, and finding out an intuition
1783# of exeext.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001784echo "$as_me:$LINENO: checking for C compiler default output" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001785echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1786ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001787if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001788 (eval $ac_link_default) 2>&5
1789 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794# resort.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001795
1796# Be careful to initialize this variable, since it used to be cached.
1797# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798ac_cv_exeext=
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001799for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1800 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001801 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001803 a.out ) # We found the default executable, but exeext='' is most
1804 # certainly right.
1805 break;;
1806 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1807 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1808 export ac_cv_exeext
1809 break;;
1810 * ) break;;
1811 esac
1812done
1813else
1814 echo "$as_me: failed program was:" >&5
1815cat conftest.$ac_ext >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001816{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1817check \`config.log' for details." >&5
1818echo "$as_me: error: C compiler cannot create executables
1819check \`config.log' for details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001820 { (exit 77); exit 77; }; }
1821fi
1822
1823ac_exeext=$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001824echo "$as_me:$LINENO: result: $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001825echo "${ECHO_T}$ac_file" >&6
1826
1827# Check the compiler produces executables we can run. If not, either
1828# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001829echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001830echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1831# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1832# If not cross compiling, check that we can run a simple program.
1833if test "$cross_compiling" != yes; then
1834 if { ac_try='./$ac_file'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001836 (eval $ac_try) 2>&5
1837 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001839 (exit $ac_status); }; }; then
1840 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001841 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001842 if test "$cross_compiling" = maybe; then
1843 cross_compiling=yes
1844 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001845 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001846If you meant to cross compile, use \`--host'." >&5
1847echo "$as_me: error: cannot run C compiled programs.
1848If you meant to cross compile, use \`--host'." >&2;}
1849 { (exit 1); exit 1; }; }
1850 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001851 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001852fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001853echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001854echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001855
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001856rm -f a.out a.exe conftest$ac_cv_exeext
1857ac_clean_files=$ac_clean_files_save
1858# Check the compiler produces executables we can run. If not, either
1859# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001860echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001861echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001862echo "$as_me:$LINENO: result: $cross_compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001863echo "${ECHO_T}$cross_compiling" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001864
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001865echo "$as_me:$LINENO: checking for suffix of executables" >&5
1866echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001868 (eval $ac_link) 2>&5
1869 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001871 (exit $ac_status); }; then
1872 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1873# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1874# work properly (i.e., refer to `conftest.exe'), while it won't with
1875# `rm'.
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001876for ac_file in conftest.exe conftest conftest.*; do
1877 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001878 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001880 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1881 export ac_cv_exeext
1882 break;;
1883 * ) break;;
1884 esac
1885done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001886else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001887 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1888echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001889 { (exit 1); exit 1; }; }
1890fi
1891
1892rm -f conftest$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001893echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001894echo "${ECHO_T}$ac_cv_exeext" >&6
1895
1896rm -f conftest.$ac_ext
1897EXEEXT=$ac_cv_exeext
1898ac_exeext=$EXEEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001899echo "$as_me:$LINENO: checking for suffix of object files" >&5
1900echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001901if test "${ac_cv_objext+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903else
1904 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001905#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001906#include "confdefs.h"
1907
1908int
1909main ()
1910{
1911
1912 ;
1913 return 0;
1914}
1915_ACEOF
1916rm -f conftest.o conftest.obj
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001918 (eval $ac_compile) 2>&5
1919 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001921 (exit $ac_status); }; then
1922 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1923 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001925 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1926 break;;
1927 esac
1928done
1929else
1930 echo "$as_me: failed program was:" >&5
1931cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001932{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1933echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001934 { (exit 1); exit 1; }; }
1935fi
1936
1937rm -f conftest.$ac_cv_objext conftest.$ac_ext
1938fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001939echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001940echo "${ECHO_T}$ac_cv_objext" >&6
1941OBJEXT=$ac_cv_objext
1942ac_objext=$OBJEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001943echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001944echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1945if test "${ac_cv_c_compiler_gnu+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947else
1948 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001949#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001950#include "confdefs.h"
1951
1952int
1953main ()
1954{
1955#ifndef __GNUC__
1956 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001957#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001958
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001959 ;
1960 return 0;
1961}
1962_ACEOF
1963rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001965 (eval $ac_compile) 2>&5
1966 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001968 (exit $ac_status); } &&
1969 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001971 (eval $ac_try) 2>&5
1972 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001974 (exit $ac_status); }; }; then
1975 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00001976else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001977 echo "$as_me: failed program was:" >&5
1978cat conftest.$ac_ext >&5
1979ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00001980fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001981rm -f conftest.$ac_objext conftest.$ac_ext
1982ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00001983
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001984fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001985echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001986echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1987GCC=`test $ac_compiler_gnu = yes && echo yes`
1988ac_test_CFLAGS=${CFLAGS+set}
1989ac_save_CFLAGS=$CFLAGS
1990CFLAGS="-g"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001991echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001992echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1993if test "${ac_cv_prog_cc_g+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001995else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001996 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001997#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001998#include "confdefs.h"
1999
2000int
2001main ()
2002{
2003
2004 ;
2005 return 0;
2006}
2007_ACEOF
2008rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002010 (eval $ac_compile) 2>&5
2011 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002013 (exit $ac_status); } &&
2014 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002016 (eval $ac_try) 2>&5
2017 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002019 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002020 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002021else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002022 echo "$as_me: failed program was:" >&5
2023cat conftest.$ac_ext >&5
2024ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002025fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002026rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002027fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002028echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002029echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00002030if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002031 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002032elif test $ac_cv_prog_cc_g = yes; then
2033 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002034 CFLAGS="-g -O2"
2035 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002036 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002037 fi
2038else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002039 if test "$GCC" = yes; then
2040 CFLAGS="-O2"
2041 else
2042 CFLAGS=
2043 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002044fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002045echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2046echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2047if test "${ac_cv_prog_cc_stdc+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2049else
2050 ac_cv_prog_cc_stdc=no
2051ac_save_CC=$CC
2052cat >conftest.$ac_ext <<_ACEOF
2053#line $LINENO "configure"
2054#include "confdefs.h"
2055#include <stdarg.h>
2056#include <stdio.h>
2057#include <sys/types.h>
2058#include <sys/stat.h>
2059/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2060struct buf { int x; };
2061FILE * (*rcsopen) (struct buf *, struct stat *, int);
2062static char *e (p, i)
2063 char **p;
2064 int i;
2065{
2066 return p[i];
2067}
2068static char *f (char * (*g) (char **, int), char **p, ...)
2069{
2070 char *s;
2071 va_list v;
2072 va_start (v,p);
2073 s = g (p, va_arg (v,int));
2074 va_end (v);
2075 return s;
2076}
2077int test (int i, double x);
2078struct s1 {int (*f) (int a);};
2079struct s2 {int (*f) (double a);};
2080int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2081int argc;
2082char **argv;
2083int
2084main ()
2085{
2086return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091# Don't try gcc -ansi; that turns off useful extensions and
2092# breaks some systems' header files.
2093# AIX -qlanglvl=ansi
2094# Ultrix and OSF/1 -std1
2095# HP-UX 10.20 and later -Ae
2096# HP-UX older versions -Aa -D_HPUX_SOURCE
2097# SVR4 -Xc -D__EXTENSIONS__
2098for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2099do
2100 CC="$ac_save_CC $ac_arg"
2101 rm -f conftest.$ac_objext
2102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103 (eval $ac_compile) 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); } &&
2107 { ac_try='test -s conftest.$ac_objext'
2108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109 (eval $ac_try) 2>&5
2110 ac_status=$?
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }; }; then
2113 ac_cv_prog_cc_stdc=$ac_arg
2114break
2115else
2116 echo "$as_me: failed program was:" >&5
2117cat conftest.$ac_ext >&5
2118fi
2119rm -f conftest.$ac_objext
2120done
2121rm -f conftest.$ac_ext conftest.$ac_objext
2122CC=$ac_save_CC
2123
2124fi
2125
2126case "x$ac_cv_prog_cc_stdc" in
2127 x|xno)
2128 echo "$as_me:$LINENO: result: none needed" >&5
2129echo "${ECHO_T}none needed" >&6 ;;
2130 *)
2131 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2132echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2133 CC="$CC $ac_cv_prog_cc_stdc" ;;
2134esac
2135
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002136# Some people use a C++ compiler to compile C. Since we use `exit',
2137# in C++ we need to declare it. In case someone uses the same compiler
2138# for both compiling C and C++ we need to have the C++ compiler decide
2139# the declaration of exit, since it's the most demanding environment.
2140cat >conftest.$ac_ext <<_ACEOF
2141#ifndef __cplusplus
2142 choke me
2143#endif
2144_ACEOF
2145rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002147 (eval $ac_compile) 2>&5
2148 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002150 (exit $ac_status); } &&
2151 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002153 (eval $ac_try) 2>&5
2154 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002156 (exit $ac_status); }; }; then
2157 for ac_declaration in \
2158 ''\
2159 '#include <stdlib.h>' \
2160 'extern "C" void std::exit (int) throw (); using std::exit;' \
2161 'extern "C" void std::exit (int); using std::exit;' \
2162 'extern "C" void exit (int) throw ();' \
2163 'extern "C" void exit (int);' \
2164 'void exit (int);'
2165do
2166 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002167#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002168#include "confdefs.h"
2169#include <stdlib.h>
2170$ac_declaration
2171int
2172main ()
2173{
2174exit (42);
2175 ;
2176 return 0;
2177}
2178_ACEOF
2179rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002181 (eval $ac_compile) 2>&5
2182 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002184 (exit $ac_status); } &&
2185 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002187 (eval $ac_try) 2>&5
2188 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002190 (exit $ac_status); }; }; then
2191 :
2192else
2193 echo "$as_me: failed program was:" >&5
2194cat conftest.$ac_ext >&5
2195continue
2196fi
2197rm -f conftest.$ac_objext conftest.$ac_ext
2198 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002199#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002200#include "confdefs.h"
2201$ac_declaration
2202int
2203main ()
2204{
2205exit (42);
2206 ;
2207 return 0;
2208}
2209_ACEOF
2210rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002212 (eval $ac_compile) 2>&5
2213 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002215 (exit $ac_status); } &&
2216 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002218 (eval $ac_try) 2>&5
2219 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002221 (exit $ac_status); }; }; then
2222 break
2223else
2224 echo "$as_me: failed program was:" >&5
2225cat conftest.$ac_ext >&5
2226fi
2227rm -f conftest.$ac_objext conftest.$ac_ext
2228done
2229rm -f conftest*
2230if test -n "$ac_declaration"; then
2231 echo '#ifdef __cplusplus' >>confdefs.h
2232 echo $ac_declaration >>confdefs.h
2233 echo '#endif' >>confdefs.h
2234fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002235
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002236else
2237 echo "$as_me: failed program was:" >&5
2238cat conftest.$ac_ext >&5
2239fi
2240rm -f conftest.$ac_objext conftest.$ac_ext
2241ac_ext=c
2242ac_cpp='$CPP $CPPFLAGS'
2243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2245ac_compiler_gnu=$ac_cv_c_compiler_gnu
2246
2247ac_ext=c
2248ac_cpp='$CPP $CPPFLAGS'
2249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2251ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002252echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002253echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002254# On Suns, sometimes $CPP names a directory.
2255if test -n "$CPP" && test -d "$CPP"; then
2256 CPP=
2257fi
2258if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002259 if test "${ac_cv_prog_CPP+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002261else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002262 # Double quotes because CPP needs to be expanded
2263 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2264 do
2265 ac_preproc_ok=false
2266for ac_c_preproc_warn_flag in '' yes
2267do
2268 # Use a header file that comes with gcc, so configuring glibc
2269 # with a fresh cross-compiler works.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002270 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002271 # not just through cpp. "Syntax error" is here to catch this case.
2272 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002273#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002274#include "confdefs.h"
2275#include <assert.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002276 Syntax error
2277_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002278if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2280 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002281 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002282 rm -f conftest.er1
2283 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002285 (exit $ac_status); } >/dev/null; then
2286 if test -s conftest.err; then
2287 ac_cpp_err=$ac_c_preproc_warn_flag
2288 else
2289 ac_cpp_err=
2290 fi
2291else
2292 ac_cpp_err=yes
2293fi
2294if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002295 :
2296else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002297 echo "$as_me: failed program was:" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002298 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002299 # Broken: fails on valid input.
2300continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002301fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002302rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002303
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002304 # OK, works on sane cases. Now check whether non-existent headers
2305 # can be detected and how.
2306 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002307#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002308#include "confdefs.h"
2309#include <ac_nonexistent.h>
2310_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2313 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002314 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002315 rm -f conftest.er1
2316 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002318 (exit $ac_status); } >/dev/null; then
2319 if test -s conftest.err; then
2320 ac_cpp_err=$ac_c_preproc_warn_flag
2321 else
2322 ac_cpp_err=
2323 fi
2324else
2325 ac_cpp_err=yes
2326fi
2327if test -z "$ac_cpp_err"; then
2328 # Broken: success on invalid input.
2329continue
2330else
2331 echo "$as_me: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2333 # Passes both tests.
2334ac_preproc_ok=:
2335break
2336fi
2337rm -f conftest.err conftest.$ac_ext
2338
2339done
2340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2341rm -f conftest.err conftest.$ac_ext
2342if $ac_preproc_ok; then
2343 break
2344fi
2345
2346 done
2347 ac_cv_prog_CPP=$CPP
2348
2349fi
2350 CPP=$ac_cv_prog_CPP
2351else
2352 ac_cv_prog_CPP=$CPP
2353fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002354echo "$as_me:$LINENO: result: $CPP" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002355echo "${ECHO_T}$CPP" >&6
2356ac_preproc_ok=false
2357for ac_c_preproc_warn_flag in '' yes
2358do
2359 # Use a header file that comes with gcc, so configuring glibc
2360 # with a fresh cross-compiler works.
2361 # On the NeXT, cc -E runs the code through the compiler's parser,
2362 # not just through cpp. "Syntax error" is here to catch this case.
2363 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002364#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002365#include "confdefs.h"
2366#include <assert.h>
2367 Syntax error
2368_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2371 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002372 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002373 rm -f conftest.er1
2374 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002376 (exit $ac_status); } >/dev/null; then
2377 if test -s conftest.err; then
2378 ac_cpp_err=$ac_c_preproc_warn_flag
2379 else
2380 ac_cpp_err=
2381 fi
2382else
2383 ac_cpp_err=yes
2384fi
2385if test -z "$ac_cpp_err"; then
2386 :
2387else
2388 echo "$as_me: failed program was:" >&5
2389 cat conftest.$ac_ext >&5
2390 # Broken: fails on valid input.
2391continue
2392fi
2393rm -f conftest.err conftest.$ac_ext
2394
2395 # OK, works on sane cases. Now check whether non-existent headers
2396 # can be detected and how.
2397 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002398#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002399#include "confdefs.h"
2400#include <ac_nonexistent.h>
2401_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002402if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2404 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002405 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002406 rm -f conftest.er1
2407 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002409 (exit $ac_status); } >/dev/null; then
2410 if test -s conftest.err; then
2411 ac_cpp_err=$ac_c_preproc_warn_flag
2412 else
2413 ac_cpp_err=
2414 fi
2415else
2416 ac_cpp_err=yes
2417fi
2418if test -z "$ac_cpp_err"; then
2419 # Broken: success on invalid input.
2420continue
2421else
2422 echo "$as_me: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2424 # Passes both tests.
2425ac_preproc_ok=:
2426break
2427fi
2428rm -f conftest.err conftest.$ac_ext
2429
2430done
2431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2432rm -f conftest.err conftest.$ac_ext
2433if $ac_preproc_ok; then
2434 :
2435else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002436 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002437echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2438 { (exit 1); exit 1; }; }
2439fi
2440
2441ac_ext=c
2442ac_cpp='$CPP $CPPFLAGS'
2443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002447
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002448echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2449echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2450if test "${wine_cv_toolsdir+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452else
2453 if test -z "$with_wine_tools"; then
2454 if test "$cross_compiling" = "yes"; then
2455 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2456echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2457 { (exit 1); exit 1; }; }
2458 else
2459 wine_cv_toolsdir="\$(TOPOBJDIR)"
2460 fi
2461 elif test -d "$with_wine_tools/tools/winebuild"; then
2462 case $with_wine_tools in
2463 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2464 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2465 esac
2466 else
2467 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2468echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2469 { (exit 1); exit 1; }; }
2470 fi
2471fi
2472echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2473echo "${ECHO_T}$wine_cv_toolsdir" >&6
2474TOOLSDIR=$wine_cv_toolsdir
2475
2476
2477
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002478
2479echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002480echo $ECHO_N "checking for X... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002481
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002482
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002483# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002484if test "${with_x+set}" = set; then
2485 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002486
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002487fi;
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002488# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002489if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002490 # The user explicitly disabled X.
2491 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002492else
2493 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002494 # Both variables are already set.
2495 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002496 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002497 if test "${ac_cv_have_x+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002499else
2500 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002501ac_x_includes=no ac_x_libraries=no
2502rm -fr conftest.dir
2503if mkdir conftest.dir; then
2504 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002505 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002506 cat >Imakefile <<'_ACEOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002507acfindx:
2508 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002509_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002510 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002511 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002512 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002513 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2514 for ac_extension in a so sl; do
2515 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002516 test -f $ac_im_libdir/libX11.$ac_extension; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002517 ac_im_usrlibdir=$ac_im_libdir; break
2518 fi
2519 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002520 # Screen out bogus values from the imake configuration. They are
2521 # bogus both because they are the default anyway, and because
2522 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002523 case $ac_im_incroot in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002524 /usr/include) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002525 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002526 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002527 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002528 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002529 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002530 esac
2531 fi
2532 cd ..
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002533 rm -fr conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002534fi
2535
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002536# Standard set of common directories for X headers.
2537# Check X11 before X11Rn because it is often a symlink to the current release.
2538ac_x_header_dirs='
2539/usr/X11/include
2540/usr/X11R6/include
2541/usr/X11R5/include
2542/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002543
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002544/usr/include/X11
2545/usr/include/X11R6
2546/usr/include/X11R5
2547/usr/include/X11R4
2548
2549/usr/local/X11/include
2550/usr/local/X11R6/include
2551/usr/local/X11R5/include
2552/usr/local/X11R4/include
2553
2554/usr/local/include/X11
2555/usr/local/include/X11R6
2556/usr/local/include/X11R5
2557/usr/local/include/X11R4
2558
2559/usr/X386/include
2560/usr/x386/include
2561/usr/XFree86/include/X11
2562
2563/usr/include
2564/usr/local/include
2565/usr/unsupported/include
2566/usr/athena/include
2567/usr/local/x11r5/include
2568/usr/lpp/Xamples/include
2569
2570/usr/openwin/include
2571/usr/openwin/share/include'
2572
2573if test "$ac_x_includes" = no; then
2574 # Guess where to find include files, by looking for Intrinsic.h.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002575 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002576 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002577#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002578#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002579#include <X11/Intrinsic.h>
2580_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2583 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002584 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002585 rm -f conftest.er1
2586 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002588 (exit $ac_status); } >/dev/null; then
2589 if test -s conftest.err; then
2590 ac_cpp_err=$ac_c_preproc_warn_flag
2591 else
2592 ac_cpp_err=
2593 fi
2594else
2595 ac_cpp_err=yes
2596fi
2597if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002598 # We can compile using X headers with no special include directory.
2599ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002600else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002601 echo "$as_me: failed program was:" >&5
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002602 cat conftest.$ac_ext >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002603 for ac_dir in $ac_x_header_dirs; do
2604 if test -r "$ac_dir/X11/Intrinsic.h"; then
2605 ac_x_includes=$ac_dir
2606 break
2607 fi
2608done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002609fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002610rm -f conftest.err conftest.$ac_ext
2611fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002612
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002613if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002614 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002615 # See if we find them without any special options.
2616 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002617 ac_save_LIBS=$LIBS
2618 LIBS="-lXt $LIBS"
2619 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002620#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002621#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002622#include <X11/Intrinsic.h>
2623int
2624main ()
2625{
2626XtMalloc (0)
2627 ;
2628 return 0;
2629}
2630_ACEOF
2631rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002633 (eval $ac_link) 2>&5
2634 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002636 (exit $ac_status); } &&
2637 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002639 (eval $ac_try) 2>&5
2640 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002642 (exit $ac_status); }; }; then
2643 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002644# We can link X programs with no special library path.
2645ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002646else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002647 echo "$as_me: failed program was:" >&5
2648cat conftest.$ac_ext >&5
2649LIBS=$ac_save_LIBS
2650for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002651do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002652 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002653 for ac_extension in a so sl; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002654 if test -r $ac_dir/libXt.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002655 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002656 break 2
2657 fi
2658 done
2659done
2660fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002661rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2662fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002663
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002664if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002665 # Didn't find X anywhere. Cache the known absence of X.
2666 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002667else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002668 # Record where we found X for the cache.
2669 ac_cv_have_x="have_x=yes \
2670 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002671fi
2672fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002673
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002674 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002675 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002676fi # $with_x != no
2677
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002678if test "$have_x" != yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002679 echo "$as_me:$LINENO: result: $have_x" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002680echo "${ECHO_T}$have_x" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002681 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002682else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002683 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002684 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2685 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002686 # Update the cache value to reflect the command line values.
2687 ac_cv_have_x="have_x=yes \
2688 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002689 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002690echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002691fi
2692
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002693if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002694 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002695
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002696cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002697#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002698_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002699
2700 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002701else
2702 if test -n "$x_includes"; then
2703 X_CFLAGS="$X_CFLAGS -I$x_includes"
2704 fi
2705
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002706 # It would also be nice to do this for all -L options, not just this one.
2707 if test -n "$x_libraries"; then
2708 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002709 # For Solaris; some versions of Sun CC require a space after -R and
2710 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002711 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002712 "SunOS 5"*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002713 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002714echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2715 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2716 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002717#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002718#include "confdefs.h"
2719
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002720int
2721main ()
2722{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002723
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002724 ;
2725 return 0;
2726}
2727_ACEOF
2728rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002730 (eval $ac_link) 2>&5
2731 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002733 (exit $ac_status); } &&
2734 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002736 (eval $ac_try) 2>&5
2737 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002739 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002740 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002741else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002742 echo "$as_me: failed program was:" >&5
2743cat conftest.$ac_ext >&5
2744ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002745fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002747 if test $ac_R_nospace = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002748 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002749echo "${ECHO_T}no" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002750 X_LIBS="$X_LIBS -R$x_libraries"
2751 else
2752 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002753 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002754#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002755#include "confdefs.h"
2756
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002757int
2758main ()
2759{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002760
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002761 ;
2762 return 0;
2763}
2764_ACEOF
2765rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002767 (eval $ac_link) 2>&5
2768 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002770 (exit $ac_status); } &&
2771 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002773 (eval $ac_try) 2>&5
2774 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002776 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002777 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002778else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002779 echo "$as_me: failed program was:" >&5
2780cat conftest.$ac_ext >&5
2781ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002782fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002783rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002784 if test $ac_R_space = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002785 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002786echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002787 X_LIBS="$X_LIBS -R $x_libraries"
2788 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002789 echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002790echo "${ECHO_T}neither works" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002791 fi
2792 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002793 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002794 esac
2795 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002796
2797 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002798 # Do this before checking for the system-independent R6 libraries
2799 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002800
2801 if test "$ISC" = yes; then
2802 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2803 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002804 # Martyn Johnson says this is needed for Ultrix, if the X
2805 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002806 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002807 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2808 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002809#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002810#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002811
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002812/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002813#ifdef __cplusplus
2814extern "C"
2815#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002816/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002817 builtin and then its argument prototype would still apply. */
2818char XOpenDisplay ();
2819int
2820main ()
2821{
2822XOpenDisplay ();
2823 ;
2824 return 0;
2825}
2826_ACEOF
2827rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002829 (eval $ac_link) 2>&5
2830 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002832 (exit $ac_status); } &&
2833 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002835 (eval $ac_try) 2>&5
2836 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002838 (exit $ac_status); }; }; then
2839 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002840else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002841 echo "$as_me: failed program was:" >&5
2842cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002843echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002844echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2845if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847else
2848 ac_check_lib_save_LIBS=$LIBS
2849LIBS="-ldnet $LIBS"
2850cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002851#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002852#include "confdefs.h"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002853
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002854/* Override any gcc2 internal prototype to avoid an error. */
2855#ifdef __cplusplus
2856extern "C"
2857#endif
2858/* We use char because int might match the return type of a gcc2
2859 builtin and then its argument prototype would still apply. */
2860char dnet_ntoa ();
2861int
2862main ()
2863{
2864dnet_ntoa ();
2865 ;
2866 return 0;
2867}
2868_ACEOF
2869rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002871 (eval $ac_link) 2>&5
2872 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002874 (exit $ac_status); } &&
2875 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002877 (eval $ac_try) 2>&5
2878 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002880 (exit $ac_status); }; }; then
2881 ac_cv_lib_dnet_dnet_ntoa=yes
2882else
2883 echo "$as_me: failed program was:" >&5
2884cat conftest.$ac_ext >&5
2885ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002886fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002887rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2888LIBS=$ac_check_lib_save_LIBS
2889fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002890echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002891echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
2892if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002893 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002894fi
2895
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002896 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002897 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002898echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
2899if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002901else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002902 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002903LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002904cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002905#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002906#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002907
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002908/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002909#ifdef __cplusplus
2910extern "C"
2911#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002912/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002913 builtin and then its argument prototype would still apply. */
2914char dnet_ntoa ();
2915int
2916main ()
2917{
2918dnet_ntoa ();
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002925 (eval $ac_link) 2>&5
2926 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002928 (exit $ac_status); } &&
2929 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002931 (eval $ac_try) 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); }; }; then
2935 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002936else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002937 echo "$as_me: failed program was:" >&5
2938cat conftest.$ac_ext >&5
2939ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002940fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002941rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2942LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002943fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002944echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002945echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
2946if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002947 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002948fi
2949
2950 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002951fi
2952rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2953 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002954
2955 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2956 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002957 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002958 # needs -lnsl.
2959 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002960 # on Irix 5.2, according to T.E. Dickey.
2961 # The functions gethostbyname, getservbyname, and inet_addr are
2962 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002963 echo "$as_me:$LINENO: checking for gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002964echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
2965if test "${ac_cv_func_gethostbyname+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002967else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002968 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002969#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002970#include "confdefs.h"
2971/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002972 which can conflict with char gethostbyname (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002973#include <assert.h>
2974/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002975#ifdef __cplusplus
2976extern "C"
2977#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002978/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002979 builtin and then its argument prototype would still apply. */
2980char gethostbyname ();
2981char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002982
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002983int
2984main ()
2985{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002986/* The GNU C library defines this for functions which it implements
2987 to always fail with ENOSYS. Some functions are actually named
2988 something starting with __ and the normal name is an alias. */
2989#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2990choke me
2991#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002992f = gethostbyname;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002993#endif
2994
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002995 ;
2996 return 0;
2997}
2998_ACEOF
2999rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003001 (eval $ac_link) 2>&5
3002 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003004 (exit $ac_status); } &&
3005 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003007 (eval $ac_try) 2>&5
3008 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003010 (exit $ac_status); }; }; then
3011 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003012else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003013 echo "$as_me: failed program was:" >&5
3014cat conftest.$ac_ext >&5
3015ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003016fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003017rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003018fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003019echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003020echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003021
3022 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003023 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003024echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3025if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3026 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003027else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003028 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003029LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003030cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003031#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003032#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003033
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003034/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003035#ifdef __cplusplus
3036extern "C"
3037#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003038/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003039 builtin and then its argument prototype would still apply. */
3040char gethostbyname ();
3041int
3042main ()
3043{
3044gethostbyname ();
3045 ;
3046 return 0;
3047}
3048_ACEOF
3049rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003051 (eval $ac_link) 2>&5
3052 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003054 (exit $ac_status); } &&
3055 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003057 (eval $ac_try) 2>&5
3058 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003060 (exit $ac_status); }; }; then
3061 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003062else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003063 echo "$as_me: failed program was:" >&5
3064cat conftest.$ac_ext >&5
3065ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003066fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3068LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003069fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003070echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003071echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3072if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003073 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003074fi
3075
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003076 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003077 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003078echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3079if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3081else
3082 ac_check_lib_save_LIBS=$LIBS
3083LIBS="-lbsd $LIBS"
3084cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003085#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003086#include "confdefs.h"
3087
3088/* Override any gcc2 internal prototype to avoid an error. */
3089#ifdef __cplusplus
3090extern "C"
3091#endif
3092/* We use char because int might match the return type of a gcc2
3093 builtin and then its argument prototype would still apply. */
3094char gethostbyname ();
3095int
3096main ()
3097{
3098gethostbyname ();
3099 ;
3100 return 0;
3101}
3102_ACEOF
3103rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003105 (eval $ac_link) 2>&5
3106 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003108 (exit $ac_status); } &&
3109 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003111 (eval $ac_try) 2>&5
3112 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003114 (exit $ac_status); }; }; then
3115 ac_cv_lib_bsd_gethostbyname=yes
3116else
3117 echo "$as_me: failed program was:" >&5
3118cat conftest.$ac_ext >&5
3119ac_cv_lib_bsd_gethostbyname=no
3120fi
3121rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3122LIBS=$ac_check_lib_save_LIBS
3123fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003124echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003125echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3126if test $ac_cv_lib_bsd_gethostbyname = yes; then
3127 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3128fi
3129
3130 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003131 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003132
3133 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003134 # socket/setsockopt and other routines are undefined under SCO ODT
3135 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003136 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003137 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003138 # must be given before -lnsl if both are needed. We assume that
3139 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003140 echo "$as_me:$LINENO: checking for connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003141echo $ECHO_N "checking for connect... $ECHO_C" >&6
3142if test "${ac_cv_func_connect+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003144else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003145 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003146#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003147#include "confdefs.h"
3148/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003149 which can conflict with char connect (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003150#include <assert.h>
3151/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003152#ifdef __cplusplus
3153extern "C"
3154#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003155/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003156 builtin and then its argument prototype would still apply. */
3157char connect ();
3158char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003159
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003160int
3161main ()
3162{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003163/* The GNU C library defines this for functions which it implements
3164 to always fail with ENOSYS. Some functions are actually named
3165 something starting with __ and the normal name is an alias. */
3166#if defined (__stub_connect) || defined (__stub___connect)
3167choke me
3168#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003169f = connect;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003170#endif
3171
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003172 ;
3173 return 0;
3174}
3175_ACEOF
3176rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003178 (eval $ac_link) 2>&5
3179 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003181 (exit $ac_status); } &&
3182 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003184 (eval $ac_try) 2>&5
3185 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003187 (exit $ac_status); }; }; then
3188 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003189else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003190 echo "$as_me: failed program was:" >&5
3191cat conftest.$ac_ext >&5
3192ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003193fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003194rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003195fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003196echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003197echo "${ECHO_T}$ac_cv_func_connect" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003198
3199 if test $ac_cv_func_connect = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003200 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003201echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3202if test "${ac_cv_lib_socket_connect+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003204else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003205 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003206LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003207cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003208#line $LINENO "configure"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003209#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003210
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003211/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003212#ifdef __cplusplus
3213extern "C"
3214#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003215/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003216 builtin and then its argument prototype would still apply. */
3217char connect ();
3218int
3219main ()
3220{
3221connect ();
3222 ;
3223 return 0;
3224}
3225_ACEOF
3226rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003228 (eval $ac_link) 2>&5
3229 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003231 (exit $ac_status); } &&
3232 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003234 (eval $ac_try) 2>&5
3235 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003237 (exit $ac_status); }; }; then
3238 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003239else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003240 echo "$as_me: failed program was:" >&5
3241cat conftest.$ac_ext >&5
3242ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003243fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3245LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003246fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003247echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003248echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3249if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003250 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003251fi
3252
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003253 fi
3254
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003255 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003256 echo "$as_me:$LINENO: checking for remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003257echo $ECHO_N "checking for remove... $ECHO_C" >&6
3258if test "${ac_cv_func_remove+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003260else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003261 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003262#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003263#include "confdefs.h"
3264/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003265 which can conflict with char remove (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003266#include <assert.h>
3267/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003268#ifdef __cplusplus
3269extern "C"
3270#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003271/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003272 builtin and then its argument prototype would still apply. */
3273char remove ();
3274char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003275
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003276int
3277main ()
3278{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003279/* The GNU C library defines this for functions which it implements
3280 to always fail with ENOSYS. Some functions are actually named
3281 something starting with __ and the normal name is an alias. */
3282#if defined (__stub_remove) || defined (__stub___remove)
3283choke me
3284#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003285f = remove;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003286#endif
3287
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003288 ;
3289 return 0;
3290}
3291_ACEOF
3292rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003294 (eval $ac_link) 2>&5
3295 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003297 (exit $ac_status); } &&
3298 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003300 (eval $ac_try) 2>&5
3301 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003303 (exit $ac_status); }; }; then
3304 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003305else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003306 echo "$as_me: failed program was:" >&5
3307cat conftest.$ac_ext >&5
3308ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003309fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003310rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003311fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003312echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003313echo "${ECHO_T}$ac_cv_func_remove" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003314
3315 if test $ac_cv_func_remove = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003316 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003317echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3318if test "${ac_cv_lib_posix_remove+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003320else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003321 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003322LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003323cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003324#line $LINENO "configure"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003325#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003326
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003327/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003328#ifdef __cplusplus
3329extern "C"
3330#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003331/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003332 builtin and then its argument prototype would still apply. */
3333char remove ();
3334int
3335main ()
3336{
3337remove ();
3338 ;
3339 return 0;
3340}
3341_ACEOF
3342rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003344 (eval $ac_link) 2>&5
3345 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003347 (exit $ac_status); } &&
3348 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003350 (eval $ac_try) 2>&5
3351 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003353 (exit $ac_status); }; }; then
3354 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003355else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003356 echo "$as_me: failed program was:" >&5
3357cat conftest.$ac_ext >&5
3358ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003359fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003360rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3361LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003362fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003363echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003364echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3365if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003366 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003367fi
3368
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003369 fi
3370
3371 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003372 echo "$as_me:$LINENO: checking for shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003373echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3374if test "${ac_cv_func_shmat+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003376else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003377 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003378#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003379#include "confdefs.h"
3380/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003381 which can conflict with char shmat (); below. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003382#include <assert.h>
3383/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003384#ifdef __cplusplus
3385extern "C"
3386#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003387/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003388 builtin and then its argument prototype would still apply. */
3389char shmat ();
3390char (*f) ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003391
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003392int
3393main ()
3394{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003395/* The GNU C library defines this for functions which it implements
3396 to always fail with ENOSYS. Some functions are actually named
3397 something starting with __ and the normal name is an alias. */
3398#if defined (__stub_shmat) || defined (__stub___shmat)
3399choke me
3400#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003401f = shmat;
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003402#endif
3403
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003404 ;
3405 return 0;
3406}
3407_ACEOF
3408rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003410 (eval $ac_link) 2>&5
3411 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003413 (exit $ac_status); } &&
3414 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003416 (eval $ac_try) 2>&5
3417 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003419 (exit $ac_status); }; }; then
3420 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003421else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003422 echo "$as_me: failed program was:" >&5
3423cat conftest.$ac_ext >&5
3424ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003425fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003427fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003428echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003429echo "${ECHO_T}$ac_cv_func_shmat" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003430
3431 if test $ac_cv_func_shmat = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003432 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003433echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3434if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3435 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003436else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003437 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003438LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003439cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003440#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003441#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003442
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003443/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003444#ifdef __cplusplus
3445extern "C"
3446#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003447/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003448 builtin and then its argument prototype would still apply. */
3449char shmat ();
3450int
3451main ()
3452{
3453shmat ();
3454 ;
3455 return 0;
3456}
3457_ACEOF
3458rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003460 (eval $ac_link) 2>&5
3461 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003463 (exit $ac_status); } &&
3464 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003466 (eval $ac_try) 2>&5
3467 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003469 (exit $ac_status); }; }; then
3470 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003471else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003472 echo "$as_me: failed program was:" >&5
3473cat conftest.$ac_ext >&5
3474ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003475fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003476rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3477LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003478fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003479echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003480echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3481if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003482 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003483fi
3484
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003485 fi
3486 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003487
3488 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003489 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003490 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3491 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3492 # check for ICE first), but we must link in the order -lSM -lICE or
3493 # we get undefined symbols. So assume we have SM if we have ICE.
3494 # These have to be linked with before -lX11, unlike the other
3495 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003496 # John Interrante, Karl Berry
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003497 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003498echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3499if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003501else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003502 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003503LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003504cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003505#line $LINENO "configure"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003506#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003507
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003508/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003509#ifdef __cplusplus
3510extern "C"
3511#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003512/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003513 builtin and then its argument prototype would still apply. */
3514char IceConnectionNumber ();
3515int
3516main ()
3517{
3518IceConnectionNumber ();
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003525 (eval $ac_link) 2>&5
3526 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003528 (exit $ac_status); } &&
3529 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003531 (eval $ac_try) 2>&5
3532 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003534 (exit $ac_status); }; }; then
3535 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003536else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003537 echo "$as_me: failed program was:" >&5
3538cat conftest.$ac_ext >&5
3539ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003540fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003541rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3542LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003543fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003544echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003545echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3546if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003547 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003548fi
3549
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003550 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003551
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003552fi
3553
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003554for ac_prog in 'bison -y' byacc
3555do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003556 # Extract the first word of "$ac_prog", so it can be a program name with args.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003557set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003558echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3560if test "${ac_cv_prog_YACC+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003562else
3563 if test -n "$YACC"; then
3564 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3565else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567for as_dir in $PATH
3568do
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_prog_YACC="$ac_prog"
3574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3576 fi
3577done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003578done
3579
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003580fi
3581fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003582YACC=$ac_cv_prog_YACC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003583if test -n "$YACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003584 echo "$as_me:$LINENO: result: $YACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003585echo "${ECHO_T}$YACC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003586else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003587 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003588echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003589fi
3590
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003591 test -n "$YACC" && break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003592done
3593test -n "$YACC" || YACC="yacc"
3594
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003595for ac_prog in flex lex
3596do
3597 # Extract the first word of "$ac_prog", so it can be a program name with args.
3598set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003599echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3601if test "${ac_cv_prog_LEX+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003603else
3604 if test -n "$LEX"; then
3605 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3606else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608for as_dir in $PATH
3609do
3610 IFS=$as_save_IFS
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614 ac_cv_prog_LEX="$ac_prog"
3615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3617 fi
3618done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003619done
3620
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003621fi
3622fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003623LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003624if test -n "$LEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003625 echo "$as_me:$LINENO: result: $LEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003626echo "${ECHO_T}$LEX" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003627else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003628 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003629echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003630fi
3631
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003632 test -n "$LEX" && break
3633done
3634test -n "$LEX" || LEX=":"
3635
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003636if test -z "$LEXLIB"
3637then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003638 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003639echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3640if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003642else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003643 ac_check_lib_save_LIBS=$LIBS
3644LIBS="-lfl $LIBS"
3645cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003646#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003647#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003648
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003649/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003650#ifdef __cplusplus
3651extern "C"
3652#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003653/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003654 builtin and then its argument prototype would still apply. */
3655char yywrap ();
3656int
3657main ()
3658{
3659yywrap ();
3660 ;
3661 return 0;
3662}
3663_ACEOF
3664rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003666 (eval $ac_link) 2>&5
3667 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003669 (exit $ac_status); } &&
3670 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003672 (eval $ac_try) 2>&5
3673 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003675 (exit $ac_status); }; }; then
3676 ac_cv_lib_fl_yywrap=yes
3677else
3678 echo "$as_me: failed program was:" >&5
3679cat conftest.$ac_ext >&5
3680ac_cv_lib_fl_yywrap=no
3681fi
3682rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3683LIBS=$ac_check_lib_save_LIBS
3684fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003685echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003686echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3687if test $ac_cv_lib_fl_yywrap = yes; then
3688 LEXLIB="-lfl"
3689else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003690 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003691echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3692if test "${ac_cv_lib_l_yywrap+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
3695 ac_check_lib_save_LIBS=$LIBS
3696LIBS="-ll $LIBS"
3697cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003698#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003699#include "confdefs.h"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003700
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003701/* Override any gcc2 internal prototype to avoid an error. */
3702#ifdef __cplusplus
3703extern "C"
3704#endif
3705/* We use char because int might match the return type of a gcc2
3706 builtin and then its argument prototype would still apply. */
3707char yywrap ();
3708int
3709main ()
3710{
3711yywrap ();
3712 ;
3713 return 0;
3714}
3715_ACEOF
3716rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003718 (eval $ac_link) 2>&5
3719 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003721 (exit $ac_status); } &&
3722 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003724 (eval $ac_try) 2>&5
3725 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003727 (exit $ac_status); }; }; then
3728 ac_cv_lib_l_yywrap=yes
3729else
3730 echo "$as_me: failed program was:" >&5
3731cat conftest.$ac_ext >&5
3732ac_cv_lib_l_yywrap=no
3733fi
3734rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3735LIBS=$ac_check_lib_save_LIBS
3736fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003737echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003738echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3739if test $ac_cv_lib_l_yywrap = yes; then
3740 LEXLIB="-ll"
3741fi
3742
3743fi
3744
3745fi
3746
3747if test "x$LEX" != "x:"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003748 echo "$as_me:$LINENO: checking lex output file root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003749echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3750if test "${ac_cv_prog_lex_root+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752else
3753 # The minimal lex program is just a single line: %%. But some broken lexes
3754# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003755cat >conftest.l <<_ACEOF
3756%%
3757%%
3758_ACEOF
3759{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3760 (eval $LEX conftest.l) 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003764if test -f lex.yy.c; then
3765 ac_cv_prog_lex_root=lex.yy
3766elif test -f lexyy.c; then
3767 ac_cv_prog_lex_root=lexyy
3768else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003769 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003770echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3771 { (exit 1); exit 1; }; }
3772fi
3773fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003774echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003775echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003776rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003777LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3778
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003779echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003780echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3781if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
3784 # POSIX says lex can declare yytext either as a pointer or an array; the
3785# default is implementation-dependent. Figure out which it is, since
3786# not all implementations provide the %pointer and %array declarations.
3787ac_cv_prog_lex_yytext_pointer=no
3788echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3789ac_save_LIBS=$LIBS
3790LIBS="$LIBS $LEXLIB"
3791cat >conftest.$ac_ext <<_ACEOF
3792`cat $LEX_OUTPUT_ROOT.c`
3793_ACEOF
3794rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003796 (eval $ac_link) 2>&5
3797 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003799 (exit $ac_status); } &&
3800 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003802 (eval $ac_try) 2>&5
3803 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003805 (exit $ac_status); }; }; then
3806 ac_cv_prog_lex_yytext_pointer=yes
3807else
3808 echo "$as_me: failed program was:" >&5
3809cat conftest.$ac_ext >&5
3810fi
3811rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3812LIBS=$ac_save_LIBS
3813rm -f "${LEX_OUTPUT_ROOT}.c"
3814
3815fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003816echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003817echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3818if test $ac_cv_prog_lex_yytext_pointer = yes; then
3819
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003820cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003821#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003822_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003823
3824fi
3825
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003826fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003827
3828for ac_prog in $YACC bison yacc
3829do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003830 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003831set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003832echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3834if test "${ac_cv_prog_XYACC+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003836else
3837 if test -n "$XYACC"; then
3838 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
3839else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841for as_dir in $PATH
3842do
3843 IFS=$as_save_IFS
3844 test -z "$as_dir" && as_dir=.
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3847 ac_cv_prog_XYACC="$ac_prog"
3848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 break 2
3850 fi
3851done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003852done
3853
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003854fi
3855fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003856XYACC=$ac_cv_prog_XYACC
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003857if test -n "$XYACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003858 echo "$as_me:$LINENO: result: $XYACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003859echo "${ECHO_T}$XYACC" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003860else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003861 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003862echo "${ECHO_T}no" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003863fi
3864
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003865 test -n "$XYACC" && break
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003866done
3867test -n "$XYACC" || XYACC="none"
3868
3869if test "$XYACC" = "none"
3870then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003871 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003872echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
3873 { (exit 1); exit 1; }; }
Marcus Meissner5c5a6212002-01-22 18:28:25 +00003874fi
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003875for ac_prog in $LEX flex lex
3876do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003877 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003878set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003879echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3881if test "${ac_cv_prog_XLEX+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003883else
3884 if test -n "$XLEX"; then
3885 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
3886else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH
3889do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3894 ac_cv_prog_XLEX="$ac_prog"
3895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 break 2
3897 fi
3898done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003899done
3900
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003901fi
3902fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003903XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003904if test -n "$XLEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003905 echo "$as_me:$LINENO: result: $XLEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003906echo "${ECHO_T}$XLEX" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003907else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003908 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003909echo "${ECHO_T}no" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003910fi
3911
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003912 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003913done
3914test -n "$XLEX" || XLEX="none"
3915
3916if test "$XLEX" = "none"
3917then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003918 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003919echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
3920 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00003921fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00003922
3923if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00003924 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3925set dummy ${ac_tool_prefix}ld; ac_word=$2
3926echo "$as_me:$LINENO: checking for $ac_word" >&5
3927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3928if test "${ac_cv_prog_LD+set}" = set; then
3929 echo $ECHO_N "(cached) $ECHO_C" >&6
3930else
3931 if test -n "$LD"; then
3932 ac_cv_prog_LD="$LD" # Let the user override the test.
3933else
3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935for as_dir in $PATH
3936do
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3941 ac_cv_prog_LD="${ac_tool_prefix}ld"
3942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3944 fi
3945done
3946done
3947
3948fi
3949fi
3950LD=$ac_cv_prog_LD
3951if test -n "$LD"; then
3952 echo "$as_me:$LINENO: result: $LD" >&5
3953echo "${ECHO_T}$LD" >&6
3954else
3955 echo "$as_me:$LINENO: result: no" >&5
3956echo "${ECHO_T}no" >&6
3957fi
3958
3959fi
3960if test -z "$ac_cv_prog_LD"; then
3961 ac_ct_LD=$LD
3962 # Extract the first word of "ld", so it can be a program name with args.
3963set dummy ld; ac_word=$2
3964echo "$as_me:$LINENO: checking for $ac_word" >&5
3965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3966if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968else
3969 if test -n "$ac_ct_LD"; then
3970 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979 ac_cv_prog_ac_ct_LD="ld"
3980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983done
3984done
3985
3986 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3987fi
3988fi
3989ac_ct_LD=$ac_cv_prog_ac_ct_LD
3990if test -n "$ac_ct_LD"; then
3991 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3992echo "${ECHO_T}$ac_ct_LD" >&6
3993else
3994 echo "$as_me:$LINENO: result: no" >&5
3995echo "${ECHO_T}no" >&6
3996fi
3997
3998 LD=$ac_ct_LD
3999else
4000 LD="$ac_cv_prog_LD"
4001fi
4002
4003if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004004 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4005set dummy ${ac_tool_prefix}ar; ac_word=$2
4006echo "$as_me:$LINENO: checking for $ac_word" >&5
4007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008if test "${ac_cv_prog_AR+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4010else
4011 if test -n "$AR"; then
4012 ac_cv_prog_AR="$AR" # Let the user override the test.
4013else
4014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_AR="${ac_tool_prefix}ar"
4022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4024 fi
4025done
4026done
4027
4028fi
4029fi
4030AR=$ac_cv_prog_AR
4031if test -n "$AR"; then
4032 echo "$as_me:$LINENO: result: $AR" >&5
4033echo "${ECHO_T}$AR" >&6
4034else
4035 echo "$as_me:$LINENO: result: no" >&5
4036echo "${ECHO_T}no" >&6
4037fi
4038
4039fi
4040if test -z "$ac_cv_prog_AR"; then
4041 ac_ct_AR=$AR
4042 # Extract the first word of "ar", so it can be a program name with args.
4043set dummy ar; ac_word=$2
4044echo "$as_me:$LINENO: checking for $ac_word" >&5
4045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048else
4049 if test -n "$ac_ct_AR"; then
4050 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4051else
4052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053for as_dir in $PATH
4054do
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059 ac_cv_prog_ac_ct_AR="ar"
4060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4062 fi
4063done
4064done
4065
4066 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4067fi
4068fi
4069ac_ct_AR=$ac_cv_prog_ac_ct_AR
4070if test -n "$ac_ct_AR"; then
4071 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4072echo "${ECHO_T}$ac_ct_AR" >&6
4073else
4074 echo "$as_me:$LINENO: result: no" >&5
4075echo "${ECHO_T}no" >&6
4076fi
4077
4078 AR=$ac_ct_AR
4079else
4080 AR="$ac_cv_prog_AR"
4081fi
4082
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004083if test -n "$ac_tool_prefix"; then
4084 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4085set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004086echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4088if test "${ac_cv_prog_RANLIB+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004090else
4091 if test -n "$RANLIB"; then
4092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4093else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095for as_dir in $PATH
4096do
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 break 2
4104 fi
4105done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004106done
4107
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004108fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004109fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004110RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004111if test -n "$RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004112 echo "$as_me:$LINENO: result: $RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004113echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004114else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004115 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004116echo "${ECHO_T}no" >&6
4117fi
4118
4119fi
4120if test -z "$ac_cv_prog_RANLIB"; then
4121 ac_ct_RANLIB=$RANLIB
4122 # Extract the first word of "ranlib", so it can be a program name with args.
4123set dummy ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004124echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4128else
4129 if test -n "$ac_ct_RANLIB"; then
4130 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4131else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133for as_dir in $PATH
4134do
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139 ac_cv_prog_ac_ct_RANLIB="ranlib"
4140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 break 2
4142 fi
4143done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004144done
4145
4146 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4147fi
4148fi
4149ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4150if test -n "$ac_ct_RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004151 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004152echo "${ECHO_T}$ac_ct_RANLIB" >&6
4153else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004154 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004155echo "${ECHO_T}no" >&6
4156fi
4157
4158 RANLIB=$ac_ct_RANLIB
4159else
4160 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004161fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004162
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004163if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4165set dummy ${ac_tool_prefix}strip; ac_word=$2
4166echo "$as_me:$LINENO: checking for $ac_word" >&5
4167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4168if test "${ac_cv_prog_STRIP+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170else
4171 if test -n "$STRIP"; then
4172 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4173else
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4184 fi
4185done
4186done
4187
4188fi
4189fi
4190STRIP=$ac_cv_prog_STRIP
4191if test -n "$STRIP"; then
4192 echo "$as_me:$LINENO: result: $STRIP" >&5
4193echo "${ECHO_T}$STRIP" >&6
4194else
4195 echo "$as_me:$LINENO: result: no" >&5
4196echo "${ECHO_T}no" >&6
4197fi
4198
4199fi
4200if test -z "$ac_cv_prog_STRIP"; then
4201 ac_ct_STRIP=$STRIP
4202 # Extract the first word of "strip", so it can be a program name with args.
4203set dummy strip; ac_word=$2
4204echo "$as_me:$LINENO: checking for $ac_word" >&5
4205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4206if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4209 if test -n "$ac_ct_STRIP"; then
4210 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_ac_ct_STRIP="strip"
4220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4222 fi
4223done
4224done
4225
4226 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4227fi
4228fi
4229ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4230if test -n "$ac_ct_STRIP"; then
4231 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4232echo "${ECHO_T}$ac_ct_STRIP" >&6
4233else
4234 echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6
4236fi
4237
4238 STRIP=$ac_ct_STRIP
4239else
4240 STRIP="$ac_cv_prog_STRIP"
4241fi
4242
4243if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4245set dummy ${ac_tool_prefix}windres; ac_word=$2
4246echo "$as_me:$LINENO: checking for $ac_word" >&5
4247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4248if test "${ac_cv_prog_WINDRES+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250else
4251 if test -n "$WINDRES"; then
4252 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4253else
4254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255for as_dir in $PATH
4256do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4264 fi
4265done
4266done
4267
4268fi
4269fi
4270WINDRES=$ac_cv_prog_WINDRES
4271if test -n "$WINDRES"; then
4272 echo "$as_me:$LINENO: result: $WINDRES" >&5
4273echo "${ECHO_T}$WINDRES" >&6
4274else
4275 echo "$as_me:$LINENO: result: no" >&5
4276echo "${ECHO_T}no" >&6
4277fi
4278
4279fi
4280if test -z "$ac_cv_prog_WINDRES"; then
4281 ac_ct_WINDRES=$WINDRES
4282 # Extract the first word of "windres", so it can be a program name with args.
4283set dummy windres; ac_word=$2
4284echo "$as_me:$LINENO: checking for $ac_word" >&5
4285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288else
4289 if test -n "$ac_ct_WINDRES"; then
4290 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4291else
4292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293for as_dir in $PATH
4294do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
4298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4299 ac_cv_prog_ac_ct_WINDRES="windres"
4300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4302 fi
4303done
4304done
4305
4306 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4307fi
4308fi
4309ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4310if test -n "$ac_ct_WINDRES"; then
4311 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4312echo "${ECHO_T}$ac_ct_WINDRES" >&6
4313else
4314 echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6
4316fi
4317
4318 WINDRES=$ac_ct_WINDRES
4319else
4320 WINDRES="$ac_cv_prog_WINDRES"
4321fi
4322
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004323# Find a good install program. We prefer a C program (faster),
4324# so one script is as good as another. But avoid the broken or
4325# incompatible versions:
4326# SysV /etc/install, /usr/sbin/install
4327# SunOS /usr/etc/install
4328# IRIX /sbin/install
4329# AIX /bin/install
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004330# AmigaOS /C/install, which installs bootblocks on floppy discs
Eric Pouech18ad24a2000-01-16 22:16:33 +00004331# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004332# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4333# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4334# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004335echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4336echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004337if test -z "$INSTALL"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004338if test "${ac_cv_path_install+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004340else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH
4343do
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 # Account for people who put trailing slashes in PATH elements.
4347case $as_dir/ in
4348 ./ | .// | /cC/* | \
4349 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4350 /usr/ucb/* ) ;;
4351 *)
4352 # OSF1 and SCO ODT 3.0 have their own names for install.
4353 # Don't use installbsd from OSF since it installs stuff as root
4354 # by default.
4355 for ac_prog in ginstall scoinst install; do
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4358 if test $ac_prog = install &&
4359 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4360 # AIX install. It has an incompatible calling convention.
4361 :
4362 elif test $ac_prog = install &&
4363 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4364 # program-specific install script used by HP pwplus--don't use.
4365 :
4366 else
4367 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4368 break 3
4369 fi
4370 fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004371 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004372 done
4373 ;;
4374esac
4375done
4376
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004377
4378fi
4379 if test "${ac_cv_path_install+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004380 INSTALL=$ac_cv_path_install
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004381 else
4382 # As a last resort, use the slow shell script. We don't cache a
4383 # path for INSTALL within a source directory, because that will
4384 # break other packages using the cache if that directory is
4385 # removed, or if the path is relative.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004386 INSTALL=$ac_install_sh
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004387 fi
4388fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004389echo "$as_me:$LINENO: result: $INSTALL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004390echo "${ECHO_T}$INSTALL" >&6
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004391
4392# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4393# It thinks the first close brace ends the variable substitution.
4394test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4395
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004396test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Eric Pouech18ad24a2000-01-16 22:16:33 +00004397
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00004398test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4399
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004400echo "$as_me:$LINENO: checking whether ln -s works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004401echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4402LN_S=$as_ln_s
4403if test "$LN_S" = "ln -s"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004404 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004405echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004406else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004407 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004408echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004409fi
4410
Alexandre Julliarddf234a92002-05-22 02:10:39 +00004411echo "$as_me:$LINENO: checking whether ln works" >&5
4412echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4413rm -f conf$$ conf$$.file
4414echo >conf$$.file
4415if ln conf$$.file conf$$ 2>/dev/null; then
4416 LN=ln
4417
4418 echo "$as_me:$LINENO: result: yes" >&5
4419echo "${ECHO_T}yes" >&6
4420else
4421 LN="cp -p"
4422
4423 echo "$as_me:$LINENO: result: no, using $LN" >&5
4424echo "${ECHO_T}no, using $LN" >&6
4425fi
4426rm -f conf$$ conf$$.file
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004427# Extract the first word of "c2man", so it can be a program name with args.
4428set dummy c2man; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004429echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4431if test "${ac_cv_prog_C2MAN+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004433else
4434 if test -n "$C2MAN"; then
4435 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4436else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4444 ac_cv_prog_C2MAN="c2man"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004449done
4450
Mike McCormacke0df32f2000-08-11 21:15:21 +00004451 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004452fi
4453fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004454C2MAN=$ac_cv_prog_C2MAN
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004455if test -n "$C2MAN"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004456 echo "$as_me:$LINENO: result: $C2MAN" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004457echo "${ECHO_T}$C2MAN" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004458else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004459 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004460echo "${ECHO_T}no" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004461fi
4462
James Juranffe6b761999-06-12 08:21:57 +00004463# Extract the first word of "ldconfig", so it can be a program name with args.
4464set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004465echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4467if test "${ac_cv_path_LDCONFIG+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00004469else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004470 case $LDCONFIG in
4471 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004472 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4473 ;;
4474 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004476for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004477do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004487done
4488
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004489 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004490 ;;
4491esac
4492fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004493LDCONFIG=$ac_cv_path_LDCONFIG
4494
James Juranffe6b761999-06-12 08:21:57 +00004495if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004496 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004497echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00004498else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004499 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004500echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00004501fi
4502
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004503
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004504for ac_prog in lclint lint
4505do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004506 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004507set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004508echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510if test "${ac_cv_prog_LINT+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004512else
4513 if test -n "$LINT"; then
4514 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4515else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH
4518do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523 ac_cv_prog_LINT="$ac_prog"
4524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 break 2
4526 fi
4527done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004528done
4529
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004530fi
4531fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004532LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004533if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004534 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004535echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004536else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004537 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004538echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004539fi
4540
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004541 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004542done
4543
4544if test "$LINT" = "lint"
4545then
4546 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4547 fi
4548
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004549
4550
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004551
4552
4553echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004554echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4555if test "${ac_cv_lib_m_sqrt+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00004557else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004558 ac_check_lib_save_LIBS=$LIBS
Howard Abrams13277481999-07-10 13:16:29 +00004559LIBS="-lm $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004560cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004561#line $LINENO "configure"
Howard Abrams13277481999-07-10 13:16:29 +00004562#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004563
Howard Abrams13277481999-07-10 13:16:29 +00004564/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004565#ifdef __cplusplus
4566extern "C"
4567#endif
Howard Abrams13277481999-07-10 13:16:29 +00004568/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004569 builtin and then its argument prototype would still apply. */
4570char sqrt ();
4571int
4572main ()
4573{
4574sqrt ();
4575 ;
4576 return 0;
4577}
4578_ACEOF
4579rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004581 (eval $ac_link) 2>&5
4582 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004584 (exit $ac_status); } &&
4585 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004587 (eval $ac_try) 2>&5
4588 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004590 (exit $ac_status); }; }; then
4591 ac_cv_lib_m_sqrt=yes
Howard Abrams13277481999-07-10 13:16:29 +00004592else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004593 echo "$as_me: failed program was:" >&5
4594cat conftest.$ac_ext >&5
4595ac_cv_lib_m_sqrt=no
Howard Abrams13277481999-07-10 13:16:29 +00004596fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4598LIBS=$ac_check_lib_save_LIBS
Howard Abrams13277481999-07-10 13:16:29 +00004599fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004600echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004601echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4602if test $ac_cv_lib_m_sqrt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004603 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004604#define HAVE_LIBM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004605_ACEOF
Howard Abrams13277481999-07-10 13:16:29 +00004606
4607 LIBS="-lm $LIBS"
4608
Howard Abrams13277481999-07-10 13:16:29 +00004609fi
4610
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004611
4612echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004613echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
4614if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00004616else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004617 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00004618LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004619cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004620#line $LINENO "configure"
Alexandre Julliard902da691995-11-05 14:39:02 +00004621#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004622
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004623/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004624#ifdef __cplusplus
4625extern "C"
4626#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004627/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004628 builtin and then its argument prototype would still apply. */
4629char i386_set_ldt ();
4630int
4631main ()
4632{
4633i386_set_ldt ();
4634 ;
4635 return 0;
4636}
4637_ACEOF
4638rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004640 (eval $ac_link) 2>&5
4641 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004643 (exit $ac_status); } &&
4644 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004646 (eval $ac_try) 2>&5
4647 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004649 (exit $ac_status); }; }; then
4650 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00004651else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004652 echo "$as_me: failed program was:" >&5
4653cat conftest.$ac_ext >&5
4654ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00004655fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004656rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4657LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00004658fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004659echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004660echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
4661if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004662 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004663#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004664_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00004665
4666 LIBS="-li386 $LIBS"
4667
Alexandre Julliard02e90081998-01-04 17:49:09 +00004668fi
4669
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004670
4671echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004672echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4673if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00004675else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004676 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00004677LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004678cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004679#line $LINENO "configure"
Todd Vierlingecc76691998-12-15 17:49:02 +00004680#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004681
Todd Vierlingecc76691998-12-15 17:49:02 +00004682/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004683#ifdef __cplusplus
4684extern "C"
4685#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00004686/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004687 builtin and then its argument prototype would still apply. */
4688char _oss_ioctl ();
4689int
4690main ()
4691{
4692_oss_ioctl ();
4693 ;
4694 return 0;
4695}
4696_ACEOF
4697rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004699 (eval $ac_link) 2>&5
4700 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004702 (exit $ac_status); } &&
4703 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004705 (eval $ac_try) 2>&5
4706 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004708 (exit $ac_status); }; }; then
4709 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00004710else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004711 echo "$as_me: failed program was:" >&5
4712cat conftest.$ac_ext >&5
4713ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00004714fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004715rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4716LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00004717fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004718echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004719echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4720if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004721 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004722#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004723_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00004724
4725 LIBS="-lossaudio $LIBS"
4726
Todd Vierlingecc76691998-12-15 17:49:02 +00004727fi
4728
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004729
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004730for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00004731do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004733echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4735if eval "test \"\${$as_ac_var+set}\" = set"; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00004737else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004738 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004739#line $LINENO "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00004740#include "confdefs.h"
4741/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004742 which can conflict with char $ac_func (); below. */
Patrik Stridvallea584721998-11-01 16:22:07 +00004743#include <assert.h>
4744/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004745#ifdef __cplusplus
4746extern "C"
4747#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00004748/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004749 builtin and then its argument prototype would still apply. */
4750char $ac_func ();
4751char (*f) ();
Patrik Stridvallea584721998-11-01 16:22:07 +00004752
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004753int
4754main ()
4755{
Patrik Stridvallea584721998-11-01 16:22:07 +00004756/* The GNU C library defines this for functions which it implements
4757 to always fail with ENOSYS. Some functions are actually named
4758 something starting with __ and the normal name is an alias. */
4759#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4760choke me
4761#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004762f = $ac_func;
Patrik Stridvallea584721998-11-01 16:22:07 +00004763#endif
4764
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004765 ;
4766 return 0;
4767}
4768_ACEOF
4769rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004771 (eval $ac_link) 2>&5
4772 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004774 (exit $ac_status); } &&
4775 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004777 (eval $ac_try) 2>&5
4778 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004780 (exit $ac_status); }; }; then
4781 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004782else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004783 echo "$as_me: failed program was:" >&5
4784cat conftest.$ac_ext >&5
4785eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004786fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004787rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004788fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004790echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4791if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004792 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004793#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004794_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004795
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004796else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004797
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004798echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004799echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
4800if test "${ac_cv_lib_w_iswalnum+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004802else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004803 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004804LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004805cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004806#line $LINENO "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004807#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004808
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004809/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004810#ifdef __cplusplus
4811extern "C"
4812#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004813/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004814 builtin and then its argument prototype would still apply. */
4815char iswalnum ();
4816int
4817main ()
4818{
4819iswalnum ();
4820 ;
4821 return 0;
4822}
4823_ACEOF
4824rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004826 (eval $ac_link) 2>&5
4827 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004829 (exit $ac_status); } &&
4830 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004832 (eval $ac_try) 2>&5
4833 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004835 (exit $ac_status); }; }; then
4836 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004837else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004838 echo "$as_me: failed program was:" >&5
4839cat conftest.$ac_ext >&5
4840ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004841fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004842rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4843LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004844fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004845echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004846echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
4847if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004848 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004849#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004850_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004851
4852 LIBS="-lw $LIBS"
4853
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004854fi
4855
4856fi
4857done
4858
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004859
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004860for ac_func in gethostbyname
4861do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004863echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4865if eval "test \"\${$as_ac_var+set}\" = set"; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004867else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004868 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004869#line $LINENO "configure"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004870#include "confdefs.h"
4871/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004872 which can conflict with char $ac_func (); below. */
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004873#include <assert.h>
4874/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004875#ifdef __cplusplus
4876extern "C"
4877#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004878/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004879 builtin and then its argument prototype would still apply. */
4880char $ac_func ();
4881char (*f) ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004882
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004883int
4884main ()
4885{
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004886/* The GNU C library defines this for functions which it implements
4887 to always fail with ENOSYS. Some functions are actually named
4888 something starting with __ and the normal name is an alias. */
4889#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4890choke me
4891#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004892f = $ac_func;
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004893#endif
4894
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004895 ;
4896 return 0;
4897}
4898_ACEOF
4899rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004901 (eval $ac_link) 2>&5
4902 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004904 (exit $ac_status); } &&
4905 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004907 (eval $ac_try) 2>&5
4908 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004910 (exit $ac_status); }; }; then
4911 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00004912else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004913 echo "$as_me: failed program was:" >&5
4914cat conftest.$ac_ext >&5
4915eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00004916fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004917rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00004918fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004920echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4921if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004922 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004924_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00004925
Patrik Stridvallea584721998-11-01 16:22:07 +00004926else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004927
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004928echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004929echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4930if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00004932else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004933 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004934LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004935cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004936#line $LINENO "configure"
Patrik Stridvallea584721998-11-01 16:22:07 +00004937#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004938
Patrik Stridvallea584721998-11-01 16:22:07 +00004939/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004940#ifdef __cplusplus
4941extern "C"
4942#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00004943/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004944 builtin and then its argument prototype would still apply. */
4945char gethostbyname ();
4946int
4947main ()
4948{
4949gethostbyname ();
4950 ;
4951 return 0;
4952}
4953_ACEOF
4954rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004956 (eval $ac_link) 2>&5
4957 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004959 (exit $ac_status); } &&
4960 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004962 (eval $ac_try) 2>&5
4963 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004965 (exit $ac_status); }; }; then
4966 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00004967else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004968 echo "$as_me: failed program was:" >&5
4969cat conftest.$ac_ext >&5
4970ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00004971fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004972rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4973LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00004974fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004975echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004976echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4977if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004978 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004979#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004980_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00004981
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00004982 LIBS="-lnsl $LIBS"
4983
Ron Recorde977d6c1999-09-05 12:32:05 +00004984fi
4985
Patrik Stridvallea584721998-11-01 16:22:07 +00004986fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00004987done
4988
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004989
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004990for ac_func in connect
4991do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004992as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004993echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4995if eval "test \"\${$as_ac_var+set}\" = set"; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00004997else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004998 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004999#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005000#include "confdefs.h"
5001/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005002 which can conflict with char $ac_func (); below. */
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005003#include <assert.h>
5004/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005005#ifdef __cplusplus
5006extern "C"
5007#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005008/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005009 builtin and then its argument prototype would still apply. */
5010char $ac_func ();
5011char (*f) ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005012
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005013int
5014main ()
5015{
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005016/* The GNU C library defines this for functions which it implements
5017 to always fail with ENOSYS. Some functions are actually named
5018 something starting with __ and the normal name is an alias. */
5019#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5020choke me
5021#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005022f = $ac_func;
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005023#endif
5024
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005025 ;
5026 return 0;
5027}
5028_ACEOF
5029rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005031 (eval $ac_link) 2>&5
5032 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005034 (exit $ac_status); } &&
5035 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005037 (eval $ac_try) 2>&5
5038 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005040 (exit $ac_status); }; }; then
5041 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005042else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005043 echo "$as_me: failed program was:" >&5
5044cat conftest.$ac_ext >&5
5045eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005046fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005047rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005048fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005050echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5051if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005052 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005054_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005055
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005056else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005057
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005058echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005059echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5060if test "${ac_cv_lib_socket_connect+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005062else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005063 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005064LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005065cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005066#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005067#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005068
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005069/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005070#ifdef __cplusplus
5071extern "C"
5072#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005073/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005074 builtin and then its argument prototype would still apply. */
5075char connect ();
5076int
5077main ()
5078{
5079connect ();
5080 ;
5081 return 0;
5082}
5083_ACEOF
5084rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005086 (eval $ac_link) 2>&5
5087 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005089 (exit $ac_status); } &&
5090 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005092 (eval $ac_try) 2>&5
5093 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005095 (exit $ac_status); }; }; then
5096 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005097else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005098 echo "$as_me: failed program was:" >&5
5099cat conftest.$ac_ext >&5
5100ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005101fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005102rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5103LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005104fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005105echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005106echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5107if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005108 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005109#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005110_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005111
5112 LIBS="-lsocket $LIBS"
5113
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005114fi
5115
5116fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005117done
5118
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005119
Alexandre Julliardc5552742002-04-03 20:24:44 +00005120for ac_func in inet_aton
5121do
5122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005123echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5125if eval "test \"\${$as_ac_var+set}\" = set"; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127else
5128 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005129#line $LINENO "configure"
Alexandre Julliardc5552742002-04-03 20:24:44 +00005130#include "confdefs.h"
5131/* System header to define __stub macros and hopefully few prototypes,
5132 which can conflict with char $ac_func (); below. */
5133#include <assert.h>
5134/* Override any gcc2 internal prototype to avoid an error. */
5135#ifdef __cplusplus
5136extern "C"
5137#endif
5138/* We use char because int might match the return type of a gcc2
5139 builtin and then its argument prototype would still apply. */
5140char $ac_func ();
5141char (*f) ();
5142
5143int
5144main ()
5145{
5146/* The GNU C library defines this for functions which it implements
5147 to always fail with ENOSYS. Some functions are actually named
5148 something starting with __ and the normal name is an alias. */
5149#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5150choke me
5151#else
5152f = $ac_func;
5153#endif
5154
5155 ;
5156 return 0;
5157}
5158_ACEOF
5159rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005161 (eval $ac_link) 2>&5
5162 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005164 (exit $ac_status); } &&
5165 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005167 (eval $ac_try) 2>&5
5168 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005170 (exit $ac_status); }; }; then
5171 eval "$as_ac_var=yes"
5172else
5173 echo "$as_me: failed program was:" >&5
5174cat conftest.$ac_ext >&5
5175eval "$as_ac_var=no"
5176fi
5177rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5178fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005180echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5181if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005182 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005184_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005185
5186else
5187
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005188echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005189echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5190if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193 ac_check_lib_save_LIBS=$LIBS
5194LIBS="-lresolv $LIBS"
5195cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005196#line $LINENO "configure"
Francois Gouget3b943bc2002-04-01 21:05:15 +00005197#include "confdefs.h"
5198
5199/* Override any gcc2 internal prototype to avoid an error. */
5200#ifdef __cplusplus
5201extern "C"
5202#endif
5203/* We use char because int might match the return type of a gcc2
5204 builtin and then its argument prototype would still apply. */
5205char inet_aton ();
5206int
5207main ()
5208{
5209inet_aton ();
5210 ;
5211 return 0;
5212}
5213_ACEOF
5214rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005216 (eval $ac_link) 2>&5
5217 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005219 (exit $ac_status); } &&
5220 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005222 (eval $ac_try) 2>&5
5223 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005225 (exit $ac_status); }; }; then
5226 ac_cv_lib_resolv_inet_aton=yes
5227else
5228 echo "$as_me: failed program was:" >&5
5229cat conftest.$ac_ext >&5
5230ac_cv_lib_resolv_inet_aton=no
5231fi
5232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5233LIBS=$ac_check_lib_save_LIBS
5234fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005235echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005236echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5237if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005238 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005239#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005240_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005241
5242 LIBS="-lresolv $LIBS"
5243
5244fi
5245
Alexandre Julliardc5552742002-04-03 20:24:44 +00005246fi
5247done
5248
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005249
5250echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005251echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5252if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005254else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005255 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005256LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005257cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005258#line $LINENO "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005259#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005260
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005261/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005262#ifdef __cplusplus
5263extern "C"
5264#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005265/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005266 builtin and then its argument prototype would still apply. */
5267char _xpg4_setrunelocale ();
5268int
5269main ()
5270{
5271_xpg4_setrunelocale ();
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
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005278 (eval $ac_link) 2>&5
5279 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +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
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005284 (eval $ac_try) 2>&5
5285 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005287 (exit $ac_status); }; }; then
5288 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005289else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005290 echo "$as_me: failed program was:" >&5
5291cat conftest.$ac_ext >&5
5292ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005293fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005294rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5295LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005296fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005297echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005298echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5299if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005300 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005301#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005302_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005303
5304 LIBS="-lxpg4 $LIBS"
5305
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005306fi
5307
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005308
5309echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005310echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5311if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005313else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005314 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005315LIBS="-lmmap $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005316cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005317#line $LINENO "configure"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005318#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005319
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005320/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005321#ifdef __cplusplus
5322extern "C"
5323#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005324/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005325 builtin and then its argument prototype would still apply. */
5326char mmap ();
5327int
5328main ()
5329{
5330mmap ();
5331 ;
5332 return 0;
5333}
5334_ACEOF
5335rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005337 (eval $ac_link) 2>&5
5338 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005340 (exit $ac_status); } &&
5341 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005343 (eval $ac_try) 2>&5
5344 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005346 (exit $ac_status); }; }; then
5347 ac_cv_lib_mmap_mmap=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005348else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005349 echo "$as_me: failed program was:" >&5
5350cat conftest.$ac_ext >&5
5351ac_cv_lib_mmap_mmap=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005352fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005353rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5354LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005355fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005356echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005357echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5358if test $ac_cv_lib_mmap_mmap = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005359 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005360#define HAVE_LIBMMAP 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005361_ACEOF
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005362
5363 LIBS="-lmmap $LIBS"
5364
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005365fi
5366
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005367
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00005368JPEGLIB=""
Alexandre Julliard562089b2001-12-31 22:28:35 +00005369
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005370echo "$as_me:$LINENO: checking for egrep" >&5
5371echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5372if test "${ac_cv_prog_egrep+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5374else
5375 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5376 then ac_cv_prog_egrep='grep -E'
5377 else ac_cv_prog_egrep='egrep'
5378 fi
5379fi
5380echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5381echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5382 EGREP=$ac_cv_prog_egrep
5383
5384
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005385echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5386echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5387if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005388 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005389else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005390 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005391#line $LINENO "configure"
Marcus Meissner2d7be871999-12-05 23:06:40 +00005392#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005393#include <stdlib.h>
5394#include <stdarg.h>
5395#include <string.h>
5396#include <float.h>
5397
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005398_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5401 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005402 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005403 rm -f conftest.er1
5404 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005406 (exit $ac_status); } >/dev/null; then
5407 if test -s conftest.err; then
5408 ac_cpp_err=$ac_c_preproc_warn_flag
5409 else
5410 ac_cpp_err=
5411 fi
Marcus Meissner2d7be871999-12-05 23:06:40 +00005412else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005413 ac_cpp_err=yes
5414fi
5415if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005416 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005417else
5418 echo "$as_me: failed program was:" >&5
Marcus Meissner2d7be871999-12-05 23:06:40 +00005419 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005420 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005421fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005422rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005423
5424if test $ac_cv_header_stdc = yes; then
5425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5426 cat >conftest.$ac_ext <<_ACEOF
5427#line $LINENO "configure"
5428#include "confdefs.h"
5429#include <string.h>
5430
5431_ACEOF
5432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005433 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005434 :
5435else
5436 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005437fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005438rm -f conftest*
5439
5440fi
5441
5442if test $ac_cv_header_stdc = yes; then
5443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5444 cat >conftest.$ac_ext <<_ACEOF
5445#line $LINENO "configure"
5446#include "confdefs.h"
5447#include <stdlib.h>
5448
5449_ACEOF
5450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005451 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005452 :
5453else
5454 ac_cv_header_stdc=no
5455fi
5456rm -f conftest*
5457
5458fi
5459
5460if test $ac_cv_header_stdc = yes; then
5461 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5462 if test "$cross_compiling" = yes; then
5463 :
5464else
5465 cat >conftest.$ac_ext <<_ACEOF
5466#line $LINENO "configure"
5467#include "confdefs.h"
5468#include <ctype.h>
5469#if ((' ' & 0x0FF) == 0x020)
5470# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5471# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5472#else
5473# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5474 || ('j' <= (c) && (c) <= 'r') \
5475 || ('s' <= (c) && (c) <= 'z'))
5476# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5477#endif
5478
5479#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5480int
5481main ()
5482{
5483 int i;
5484 for (i = 0; i < 256; i++)
5485 if (XOR (islower (i), ISLOWER (i))
5486 || toupper (i) != TOUPPER (i))
5487 exit(2);
5488 exit (0);
5489}
5490_ACEOF
5491rm -f conftest$ac_exeext
5492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5493 (eval $ac_link) 2>&5
5494 ac_status=$?
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 :
5503else
5504 echo "$as_me: program exited with status $ac_status" >&5
5505echo "$as_me: failed program was:" >&5
5506cat conftest.$ac_ext >&5
5507( exit $ac_status )
5508ac_cv_header_stdc=no
5509fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005510rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005511fi
5512fi
5513fi
5514echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5515echo "${ECHO_T}$ac_cv_header_stdc" >&6
5516if test $ac_cv_header_stdc = yes; then
5517
5518cat >>confdefs.h <<\_ACEOF
5519#define STDC_HEADERS 1
5520_ACEOF
5521
5522fi
5523
5524# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5535 inttypes.h stdint.h unistd.h
5536do
5537as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5538echo "$as_me:$LINENO: checking for $ac_header" >&5
5539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5540if eval "test \"\${$as_ac_Header+set}\" = set"; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5542else
5543 cat >conftest.$ac_ext <<_ACEOF
5544#line $LINENO "configure"
5545#include "confdefs.h"
5546$ac_includes_default
5547
5548#include <$ac_header>
5549_ACEOF
5550rm -f conftest.$ac_objext
5551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5552 (eval $ac_compile) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } &&
5556 { ac_try='test -s conftest.$ac_objext'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 (eval $ac_try) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 eval "$as_ac_Header=yes"
5563else
5564 echo "$as_me: failed program was:" >&5
5565cat conftest.$ac_ext >&5
5566eval "$as_ac_Header=no"
5567fi
5568rm -f conftest.$ac_objext conftest.$ac_ext
5569fi
5570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5572if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005573 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005574#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005575_ACEOF
5576
5577fi
5578
5579done
5580
5581
5582
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005583for ac_header in jpeglib.h
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005584do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005586if eval "test \"\${$as_ac_Header+set}\" = set"; then
5587 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5589if eval "test \"\${$as_ac_Header+set}\" = set"; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005591fi
5592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005594else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005595 # Is the header compilable?
5596echo "$as_me:$LINENO: checking $ac_header usability" >&5
5597echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5598cat >conftest.$ac_ext <<_ACEOF
5599#line $LINENO "configure"
5600#include "confdefs.h"
5601$ac_includes_default
5602#include <$ac_header>
5603_ACEOF
5604rm -f conftest.$ac_objext
5605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606 (eval $ac_compile) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } &&
5610 { ac_try='test -s conftest.$ac_objext'
5611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612 (eval $ac_try) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }; }; then
5616 ac_header_compiler=yes
5617else
5618 echo "$as_me: failed program was:" >&5
5619cat conftest.$ac_ext >&5
5620ac_header_compiler=no
5621fi
5622rm -f conftest.$ac_objext conftest.$ac_ext
5623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5624echo "${ECHO_T}$ac_header_compiler" >&6
5625
5626# Is the header present?
5627echo "$as_me:$LINENO: checking $ac_header presence" >&5
5628echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5629cat >conftest.$ac_ext <<_ACEOF
5630#line $LINENO "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005631#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005632#include <$ac_header>
5633_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5636 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005637 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005638 rm -f conftest.er1
5639 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005641 (exit $ac_status); } >/dev/null; then
5642 if test -s conftest.err; then
5643 ac_cpp_err=$ac_c_preproc_warn_flag
5644 else
5645 ac_cpp_err=
5646 fi
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005647else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005648 ac_cpp_err=yes
5649fi
5650if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005651 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005652else
5653 echo "$as_me: failed program was:" >&5
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005654 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005655 ac_header_preproc=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005656fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005657rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5659echo "${ECHO_T}$ac_header_preproc" >&6
5660
5661# So? What about this header?
5662case $ac_header_compiler:$ac_header_preproc in
5663 yes:no )
5664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5668 no:yes )
5669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5670echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5672echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5674echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5675esac
5676echo "$as_me:$LINENO: checking for $ac_header" >&5
5677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5678if eval "test \"\${$as_ac_Header+set}\" = set"; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5680else
5681 eval "$as_ac_Header=$ac_header_preproc"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005682fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005685
5686fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005687if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005688 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005690_ACEOF
5691 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005692echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
5693if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005695else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005696 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005697LIBS="-ljpeg $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005698cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005699#line $LINENO "configure"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005700#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005701
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005702/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005703#ifdef __cplusplus
5704extern "C"
5705#endif
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005706/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005707 builtin and then its argument prototype would still apply. */
5708char jpeg_start_decompress ();
5709int
5710main ()
5711{
5712jpeg_start_decompress ();
5713 ;
5714 return 0;
5715}
5716_ACEOF
5717rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005719 (eval $ac_link) 2>&5
5720 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005722 (exit $ac_status); } &&
5723 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005725 (eval $ac_try) 2>&5
5726 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005728 (exit $ac_status); }; }; then
5729 ac_cv_lib_jpeg_jpeg_start_decompress=yes
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005730else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005731 echo "$as_me: failed program was:" >&5
5732cat conftest.$ac_ext >&5
5733ac_cv_lib_jpeg_jpeg_start_decompress=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005734fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005735rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5736LIBS=$ac_check_lib_save_LIBS
5737fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005738echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005739echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
5740if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005741
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005742cat >>confdefs.h <<\_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005743#define HAVE_LIBJPEG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005744_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005745
5746 JPEGLIB="-ljpeg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005747
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005748fi
5749
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005750
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005751fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005752
Marcus Meissner252b0fe2001-08-06 18:52:14 +00005753done
5754
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005755
5756
5757
5758
Patrik Stridvall2941a212000-04-25 20:34:22 +00005759XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00005760
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00005761OPENGLFILES=""
5762
Marcus Meissnerb63ab442001-06-08 19:02:57 +00005763GLU32FILES=""
Patrik Stridvallea584721998-11-01 16:22:07 +00005764if test "$have_x" = "yes"
5765then
Patrik Stridvall24110281999-02-04 10:09:54 +00005766 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00005767 ac_save_CPPFLAGS="$CPPFLAGS"
5768 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00005769
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005770
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005771for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005772do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005774if eval "test \"\${$as_ac_Header+set}\" = set"; then
5775 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5777if eval "test \"\${$as_ac_Header+set}\" = set"; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005779fi
5780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5781echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005782else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005783 # Is the header compilable?
5784echo "$as_me:$LINENO: checking $ac_header usability" >&5
5785echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5786cat >conftest.$ac_ext <<_ACEOF
5787#line $LINENO "configure"
5788#include "confdefs.h"
5789$ac_includes_default
5790#include <$ac_header>
5791_ACEOF
5792rm -f conftest.$ac_objext
5793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5794 (eval $ac_compile) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } &&
5798 { ac_try='test -s conftest.$ac_objext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_header_compiler=yes
5805else
5806 echo "$as_me: failed program was:" >&5
5807cat conftest.$ac_ext >&5
5808ac_header_compiler=no
5809fi
5810rm -f conftest.$ac_objext conftest.$ac_ext
5811echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5812echo "${ECHO_T}$ac_header_compiler" >&6
5813
5814# Is the header present?
5815echo "$as_me:$LINENO: checking $ac_header presence" >&5
5816echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5817cat >conftest.$ac_ext <<_ACEOF
5818#line $LINENO "configure"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005819#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005820#include <$ac_header>
5821_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5824 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005825 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005826 rm -f conftest.er1
5827 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005829 (exit $ac_status); } >/dev/null; then
5830 if test -s conftest.err; then
5831 ac_cpp_err=$ac_c_preproc_warn_flag
5832 else
5833 ac_cpp_err=
5834 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005835else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005836 ac_cpp_err=yes
5837fi
5838if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005839 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005840else
5841 echo "$as_me: failed program was:" >&5
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005842 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005843 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005844fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005845rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005846echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5847echo "${ECHO_T}$ac_header_preproc" >&6
5848
5849# So? What about this header?
5850case $ac_header_compiler:$ac_header_preproc in
5851 yes:no )
5852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5853echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5855echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5856 no:yes )
5857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5858echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5860echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5862echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5863esac
5864echo "$as_me:$LINENO: checking for $ac_header" >&5
5865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5866if eval "test \"\${$as_ac_Header+set}\" = set"; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869 eval "$as_ac_Header=$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00005870fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005872echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005873
5874fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005875if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005876 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005877#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005878_ACEOF
5879
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005880
5881for ac_header in X11/XKBlib.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005882do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005883as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Gregg Mattinson044b5c42002-07-19 03:16:51 +00005884echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5886if eval "test \"\${$as_ac_Header+set}\" = set"; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005888else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00005889 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005890#line $LINENO "configure"
5891#include "confdefs.h"
Gregg Mattinson044b5c42002-07-19 03:16:51 +00005892#include <X11/Xlib.h>
5893
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005894#include <$ac_header>
5895_ACEOF
5896rm -f conftest.$ac_objext
5897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898 (eval $ac_compile) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } &&
5902 { ac_try='test -s conftest.$ac_objext'
5903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 (eval $ac_try) 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00005908 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005909else
5910 echo "$as_me: failed program was:" >&5
5911cat conftest.$ac_ext >&5
Gregg Mattinson044b5c42002-07-19 03:16:51 +00005912eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005913fi
5914rm -f conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005915fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005916echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005917echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5918if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005919 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005921_ACEOF
5922 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005923echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
5924if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005926else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005927 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00005928LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005929cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005930#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00005931#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005932
Patrik Stridvall24110281999-02-04 10:09:54 +00005933/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005934#ifdef __cplusplus
5935extern "C"
5936#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00005937/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005938 builtin and then its argument prototype would still apply. */
5939char XkbQueryExtension ();
5940int
5941main ()
5942{
5943XkbQueryExtension ();
5944 ;
5945 return 0;
5946}
5947_ACEOF
5948rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005950 (eval $ac_link) 2>&5
5951 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005953 (exit $ac_status); } &&
5954 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005956 (eval $ac_try) 2>&5
5957 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005959 (exit $ac_status); }; }; then
5960 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00005961else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005962 echo "$as_me: failed program was:" >&5
5963cat conftest.$ac_ext >&5
5964ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00005965fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005966rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5967LIBS=$ac_check_lib_save_LIBS
5968fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005969echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005970echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
5971if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00005972
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005973cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00005974#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005975_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00005976
Patrik Stridvall24110281999-02-04 10:09:54 +00005977fi
5978
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005979
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005980else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005981 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005982echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005983fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005984
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00005985done
5986
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005987
5988
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005989for ac_header in X11/extensions/XShm.h
Patrik Stridvall24110281999-02-04 10:09:54 +00005990do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005991as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005992echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5994if eval "test \"\${$as_ac_Header+set}\" = set"; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00005996else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005997 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005998#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00005999#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006000#include <X11/Xlib.h>
6001
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006002#include <$ac_header>
6003_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006004rm -f conftest.$ac_objext
6005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6006 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006007 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } &&
6010 { ac_try='test -s conftest.$ac_objext'
6011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 (eval $ac_try) 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006016 eval "$as_ac_Header=yes"
6017else
6018 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006019cat conftest.$ac_ext >&5
6020eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006021fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006022rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006023fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6026if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006027 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006028#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006029_ACEOF
6030 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006031echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6032if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006034else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006035 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00006036LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006037cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006038#line $LINENO "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006039#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006040
Francois Jacques5b6879c2000-07-28 23:04:54 +00006041/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006042#ifdef __cplusplus
6043extern "C"
6044#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00006045/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006046 builtin and then its argument prototype would still apply. */
6047char XShmQueryExtension ();
6048int
6049main ()
6050{
6051XShmQueryExtension ();
6052 ;
6053 return 0;
6054}
6055_ACEOF
6056rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006058 (eval $ac_link) 2>&5
6059 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006061 (exit $ac_status); } &&
6062 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006064 (eval $ac_try) 2>&5
6065 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006067 (exit $ac_status); }; }; then
6068 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00006069else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006070 echo "$as_me: failed program was:" >&5
6071cat conftest.$ac_ext >&5
6072ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00006073fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006074rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6075LIBS=$ac_check_lib_save_LIBS
6076fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006077echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006078echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
6079if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00006080
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006081cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006082#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006083_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00006084
Francois Jacques5b6879c2000-07-28 23:04:54 +00006085fi
6086
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006087
Francois Jacques5b6879c2000-07-28 23:04:54 +00006088else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006089 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006090echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
Francois Jacques5b6879c2000-07-28 23:04:54 +00006091fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006092
Francois Jacques5b6879c2000-07-28 23:04:54 +00006093done
6094
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006095
6096
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006097for ac_header in X11/Xutil.h
6098do
6099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6100echo "$as_me:$LINENO: checking for $ac_header" >&5
6101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6102if eval "test \"\${$as_ac_Header+set}\" = set"; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6104else
6105 cat >conftest.$ac_ext <<_ACEOF
6106#line $LINENO "configure"
6107#include "confdefs.h"
6108#include <X11/Xlib.h>
6109
6110#include <$ac_header>
6111_ACEOF
6112rm -f conftest.$ac_objext
6113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6114 (eval $ac_compile) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } &&
6118 { ac_try='test -s conftest.$ac_objext'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 eval "$as_ac_Header=yes"
6125else
6126 echo "$as_me: failed program was:" >&5
6127cat conftest.$ac_ext >&5
6128eval "$as_ac_Header=no"
6129fi
6130rm -f conftest.$ac_objext conftest.$ac_ext
6131fi
6132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6133echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6134if test `eval echo '${'$as_ac_Header'}'` = yes; then
6135 cat >>confdefs.h <<_ACEOF
6136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6137_ACEOF
6138
6139fi
6140
6141done
6142
6143
6144
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006145for ac_header in X11/extensions/shape.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00006146do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006148echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6150if eval "test \"\${$as_ac_Header+set}\" = set"; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006152else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006153 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006154#line $LINENO "configure"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006155#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006156#include <X11/Xlib.h>
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006157 #ifdef HAVE_X11_XUTIL_H
6158 # include <X11/Xutil.h>
6159 #endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006160
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006161#include <$ac_header>
6162_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006163rm -f conftest.$ac_objext
6164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6165 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006166 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 (eval $ac_try) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006175 eval "$as_ac_Header=yes"
6176else
6177 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006178cat conftest.$ac_ext >&5
6179eval "$as_ac_Header=no"
Francois Jacques5b6879c2000-07-28 23:04:54 +00006180fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006181rm -f conftest.$ac_objext conftest.$ac_ext
Francois Jacques5b6879c2000-07-28 23:04:54 +00006182fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6185if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006186 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006188_ACEOF
6189 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006190echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
6191if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00006193else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006194 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00006195LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006196cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006197#line $LINENO "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006198#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006199
Ove Kaavenc90fb252001-01-02 22:39:14 +00006200/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006201#ifdef __cplusplus
6202extern "C"
6203#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00006204/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006205 builtin and then its argument prototype would still apply. */
6206char XShapeQueryExtension ();
6207int
6208main ()
6209{
6210XShapeQueryExtension ();
6211 ;
6212 return 0;
6213}
6214_ACEOF
6215rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006217 (eval $ac_link) 2>&5
6218 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006220 (exit $ac_status); } &&
6221 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006223 (eval $ac_try) 2>&5
6224 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006226 (exit $ac_status); }; }; then
6227 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00006228else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006229 echo "$as_me: failed program was:" >&5
6230cat conftest.$ac_ext >&5
6231ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00006232fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006233rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6234LIBS=$ac_check_lib_save_LIBS
6235fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006236echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006237echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
6238if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00006239
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006240cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006241#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006242_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006243
Ove Kaavenc90fb252001-01-02 22:39:14 +00006244fi
6245
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006246
Ove Kaavenc90fb252001-01-02 22:39:14 +00006247else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006248 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006249echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
Ove Kaavenc90fb252001-01-02 22:39:14 +00006250fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006251
Ove Kaavenc90fb252001-01-02 22:39:14 +00006252done
6253
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006254
6255
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006256for ac_header in X11/extensions/xf86dga.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00006257do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006259echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6261if eval "test \"\${$as_ac_Header+set}\" = set"; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00006263else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006264 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006265#line $LINENO "configure"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006266#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006267#include <X11/Xlib.h>
6268
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006269#include <$ac_header>
6270_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006271rm -f conftest.$ac_objext
6272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006274 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -s conftest.$ac_objext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006283 eval "$as_ac_Header=yes"
6284else
6285 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006286cat conftest.$ac_ext >&5
6287eval "$as_ac_Header=no"
Ove Kaavenc90fb252001-01-02 22:39:14 +00006288fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006289rm -f conftest.$ac_objext conftest.$ac_ext
Ove Kaavenc90fb252001-01-02 22:39:14 +00006290fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6293if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006294 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006296_ACEOF
6297 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006298echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6299if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006301else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006302 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006303LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006304 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006305cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006306#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006307#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006308
Patrik Stridvall24110281999-02-04 10:09:54 +00006309/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006310#ifdef __cplusplus
6311extern "C"
6312#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006313/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006314 builtin and then its argument prototype would still apply. */
6315char XDGAQueryExtension ();
6316int
6317main ()
6318{
6319XDGAQueryExtension ();
6320 ;
6321 return 0;
6322}
6323_ACEOF
6324rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006326 (eval $ac_link) 2>&5
6327 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006329 (exit $ac_status); } &&
6330 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006332 (eval $ac_try) 2>&5
6333 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006335 (exit $ac_status); }; }; then
6336 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006337else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006338 echo "$as_me: failed program was:" >&5
6339cat conftest.$ac_ext >&5
6340ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006341fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006342rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6343LIBS=$ac_check_lib_save_LIBS
6344fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006345echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006346echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
6347if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006348
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006349cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006350#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006351_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006352
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006353 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006354
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006355else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006356 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006357echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
6358if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006360else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006361 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006362LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6363 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006364cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006365#line $LINENO "configure"
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006366#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006367
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006368/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006369#ifdef __cplusplus
6370extern "C"
6371#endif
Lionel Ulmerd94475b1999-09-20 18:42:46 +00006372/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006373 builtin and then its argument prototype would still apply. */
6374char XF86DGAQueryExtension ();
6375int
6376main ()
6377{
6378XF86DGAQueryExtension ();
6379 ;
6380 return 0;
6381}
6382_ACEOF
6383rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006385 (eval $ac_link) 2>&5
6386 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006388 (exit $ac_status); } &&
6389 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006391 (eval $ac_try) 2>&5
6392 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006394 (exit $ac_status); }; }; then
6395 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006396else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006397 echo "$as_me: failed program was:" >&5
6398cat conftest.$ac_ext >&5
6399ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006400fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006401rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6402LIBS=$ac_check_lib_save_LIBS
6403fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006404echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006405echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
6406if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006407
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006408cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006409#define HAVE_LIBXXF86DGA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006410_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006411
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006412 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006413
Patrik Stridvall24110281999-02-04 10:09:54 +00006414fi
6415
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006416
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006417fi
Patrik Stridvall24110281999-02-04 10:09:54 +00006418
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006419
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006420else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006421 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006422echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006423fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006424
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006425done
6426
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006427
6428
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006429for ac_header in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006430do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006431as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006432echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6434if eval "test \"\${$as_ac_Header+set}\" = set"; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006436else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006437 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006438#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006439#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006440#include <X11/Xlib.h>
6441
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006442#include <$ac_header>
6443_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006444rm -f conftest.$ac_objext
6445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6446 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006447 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try='test -s conftest.$ac_objext'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452 (eval $ac_try) 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006456 eval "$as_ac_Header=yes"
6457else
6458 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006459cat conftest.$ac_ext >&5
6460eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006461fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006462rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006463fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6466if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006467 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006469_ACEOF
6470 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006471echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
6472if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006474else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006475 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006476LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6477 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006478cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006479#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006480#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006481
Patrik Stridvall24110281999-02-04 10:09:54 +00006482/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006483#ifdef __cplusplus
6484extern "C"
6485#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006486/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006487 builtin and then its argument prototype would still apply. */
6488char XF86VidModeQueryExtension ();
6489int
6490main ()
6491{
6492XF86VidModeQueryExtension ();
6493 ;
6494 return 0;
6495}
6496_ACEOF
6497rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006499 (eval $ac_link) 2>&5
6500 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006502 (exit $ac_status); } &&
6503 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006505 (eval $ac_try) 2>&5
6506 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006508 (exit $ac_status); }; }; then
6509 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006510else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006511 echo "$as_me: failed program was:" >&5
6512cat conftest.$ac_ext >&5
6513ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006514fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006515rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6516LIBS=$ac_check_lib_save_LIBS
6517fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006518echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006519echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
6520if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006521
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006522cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006523#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006524_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006525
6526 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006527
Patrik Stridvall24110281999-02-04 10:09:54 +00006528fi
6529
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006530
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006531else
6532 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
6533echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006534fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006535
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006536done
Lionel Ulmer5c085701999-02-28 19:48:53 +00006537
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006538
6539
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006540for ac_header in X11/extensions/Xvlib.h
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006541do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006542as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006543echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6545if eval "test \"\${$as_ac_Header+set}\" = set"; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006547else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006548 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006549#line $LINENO "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006550#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006551#include <X11/Xlib.h>
6552
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006553#include <$ac_header>
6554_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006555rm -f conftest.$ac_objext
6556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006558 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try='test -s conftest.$ac_objext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006567 eval "$as_ac_Header=yes"
6568else
6569 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006570cat conftest.$ac_ext >&5
6571eval "$as_ac_Header=no"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006572fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006573rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006574fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6577if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006578 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006579#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006580_ACEOF
6581 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006582echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
6583if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006585else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006586 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006587LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
6588 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006589cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006590#line $LINENO "configure"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006591#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006592
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006593/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006594#ifdef __cplusplus
6595extern "C"
6596#endif
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006597/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006598 builtin and then its argument prototype would still apply. */
6599char XvShmCreateImage ();
6600int
6601main ()
6602{
6603XvShmCreateImage ();
6604 ;
6605 return 0;
6606}
6607_ACEOF
6608rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006610 (eval $ac_link) 2>&5
6611 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006613 (exit $ac_status); } &&
6614 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006616 (eval $ac_try) 2>&5
6617 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006619 (exit $ac_status); }; }; then
6620 ac_cv_lib_Xv_XvShmCreateImage=yes
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006621else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006622 echo "$as_me: failed program was:" >&5
6623cat conftest.$ac_ext >&5
6624ac_cv_lib_Xv_XvShmCreateImage=no
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006625fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006626rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6627LIBS=$ac_check_lib_save_LIBS
6628fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006629echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006630echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
6631if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006632
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006633cat >>confdefs.h <<\_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006634#define HAVE_XVIDEO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006635_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006636
6637 X_PRE_LIBS="$X_PRE_LIBS -lXv"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006638
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006639fi
6640
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006641
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006642else
6643 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
6644echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006645fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006646
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00006647done
6648
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006649
6650
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006651for ac_header in X11/extensions/Xrender.h
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006652do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006653as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006654echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6656if eval "test \"\${$as_ac_Header+set}\" = set"; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006658else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006659 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006660#line $LINENO "configure"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006661#include "confdefs.h"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006662#include <X11/Xlib.h>
6663
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006664#include <$ac_header>
6665_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006666rm -f conftest.$ac_objext
6667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6668 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006669 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } &&
6672 { ac_try='test -s conftest.$ac_objext'
6673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 (eval $ac_try) 2>&5
6675 ac_status=$?
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006678 eval "$as_ac_Header=yes"
6679else
6680 echo "$as_me: failed program was:" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006681cat conftest.$ac_ext >&5
6682eval "$as_ac_Header=no"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006683fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006684rm -f conftest.$ac_objext conftest.$ac_ext
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006685fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6688if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006689 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006691_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006692
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006693fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006694
Huw D M Daviesff453fc2001-09-14 01:04:25 +00006695done
6696
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006697
6698
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006699fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006700
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006701done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006702
6703 if test "x$enable_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006704 then
Francois Gouget42dcd972002-01-29 17:52:28 +00006705 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00006706 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006707 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006708This prevents linking to OpenGL. Delete the file and restart configure." >&5
6709echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
6710This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
6711 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00006712 fi
6713
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006714
6715
6716for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006717do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006718as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006719if eval "test \"\${$as_ac_Header+set}\" = set"; then
6720 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6722if eval "test \"\${$as_ac_Header+set}\" = set"; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006724fi
6725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6726echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006727else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006728 # Is the header compilable?
6729echo "$as_me:$LINENO: checking $ac_header usability" >&5
6730echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6731cat >conftest.$ac_ext <<_ACEOF
6732#line $LINENO "configure"
6733#include "confdefs.h"
6734$ac_includes_default
6735#include <$ac_header>
6736_ACEOF
6737rm -f conftest.$ac_objext
6738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739 (eval $ac_compile) 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } &&
6743 { ac_try='test -s conftest.$ac_objext'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 (eval $ac_try) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6749 ac_header_compiler=yes
6750else
6751 echo "$as_me: failed program was:" >&5
6752cat conftest.$ac_ext >&5
6753ac_header_compiler=no
6754fi
6755rm -f conftest.$ac_objext conftest.$ac_ext
6756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6757echo "${ECHO_T}$ac_header_compiler" >&6
6758
6759# Is the header present?
6760echo "$as_me:$LINENO: checking $ac_header presence" >&5
6761echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6762cat >conftest.$ac_ext <<_ACEOF
6763#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006764#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006765#include <$ac_header>
6766_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6769 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006770 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006771 rm -f conftest.er1
6772 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006774 (exit $ac_status); } >/dev/null; then
6775 if test -s conftest.err; then
6776 ac_cpp_err=$ac_c_preproc_warn_flag
6777 else
6778 ac_cpp_err=
6779 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00006780else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006781 ac_cpp_err=yes
6782fi
6783if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006784 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006785else
6786 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00006787 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006788 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006789fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006790rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6792echo "${ECHO_T}$ac_header_preproc" >&6
6793
6794# So? What about this header?
6795case $ac_header_compiler:$ac_header_preproc in
6796 yes:no )
6797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6801 no:yes )
6802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6805echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6807echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6808esac
6809echo "$as_me:$LINENO: checking for $ac_header" >&5
6810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6811if eval "test \"\${$as_ac_Header+set}\" = set"; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00006815fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006818
Patrik Stridvall24110281999-02-04 10:09:54 +00006819fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006820if test `eval echo '${'$as_ac_Header'}'` = yes; then
6821 cat >>confdefs.h <<_ACEOF
6822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6823_ACEOF
6824
6825fi
6826
Patrik Stridvall24110281999-02-04 10:09:54 +00006827done
6828
Marcus Meissner22a969b2000-08-08 20:46:50 +00006829 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006830 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006831
6832for ac_header in GL/glext.h
6833do
6834as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6835echo "$as_me:$LINENO: checking for $ac_header" >&5
6836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6837if eval "test \"\${$as_ac_Header+set}\" = set"; then
6838 echo $ECHO_N "(cached) $ECHO_C" >&6
6839else
6840 cat >conftest.$ac_ext <<_ACEOF
6841#line $LINENO "configure"
6842#include "confdefs.h"
6843#include <GL/glx.h>
6844
6845#include <$ac_header>
6846_ACEOF
6847rm -f conftest.$ac_objext
6848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6849 (eval $ac_compile) 2>&5
6850 ac_status=$?
6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
6853 { ac_try='test -s conftest.$ac_objext'
6854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6855 (eval $ac_try) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); }; }; then
6859 eval "$as_ac_Header=yes"
6860else
6861 echo "$as_me: failed program was:" >&5
6862cat conftest.$ac_ext >&5
6863eval "$as_ac_Header=no"
6864fi
6865rm -f conftest.$ac_objext conftest.$ac_ext
6866fi
6867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6869if test `eval echo '${'$as_ac_Header'}'` = yes; then
6870 cat >>confdefs.h <<_ACEOF
6871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6872_ACEOF
6873
6874fi
6875
6876done
6877
6878 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006879echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
6880if test "${wine_cv_opengl_version_OK+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00006882else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006883 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006884#line $LINENO "configure"
Lionel Ulmer5c085701999-02-28 19:48:53 +00006885#include "confdefs.h"
6886#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006887int
6888main ()
6889{
Lionel Ulmer5c085701999-02-28 19:48:53 +00006890GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006891 ;
6892 return 0;
6893}
6894_ACEOF
6895rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006897 (eval $ac_compile) 2>&5
6898 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006900 (exit $ac_status); } &&
6901 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006903 (eval $ac_try) 2>&5
6904 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006906 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006907 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00006908else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006909 echo "$as_me: failed program was:" >&5
6910cat conftest.$ac_ext >&5
6911wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00006912
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006913fi
6914rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00006915
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006916fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006917echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006918echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
6919
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006920 echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006921echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6
6922if test "${wine_cv_opengl_version_threadsafe+set}" = set; then
6923 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00006924else
6925 saved_libs=$LIBS
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006926 LIBS="$X_LIBS -lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006927 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006928#line $LINENO "configure"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00006929#include "confdefs.h"
6930
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006931int
6932main ()
6933{
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00006934pthread_getspecific();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006935 ;
6936 return 0;
6937}
6938_ACEOF
6939rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006941 (eval $ac_link) 2>&5
6942 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006944 (exit $ac_status); } &&
6945 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006947 (eval $ac_try) 2>&5
6948 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006950 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006951 wine_cv_opengl_version_threadsafe="yes"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00006952else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006953 echo "$as_me: failed program was:" >&5
6954cat conftest.$ac_ext >&5
6955wine_cv_opengl_version_threadsafe="no"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00006956fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006957rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00006958 LIBS=$saved_libs
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006959
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00006960fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006961echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006962echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +00006963
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006964 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 +00006965 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006966 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006967echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
6968if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006970else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006971 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00006972LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006973cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006974#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00006975#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006976
Patrik Stridvall24110281999-02-04 10:09:54 +00006977/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006978#ifdef __cplusplus
6979extern "C"
6980#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006981/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006982 builtin and then its argument prototype would still apply. */
6983char glXCreateContext ();
6984int
6985main ()
6986{
6987glXCreateContext ();
6988 ;
6989 return 0;
6990}
6991_ACEOF
6992rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006994 (eval $ac_link) 2>&5
6995 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006997 (exit $ac_status); } &&
6998 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007000 (eval $ac_try) 2>&5
7001 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007003 (exit $ac_status); }; }; then
7004 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007005else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007006 echo "$as_me: failed program was:" >&5
7007cat conftest.$ac_ext >&5
7008ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007009fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007010rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7011LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00007012fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007013echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007014echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7015if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007016 X_PRE_LIBS="$X_PRE_LIBS -lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00007017
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007018fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007019
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007020
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007021 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00007022 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00007023 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007024
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007025cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007026#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007027_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007028
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007029
7030 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007031echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7032if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007034else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007035 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007036LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007037cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007038#line $LINENO "configure"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007039#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007040
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007041/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007042#ifdef __cplusplus
7043extern "C"
7044#endif
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007045/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007046 builtin and then its argument prototype would still apply. */
7047char glXGetProcAddressARB ();
7048int
7049main ()
7050{
7051glXGetProcAddressARB ();
7052 ;
7053 return 0;
7054}
7055_ACEOF
7056rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007058 (eval $ac_link) 2>&5
7059 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007061 (exit $ac_status); } &&
7062 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007064 (eval $ac_try) 2>&5
7065 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007067 (exit $ac_status); }; }; then
7068 ac_cv_lib_GL_glXGetProcAddressARB=yes
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007069else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007070 echo "$as_me: failed program was:" >&5
7071cat conftest.$ac_ext >&5
7072ac_cv_lib_GL_glXGetProcAddressARB=no
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007073fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007074rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7075LIBS=$ac_check_lib_save_LIBS
7076fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007077echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007078echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7079if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007080
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007081cat >>confdefs.h <<\_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007082#define HAVE_GLX_GETPROCADDRESS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007083_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007084
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007085fi
7086
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007087
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007088 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007089 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007090 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007091echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7092if test "${wine_cv_extension_prototypes+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer1434d872000-07-23 14:23:31 +00007094else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007095 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007096#line $LINENO "configure"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007097#include "confdefs.h"
7098#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00007099 #ifdef HAVE_GL_GLEXT_H
7100 # include <GL/glext.h>
7101 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007102
7103int
7104main ()
7105{
Lionel Ulmer1434d872000-07-23 14:23:31 +00007106PFNGLCOLORTABLEEXTPROC test_proc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007107 ;
7108 return 0;
7109}
7110_ACEOF
7111rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007113 (eval $ac_compile) 2>&5
7114 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007116 (exit $ac_status); } &&
7117 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007119 (eval $ac_try) 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); }; }; then
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007123 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007124else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007125 echo "$as_me: failed program was:" >&5
7126cat conftest.$ac_ext >&5
7127wine_cv_extension_prototypes="no"
Lionel Ulmer1434d872000-07-23 14:23:31 +00007128
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007129fi
7130rm -f conftest.$ac_objext conftest.$ac_ext
7131
7132fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007133echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007134echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007135 if test "$wine_cv_extension_prototypes" = "yes"
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007136 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007137
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007138cat >>confdefs.h <<\_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007139#define HAVE_GLEXT_PROTOTYPES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007140_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00007141
7142 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007143 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00007144
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007145 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007146 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007147echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7148if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007150else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007151 ac_check_lib_save_LIBS=$LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007152LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
7153 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007154cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007155#line $LINENO "configure"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007156#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007157
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007158/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007159#ifdef __cplusplus
7160extern "C"
7161#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007162/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007163 builtin and then its argument prototype would still apply. */
7164char gluLookAt ();
7165int
7166main ()
7167{
7168gluLookAt ();
7169 ;
7170 return 0;
7171}
7172_ACEOF
7173rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007175 (eval $ac_link) 2>&5
7176 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007178 (exit $ac_status); } &&
7179 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007181 (eval $ac_try) 2>&5
7182 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007184 (exit $ac_status); }; }; then
7185 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007186else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007187 echo "$as_me: failed program was:" >&5
7188cat conftest.$ac_ext >&5
7189ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007190fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7192LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007193fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007194echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007195echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7196if test $ac_cv_lib_GLU_gluLookAt = yes; then
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007197 X_PRE_LIBS="$X_PRE_LIBS -lGLU"
7198 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007199
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007200fi
7201
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007202 fi
7203 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007204 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00007205
Francois Gouget6f670b12002-10-10 17:54:27 +00007206 NASLIBS=""
7207
7208
7209for ac_header in audio/audiolib.h
7210do
7211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7212if eval "test \"\${$as_ac_Header+set}\" = set"; then
7213 echo "$as_me:$LINENO: checking for $ac_header" >&5
7214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7215if eval "test \"\${$as_ac_Header+set}\" = set"; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7217fi
7218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7220else
7221 # Is the header compilable?
7222echo "$as_me:$LINENO: checking $ac_header usability" >&5
7223echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7224cat >conftest.$ac_ext <<_ACEOF
7225#line $LINENO "configure"
7226#include "confdefs.h"
7227$ac_includes_default
7228#include <$ac_header>
7229_ACEOF
7230rm -f conftest.$ac_objext
7231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7232 (eval $ac_compile) 2>&5
7233 ac_status=$?
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } &&
7236 { ac_try='test -s conftest.$ac_objext'
7237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238 (eval $ac_try) 2>&5
7239 ac_status=$?
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); }; }; then
7242 ac_header_compiler=yes
7243else
7244 echo "$as_me: failed program was:" >&5
7245cat conftest.$ac_ext >&5
7246ac_header_compiler=no
7247fi
7248rm -f conftest.$ac_objext conftest.$ac_ext
7249echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7250echo "${ECHO_T}$ac_header_compiler" >&6
7251
7252# Is the header present?
7253echo "$as_me:$LINENO: checking $ac_header presence" >&5
7254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7255cat >conftest.$ac_ext <<_ACEOF
7256#line $LINENO "configure"
7257#include "confdefs.h"
7258#include <$ac_header>
7259_ACEOF
7260if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } >/dev/null; then
7268 if test -s conftest.err; then
7269 ac_cpp_err=$ac_c_preproc_warn_flag
7270 else
7271 ac_cpp_err=
7272 fi
7273else
7274 ac_cpp_err=yes
7275fi
7276if test -z "$ac_cpp_err"; then
7277 ac_header_preproc=yes
7278else
7279 echo "$as_me: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7281 ac_header_preproc=no
7282fi
7283rm -f conftest.err conftest.$ac_ext
7284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7285echo "${ECHO_T}$ac_header_preproc" >&6
7286
7287# So? What about this header?
7288case $ac_header_compiler:$ac_header_preproc in
7289 yes:no )
7290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7293echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7294 no:yes )
7295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7298echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7300echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7301esac
7302echo "$as_me:$LINENO: checking for $ac_header" >&5
7303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7304if eval "test \"\${$as_ac_Header+set}\" = set"; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7306else
7307 eval "$as_ac_Header=$ac_header_preproc"
7308fi
7309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7311
7312fi
7313if test `eval echo '${'$as_ac_Header'}'` = yes; then
7314 cat >>confdefs.h <<_ACEOF
7315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7316_ACEOF
7317
7318for ac_header in audio/soundlib.h
7319do
7320as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7321echo "$as_me:$LINENO: checking for $ac_header" >&5
7322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7323if eval "test \"\${$as_ac_Header+set}\" = set"; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326 cat >conftest.$ac_ext <<_ACEOF
7327#line $LINENO "configure"
7328#include "confdefs.h"
7329#include <audio/audiolib.h>
7330
7331#include <$ac_header>
7332_ACEOF
7333rm -f conftest.$ac_objext
7334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7335 (eval $ac_compile) 2>&5
7336 ac_status=$?
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } &&
7339 { ac_try='test -s conftest.$ac_objext'
7340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 (eval $ac_try) 2>&5
7342 ac_status=$?
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; }; then
7345 eval "$as_ac_Header=yes"
7346else
7347 echo "$as_me: failed program was:" >&5
7348cat conftest.$ac_ext >&5
7349eval "$as_ac_Header=no"
7350fi
7351rm -f conftest.$ac_objext conftest.$ac_ext
7352fi
7353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7355if test `eval echo '${'$as_ac_Header'}'` = yes; then
7356 cat >>confdefs.h <<_ACEOF
7357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7358_ACEOF
7359
7360fi
7361
7362done
7363
7364 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
7365echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
7366if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7368else
7369 ac_check_lib_save_LIBS=$LIBS
7370LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7371cat >conftest.$ac_ext <<_ACEOF
7372#line $LINENO "configure"
7373#include "confdefs.h"
7374
7375/* Override any gcc2 internal prototype to avoid an error. */
7376#ifdef __cplusplus
7377extern "C"
7378#endif
7379/* We use char because int might match the return type of a gcc2
7380 builtin and then its argument prototype would still apply. */
7381char AuCreateFlow ();
7382int
7383main ()
7384{
7385AuCreateFlow ();
7386 ;
7387 return 0;
7388}
7389_ACEOF
7390rm -f conftest.$ac_objext conftest$ac_exeext
7391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7392 (eval $ac_link) 2>&5
7393 ac_status=$?
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } &&
7396 { ac_try='test -s conftest$ac_exeext'
7397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 (eval $ac_try) 2>&5
7399 ac_status=$?
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; }; then
7402 ac_cv_lib_audio_AuCreateFlow=yes
7403else
7404 echo "$as_me: failed program was:" >&5
7405cat conftest.$ac_ext >&5
7406ac_cv_lib_audio_AuCreateFlow=no
7407fi
7408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7409LIBS=$ac_check_lib_save_LIBS
7410fi
7411echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
7412echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
7413if test $ac_cv_lib_audio_AuCreateFlow = yes; then
7414
7415cat >>confdefs.h <<\_ACEOF
7416#define HAVE_NAS 1
7417_ACEOF
7418
7419 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
7420fi
7421
7422fi
7423
7424done
7425
7426
Ove Kaaven1eb593c1999-02-14 09:34:46 +00007427 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00007428 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00007429else
7430 XLIB=""
7431 X_CFLAGS=""
7432 X_LIBS=""
7433fi
Alexandre Julliard902da691995-11-05 14:39:02 +00007434
Alexandre Julliard48957682001-12-26 23:08:31 +00007435CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007436if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00007437then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007438
7439for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007440do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007442if eval "test \"\${$as_ac_Header+set}\" = set"; then
7443 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7445if eval "test \"\${$as_ac_Header+set}\" = set"; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007447fi
7448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007450else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007451 # Is the header compilable?
7452echo "$as_me:$LINENO: checking $ac_header usability" >&5
7453echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7454cat >conftest.$ac_ext <<_ACEOF
7455#line $LINENO "configure"
7456#include "confdefs.h"
7457$ac_includes_default
7458#include <$ac_header>
7459_ACEOF
7460rm -f conftest.$ac_objext
7461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7462 (eval $ac_compile) 2>&5
7463 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try='test -s conftest.$ac_objext'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 (eval $ac_try) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7472 ac_header_compiler=yes
7473else
7474 echo "$as_me: failed program was:" >&5
7475cat conftest.$ac_ext >&5
7476ac_header_compiler=no
7477fi
7478rm -f conftest.$ac_objext conftest.$ac_ext
7479echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7480echo "${ECHO_T}$ac_header_compiler" >&6
7481
7482# Is the header present?
7483echo "$as_me:$LINENO: checking $ac_header presence" >&5
7484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7485cat >conftest.$ac_ext <<_ACEOF
7486#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00007487#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007488#include <$ac_header>
7489_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7492 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007493 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007494 rm -f conftest.er1
7495 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007497 (exit $ac_status); } >/dev/null; then
7498 if test -s conftest.err; then
7499 ac_cpp_err=$ac_c_preproc_warn_flag
7500 else
7501 ac_cpp_err=
7502 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007503else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007504 ac_cpp_err=yes
7505fi
7506if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007507 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007508else
7509 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00007510 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007511 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007512fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007513rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007514echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7515echo "${ECHO_T}$ac_header_preproc" >&6
7516
7517# So? What about this header?
7518case $ac_header_compiler:$ac_header_preproc in
7519 yes:no )
7520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7521echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7523echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7524 no:yes )
7525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7526echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7528echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7531esac
7532echo "$as_me:$LINENO: checking for $ac_header" >&5
7533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7534if eval "test \"\${$as_ac_Header+set}\" = set"; then
7535 echo $ECHO_N "(cached) $ECHO_C" >&6
7536else
7537 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007538fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007541
7542fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007543if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007544 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007546_ACEOF
7547 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007548echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
7549if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007551else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007552 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007553LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007554cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007555#line $LINENO "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007556#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007557
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007558/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007559#ifdef __cplusplus
7560extern "C"
7561#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007562/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007563 builtin and then its argument prototype would still apply. */
7564char waddch ();
7565int
7566main ()
7567{
7568waddch ();
7569 ;
7570 return 0;
7571}
7572_ACEOF
7573rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007575 (eval $ac_link) 2>&5
7576 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007578 (exit $ac_status); } &&
7579 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007581 (eval $ac_try) 2>&5
7582 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007584 (exit $ac_status); }; }; then
7585 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007586else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007587 echo "$as_me: failed program was:" >&5
7588cat conftest.$ac_ext >&5
7589ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007590fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007591rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7592LIBS=$ac_check_lib_save_LIBS
7593fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007594echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007595echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
7596if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007597
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007598cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00007599#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007600_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007601
Alexandre Julliard48957682001-12-26 23:08:31 +00007602 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007603else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007604
7605for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007606do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007607as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007608if eval "test \"\${$as_ac_Header+set}\" = set"; then
7609 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7611if eval "test \"\${$as_ac_Header+set}\" = set"; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007613fi
7614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007616else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007617 # Is the header compilable?
7618echo "$as_me:$LINENO: checking $ac_header usability" >&5
7619echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7620cat >conftest.$ac_ext <<_ACEOF
7621#line $LINENO "configure"
7622#include "confdefs.h"
7623$ac_includes_default
7624#include <$ac_header>
7625_ACEOF
7626rm -f conftest.$ac_objext
7627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628 (eval $ac_compile) 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try='test -s conftest.$ac_objext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 (eval $ac_try) 2>&5
7635 ac_status=$?
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 ac_header_compiler=yes
7639else
7640 echo "$as_me: failed program was:" >&5
7641cat conftest.$ac_ext >&5
7642ac_header_compiler=no
7643fi
7644rm -f conftest.$ac_objext conftest.$ac_ext
7645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7646echo "${ECHO_T}$ac_header_compiler" >&6
7647
7648# Is the header present?
7649echo "$as_me:$LINENO: checking $ac_header presence" >&5
7650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7651cat >conftest.$ac_ext <<_ACEOF
7652#line $LINENO "configure"
Patrik Stridvall24110281999-02-04 10:09:54 +00007653#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007654#include <$ac_header>
7655_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7658 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007659 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007660 rm -f conftest.er1
7661 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007663 (exit $ac_status); } >/dev/null; then
7664 if test -s conftest.err; then
7665 ac_cpp_err=$ac_c_preproc_warn_flag
7666 else
7667 ac_cpp_err=
7668 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007669else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007670 ac_cpp_err=yes
7671fi
7672if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007673 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007674else
7675 echo "$as_me: failed program was:" >&5
Patrik Stridvall24110281999-02-04 10:09:54 +00007676 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007677 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007678fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007679rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007680echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7681echo "${ECHO_T}$ac_header_preproc" >&6
7682
7683# So? What about this header?
7684case $ac_header_compiler:$ac_header_preproc in
7685 yes:no )
7686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7690 no:yes )
7691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7692echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7694echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7697esac
7698echo "$as_me:$LINENO: checking for $ac_header" >&5
7699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7700if eval "test \"\${$as_ac_Header+set}\" = set"; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702else
7703 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007704fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007707
7708fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007709if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007710 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007711#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007712_ACEOF
7713 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007714echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
7715if test "${ac_cv_lib_curses_waddch+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007717else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007718 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007719LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007720cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007721#line $LINENO "configure"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007722#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007723
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007724/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007725#ifdef __cplusplus
7726extern "C"
7727#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007728/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007729 builtin and then its argument prototype would still apply. */
7730char waddch ();
7731int
7732main ()
7733{
7734waddch ();
7735 ;
7736 return 0;
7737}
7738_ACEOF
7739rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007741 (eval $ac_link) 2>&5
7742 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007744 (exit $ac_status); } &&
7745 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007747 (eval $ac_try) 2>&5
7748 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007750 (exit $ac_status); }; }; then
7751 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007752else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007753 echo "$as_me: failed program was:" >&5
7754cat conftest.$ac_ext >&5
7755ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007756fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007757rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7758LIBS=$ac_check_lib_save_LIBS
7759fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007760echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007761echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
7762if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007763
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007764cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00007765#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007766_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007767
Alexandre Julliard48957682001-12-26 23:08:31 +00007768 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007769fi
7770
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007771fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007772
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007773done
7774
7775fi
Alexandre Julliard48957682001-12-26 23:08:31 +00007776
Alexandre Julliard48957682001-12-26 23:08:31 +00007777fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007778
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007779done
7780
Alexandre Julliard48957682001-12-26 23:08:31 +00007781 saved_libs="$LIBS"
7782 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007783
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007784
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007785for ac_func in getbkgd resizeterm
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007786do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007787as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007788echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7790if eval "test \"\${$as_ac_var+set}\" = set"; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard638f1691999-01-17 16:32:32 +00007792else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007793 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007794#line $LINENO "configure"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007795#include "confdefs.h"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007796/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007797 which can conflict with char $ac_func (); below. */
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007798#include <assert.h>
Alexandre Julliard638f1691999-01-17 16:32:32 +00007799/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007800#ifdef __cplusplus
7801extern "C"
7802#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00007803/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007804 builtin and then its argument prototype would still apply. */
7805char $ac_func ();
7806char (*f) ();
Alexandre Julliard638f1691999-01-17 16:32:32 +00007807
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007808int
7809main ()
7810{
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007811/* The GNU C library defines this for functions which it implements
7812 to always fail with ENOSYS. Some functions are actually named
7813 something starting with __ and the normal name is an alias. */
7814#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7815choke me
7816#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007817f = $ac_func;
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007818#endif
7819
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007820 ;
7821 return 0;
7822}
7823_ACEOF
7824rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007826 (eval $ac_link) 2>&5
7827 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007829 (exit $ac_status); } &&
7830 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007832 (eval $ac_try) 2>&5
7833 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007835 (exit $ac_status); }; }; then
7836 eval "$as_ac_var=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007837else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007838 echo "$as_me: failed program was:" >&5
7839cat conftest.$ac_ext >&5
7840eval "$as_ac_var=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00007841fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007842rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard638f1691999-01-17 16:32:32 +00007843fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007845echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7846if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007847 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007848#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007849_ACEOF
Alexandre Julliard638f1691999-01-17 16:32:32 +00007850
Alexandre Julliard638f1691999-01-17 16:32:32 +00007851fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00007852done
Alexandre Julliard638f1691999-01-17 16:32:32 +00007853
Alexandre Julliard48957682001-12-26 23:08:31 +00007854 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00007855fi
7856
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007857
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007858CUPSLIBS=""
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007859wine_cv_warn_cups_h=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007860echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007861echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6
7862if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007864else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007865 ac_check_lib_save_LIBS=$LIBS
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007866LIBS="-lcups $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007867cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007868#line $LINENO "configure"
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007869#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007870
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007871/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007872#ifdef __cplusplus
7873extern "C"
7874#endif
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007875/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007876 builtin and then its argument prototype would still apply. */
7877char cupsGetPPD ();
7878int
7879main ()
7880{
7881cupsGetPPD ();
7882 ;
7883 return 0;
7884}
7885_ACEOF
7886rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007888 (eval $ac_link) 2>&5
7889 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007891 (exit $ac_status); } &&
7892 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007894 (eval $ac_try) 2>&5
7895 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007897 (exit $ac_status); }; }; then
7898 ac_cv_lib_cups_cupsGetPPD=yes
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007899else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007900 echo "$as_me: failed program was:" >&5
7901cat conftest.$ac_ext >&5
7902ac_cv_lib_cups_cupsGetPPD=no
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007903fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7905LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00007906fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007907echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007908echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6
7909if test $ac_cv_lib_cups_cupsGetPPD = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007910 if test "${ac_cv_header_cups_cups_h+set}" = set; then
7911 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007912echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
7913if test "${ac_cv_header_cups_cups_h+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007915fi
7916echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
7917echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007918else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007919 # Is the header compilable?
7920echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
7921echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
7922cat >conftest.$ac_ext <<_ACEOF
7923#line $LINENO "configure"
7924#include "confdefs.h"
7925$ac_includes_default
7926#include <cups/cups.h>
7927_ACEOF
7928rm -f conftest.$ac_objext
7929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7930 (eval $ac_compile) 2>&5
7931 ac_status=$?
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try='test -s conftest.$ac_objext'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 (eval $ac_try) 2>&5
7937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7940 ac_header_compiler=yes
7941else
7942 echo "$as_me: failed program was:" >&5
7943cat conftest.$ac_ext >&5
7944ac_header_compiler=no
7945fi
7946rm -f conftest.$ac_objext conftest.$ac_ext
7947echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7948echo "${ECHO_T}$ac_header_compiler" >&6
7949
7950# Is the header present?
7951echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
7952echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
7953cat >conftest.$ac_ext <<_ACEOF
7954#line $LINENO "configure"
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007955#include "confdefs.h"
7956#include <cups/cups.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007957_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7960 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007961 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007962 rm -f conftest.er1
7963 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007965 (exit $ac_status); } >/dev/null; then
7966 if test -s conftest.err; then
7967 ac_cpp_err=$ac_c_preproc_warn_flag
7968 else
7969 ac_cpp_err=
7970 fi
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007971else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007972 ac_cpp_err=yes
7973fi
7974if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007975 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007976else
7977 echo "$as_me: failed program was:" >&5
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007978 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007979 ac_header_preproc=no
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00007980fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007981rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007982echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7983echo "${ECHO_T}$ac_header_preproc" >&6
7984
7985# So? What about this header?
7986case $ac_header_compiler:$ac_header_preproc in
7987 yes:no )
7988 { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
7989echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7990 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7991echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7992 no:yes )
7993 { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
7994echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
7996echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
7998echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};;
7999esac
8000echo "$as_me:$LINENO: checking for cups/cups.h" >&5
8001echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
8002if test "${ac_cv_header_cups_cups_h+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8004else
8005 ac_cv_header_cups_cups_h=$ac_header_preproc
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00008006fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008007echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008008echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008009
8010fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008011if test $ac_cv_header_cups_cups_h = yes; then
8012
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008013cat >>confdefs.h <<\_ACEOF
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00008014#define HAVE_CUPS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008015_ACEOF
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00008016
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00008017 CUPSLIBS="-lcups"
8018else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008019 wine_cv_warn_cups_h=yes
Marcus Meissner3ee02ba2001-04-30 18:18:50 +00008020fi
8021
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008022
8023
Marcus Meissnerab8b7db2001-04-27 18:02:46 +00008024fi
8025
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008026
8027
Shi Quan He6b0720f2002-03-21 02:58:39 +00008028# Extract the first word of "sane-config", so it can be a program name with args.
8029set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008030echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8032if test "${ac_cv_prog_sane_devel+set}" = set; then
8033 echo $ECHO_N "(cached) $ECHO_C" >&6
8034else
8035 if test -n "$sane_devel"; then
8036 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8037else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041 IFS=$as_save_IFS
8042 test -z "$as_dir" && as_dir=.
8043 for ac_exec_ext in '' $ac_executable_extensions; do
8044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8045 ac_cv_prog_sane_devel="sane-config"
8046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 break 2
8048 fi
8049done
Shi Quan He6b0720f2002-03-21 02:58:39 +00008050done
8051
8052 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8053fi
8054fi
8055sane_devel=$ac_cv_prog_sane_devel
8056if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008057 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008058echo "${ECHO_T}$sane_devel" >&6
8059else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008060 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008061echo "${ECHO_T}no" >&6
8062fi
8063
8064if test "$sane_devel" = "no"
8065then
8066 SANELIBS=""
8067 SANEINCL=""
8068else
8069 SANELIBS="`$sane_devel --libs`"
8070 SANEINCL="`$sane_devel --cflags`"
8071 ac_save_CPPFLAGS="$CPPFLAGS"
8072 ac_save_LIBS="$LIBS"
8073 CPPFLAGS="$CPPFLAGS $SANEINCL"
8074 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008075 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8076 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008077echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8078if test "${ac_cv_header_sane_sane_h+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008080fi
8081echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8082echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00008083else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008084 # Is the header compilable?
8085echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8086echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8087cat >conftest.$ac_ext <<_ACEOF
8088#line $LINENO "configure"
8089#include "confdefs.h"
8090$ac_includes_default
8091#include <sane/sane.h>
8092_ACEOF
8093rm -f conftest.$ac_objext
8094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8095 (eval $ac_compile) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } &&
8099 { ac_try='test -s conftest.$ac_objext'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 (eval $ac_try) 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8105 ac_header_compiler=yes
8106else
8107 echo "$as_me: failed program was:" >&5
8108cat conftest.$ac_ext >&5
8109ac_header_compiler=no
8110fi
8111rm -f conftest.$ac_objext conftest.$ac_ext
8112echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8113echo "${ECHO_T}$ac_header_compiler" >&6
8114
8115# Is the header present?
8116echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8117echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8118cat >conftest.$ac_ext <<_ACEOF
8119#line $LINENO "configure"
Shi Quan He6b0720f2002-03-21 02:58:39 +00008120#include "confdefs.h"
8121#include <sane/sane.h>
8122_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8125 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008126 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +00008127 rm -f conftest.er1
8128 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008130 (exit $ac_status); } >/dev/null; then
8131 if test -s conftest.err; then
8132 ac_cpp_err=$ac_c_preproc_warn_flag
8133 else
8134 ac_cpp_err=
8135 fi
8136else
8137 ac_cpp_err=yes
8138fi
8139if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008140 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +00008141else
8142 echo "$as_me: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008144 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +00008145fi
8146rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008147echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8148echo "${ECHO_T}$ac_header_preproc" >&6
8149
8150# So? What about this header?
8151case $ac_header_compiler:$ac_header_preproc in
8152 yes:no )
8153 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8154echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8155 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8156echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8157 no:yes )
8158 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8159echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8160 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8161echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8162 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
8163echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};;
8164esac
8165echo "$as_me:$LINENO: checking for sane/sane.h" >&5
8166echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8167if test "${ac_cv_header_sane_sane_h+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8169else
8170 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +00008171fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008172echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008173echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008174
8175fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00008176if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008177 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008178echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
8179if test "${ac_cv_lib_sane_sane_open+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8181else
8182 ac_check_lib_save_LIBS=$LIBS
8183LIBS="-lsane $LIBS"
8184cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008185#line $LINENO "configure"
Shi Quan He6b0720f2002-03-21 02:58:39 +00008186#include "confdefs.h"
8187
8188/* Override any gcc2 internal prototype to avoid an error. */
8189#ifdef __cplusplus
8190extern "C"
8191#endif
8192/* We use char because int might match the return type of a gcc2
8193 builtin and then its argument prototype would still apply. */
8194char sane_open ();
8195int
8196main ()
8197{
8198sane_open ();
8199 ;
8200 return 0;
8201}
8202_ACEOF
8203rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008205 (eval $ac_link) 2>&5
8206 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008208 (exit $ac_status); } &&
8209 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008211 (eval $ac_try) 2>&5
8212 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008214 (exit $ac_status); }; }; then
8215 ac_cv_lib_sane_sane_open=yes
8216else
8217 echo "$as_me: failed program was:" >&5
8218cat conftest.$ac_ext >&5
8219ac_cv_lib_sane_sane_open=no
8220fi
8221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8222LIBS=$ac_check_lib_save_LIBS
8223fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008224echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008225echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
8226if test $ac_cv_lib_sane_sane_open = yes; then
8227
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008228cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008229#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008230_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00008231
8232else
8233 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +00008234 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00008235fi
8236
Alexandre Julliard96328b32002-03-31 19:23:41 +00008237else
8238 SANELIBS=""
8239 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00008240fi
8241
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008242
Shi Quan He6b0720f2002-03-21 02:58:39 +00008243 LIBS="$ac_save_LIBS"
8244 CPPFLAGS="$ac_save_CPPFLAGS"
8245fi
8246
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008247
8248
8249echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008250echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
8251if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008253else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008254 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00008255LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008256cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008257#line $LINENO "configure"
Ian Pilcher563598d2001-05-16 20:56:05 +00008258#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008259
Ian Pilcher563598d2001-05-16 20:56:05 +00008260/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008261#ifdef __cplusplus
8262extern "C"
8263#endif
Ian Pilcher563598d2001-05-16 20:56:05 +00008264/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008265 builtin and then its argument prototype would still apply. */
8266char FT_Init_FreeType ();
8267int
8268main ()
8269{
8270FT_Init_FreeType ();
8271 ;
8272 return 0;
8273}
8274_ACEOF
8275rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008277 (eval $ac_link) 2>&5
8278 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008280 (exit $ac_status); } &&
8281 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008283 (eval $ac_try) 2>&5
8284 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008286 (exit $ac_status); }; }; then
8287 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +00008288else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008289 echo "$as_me: failed program was:" >&5
8290cat conftest.$ac_ext >&5
8291ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +00008292fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8294LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +00008295fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008296echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008297echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
8298if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +00008299 ft_lib=yes
8300else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008301 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +00008302fi
8303
8304if test "$ft_lib" = "no"
8305then
Ian Pilcher563598d2001-05-16 20:56:05 +00008306 FREETYPEINCL=""
8307 wine_cv_msg_freetype=no
8308else
8309 # Extract the first word of "freetype-config", so it can be a program name with args.
8310set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008311echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8313if test "${ac_cv_prog_ft_devel+set}" = set; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008315else
8316 if test -n "$ft_devel"; then
8317 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
8318else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320for as_dir in $PATH
8321do
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8326 ac_cv_prog_ft_devel="freetype-config"
8327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 break 2
8329 fi
8330done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008331done
8332
Ian Pilcher563598d2001-05-16 20:56:05 +00008333 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
8334fi
8335fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008336ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +00008337if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008338 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008339echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008340else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008341 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008342echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00008343fi
8344
8345 if test "$ft_devel" = "no"
8346 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008347 # Extract the first word of "freetype2-config", so it can be a program name with args.
8348set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008349echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8351if test "${ac_cv_prog_ft_devel2+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008353else
8354 if test -n "$ft_devel2"; then
8355 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
8356else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358for as_dir in $PATH
8359do
8360 IFS=$as_save_IFS
8361 test -z "$as_dir" && as_dir=.
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8364 ac_cv_prog_ft_devel2="freetype2-config"
8365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 break 2
8367 fi
8368done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008369done
8370
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008371 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
8372fi
8373fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008374ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008375if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008376 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008377echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008378else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008379 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008380echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008381fi
8382
8383 if test "$ft_devel2" = "freetype2-config"
8384 then
8385 ft_devel=$ft_devel2
8386 fi
8387 fi
8388 if test "$ft_devel" = "no"
8389 then
Ian Pilcher563598d2001-05-16 20:56:05 +00008390 FREETYPEINCL=""
8391 wine_cv_msg_freetype=yes
8392 else
Marcus Meissnerd28955d2001-05-31 21:35:15 +00008393 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +00008394 ac_save_CPPFLAGS="$CPPFLAGS"
8395 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008396
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008397
8398
8399
8400
8401
8402
8403
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008404for ac_header in freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +00008405 freetype/ftglyph.h \
8406 freetype/tttables.h \
8407 freetype/ftnames.h \
8408 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +00008409 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +00008410 freetype/ftoutln.h \
8411 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +00008412do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008414if eval "test \"\${$as_ac_Header+set}\" = set"; then
8415 echo "$as_me:$LINENO: checking for $ac_header" >&5
8416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8417if eval "test \"\${$as_ac_Header+set}\" = set"; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8419fi
8420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8422else
8423 # Is the header compilable?
8424echo "$as_me:$LINENO: checking $ac_header usability" >&5
8425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8426cat >conftest.$ac_ext <<_ACEOF
8427#line $LINENO "configure"
8428#include "confdefs.h"
8429$ac_includes_default
8430#include <$ac_header>
8431_ACEOF
8432rm -f conftest.$ac_objext
8433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8434 (eval $ac_compile) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } &&
8438 { ac_try='test -s conftest.$ac_objext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 (eval $ac_try) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 ac_header_compiler=yes
8445else
8446 echo "$as_me: failed program was:" >&5
8447cat conftest.$ac_ext >&5
8448ac_header_compiler=no
8449fi
8450rm -f conftest.$ac_objext conftest.$ac_ext
8451echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8452echo "${ECHO_T}$ac_header_compiler" >&6
8453
8454# Is the header present?
8455echo "$as_me:$LINENO: checking $ac_header presence" >&5
8456echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8457cat >conftest.$ac_ext <<_ACEOF
8458#line $LINENO "configure"
8459#include "confdefs.h"
8460#include <$ac_header>
8461_ACEOF
8462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8464 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008465 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008466 rm -f conftest.er1
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } >/dev/null; then
8470 if test -s conftest.err; then
8471 ac_cpp_err=$ac_c_preproc_warn_flag
8472 else
8473 ac_cpp_err=
8474 fi
8475else
8476 ac_cpp_err=yes
8477fi
8478if test -z "$ac_cpp_err"; then
8479 ac_header_preproc=yes
8480else
8481 echo "$as_me: failed program was:" >&5
8482 cat conftest.$ac_ext >&5
8483 ac_header_preproc=no
8484fi
8485rm -f conftest.err conftest.$ac_ext
8486echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8487echo "${ECHO_T}$ac_header_preproc" >&6
8488
8489# So? What about this header?
8490case $ac_header_compiler:$ac_header_preproc in
8491 yes:no )
8492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8496 no:yes )
8497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8498echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8500echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8503esac
8504echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8506if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher40432fe2001-06-06 21:05:23 +00008508else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008509 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008510fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008513
Ian Pilcher40432fe2001-06-06 21:05:23 +00008514fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008515if test `eval echo '${'$as_ac_Header'}'` = yes; then
8516 cat >>confdefs.h <<_ACEOF
8517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8518_ACEOF
8519
8520fi
8521
Ian Pilcher40432fe2001-06-06 21:05:23 +00008522done
8523
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008524 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008525#line $LINENO "configure"
Alexandre Julliard18d75732002-01-29 03:02:50 +00008526#include "confdefs.h"
8527#include <ft2build.h>
8528 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008529_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8532 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008533 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008534 rm -f conftest.er1
8535 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008537 (exit $ac_status); } >/dev/null; then
8538 if test -s conftest.err; then
8539 ac_cpp_err=$ac_c_preproc_warn_flag
8540 else
8541 ac_cpp_err=
8542 fi
8543else
8544 ac_cpp_err=yes
8545fi
8546if test -z "$ac_cpp_err"; then
8547
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008548cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00008549#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008550_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00008551
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008552 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +00008553else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008554 echo "$as_me: failed program was:" >&5
Alexandre Julliard18d75732002-01-29 03:02:50 +00008555 cat conftest.$ac_ext >&5
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008556 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +00008557fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008558rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +00008559 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +00008560 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008561 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008562
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008563cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008564#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008565_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008566
8567 wine_cv_msg_freetype=no
8568 else
Huw D M Davies9b1d3722002-01-29 17:09:28 +00008569 FREETYPEINCL=""
8570 wine_cv_msg_freetype=yes
8571 fi
Ian Pilcher563598d2001-05-16 20:56:05 +00008572 fi
8573fi
8574
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008575
8576echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008577echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
8578if test "${ac_cv_c_ppdev+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00008580else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008581 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008582#line $LINENO "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00008583#include "confdefs.h"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008584#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008585int
8586main ()
8587{
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008588ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008589 ;
8590 return 0;
8591}
8592_ACEOF
8593rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008595 (eval $ac_compile) 2>&5
8596 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008598 (exit $ac_status); } &&
8599 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008601 (eval $ac_try) 2>&5
8602 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008604 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008605 ac_cv_c_ppdev="yes"
8606else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008607 echo "$as_me: failed program was:" >&5
8608cat conftest.$ac_ext >&5
8609ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008610fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008611rm -f conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008612
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008613fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008614echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008615echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008616if test "$ac_cv_c_ppdev" = "yes"
8617then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008618
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008619cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008620#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008621_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008622
8623fi
8624
Marcus Meissner5ee517a2002-08-09 19:49:31 +00008625echo "$as_me:$LINENO: checking for va_copy" >&5
8626echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
8627if test "${ac_cv_c_va_copy+set}" = set; then
8628 echo $ECHO_N "(cached) $ECHO_C" >&6
8629else
8630 cat >conftest.$ac_ext <<_ACEOF
8631#line $LINENO "configure"
8632#include "confdefs.h"
8633#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +00008634int
8635main ()
8636{
8637va_list ap1, ap2;
8638 va_copy(ap1,ap2);
8639
8640 ;
8641 return 0;
8642}
8643_ACEOF
8644rm -f conftest.$ac_objext conftest$ac_exeext
8645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646 (eval $ac_link) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } &&
8650 { ac_try='test -s conftest$ac_exeext'
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 (eval $ac_try) 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
8656 ac_cv_c_va_copy="yes"
8657else
8658 echo "$as_me: failed program was:" >&5
8659cat conftest.$ac_ext >&5
8660ac_cv_c_va_copy="no"
8661fi
8662rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8663
8664fi
8665echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
8666echo "${ECHO_T}$ac_cv_c_va_copy" >&6
8667if test "$ac_cv_c_va_copy" = "yes"
8668then
8669
8670cat >>confdefs.h <<\_ACEOF
8671#define HAVE_VA_COPY 1
8672_ACEOF
8673
8674fi
8675echo "$as_me:$LINENO: checking for __va_copy" >&5
8676echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
8677if test "${ac_cv_c___va_copy+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679else
8680 cat >conftest.$ac_ext <<_ACEOF
8681#line $LINENO "configure"
8682#include "confdefs.h"
8683#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +00008684int
8685main ()
8686{
8687va_list ap1, ap2;
8688 __va_copy(ap1,ap2);
8689
8690 ;
8691 return 0;
8692}
8693_ACEOF
8694rm -f conftest.$ac_objext conftest$ac_exeext
8695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8696 (eval $ac_link) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } &&
8700 { ac_try='test -s conftest$ac_exeext'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 (eval $ac_try) 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; }; then
8706 ac_cv_c___va_copy="yes"
8707else
8708 echo "$as_me: failed program was:" >&5
8709cat conftest.$ac_ext >&5
8710ac_cv_c___va_copy="no"
8711fi
8712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8713
8714fi
8715echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
8716echo "${ECHO_T}$ac_cv_c___va_copy" >&6
8717if test "$ac_cv_c___va_copy" = "yes"
8718then
8719
8720cat >>confdefs.h <<\_ACEOF
8721#define HAVE___VA_COPY 1
8722_ACEOF
8723
8724fi
8725
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008726echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008727echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
8728if test "${ac_cv_c_ipx_gnu+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008730else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008731 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008732#line $LINENO "configure"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00008733#include "confdefs.h"
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +00008734#include <sys/types.h>
8735 #ifdef HAVE_SYS_SOCKET_H
8736 # include <sys/socket.h>
8737 #endif
Pavel Roskin94d99641998-12-26 11:52:51 +00008738 #include <netipx/ipx.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008739int
8740main ()
8741{
Pavel Roskin94d99641998-12-26 11:52:51 +00008742((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008743 ;
8744 return 0;
8745}
8746_ACEOF
8747rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008749 (eval $ac_compile) 2>&5
8750 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008752 (exit $ac_status); } &&
8753 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008755 (eval $ac_try) 2>&5
8756 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008758 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00008759 ac_cv_c_ipx_gnu="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00008760else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008761 echo "$as_me: failed program was:" >&5
8762cat conftest.$ac_ext >&5
8763ac_cv_c_ipx_gnu="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00008764fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008765rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00008766
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008767fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008768echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008769echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00008770if test "$ac_cv_c_ipx_gnu" = "yes"
8771then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008772
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008773cat >>confdefs.h <<\_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008774#define HAVE_IPX_GNU 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008775_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008776
8777fi
Pavel Roskin94d99641998-12-26 11:52:51 +00008778
8779if test "$ac_cv_c_ipx_gnu" = "no"
8780then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008781 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008782echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
8783if test "${ac_cv_c_ipx_linux+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00008785else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008786 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008787#line $LINENO "configure"
Pavel Roskin94d99641998-12-26 11:52:51 +00008788#include "confdefs.h"
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +00008789#include <sys/types.h>
8790 #ifdef HAVE_SYS_SOCKET_H
8791 # include <sys/socket.h>
8792 #endif
Pavel Roskin94d99641998-12-26 11:52:51 +00008793 #include <asm/types.h>
8794 #include <linux/ipx.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008795int
8796main ()
8797{
Pavel Roskin94d99641998-12-26 11:52:51 +00008798((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008799 ;
8800 return 0;
8801}
8802_ACEOF
8803rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008805 (eval $ac_compile) 2>&5
8806 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008808 (exit $ac_status); } &&
8809 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008811 (eval $ac_try) 2>&5
8812 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008814 (exit $ac_status); }; }; then
Aaron Hopec23872d2000-01-15 23:43:21 +00008815 ac_cv_c_ipx_linux="yes"
Pavel Roskin94d99641998-12-26 11:52:51 +00008816else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008817 echo "$as_me: failed program was:" >&5
8818cat conftest.$ac_ext >&5
8819ac_cv_c_ipx_linux="no"
Pavel Roskin94d99641998-12-26 11:52:51 +00008820fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008821rm -f conftest.$ac_objext conftest.$ac_ext
Pavel Roskin94d99641998-12-26 11:52:51 +00008822
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008823fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008824echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008825echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
Aaron Hopec23872d2000-01-15 23:43:21 +00008826 if test "$ac_cv_c_ipx_linux" = "yes"
8827 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008828
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008829cat >>confdefs.h <<\_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008830#define HAVE_IPX_LINUX 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008831_ACEOF
Aaron Hopec23872d2000-01-15 23:43:21 +00008832
8833 fi
Pavel Roskin94d99641998-12-26 11:52:51 +00008834fi
8835
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008836
8837
8838
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008839for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008840do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008841as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008842if eval "test \"\${$as_ac_Header+set}\" = set"; then
8843 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8845if eval "test \"\${$as_ac_Header+set}\" = set"; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008847fi
8848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008850else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008851 # Is the header compilable?
8852echo "$as_me:$LINENO: checking $ac_header usability" >&5
8853echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8854cat >conftest.$ac_ext <<_ACEOF
8855#line $LINENO "configure"
8856#include "confdefs.h"
8857$ac_includes_default
8858#include <$ac_header>
8859_ACEOF
8860rm -f conftest.$ac_objext
8861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8862 (eval $ac_compile) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_header_compiler=yes
8873else
8874 echo "$as_me: failed program was:" >&5
8875cat conftest.$ac_ext >&5
8876ac_header_compiler=no
8877fi
8878rm -f conftest.$ac_objext conftest.$ac_ext
8879echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8880echo "${ECHO_T}$ac_header_compiler" >&6
8881
8882# Is the header present?
8883echo "$as_me:$LINENO: checking $ac_header presence" >&5
8884echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8885cat >conftest.$ac_ext <<_ACEOF
8886#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008887#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008888#include <$ac_header>
8889_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8892 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008893 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008894 rm -f conftest.er1
8895 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008897 (exit $ac_status); } >/dev/null; then
8898 if test -s conftest.err; then
8899 ac_cpp_err=$ac_c_preproc_warn_flag
8900 else
8901 ac_cpp_err=
8902 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008903else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008904 ac_cpp_err=yes
8905fi
8906if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008907 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008908else
8909 echo "$as_me: failed program was:" >&5
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008910 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008911 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008912fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008913rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8915echo "${ECHO_T}$ac_header_preproc" >&6
8916
8917# So? What about this header?
8918case $ac_header_compiler:$ac_header_preproc in
8919 yes:no )
8920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8924 no:yes )
8925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8930echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8931esac
8932echo "$as_me:$LINENO: checking for $ac_header" >&5
8933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8934if eval "test \"\${$as_ac_Header+set}\" = set"; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8936else
8937 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008938fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008941
8942fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008943if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008944 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008946_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00008947 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008948fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008949
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008950done
8951
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008952
8953echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008954echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
8955if test "${ac_cv_c_opensoundsystem+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008957else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008958 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008959#line $LINENO "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008960#include "confdefs.h"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008961
Todd Vierlingecc76691998-12-15 17:49:02 +00008962 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008963 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00008964 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008965 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00008966 #elif defined(HAVE_SOUNDCARD_H)
8967 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008968 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008969
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008970int
8971main ()
8972{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00008973
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008974
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00008975/* check for one of the Open Sound System specific SNDCTL_ defines */
8976#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008977#error No open sound system
8978#endif
8979
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008980 ;
8981 return 0;
8982}
8983_ACEOF
8984rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008986 (eval $ac_compile) 2>&5
8987 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008989 (exit $ac_status); } &&
8990 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008992 (eval $ac_try) 2>&5
8993 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008995 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00008996 ac_cv_c_opensoundsystem="yes"
8997else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008998 echo "$as_me: failed program was:" >&5
8999cat conftest.$ac_ext >&5
9000ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009001fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009002rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009003fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009004echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009005echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009006
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009007if test "$ac_cv_c_opensoundsystem" = "yes"
9008then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009009
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009010cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009011#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009012_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +00009013
9014fi
9015
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009016echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009017echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
9018if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00009020else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009021 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009022#line $LINENO "configure"
Eric Pouech338d3b21999-05-22 18:52:21 +00009023#include "confdefs.h"
9024
9025 #if defined(HAVE_SYS_SOUNDCARD_H)
9026 #include <sys/soundcard.h>
9027 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
9028 #include <machine/soundcard.h>
9029 #elif defined(HAVE_SOUNDCARD_H)
9030 #include <soundcard.h>
9031 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +00009032
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009033int
9034main ()
9035{
Eric Pouech338d3b21999-05-22 18:52:21 +00009036
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009037
Eric Pouech338d3b21999-05-22 18:52:21 +00009038/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
9039#if !defined(SNDCTL_SEQ_SYNC)
9040#error No open sound system MIDI interface
9041#endif
9042
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009043 ;
9044 return 0;
9045}
9046_ACEOF
9047rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009049 (eval $ac_compile) 2>&5
9050 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009052 (exit $ac_status); } &&
9053 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009055 (eval $ac_try) 2>&5
9056 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009058 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +00009059 ac_cv_c_opensoundsystem_midi="yes"
9060else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009061 echo "$as_me: failed program was:" >&5
9062cat conftest.$ac_ext >&5
9063ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +00009064fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009065rm -f conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +00009066fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009067echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009068echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +00009069
9070if test "$ac_cv_c_opensoundsystem_midi" = "yes"
9071then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009072
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009073cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +00009074#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009075_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +00009076
9077fi
9078
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009079# Extract the first word of "artsc-config", so it can be a program name with args.
9080set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009081echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9083if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9085else
9086 case $ARTSCCONFIG in
9087 [\\/]* | ?:[\\/]*)
9088 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
9089 ;;
9090 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9092for as_dir in $PATH
9093do
9094 IFS=$as_save_IFS
9095 test -z "$as_dir" && as_dir=.
9096 for ac_exec_ext in '' $ac_executable_extensions; do
9097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9098 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
9099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9100 break 2
9101 fi
9102done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009103done
9104
9105 ;;
9106esac
9107fi
9108ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
9109
9110if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009111 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009112echo "${ECHO_T}$ARTSCCONFIG" >&6
9113else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009114 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009115echo "${ECHO_T}no" >&6
9116fi
9117
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009118echo "$as_me:$LINENO: checking for aRts Sound server" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009119echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
9120if test "${ac_cv_c_artsserver+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9122else
9123 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
9124 then
9125 ac_cv_c_artsserver=no
9126 else
9127 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
9128 ARTSC_LIBS=`$ARTSCCONFIG --libs`
9129 ac_cv_c_artsserver=no
9130 save_CFLAGS="$CFLAGS"
9131 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
9132 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009133#line $LINENO "configure"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009134#include "confdefs.h"
9135
9136 #include <artsc.h>
9137
9138int
9139main ()
9140{
9141
9142 arts_stream_t stream;
9143
9144 ;
9145 return 0;
9146}
9147_ACEOF
9148rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009150 (eval $ac_compile) 2>&5
9151 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009153 (exit $ac_status); } &&
9154 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009156 (eval $ac_try) 2>&5
9157 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009159 (exit $ac_status); }; }; then
9160
9161 ac_cv_c_artsserver=yes
9162
9163else
9164 echo "$as_me: failed program was:" >&5
9165cat conftest.$ac_ext >&5
9166fi
9167rm -f conftest.$ac_objext conftest.$ac_ext
9168 CFLAGS="$save_CFLAGS"
9169 fi
9170fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009171echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009172echo "${ECHO_T}$ac_cv_c_artsserver" >&6
9173
9174if test "$ac_cv_c_artsserver" = "yes"
9175then
9176 ARTSLIBS=$ARTSC_LIBS
9177
9178 ARTSINCL=$ARTSC_CFLAGS
9179
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009180
9181
9182cat >>confdefs.h <<\_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009183#define HAVE_ARTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009184_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +00009185
9186fi
9187
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009188ALSALIBS=""
9189
9190
Marco Pietrobono0e79a412002-08-29 01:51:31 +00009191
9192for ac_header in alsa/asoundlib.h sys/asoundlib.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009193do
9194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9195if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196 echo "$as_me:$LINENO: checking for $ac_header" >&5
9197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9198if eval "test \"\${$as_ac_Header+set}\" = set"; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9200fi
9201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9203else
9204 # Is the header compilable?
9205echo "$as_me:$LINENO: checking $ac_header usability" >&5
9206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9207cat >conftest.$ac_ext <<_ACEOF
9208#line $LINENO "configure"
9209#include "confdefs.h"
9210$ac_includes_default
9211#include <$ac_header>
9212_ACEOF
9213rm -f conftest.$ac_objext
9214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9215 (eval $ac_compile) 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -s conftest.$ac_objext'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_header_compiler=yes
9226else
9227 echo "$as_me: failed program was:" >&5
9228cat conftest.$ac_ext >&5
9229ac_header_compiler=no
9230fi
9231rm -f conftest.$ac_objext conftest.$ac_ext
9232echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9233echo "${ECHO_T}$ac_header_compiler" >&6
9234
9235# Is the header present?
9236echo "$as_me:$LINENO: checking $ac_header presence" >&5
9237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9238cat >conftest.$ac_ext <<_ACEOF
9239#line $LINENO "configure"
9240#include "confdefs.h"
9241#include <$ac_header>
9242_ACEOF
9243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9245 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009246 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009247 rm -f conftest.er1
9248 cat conftest.err >&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } >/dev/null; then
9251 if test -s conftest.err; then
9252 ac_cpp_err=$ac_c_preproc_warn_flag
9253 else
9254 ac_cpp_err=
9255 fi
9256else
9257 ac_cpp_err=yes
9258fi
9259if test -z "$ac_cpp_err"; then
9260 ac_header_preproc=yes
9261else
9262 echo "$as_me: failed program was:" >&5
9263 cat conftest.$ac_ext >&5
9264 ac_header_preproc=no
9265fi
9266rm -f conftest.err conftest.$ac_ext
9267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9268echo "${ECHO_T}$ac_header_preproc" >&6
9269
9270# So? What about this header?
9271case $ac_header_compiler:$ac_header_preproc in
9272 yes:no )
9273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9276echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9277 no:yes )
9278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9284esac
9285echo "$as_me:$LINENO: checking for $ac_header" >&5
9286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9287if eval "test \"\${$as_ac_Header+set}\" = set"; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9289else
9290 eval "$as_ac_Header=$ac_header_preproc"
9291fi
9292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9293echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9294
9295fi
9296if test `eval echo '${'$as_ac_Header'}'` = yes; then
9297 cat >>confdefs.h <<_ACEOF
9298#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9299_ACEOF
Marco Pietrobono0e79a412002-08-29 01:51:31 +00009300 break
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009301fi
9302
9303done
9304
Marco Pietrobono0e79a412002-08-29 01:51:31 +00009305if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009306then
9307 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
9308echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
9309if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
9312 ac_check_lib_save_LIBS=$LIBS
9313LIBS="-lasound $LIBS"
9314cat >conftest.$ac_ext <<_ACEOF
9315#line $LINENO "configure"
9316#include "confdefs.h"
9317
9318/* Override any gcc2 internal prototype to avoid an error. */
9319#ifdef __cplusplus
9320extern "C"
9321#endif
9322/* We use char because int might match the return type of a gcc2
9323 builtin and then its argument prototype would still apply. */
9324char snd_pcm_open ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +00009325int
9326main ()
9327{
9328snd_pcm_open ();
9329 ;
9330 return 0;
9331}
9332_ACEOF
9333rm -f conftest.$ac_objext conftest$ac_exeext
9334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9335 (eval $ac_link) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } &&
9339 { ac_try='test -s conftest$ac_exeext'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 ac_cv_lib_asound_snd_pcm_open=yes
9346else
9347 echo "$as_me: failed program was:" >&5
9348cat conftest.$ac_ext >&5
9349ac_cv_lib_asound_snd_pcm_open=no
9350fi
9351rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9352LIBS=$ac_check_lib_save_LIBS
9353fi
9354echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
9355echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
9356if test $ac_cv_lib_asound_snd_pcm_open = yes; then
9357
9358cat >>confdefs.h <<\_ACEOF
9359#define HAVE_ALSA 1
9360_ACEOF
9361
9362 ALSALIBS="-lasound"
9363fi
9364
9365fi
9366
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009367
Robert Lunnon2a91e3f2002-08-01 18:22:38 +00009368AUDIOIOLIBS=""
9369
9370
9371for ac_header in libaudioio.h
9372do
9373as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9374if eval "test \"\${$as_ac_Header+set}\" = set"; then
9375 echo "$as_me:$LINENO: checking for $ac_header" >&5
9376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9377if eval "test \"\${$as_ac_Header+set}\" = set"; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9379fi
9380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9382else
9383 # Is the header compilable?
9384echo "$as_me:$LINENO: checking $ac_header usability" >&5
9385echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9386cat >conftest.$ac_ext <<_ACEOF
9387#line $LINENO "configure"
9388#include "confdefs.h"
9389$ac_includes_default
9390#include <$ac_header>
9391_ACEOF
9392rm -f conftest.$ac_objext
9393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394 (eval $ac_compile) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try='test -s conftest.$ac_objext'
9399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9400 (eval $ac_try) 2>&5
9401 ac_status=$?
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); }; }; then
9404 ac_header_compiler=yes
9405else
9406 echo "$as_me: failed program was:" >&5
9407cat conftest.$ac_ext >&5
9408ac_header_compiler=no
9409fi
9410rm -f conftest.$ac_objext conftest.$ac_ext
9411echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9412echo "${ECHO_T}$ac_header_compiler" >&6
9413
9414# Is the header present?
9415echo "$as_me:$LINENO: checking $ac_header presence" >&5
9416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9417cat >conftest.$ac_ext <<_ACEOF
9418#line $LINENO "configure"
9419#include "confdefs.h"
9420#include <$ac_header>
9421_ACEOF
9422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9424 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009425 grep -v '^ *+' conftest.er1 >conftest.err
Robert Lunnon2a91e3f2002-08-01 18:22:38 +00009426 rm -f conftest.er1
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } >/dev/null; then
9430 if test -s conftest.err; then
9431 ac_cpp_err=$ac_c_preproc_warn_flag
9432 else
9433 ac_cpp_err=
9434 fi
9435else
9436 ac_cpp_err=yes
9437fi
9438if test -z "$ac_cpp_err"; then
9439 ac_header_preproc=yes
9440else
9441 echo "$as_me: failed program was:" >&5
9442 cat conftest.$ac_ext >&5
9443 ac_header_preproc=no
9444fi
9445rm -f conftest.err conftest.$ac_ext
9446echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9447echo "${ECHO_T}$ac_header_preproc" >&6
9448
9449# So? What about this header?
9450case $ac_header_compiler:$ac_header_preproc in
9451 yes:no )
9452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9455echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9456 no:yes )
9457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9458echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9460echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9463esac
9464echo "$as_me:$LINENO: checking for $ac_header" >&5
9465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9466if eval "test \"\${$as_ac_Header+set}\" = set"; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9468else
9469 eval "$as_ac_Header=$ac_header_preproc"
9470fi
9471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9472echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9473
9474fi
9475if test `eval echo '${'$as_ac_Header'}'` = yes; then
9476 cat >>confdefs.h <<_ACEOF
9477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9478_ACEOF
9479 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
9480echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
9481if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483else
9484 ac_check_lib_save_LIBS=$LIBS
9485LIBS="-laudioio $LIBS"
9486cat >conftest.$ac_ext <<_ACEOF
9487#line $LINENO "configure"
9488#include "confdefs.h"
9489
9490/* Override any gcc2 internal prototype to avoid an error. */
9491#ifdef __cplusplus
9492extern "C"
9493#endif
9494/* We use char because int might match the return type of a gcc2
9495 builtin and then its argument prototype would still apply. */
9496char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +00009497int
9498main ()
9499{
9500AudioIOGetVersion ();
9501 ;
9502 return 0;
9503}
9504_ACEOF
9505rm -f conftest.$ac_objext conftest$ac_exeext
9506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9507 (eval $ac_link) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
9511 { ac_try='test -s conftest$ac_exeext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 ac_cv_lib_audioio_AudioIOGetVersion=yes
9518else
9519 echo "$as_me: failed program was:" >&5
9520cat conftest.$ac_ext >&5
9521ac_cv_lib_audioio_AudioIOGetVersion=no
9522fi
9523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9524LIBS=$ac_check_lib_save_LIBS
9525fi
9526echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
9527echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
9528if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
9529 AUDIOIOLIBS="-laudioio"
9530
9531cat >>confdefs.h <<\_ACEOF
9532#define HAVE_LIBAUDIOIO 1
9533_ACEOF
9534
9535fi
9536
9537fi
9538
9539done
9540
9541
9542
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009543echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009544echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
9545if test "${ac_cv_mmap64_works+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009547else
9548 if test "$cross_compiling" = yes; then
9549 ac_cv_mmap64_works="no"
9550else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009551 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009552#line $LINENO "configure"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009553#include "confdefs.h"
9554
9555 #define _FILE_OFFSET_BITS 64
9556 #include <stdio.h>
9557 #include <unistd.h>
9558 #include <fcntl.h>
9559 #include <sys/mman.h>
9560 #include <errno.h>
9561
9562 int main(int argc,char **argv) {
9563 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
9564 if (fd == -1) exit(1);
9565
9566 unlink("conftest.map");
9567
9568 write(fd,"test",4);
9569
9570 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
9571 (errno == EINVAL)
9572 ) {
9573 exit(1);
9574 }
9575 close(fd);
9576 fprintf(stderr,"success!\n");
9577 exit(0);
9578 }
9579
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009580
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009581_ACEOF
9582rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009584 (eval $ac_link) 2>&5
9585 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009589 (eval $ac_try) 2>&5
9590 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009592 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009593 ac_cv_mmap64_works="yes"
9594else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009595 echo "$as_me: program exited with status $ac_status" >&5
9596echo "$as_me: failed program was:" >&5
9597cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009598( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009599ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009600fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009601rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009602fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009603fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009604echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009605echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009606
9607if test "$ac_cv_mmap64_works" = "yes"
9608then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009609
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009610cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009611#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009612_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +00009613
9614fi
9615
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009616
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009617if test "x${GCC}" = "xyes"
9618then
9619 CFLAGS="$CFLAGS -Wall"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009620 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009621echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
9622if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009624else
9625 if test "$cross_compiling" = yes; then
9626 ac_cv_c_gcc_strength_bug="yes"
9627else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009628 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009629#line $LINENO "configure"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009630#include "confdefs.h"
9631
Eric Pouech5aee80f2000-11-11 00:31:39 +00009632int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009633int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00009634 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009635 unsigned int B = 3;
9636 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +00009637 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +00009638 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
9639 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009640
Eric Pouech5aee80f2000-11-11 00:31:39 +00009641 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009642}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009643_ACEOF
9644rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009646 (eval $ac_link) 2>&5
9647 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009649 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009651 (eval $ac_try) 2>&5
9652 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009654 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009655 ac_cv_c_gcc_strength_bug="no"
9656else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009657 echo "$as_me: program exited with status $ac_status" >&5
9658echo "$as_me: failed program was:" >&5
9659cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009660( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009661ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009662fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009663rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009664fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009665fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009666echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009667echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009668 if test "$ac_cv_c_gcc_strength_bug" = "yes"
9669 then
9670 CFLAGS="$CFLAGS -fno-strength-reduce"
9671 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009672
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009673 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009674echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
9675if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009677else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009678 ac_wine_try_cflags_saved=$CFLAGS
9679CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9680cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009681#line $LINENO "configure"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009682#include "confdefs.h"
9683
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009684int
9685main ()
9686{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009687
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009688 ;
9689 return 0;
9690}
9691_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009692rm -f conftest.$ac_objext conftest$ac_exeext
9693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9694 (eval $ac_link) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009695 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009697 (exit $ac_status); } &&
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009698 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009700 (eval $ac_try) 2>&5
9701 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009703 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009704 ac_cv_c_gcc_stack_boundary="yes"
9705else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009706 echo "$as_me: failed program was:" >&5
9707cat conftest.$ac_ext >&5
9708ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009709fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009710rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9711CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009712fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009713echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009714echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +00009715 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
9716 then
9717 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
9718 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +00009719fi
9720
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009721
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009722echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
9723echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
9724if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009725 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009726else
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009727 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009728#line $LINENO "configure"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009729#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +00009730void 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 +00009731
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009732int
9733main ()
9734{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009735
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009736 ;
9737 return 0;
9738}
9739_ACEOF
9740rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009742 (eval $ac_link) 2>&5
9743 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009745 (exit $ac_status); } &&
9746 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009748 (eval $ac_try) 2>&5
9749 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009751 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009752 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +00009753else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009754 echo "$as_me: failed program was:" >&5
9755cat conftest.$ac_ext >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009756cat >conftest.$ac_ext <<_ACEOF
9757#line $LINENO "configure"
9758#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +00009759void 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 +00009760
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009761int
9762main ()
9763{
9764
9765 ;
9766 return 0;
9767}
9768_ACEOF
9769rm -f conftest.$ac_objext conftest$ac_exeext
9770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9771 (eval $ac_link) 2>&5
9772 ac_status=$?
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -s conftest$ac_exeext'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009781 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009782else
9783 echo "$as_me: failed program was:" >&5
9784cat conftest.$ac_ext >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009785cat >conftest.$ac_ext <<_ACEOF
9786#line $LINENO "configure"
9787#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +00009788void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009789
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009790int
9791main ()
9792{
9793
9794 ;
9795 return 0;
9796}
9797_ACEOF
9798rm -f conftest.$ac_objext conftest$ac_exeext
9799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 (eval $ac_try) 2>&5
9807 ac_status=$?
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_cv_asm_func_def=".type 2"
9811else
9812 echo "$as_me: failed program was:" >&5
9813cat conftest.$ac_ext >&5
9814ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009815fi
9816rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009817fi
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009818rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9819fi
9820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9821fi
9822echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
9823echo "${ECHO_T}$ac_cv_asm_func_def" >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009824
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009825
9826
9827case "$ac_cv_asm_func_def" in
9828 ".def")
9829 cat >>confdefs.h <<\_ACEOF
9830#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009831_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009832 ;;
9833 ".type @function")
9834 cat >>confdefs.h <<\_ACEOF
9835#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
9836_ACEOF
9837 ;;
9838 ".type 2")
9839 cat >>confdefs.h <<\_ACEOF
9840#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
9841_ACEOF
9842 ;;
9843 *)
9844 cat >>confdefs.h <<\_ACEOF
9845#define __ASM_FUNC(name) ""
9846_ACEOF
9847 ;;
9848esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +00009849
9850
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009851echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009852echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
9853if test "${ac_cv_c_extern_prefix+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009855else
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009856 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009857#line $LINENO "configure"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009858#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +00009859void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009860extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009861int
9862main ()
9863{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009864if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009865 ;
9866 return 0;
9867}
9868_ACEOF
9869rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009871 (eval $ac_link) 2>&5
9872 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009874 (exit $ac_status); } &&
9875 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009877 (eval $ac_try) 2>&5
9878 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009880 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009881 ac_cv_c_extern_prefix="yes"
9882else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009883 echo "$as_me: failed program was:" >&5
9884cat conftest.$ac_ext >&5
9885ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009886fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009887rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009888fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009889echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009890echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009891
9892
9893
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009894if test "$ac_cv_c_extern_prefix" = "yes"
9895then
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009896 cat >>confdefs.h <<\_ACEOF
9897#define __ASM_NAME(name) "_" name
9898_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009899
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009900else
9901 cat >>confdefs.h <<\_ACEOF
9902#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009903_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +00009904
9905fi
9906
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009907
9908echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009909echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6
9910if test "${ac_cv_c_stdcall_decoration+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009912else
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009913 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009914#line $LINENO "configure"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009915#include "confdefs.h"
Alexandre Julliard520852c2002-08-07 00:04:44 +00009916void 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 +00009917extern void __attribute__((__stdcall__)) ac_test(void);
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009918int
9919main ()
9920{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +00009921ac_test()
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009922 ;
9923 return 0;
9924}
9925_ACEOF
9926rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009928 (eval $ac_link) 2>&5
9929 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009931 (exit $ac_status); } &&
9932 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009934 (eval $ac_try) 2>&5
9935 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009937 (exit $ac_status); }; }; then
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009938 ac_cv_c_stdcall_decoration="yes"
9939else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009940 echo "$as_me: failed program was:" >&5
9941cat conftest.$ac_ext >&5
9942ac_cv_c_stdcall_decoration="no"
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009943fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009944rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009945fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009946echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009947echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009948if test "$ac_cv_c_stdcall_decoration" = "yes"
9949then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009950
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009951cat >>confdefs.h <<\_ACEOF
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009952#define NEED_STDCALL_DECORATION 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009953_ACEOF
Dmitry Timoshkov93a5b862002-02-04 18:48:18 +00009954
9955fi
9956
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009957
9958echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009959echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
9960if test "${ac_cv_c_asm_string+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009962else
Alexandre Julliard84555cc2002-07-22 20:51:02 +00009963 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009964#line $LINENO "configure"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009965#include "confdefs.h"
Marcus Meissner49163d52002-08-20 00:26:40 +00009966void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009967
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009968int
9969main ()
9970{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009971
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009972 ;
9973 return 0;
9974}
9975_ACEOF
9976rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009978 (eval $ac_link) 2>&5
9979 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009981 (exit $ac_status); } &&
9982 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009984 (eval $ac_try) 2>&5
9985 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009987 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009988 ac_cv_c_asm_string="yes"
9989else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009990 echo "$as_me: failed program was:" >&5
9991cat conftest.$ac_ext >&5
9992ac_cv_c_asm_string="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009993fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009994rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009995fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009996echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009997echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009998if test "$ac_cv_c_asm_string" = "yes"
9999then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010000
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010001cat >>confdefs.h <<\_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010002#define HAVE_ASM_STRING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010003_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010004
10005fi
10006
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010007
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010008DLLEXT=""
10009
10010DLLFLAGS=""
10011
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010012DLLIBS=""
10013
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010014LDDLLFLAGS=""
10015
10016LDSHARED=""
10017
10018
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010019case $host_os in
10020 cygwin*|mingw32*)
10021 if test -n "$ac_tool_prefix"; then
10022 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
10023set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +000010024echo "$as_me:$LINENO: checking for $ac_word" >&5
10025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10026if test "${ac_cv_prog_DLLWRAP+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028else
10029 if test -n "$DLLWRAP"; then
10030 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
10031else
10032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033for as_dir in $PATH
10034do
10035 IFS=$as_save_IFS
10036 test -z "$as_dir" && as_dir=.
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010039 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000010040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10041 break 2
10042 fi
10043done
10044done
10045
Alexandre Julliard466ae142002-05-07 18:33:47 +000010046fi
10047fi
10048DLLWRAP=$ac_cv_prog_DLLWRAP
10049if test -n "$DLLWRAP"; then
10050 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
10051echo "${ECHO_T}$DLLWRAP" >&6
10052else
10053 echo "$as_me:$LINENO: result: no" >&5
10054echo "${ECHO_T}no" >&6
10055fi
10056
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010057fi
10058if test -z "$ac_cv_prog_DLLWRAP"; then
10059 ac_ct_DLLWRAP=$DLLWRAP
10060 # Extract the first word of "dllwrap", so it can be a program name with args.
10061set dummy dllwrap; ac_word=$2
10062echo "$as_me:$LINENO: checking for $ac_word" >&5
10063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10064if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10066else
10067 if test -n "$ac_ct_DLLWRAP"; then
10068 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
10069else
10070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071for as_dir in $PATH
10072do
10073 IFS=$as_save_IFS
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10077 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
10078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10079 break 2
10080 fi
10081done
10082done
10083
10084 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
10085fi
10086fi
10087ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
10088if test -n "$ac_ct_DLLWRAP"; then
10089 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
10090echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
10091else
10092 echo "$as_me:$LINENO: result: no" >&5
10093echo "${ECHO_T}no" >&6
10094fi
10095
10096 DLLWRAP=$ac_ct_DLLWRAP
10097else
10098 DLLWRAP="$ac_cv_prog_DLLWRAP"
10099fi
10100
10101 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010102 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010103 else
10104 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010105 fi
10106 ;;
10107 *)
10108
10109for ac_header in dlfcn.h
10110do
10111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10112if eval "test \"\${$as_ac_Header+set}\" = set"; then
10113 echo "$as_me:$LINENO: checking for $ac_header" >&5
10114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10115if eval "test \"\${$as_ac_Header+set}\" = set"; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10117fi
10118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10120else
10121 # Is the header compilable?
10122echo "$as_me:$LINENO: checking $ac_header usability" >&5
10123echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10124cat >conftest.$ac_ext <<_ACEOF
10125#line $LINENO "configure"
10126#include "confdefs.h"
10127$ac_includes_default
10128#include <$ac_header>
10129_ACEOF
10130rm -f conftest.$ac_objext
10131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10132 (eval $ac_compile) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } &&
10136 { ac_try='test -s conftest.$ac_objext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 ac_header_compiler=yes
10143else
10144 echo "$as_me: failed program was:" >&5
10145cat conftest.$ac_ext >&5
10146ac_header_compiler=no
10147fi
10148rm -f conftest.$ac_objext conftest.$ac_ext
10149echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10150echo "${ECHO_T}$ac_header_compiler" >&6
10151
10152# Is the header present?
10153echo "$as_me:$LINENO: checking $ac_header presence" >&5
10154echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10155cat >conftest.$ac_ext <<_ACEOF
10156#line $LINENO "configure"
10157#include "confdefs.h"
10158#include <$ac_header>
10159_ACEOF
10160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10162 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010163 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010164 rm -f conftest.er1
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } >/dev/null; then
10168 if test -s conftest.err; then
10169 ac_cpp_err=$ac_c_preproc_warn_flag
10170 else
10171 ac_cpp_err=
10172 fi
10173else
10174 ac_cpp_err=yes
10175fi
10176if test -z "$ac_cpp_err"; then
10177 ac_header_preproc=yes
10178else
10179 echo "$as_me: failed program was:" >&5
10180 cat conftest.$ac_ext >&5
10181 ac_header_preproc=no
10182fi
10183rm -f conftest.err conftest.$ac_ext
10184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10185echo "${ECHO_T}$ac_header_preproc" >&6
10186
10187# So? What about this header?
10188case $ac_header_compiler:$ac_header_preproc in
10189 yes:no )
10190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10194 no:yes )
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10198echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10201esac
10202echo "$as_me:$LINENO: checking for $ac_header" >&5
10203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10204if eval "test \"\${$as_ac_Header+set}\" = set"; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10206else
10207 eval "$as_ac_Header=$ac_header_preproc"
10208fi
10209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10211
10212fi
10213if test `eval echo '${'$as_ac_Header'}'` = yes; then
10214 cat >>confdefs.h <<_ACEOF
10215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10216_ACEOF
10217
10218for ac_func in dlopen
10219do
10220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10221echo "$as_me:$LINENO: checking for $ac_func" >&5
10222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10223if eval "test \"\${$as_ac_var+set}\" = set"; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226 cat >conftest.$ac_ext <<_ACEOF
10227#line $LINENO "configure"
10228#include "confdefs.h"
10229/* System header to define __stub macros and hopefully few prototypes,
10230 which can conflict with char $ac_func (); below. */
10231#include <assert.h>
10232/* Override any gcc2 internal prototype to avoid an error. */
10233#ifdef __cplusplus
10234extern "C"
10235#endif
10236/* We use char because int might match the return type of a gcc2
10237 builtin and then its argument prototype would still apply. */
10238char $ac_func ();
10239char (*f) ();
10240
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010241int
10242main ()
10243{
10244/* The GNU C library defines this for functions which it implements
10245 to always fail with ENOSYS. Some functions are actually named
10246 something starting with __ and the normal name is an alias. */
10247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10248choke me
10249#else
10250f = $ac_func;
10251#endif
10252
10253 ;
10254 return 0;
10255}
10256_ACEOF
10257rm -f conftest.$ac_objext conftest$ac_exeext
10258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10259 (eval $ac_link) 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); } &&
10263 { ac_try='test -s conftest$ac_exeext'
10264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265 (eval $ac_try) 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 eval "$as_ac_var=yes"
10270else
10271 echo "$as_me: failed program was:" >&5
10272cat conftest.$ac_ext >&5
10273eval "$as_ac_var=no"
10274fi
10275rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10276fi
10277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10279if test `eval echo '${'$as_ac_var'}'` = yes; then
10280 cat >>confdefs.h <<_ACEOF
10281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10282_ACEOF
10283
10284else
10285 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10286echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10287if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10289else
10290 ac_check_lib_save_LIBS=$LIBS
10291LIBS="-ldl $LIBS"
10292cat >conftest.$ac_ext <<_ACEOF
10293#line $LINENO "configure"
10294#include "confdefs.h"
10295
10296/* Override any gcc2 internal prototype to avoid an error. */
10297#ifdef __cplusplus
10298extern "C"
10299#endif
10300/* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10302char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010303int
10304main ()
10305{
10306dlopen ();
10307 ;
10308 return 0;
10309}
10310_ACEOF
10311rm -f conftest.$ac_objext conftest$ac_exeext
10312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10313 (eval $ac_link) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try='test -s conftest$ac_exeext'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; }; then
10323 ac_cv_lib_dl_dlopen=yes
10324else
10325 echo "$as_me: failed program was:" >&5
10326cat conftest.$ac_ext >&5
10327ac_cv_lib_dl_dlopen=no
10328fi
10329rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10330LIBS=$ac_check_lib_save_LIBS
10331fi
10332echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10333echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10334if test $ac_cv_lib_dl_dlopen = yes; then
10335
10336cat >>confdefs.h <<\_ACEOF
10337#define HAVE_DLOPEN 1
10338_ACEOF
10339
10340 DLLIBS="-ldl"
10341else
10342 LIBEXT="a"
10343fi
10344
10345fi
10346done
10347
10348else
10349 LIBEXT="a"
10350fi
10351
10352done
10353
10354
10355 if test "$LIBEXT" = "so"
10356 then
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010357 DLLFLAGS="-fPIC"
10358 DLLEXT=".so"
Alexandre Julliard466ae142002-05-07 18:33:47 +000010359 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010360echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
10361if test "${ac_cv_c_dll_gnuelf+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010363else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010364 ac_wine_try_cflags_saved=$CFLAGS
10365CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
10366cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010367#line $LINENO "configure"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010368#include "confdefs.h"
10369
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010370int
10371main ()
10372{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010373
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010374 ;
10375 return 0;
10376}
10377_ACEOF
10378rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010380 (eval $ac_link) 2>&5
10381 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010383 (exit $ac_status); } &&
10384 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010386 (eval $ac_try) 2>&5
10387 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010389 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000010390 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010391else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010392 echo "$as_me: failed program was:" >&5
10393cat conftest.$ac_ext >&5
10394ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010395fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010396rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010397CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010398fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010399echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010400echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000010401 if test "$ac_cv_c_dll_gnuelf" = "yes"
10402 then
10403 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
10404 LDDLLFLAGS="-Wl,-Bsymbolic"
10405 else
10406 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010407echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
10408if test "${ac_cv_c_dll_unixware+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000010410else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010411 ac_wine_try_cflags_saved=$CFLAGS
10412CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
10413cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010414#line $LINENO "configure"
Todd Vierling4b992b01998-12-15 15:26:27 +000010415#include "confdefs.h"
10416
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010417int
10418main ()
10419{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010420
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010421 ;
10422 return 0;
10423}
10424_ACEOF
10425rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010427 (eval $ac_link) 2>&5
10428 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010430 (exit $ac_status); } &&
10431 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010433 (eval $ac_try) 2>&5
10434 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010436 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000010437 ac_cv_c_dll_unixware="yes"
10438else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010439 echo "$as_me: failed program was:" >&5
10440cat conftest.$ac_ext >&5
10441ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000010442fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010444CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010445fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010446echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010447echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000010448 if test "$ac_cv_c_dll_unixware" = "yes"
10449 then
10450 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
10451 LDDLLFLAGS="-Wl,-B,symbolic"
10452 fi
10453 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010454 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000010455
10456 CROSSTEST=""
10457
10458 if test "$cross_compiling" = "no"
10459 then
10460 for ac_prog in i586-mingw32msvc-gcc
10461do
10462 # Extract the first word of "$ac_prog", so it can be a program name with args.
10463set dummy $ac_prog; ac_word=$2
10464echo "$as_me:$LINENO: checking for $ac_word" >&5
10465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10466if test "${ac_cv_prog_CROSSCC+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10468else
10469 if test -n "$CROSSCC"; then
10470 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
10471else
10472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10473for as_dir in $PATH
10474do
10475 IFS=$as_save_IFS
10476 test -z "$as_dir" && as_dir=.
10477 for ac_exec_ext in '' $ac_executable_extensions; do
10478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10479 ac_cv_prog_CROSSCC="$ac_prog"
10480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10481 break 2
10482 fi
10483done
10484done
10485
10486fi
10487fi
10488CROSSCC=$ac_cv_prog_CROSSCC
10489if test -n "$CROSSCC"; then
10490 echo "$as_me:$LINENO: result: $CROSSCC" >&5
10491echo "${ECHO_T}$CROSSCC" >&6
10492else
10493 echo "$as_me:$LINENO: result: no" >&5
10494echo "${ECHO_T}no" >&6
10495fi
10496
10497 test -n "$CROSSCC" && break
10498done
10499test -n "$CROSSCC" || CROSSCC="false"
10500
10501 for ac_prog in i586-mingw32msvc-dlltool
10502do
10503 # Extract the first word of "$ac_prog", so it can be a program name with args.
10504set dummy $ac_prog; ac_word=$2
10505echo "$as_me:$LINENO: checking for $ac_word" >&5
10506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10507if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10509else
10510 if test -n "$DLLTOOL"; then
10511 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10512else
10513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514for as_dir in $PATH
10515do
10516 IFS=$as_save_IFS
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10520 ac_cv_prog_DLLTOOL="$ac_prog"
10521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 break 2
10523 fi
10524done
10525done
10526
10527fi
10528fi
10529DLLTOOL=$ac_cv_prog_DLLTOOL
10530if test -n "$DLLTOOL"; then
10531 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10532echo "${ECHO_T}$DLLTOOL" >&6
10533else
10534 echo "$as_me:$LINENO: result: no" >&5
10535echo "${ECHO_T}no" >&6
10536fi
10537
10538 test -n "$DLLTOOL" && break
10539done
10540test -n "$DLLTOOL" || DLLTOOL="false"
10541
10542 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
10543 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010544 ;;
10545esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000010546
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000010547if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010548 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010549It is currently not possible to build Wine without shared library
10550(.so) support to allow transparent switch between .so and .dll files.
10551If you are using Linux, you will need a newer binutils.
10552" >&5
10553echo "$as_me: error: could not find a way to build shared libraries.
10554It is currently not possible to build Wine without shared library
10555(.so) support to allow transparent switch between .so and .dll files.
10556If you are using Linux, you will need a newer binutils.
10557" >&2;}
10558 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000010559fi
10560
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010561case $build_os in
10562 cygwin*|mingw32*)
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010563 LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\""
10564 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010565 *)
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010566 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\""
10567 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000010568esac
10569
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010570CRTLIBS=""
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010571
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010572case $host_os in
10573 mingw32*)
10574 CRTLIBS="-lmsvcrt" ;;
10575esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010576
10577
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010578if test "$LIBEXT" = "so"
10579then
10580 # Extract the first word of "ldd", so it can be a program name with args.
10581set dummy ldd; ac_word=$2
10582echo "$as_me:$LINENO: checking for $ac_word" >&5
10583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10584if test "${ac_cv_path_LDD+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10586else
10587 case $LDD in
10588 [\\/]* | ?:[\\/]*)
10589 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
10590 ;;
10591 *)
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010593as_dummy="/sbin:/usr/sbin:$PATH"
10594for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010595do
10596 IFS=$as_save_IFS
10597 test -z "$as_dir" && as_dir=.
10598 for ac_exec_ext in '' $ac_executable_extensions; do
10599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10600 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
10601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10602 break 2
10603 fi
10604done
10605done
10606
10607 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
10608 ;;
10609esac
10610fi
10611LDD=$ac_cv_path_LDD
10612
10613if test -n "$LDD"; then
10614 echo "$as_me:$LINENO: result: $LDD" >&5
10615echo "${ECHO_T}$LDD" >&6
10616else
10617 echo "$as_me:$LINENO: result: no" >&5
10618echo "${ECHO_T}no" >&6
10619fi
10620
10621
10622echo "$as_me:$LINENO: checking for -lX11 soname" >&5
10623echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
10624if test "${ac_cv_lib_soname_X11+set}" = set; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10626else
10627 ac_get_soname_save_LIBS=$LIBS
10628LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
10629 cat >conftest.$ac_ext <<_ACEOF
10630#line $LINENO "configure"
10631#include "confdefs.h"
10632
10633/* Override any gcc2 internal prototype to avoid an error. */
10634#ifdef __cplusplus
10635extern "C"
10636#endif
10637/* We use char because int might match the return type of a gcc2
10638 builtin and then its argument prototype would still apply. */
10639char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010640int
10641main ()
10642{
10643XCreateWindow ();
10644 ;
10645 return 0;
10646}
10647_ACEOF
10648rm -f conftest.$ac_objext conftest$ac_exeext
10649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10650 (eval $ac_link) 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try='test -s conftest$ac_exeext'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; }; then
10660 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10661 if test "x$ac_cv_lib_soname_X11" = "x"
10662 then
10663 ac_cv_lib_soname_X11="libX11.so"
10664 fi
10665else
10666 echo "$as_me: failed program was:" >&5
10667cat conftest.$ac_ext >&5
10668ac_cv_lib_soname_X11="libX11.so"
10669fi
10670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10671 LIBS=$ac_get_soname_save_LIBS
10672fi
10673echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
10674echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
10675if test "x$ac_cv_lib_soname_X11" != xNONE
10676then
10677cat >>confdefs.h <<_ACEOF
10678#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
10679_ACEOF
10680fi
10681
10682echo "$as_me:$LINENO: checking for -lXext soname" >&5
10683echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
10684if test "${ac_cv_lib_soname_Xext+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10686else
10687 ac_get_soname_save_LIBS=$LIBS
10688LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
10689 cat >conftest.$ac_ext <<_ACEOF
10690#line $LINENO "configure"
10691#include "confdefs.h"
10692
10693/* Override any gcc2 internal prototype to avoid an error. */
10694#ifdef __cplusplus
10695extern "C"
10696#endif
10697/* We use char because int might match the return type of a gcc2
10698 builtin and then its argument prototype would still apply. */
10699char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010700int
10701main ()
10702{
10703XextCreateExtension ();
10704 ;
10705 return 0;
10706}
10707_ACEOF
10708rm -f conftest.$ac_objext conftest$ac_exeext
10709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10710 (eval $ac_link) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } &&
10714 { ac_try='test -s conftest$ac_exeext'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10721 if test "x$ac_cv_lib_soname_Xext" = "x"
10722 then
10723 ac_cv_lib_soname_Xext="libXext.so"
10724 fi
10725else
10726 echo "$as_me: failed program was:" >&5
10727cat conftest.$ac_ext >&5
10728ac_cv_lib_soname_Xext="libXext.so"
10729fi
10730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10731 LIBS=$ac_get_soname_save_LIBS
10732fi
10733echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
10734echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
10735if test "x$ac_cv_lib_soname_Xext" != xNONE
10736then
10737cat >>confdefs.h <<_ACEOF
10738#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
10739_ACEOF
10740fi
10741
10742echo "$as_me:$LINENO: checking for -lXrender soname" >&5
10743echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
10744if test "${ac_cv_lib_soname_Xrender+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746else
10747 ac_get_soname_save_LIBS=$LIBS
10748LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10749 cat >conftest.$ac_ext <<_ACEOF
10750#line $LINENO "configure"
10751#include "confdefs.h"
10752
10753/* Override any gcc2 internal prototype to avoid an error. */
10754#ifdef __cplusplus
10755extern "C"
10756#endif
10757/* We use char because int might match the return type of a gcc2
10758 builtin and then its argument prototype would still apply. */
10759char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010760int
10761main ()
10762{
10763XRenderQueryExtension ();
10764 ;
10765 return 0;
10766}
10767_ACEOF
10768rm -f conftest.$ac_objext conftest$ac_exeext
10769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10770 (eval $ac_link) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try='test -s conftest$ac_exeext'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10781 if test "x$ac_cv_lib_soname_Xrender" = "x"
10782 then
10783 ac_cv_lib_soname_Xrender="libXrender.so"
10784 fi
10785else
10786 echo "$as_me: failed program was:" >&5
10787cat conftest.$ac_ext >&5
10788ac_cv_lib_soname_Xrender="libXrender.so"
10789fi
10790rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10791 LIBS=$ac_get_soname_save_LIBS
10792fi
10793echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
10794echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
10795if test "x$ac_cv_lib_soname_Xrender" != xNONE
10796then
10797cat >>confdefs.h <<_ACEOF
10798#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
10799_ACEOF
10800fi
10801
10802echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
10803echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
10804if test "${ac_cv_lib_soname_freetype+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806else
10807 ac_get_soname_save_LIBS=$LIBS
10808LIBS="-lfreetype $X_LIBS $LIBS"
10809 cat >conftest.$ac_ext <<_ACEOF
10810#line $LINENO "configure"
10811#include "confdefs.h"
10812
10813/* Override any gcc2 internal prototype to avoid an error. */
10814#ifdef __cplusplus
10815extern "C"
10816#endif
10817/* We use char because int might match the return type of a gcc2
10818 builtin and then its argument prototype would still apply. */
10819char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010820int
10821main ()
10822{
10823FT_Init_FreeType ();
10824 ;
10825 return 0;
10826}
10827_ACEOF
10828rm -f conftest.$ac_objext conftest$ac_exeext
10829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10830 (eval $ac_link) 2>&5
10831 ac_status=$?
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } &&
10834 { ac_try='test -s conftest$ac_exeext'
10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10837 ac_status=$?
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; }; then
10840 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
10841 if test "x$ac_cv_lib_soname_freetype" = "x"
10842 then
10843 ac_cv_lib_soname_freetype="libfreetype.so"
10844 fi
10845else
10846 echo "$as_me: failed program was:" >&5
10847cat conftest.$ac_ext >&5
10848ac_cv_lib_soname_freetype="libfreetype.so"
10849fi
10850rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10851 LIBS=$ac_get_soname_save_LIBS
10852fi
10853echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
10854echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
10855if test "x$ac_cv_lib_soname_freetype" != xNONE
10856then
10857cat >>confdefs.h <<_ACEOF
10858#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10859_ACEOF
10860fi
10861fi
10862
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010863
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000010864
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010865wine_cv_libc_reentrant=no
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010866echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010867echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6
10868if test "${wine_cv_libc_r___errno_location+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010870else
10871 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010872 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010873else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010874 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010875#line $LINENO "configure"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010876#include "confdefs.h"
10877int myerrno = 0;
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010878int *__errno_location(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000010879main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010880_ACEOF
10881rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010883 (eval $ac_link) 2>&5
10884 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010888 (eval $ac_try) 2>&5
10889 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010891 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000010892 wine_cv_libc_r___errno_location=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010893else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010894 echo "$as_me: program exited with status $ac_status" >&5
10895echo "$as_me: failed program was:" >&5
10896cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010897( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010898wine_cv_libc_r___errno_location=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010899fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010900rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010901fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010902fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010903echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010904echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010905if test "$wine_cv_libc_r___errno_location" = "yes"; then
10906 wine_cv_libc_reentrant=__errno_location
10907else
10908 echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010909echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6
10910if test "${wine_cv_libc_r___error+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010912else
10913 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010914 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000010915else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010916 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010917#line $LINENO "configure"
Marcus Meissnerc2606381999-04-11 15:20:29 +000010918#include "confdefs.h"
10919int myerrno = 0;
Marcus Meissnerc2606381999-04-11 15:20:29 +000010920int *__error(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000010921main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010922_ACEOF
10923rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010925 (eval $ac_link) 2>&5
10926 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010930 (eval $ac_try) 2>&5
10931 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010933 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000010934 wine_cv_libc_r___error=yes
Marcus Meissnerc2606381999-04-11 15:20:29 +000010935else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010936 echo "$as_me: program exited with status $ac_status" >&5
10937echo "$as_me: failed program was:" >&5
10938cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010939( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010940wine_cv_libc_r___error=no
Marcus Meissnerc2606381999-04-11 15:20:29 +000010941fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010942rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissnerc2606381999-04-11 15:20:29 +000010943fi
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000010944fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010945echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010946echo "${ECHO_T}$wine_cv_libc_r___error" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010947if test "$wine_cv_libc_r___error" = "yes"; then
10948 wine_cv_libc_reentrant=__error
10949else
10950 echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010951echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6
10952if test "${wine_cv_libc_r____errno+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010954else
10955 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010956 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010957else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010958 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010959#line $LINENO "configure"
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010960#include "confdefs.h"
10961int myerrno = 0;
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010962int *___errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000010963main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010964_ACEOF
10965rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010967 (eval $ac_link) 2>&5
10968 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010972 (eval $ac_try) 2>&5
10973 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010975 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000010976 wine_cv_libc_r____errno=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010977else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010978 echo "$as_me: program exited with status $ac_status" >&5
10979echo "$as_me: failed program was:" >&5
10980cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010981( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010982wine_cv_libc_r____errno=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010983fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010984rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010985fi
Ulrich Weigand715a55e1999-04-18 13:19:56 +000010986fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010987echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010988echo "${ECHO_T}$wine_cv_libc_r____errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010989if test "$wine_cv_libc_r____errno" = "yes"; then
10990 wine_cv_libc_reentrant=___errno
10991else
10992 echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010993echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6
10994if test "${wine_cv_libc_r___thr_errno+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
Ron Recorde977d6c1999-09-05 12:32:05 +000010996else
10997 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010998 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000010999else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011000 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011001#line $LINENO "configure"
Ron Recorde977d6c1999-09-05 12:32:05 +000011002#include "confdefs.h"
11003int myerrno = 0;
Ron Recorde977d6c1999-09-05 12:32:05 +000011004int *__thr_errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011005main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011006_ACEOF
11007rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011009 (eval $ac_link) 2>&5
11010 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011014 (eval $ac_try) 2>&5
11015 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011017 (exit $ac_status); }; }; then
Alexandre Julliard598412e2001-01-17 20:22:22 +000011018 wine_cv_libc_r___thr_errno=yes
Ron Recorde977d6c1999-09-05 12:32:05 +000011019else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011020 echo "$as_me: program exited with status $ac_status" >&5
11021echo "$as_me: failed program was:" >&5
11022cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011023( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011024wine_cv_libc_r___thr_errno=no
Ron Recorde977d6c1999-09-05 12:32:05 +000011025fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011026rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Ron Recorde977d6c1999-09-05 12:32:05 +000011027fi
Ron Recorde977d6c1999-09-05 12:32:05 +000011028fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011029echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011030echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011031if test "$wine_cv_libc_r___thr_errno" = "yes"; then
11032 wine_cv_libc_reentrant=__thr_errno
11033else
11034 echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011035echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6
11036if test "${wine_cv_libc_r___errno+set}" = set; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
Bang Jun-Young33dff342001-05-07 18:21:10 +000011038else
11039 if test "$cross_compiling" = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011040 wine_cv_libc_r___errno=yes
Bang Jun-Young33dff342001-05-07 18:21:10 +000011041else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011042 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011043#line $LINENO "configure"
Bang Jun-Young33dff342001-05-07 18:21:10 +000011044#include "confdefs.h"
11045int myerrno = 0;
Bang Jun-Young33dff342001-05-07 18:21:10 +000011046int *__errno(){return &myerrno;}
Alexandre Julliard770c33f2002-07-01 18:39:26 +000011047main(){close(333); close(333); exit(!myerrno);}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011048_ACEOF
11049rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011051 (eval $ac_link) 2>&5
11052 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011056 (eval $ac_try) 2>&5
11057 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011059 (exit $ac_status); }; }; then
Bang Jun-Young33dff342001-05-07 18:21:10 +000011060 wine_cv_libc_r___errno=yes
11061else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011062 echo "$as_me: program exited with status $ac_status" >&5
11063echo "$as_me: failed program was:" >&5
11064cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011065( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011066wine_cv_libc_r___errno=no
Bang Jun-Young33dff342001-05-07 18:21:10 +000011067fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011068rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bang Jun-Young33dff342001-05-07 18:21:10 +000011069fi
Bang Jun-Young33dff342001-05-07 18:21:10 +000011070fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011071echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011072echo "${ECHO_T}$wine_cv_libc_r___errno" >&6
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011073if test "$wine_cv_libc_r___errno" = "yes"; then
11074 wine_cv_libc_reentrant=__errno
11075fi
11076
11077
11078fi
11079
11080fi
11081
11082fi
11083
Bang Jun-Young33dff342001-05-07 18:21:10 +000011084fi
11085
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011086
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011087if test "$wine_cv_libc_reentrant" != "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011088then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011089
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011090cat >>confdefs.h <<_ACEOF
Alexandre Julliard598412e2001-01-17 20:22:22 +000011091#define ERRNO_LOCATION $wine_cv_libc_reentrant
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011092_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000011093
11094fi
11095
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011096
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000011097if test "$have_x" = "yes"
Patrik Stridvall24110281999-02-04 10:09:54 +000011098then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011099echo "$as_me:$LINENO: checking for reentrant X libraries" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011100echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6
11101if test "${wine_cv_x_reentrant+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000011103else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000011104 libX11_check=none
11105 for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do
11106 if test -r $dir/libX11.so; then
11107 libX11_check="-D $dir/libX11.so"
11108 break
11109 fi
11110 if test -r $dir/libX11.a; then
11111 libX11_check="$dir/libX11.a"
11112 break
11113 fi
11114 done
11115 if test "$libX11_check" != "none"; then
11116 if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1
11117 then
11118 wine_cv_x_reentrant=yes
11119 else
11120 wine_cv_x_reentrant=no
11121 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000011122 else
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000011123 wine_cv_x_reentrant=unknown
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011124 fi
Alexandre Julliarda11d7b11998-03-01 20:05:02 +000011125fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011126echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011127echo "${ECHO_T}$wine_cv_x_reentrant" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +000011128fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011129
11130
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011131# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11132# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011133echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011134echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11135if test "${ac_cv_working_alloca_h+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011137else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011138 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011139#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011140#include "confdefs.h"
11141#include <alloca.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011142int
11143main ()
11144{
11145char *p = (char *) alloca (2 * sizeof (int));
11146 ;
11147 return 0;
11148}
11149_ACEOF
11150rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011152 (eval $ac_link) 2>&5
11153 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011155 (exit $ac_status); } &&
11156 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011158 (eval $ac_try) 2>&5
11159 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011161 (exit $ac_status); }; }; then
11162 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011163else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011164 echo "$as_me: failed program was:" >&5
11165cat conftest.$ac_ext >&5
11166ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011167fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011169fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011170echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011171echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11172if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011173
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011174cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011175#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011176_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011177
11178fi
11179
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011180echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011181echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11182if test "${ac_cv_func_alloca_works+set}" = set; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011184else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011185 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011186#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011187#include "confdefs.h"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011188#ifdef __GNUC__
11189# define alloca __builtin_alloca
11190#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000011191# ifdef _MSC_VER
11192# include <malloc.h>
11193# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011194# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000011195# if HAVE_ALLOCA_H
11196# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011197# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000011198# ifdef _AIX
11199 #pragma alloca
11200# else
11201# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011202char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000011203# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011204# endif
11205# endif
11206# endif
11207#endif
11208
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011209int
11210main ()
11211{
11212char *p = (char *) alloca (1);
11213 ;
11214 return 0;
11215}
11216_ACEOF
11217rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011219 (eval $ac_link) 2>&5
11220 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011222 (exit $ac_status); } &&
11223 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011225 (eval $ac_try) 2>&5
11226 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011228 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011229 ac_cv_func_alloca_works=yes
11230else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011231 echo "$as_me: failed program was:" >&5
11232cat conftest.$ac_ext >&5
11233ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011234fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011235rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011236fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011237echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011238echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011239
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011240if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011241
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011242cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011243#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011244_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011245
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011246else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011247 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011248# that cause trouble. Some versions do not even contain alloca or
11249# contain a buggy version. If you still want to use their alloca,
11250# use ar to extract alloca.o from them instead of compiling alloca.c.
11251
11252ALLOCA=alloca.$ac_objext
11253
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011254cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011255#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011256_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011257
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011258
11259echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011260echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11261if test "${ac_cv_os_cray+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011263else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011264 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011265#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011266#include "confdefs.h"
11267#if defined(CRAY) && ! defined(CRAY2)
11268webecray
11269#else
11270wenotbecray
11271#endif
11272
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011273_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011275 $EGREP "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011276 ac_cv_os_cray=yes
11277else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011278 ac_cv_os_cray=no
11279fi
11280rm -f conftest*
11281
11282fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011283echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011284echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011285if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011286 for ac_func in _getb67 GETB67 getb67; do
11287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011288echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11290if eval "test \"\${$as_ac_var+set}\" = set"; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011292else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011293 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011294#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011295#include "confdefs.h"
11296/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011297 which can conflict with char $ac_func (); below. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011298#include <assert.h>
11299/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011300#ifdef __cplusplus
11301extern "C"
11302#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000011303/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011304 builtin and then its argument prototype would still apply. */
11305char $ac_func ();
11306char (*f) ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011307
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011308int
11309main ()
11310{
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011311/* The GNU C library defines this for functions which it implements
11312 to always fail with ENOSYS. Some functions are actually named
11313 something starting with __ and the normal name is an alias. */
11314#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11315choke me
11316#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011317f = $ac_func;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011318#endif
11319
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011320 ;
11321 return 0;
11322}
11323_ACEOF
11324rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011326 (eval $ac_link) 2>&5
11327 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011329 (exit $ac_status); } &&
11330 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011332 (eval $ac_try) 2>&5
11333 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011335 (exit $ac_status); }; }; then
11336 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011337else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011338 echo "$as_me: failed program was:" >&5
11339cat conftest.$ac_ext >&5
11340eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011341fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011342rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011343fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011345echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11346if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011347
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011348cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011349#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011350_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011351
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011352 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011353fi
11354
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011355 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011356fi
11357
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011358echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011359echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11360if test "${ac_cv_c_stack_direction+set}" = set; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011362else
11363 if test "$cross_compiling" = yes; then
11364 ac_cv_c_stack_direction=0
11365else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011366 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011367#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011368#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011369int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011370find_stack_direction ()
11371{
11372 static char *addr = 0;
11373 auto char dummy;
11374 if (addr == 0)
11375 {
11376 addr = &dummy;
11377 return find_stack_direction ();
11378 }
11379 else
11380 return (&dummy > addr) ? 1 : -1;
11381}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011382
11383int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011384main ()
11385{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011386 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011387}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011388_ACEOF
11389rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011391 (eval $ac_link) 2>&5
11392 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011396 (eval $ac_try) 2>&5
11397 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011399 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011400 ac_cv_c_stack_direction=1
11401else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011402 echo "$as_me: program exited with status $ac_status" >&5
11403echo "$as_me: failed program was:" >&5
11404cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011405( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011406ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011407fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011408rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011409fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011410fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011411echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011412echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011413
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011414cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011415#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011416_ACEOF
11417
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011418
11419fi
11420
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
Steven Edwardsb9627c12002-05-05 21:03:44 +000011463
11464
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011465
11466
Alexandre Julliard142dab82002-07-01 18:17:30 +000011467
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011468for ac_func in \
11469 _lwp_create \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011470 _pclose \
11471 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011472 _snprintf \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011473 _stricmp \
11474 _strnicmp \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011475 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011476 clone \
Andreas Mohra7ca2ba2001-01-12 23:07:11 +000011477 ecvt \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000011478 finite \
11479 fpclass \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011480 ftruncate \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000011481 ftruncate64 \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011482 getnetbyaddr \
11483 getnetbyname \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011484 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011485 getprotobyname \
11486 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000011487 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011488 getservbyport \
11489 getsockopt \
11490 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000011491 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000011492 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011493 memmove \
Marcus Meissner786d2492002-07-29 23:55:39 +000011494 mkstemp \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000011495 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011496 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011497 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000011498 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000011499 pwrite \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011500 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011501 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011502 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011503 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011504 sigaltstack \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000011505 snprintf \
Patrik Stridvallb9010211999-11-13 22:23:35 +000011506 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000011507 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011508 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000011509 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011510 tcgetattr \
11511 timegm \
11512 usleep \
11513 vfscanf \
11514 wait4 \
11515 waitpid \
11516
11517do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011519echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11521if eval "test \"\${$as_ac_var+set}\" = set"; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011523else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011524 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011525#line $LINENO "configure"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011526#include "confdefs.h"
11527/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011528 which can conflict with char $ac_func (); below. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011529#include <assert.h>
11530/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011531#ifdef __cplusplus
11532extern "C"
11533#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011534/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011535 builtin and then its argument prototype would still apply. */
11536char $ac_func ();
11537char (*f) ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011538
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011539int
11540main ()
11541{
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011542/* The GNU C library defines this for functions which it implements
11543 to always fail with ENOSYS. Some functions are actually named
11544 something starting with __ and the normal name is an alias. */
11545#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11546choke me
11547#else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011548f = $ac_func;
Patrik Stridvall1bb94031999-05-08 15:47:44 +000011549#endif
11550
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011551 ;
11552 return 0;
11553}
11554_ACEOF
11555rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011557 (eval $ac_link) 2>&5
11558 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011560 (exit $ac_status); } &&
11561 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011563 (eval $ac_try) 2>&5
11564 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011566 (exit $ac_status); }; }; then
11567 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011568else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011569 echo "$as_me: failed program was:" >&5
11570cat conftest.$ac_ext >&5
11571eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011572fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011573rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011574fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011576echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11577if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011578 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011579#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011580_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011581
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011582fi
11583done
11584
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
Laurent Pinchart0314a652002-05-01 22:01:30 +000011646
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011647
11648
11649
Alexandre Julliard127ec922002-05-07 01:51:30 +000011650
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011651
Patrik Stridvall57bf4502002-08-26 21:53:24 +000011652
11653
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011654for ac_header in \
Patrik Stridvall96336321999-10-24 22:13:47 +000011655 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011656 arpa/nameser.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011657 direct.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011658 elf.h \
11659 float.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +000011660 ieeefp.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011661 io.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011662 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +000011663 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011664 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011665 linux/cdrom.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011666 linux/hdreg.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +000011667 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +000011668 linux/joystick.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011669 linux/major.h \
Laurent Pinchart0314a652002-05-01 22:01:30 +000011670 linux/param.h \
Lawson Whitney533e7ee2002-02-19 18:41:56 +000011671 linux/serial.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011672 linux/ucdrom.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +000011673 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011674 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000011675 netinet/in_systm.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011676 netinet/tcp.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +000011677 pty.h \
Steven Edwardsff4525c2002-06-24 23:00:25 +000011678 pwd.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011679 sched.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011680 scsi/sg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011681 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +000011682 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011683 strings.h \
11684 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +000011685 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011686 sys/file.h \
11687 sys/filio.h \
Michal Pasternak60983992002-03-29 18:04:43 +000011688 sys/inttypes.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000011689 sys/ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011690 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +000011691 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011692 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +000011693 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011694 sys/modem.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011695 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011696 sys/param.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000011697 sys/poll.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000011698 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +000011699 sys/reg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011700 sys/shm.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011701 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011702 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011703 sys/sockio.h \
11704 sys/statfs.h \
11705 sys/strtio.h \
11706 sys/syscall.h \
Alexandre Julliard127ec922002-05-07 01:51:30 +000011707 sys/sysctl.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011708 sys/time.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000011709 sys/times.h \
Steven Edwards45e56812002-10-31 03:41:56 +000011710 sys/uio.h \
11711 sys/un.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011712 sys/v86.h \
11713 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011714 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000011715 sys/vm86.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000011716 sys/wait.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011717 syscall.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000011718 termios.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000011719 ucontext.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000011720 unistd.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000011721 utime.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000011722
Alexandre Julliard02e90081998-01-04 17:49:09 +000011723do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011725if eval "test \"\${$as_ac_Header+set}\" = set"; then
11726 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11728if eval "test \"\${$as_ac_Header+set}\" = set"; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011730fi
11731echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11732echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliard02e90081998-01-04 17:49:09 +000011733else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011734 # Is the header compilable?
11735echo "$as_me:$LINENO: checking $ac_header usability" >&5
11736echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11737cat >conftest.$ac_ext <<_ACEOF
11738#line $LINENO "configure"
11739#include "confdefs.h"
11740$ac_includes_default
11741#include <$ac_header>
11742_ACEOF
11743rm -f conftest.$ac_objext
11744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11745 (eval $ac_compile) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try='test -s conftest.$ac_objext'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 ac_header_compiler=yes
11756else
11757 echo "$as_me: failed program was:" >&5
11758cat conftest.$ac_ext >&5
11759ac_header_compiler=no
11760fi
11761rm -f conftest.$ac_objext conftest.$ac_ext
11762echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11763echo "${ECHO_T}$ac_header_compiler" >&6
11764
11765# Is the header present?
11766echo "$as_me:$LINENO: checking $ac_header presence" >&5
11767echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11768cat >conftest.$ac_ext <<_ACEOF
11769#line $LINENO "configure"
Alexandre Julliard02e90081998-01-04 17:49:09 +000011770#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011771#include <$ac_header>
11772_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11775 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011776 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011777 rm -f conftest.er1
11778 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011780 (exit $ac_status); } >/dev/null; then
11781 if test -s conftest.err; then
11782 ac_cpp_err=$ac_c_preproc_warn_flag
11783 else
11784 ac_cpp_err=
11785 fi
Alexandre Julliard02e90081998-01-04 17:49:09 +000011786else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011787 ac_cpp_err=yes
11788fi
11789if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011790 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011791else
11792 echo "$as_me: failed program was:" >&5
Alexandre Julliard02e90081998-01-04 17:49:09 +000011793 cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011794 ac_header_preproc=no
Alexandre Julliard02e90081998-01-04 17:49:09 +000011795fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011796rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11798echo "${ECHO_T}$ac_header_preproc" >&6
11799
11800# So? What about this header?
11801case $ac_header_compiler:$ac_header_preproc in
11802 yes:no )
11803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11806echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11807 no:yes )
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11809echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11811echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
11814esac
11815echo "$as_me:$LINENO: checking for $ac_header" >&5
11816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11817if eval "test \"\${$as_ac_Header+set}\" = set"; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
11819else
11820 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliard02e90081998-01-04 17:49:09 +000011821fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011824
Alexandre Julliard02e90081998-01-04 17:49:09 +000011825fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011826if test `eval echo '${'$as_ac_Header'}'` = yes; then
11827 cat >>confdefs.h <<_ACEOF
11828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11829_ACEOF
11830
11831fi
11832
Alexandre Julliard02e90081998-01-04 17:49:09 +000011833done
11834
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011835echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011836echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11837if test "${ac_cv_header_stat_broken+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011839else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011840 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011841#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011842#include "confdefs.h"
11843#include <sys/types.h>
11844#include <sys/stat.h>
11845
11846#if defined(S_ISBLK) && defined(S_IFDIR)
11847# if S_ISBLK (S_IFDIR)
11848You lose.
11849# endif
11850#endif
11851
11852#if defined(S_ISBLK) && defined(S_IFCHR)
11853# if S_ISBLK (S_IFCHR)
11854You lose.
11855# endif
11856#endif
11857
11858#if defined(S_ISLNK) && defined(S_IFREG)
11859# if S_ISLNK (S_IFREG)
11860You lose.
11861# endif
11862#endif
11863
11864#if defined(S_ISSOCK) && defined(S_IFREG)
11865# if S_ISSOCK (S_IFREG)
11866You lose.
11867# endif
11868#endif
11869
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011870_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011872 $EGREP "You lose" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011873 ac_cv_header_stat_broken=yes
11874else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011875 ac_cv_header_stat_broken=no
11876fi
11877rm -f conftest*
11878
11879fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011880echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011881echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011882if test $ac_cv_header_stat_broken = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011883
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011884cat >>confdefs.h <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011885#define STAT_MACROS_BROKEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011886_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000011887
11888fi
11889
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011890
11891
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000011892
11893
11894for ac_header in sys/mount.h sys/user.h
11895do
11896as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11897echo "$as_me:$LINENO: checking for $ac_header" >&5
11898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11899if eval "test \"\${$as_ac_Header+set}\" = set"; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11901else
11902 cat >conftest.$ac_ext <<_ACEOF
11903#line $LINENO "configure"
11904#include "confdefs.h"
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000011905#include <sys/types.h>
11906 #if HAVE_SYS_PARAM_H
11907 # include <sys/param.h>
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000011908 #endif
11909
11910#include <$ac_header>
11911_ACEOF
11912rm -f conftest.$ac_objext
11913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914 (eval $ac_compile) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -s conftest.$ac_objext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 eval "$as_ac_Header=yes"
11925else
11926 echo "$as_me: failed program was:" >&5
11927cat conftest.$ac_ext >&5
11928eval "$as_ac_Header=no"
11929fi
11930rm -f conftest.$ac_objext conftest.$ac_ext
11931fi
11932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11934if test `eval echo '${'$as_ac_Header'}'` = yes; then
11935 cat >>confdefs.h <<_ACEOF
11936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11937_ACEOF
11938
11939fi
11940
11941done
11942
11943
11944
Gregg Mattinson044b5c42002-07-19 03:16:51 +000011945for ac_header in net/if.h
11946do
11947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11948echo "$as_me:$LINENO: checking for $ac_header" >&5
11949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11950if eval "test \"\${$as_ac_Header+set}\" = set"; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
11953 cat >conftest.$ac_ext <<_ACEOF
11954#line $LINENO "configure"
11955#include "confdefs.h"
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000011956#include <sys/types.h>
Gerald Pfeifer87c369d2002-07-23 02:02:02 +000011957 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000011958 # include <sys/socket.h>
11959 #endif
11960
11961#include <$ac_header>
11962_ACEOF
11963rm -f conftest.$ac_objext
11964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11965 (eval $ac_compile) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } &&
11969 { ac_try='test -s conftest.$ac_objext'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 eval "$as_ac_Header=yes"
11976else
11977 echo "$as_me: failed program was:" >&5
11978cat conftest.$ac_ext >&5
11979eval "$as_ac_Header=no"
11980fi
11981rm -f conftest.$ac_objext conftest.$ac_ext
11982fi
11983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11985if test `eval echo '${'$as_ac_Header'}'` = yes; then
11986 cat >>confdefs.h <<_ACEOF
11987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11988_ACEOF
11989
11990fi
11991
11992done
11993
11994
11995
11996for ac_header in netinet/ip.h
11997do
11998as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11999echo "$as_me:$LINENO: checking for $ac_header" >&5
12000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12001if eval "test \"\${$as_ac_Header+set}\" = set"; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12003else
12004 cat >conftest.$ac_ext <<_ACEOF
12005#line $LINENO "configure"
12006#include "confdefs.h"
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000012007#include <sys/types.h>
12008 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000012009 # include <sys/socket.h>
12010 #endif
12011 #if HAVE_NETINET_IN_SYSTM_H
12012 # include <netinet/in_systm.h>
12013 #endif
12014
12015#include <$ac_header>
12016_ACEOF
12017rm -f conftest.$ac_objext
12018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019 (eval $ac_compile) 2>&5
12020 ac_status=$?
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -s conftest.$ac_objext'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12026 ac_status=$?
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 eval "$as_ac_Header=yes"
12030else
12031 echo "$as_me: failed program was:" >&5
12032cat conftest.$ac_ext >&5
12033eval "$as_ac_Header=no"
12034fi
12035rm -f conftest.$ac_objext conftest.$ac_ext
12036fi
12037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12039if test `eval echo '${'$as_ac_Header'}'` = yes; then
12040 cat >>confdefs.h <<_ACEOF
12041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12042_ACEOF
12043
12044fi
12045
12046done
12047
12048
12049
12050for ac_header in resolv.h
12051do
12052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12053echo "$as_me:$LINENO: checking for $ac_header" >&5
12054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12055if eval "test \"\${$as_ac_Header+set}\" = set"; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057else
12058 cat >conftest.$ac_ext <<_ACEOF
12059#line $LINENO "configure"
12060#include "confdefs.h"
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000012061#include <sys/types.h>
12062 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000012063 # include <sys/socket.h>
12064 #endif
12065
12066#include <$ac_header>
12067_ACEOF
12068rm -f conftest.$ac_objext
12069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12070 (eval $ac_compile) 2>&5
12071 ac_status=$?
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } &&
12074 { ac_try='test -s conftest.$ac_objext'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; }; then
12080 eval "$as_ac_Header=yes"
12081else
12082 echo "$as_me: failed program was:" >&5
12083cat conftest.$ac_ext >&5
12084eval "$as_ac_Header=no"
12085fi
12086rm -f conftest.$ac_objext conftest.$ac_ext
12087fi
12088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12090if test `eval echo '${'$as_ac_Header'}'` = yes; then
12091 cat >>confdefs.h <<_ACEOF
12092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12093_ACEOF
12094
12095fi
12096
12097done
12098
12099
12100
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012101echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012102echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12103if test "${ac_cv_c_const+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12105else
12106 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012107#line $LINENO "configure"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012108#include "confdefs.h"
12109
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012110int
12111main ()
12112{
12113/* FIXME: Include the comments suggested by Paul. */
12114#ifndef __cplusplus
12115 /* Ultrix mips cc rejects this. */
12116 typedef int charset[2];
12117 const charset x;
12118 /* SunOS 4.1.1 cc rejects this. */
12119 char const *const *ccp;
12120 char **p;
12121 /* NEC SVR4.0.2 mips cc rejects this. */
12122 struct point {int x, y;};
12123 static struct point const zero = {0,0};
12124 /* AIX XL C 1.02.0.0 rejects this.
12125 It does not let you subtract one const X* pointer from another in
12126 an arm of an if-expression whose if-part is not a constant
12127 expression */
12128 const char *g = "string";
12129 ccp = &g + (g ? g-g : 0);
12130 /* HPUX 7.0 cc rejects these. */
12131 ++ccp;
12132 p = (char**) ccp;
12133 ccp = (char const *const *) p;
12134 { /* SCO 3.2v4 cc rejects this. */
12135 char *t;
12136 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012137
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012138 *t++ = 0;
12139 }
12140 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12141 int x[] = {25, 17};
12142 const int *foo = &x[0];
12143 ++foo;
12144 }
12145 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12146 typedef const int *iptr;
12147 iptr p = 0;
12148 ++p;
12149 }
12150 { /* AIX XL C 1.02.0.0 rejects this saying
12151 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12152 struct s { int j; const int *ap[3]; };
12153 struct s *b; b->j = 5;
12154 }
12155 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12156 const int foo = 10;
12157 }
12158#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012159
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012160 ;
12161 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012162}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012163_ACEOF
12164rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012166 (eval $ac_compile) 2>&5
12167 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012169 (exit $ac_status); } &&
12170 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012172 (eval $ac_try) 2>&5
12173 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012175 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012176 ac_cv_c_const=yes
12177else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012178 echo "$as_me: failed program was:" >&5
12179cat conftest.$ac_ext >&5
12180ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012181fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012182rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012183fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012184echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012185echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012186if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012187
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012188cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012189#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012190_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012191
12192fi
12193
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012194echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012195echo $ECHO_N "checking for inline... $ECHO_C" >&6
12196if test "${ac_cv_c_inline+set}" = set; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012198else
12199 ac_cv_c_inline=no
12200for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012201 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012202#line $LINENO "configure"
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012203#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012204#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012205typedef int foo_t;
12206static $ac_kw foo_t static_foo () {return 0; }
12207$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012208#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012209
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012210_ACEOF
12211rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012213 (eval $ac_compile) 2>&5
12214 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012216 (exit $ac_status); } &&
12217 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012219 (eval $ac_try) 2>&5
12220 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012222 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012223 ac_cv_c_inline=$ac_kw; break
12224else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012225 echo "$as_me: failed program was:" >&5
12226cat conftest.$ac_ext >&5
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012227fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012228rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012229done
12230
12231fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012232echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012233echo "${ECHO_T}$ac_cv_c_inline" >&6
12234case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012235 inline | yes) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012236 no)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012237cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012238#define inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012239_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012240 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012241 *) cat >>confdefs.h <<_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012242#define inline $ac_cv_c_inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012243_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012244 ;;
12245esac
12246
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012247echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012248echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12249if test "${ac_cv_type_mode_t+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251else
12252 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012253#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012254#include "confdefs.h"
12255$ac_includes_default
12256int
12257main ()
12258{
12259if ((mode_t *) 0)
12260 return 0;
12261if (sizeof (mode_t))
12262 return 0;
12263 ;
12264 return 0;
12265}
12266_ACEOF
12267rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012269 (eval $ac_compile) 2>&5
12270 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012272 (exit $ac_status); } &&
12273 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012275 (eval $ac_try) 2>&5
12276 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012278 (exit $ac_status); }; }; then
12279 ac_cv_type_mode_t=yes
12280else
12281 echo "$as_me: failed program was:" >&5
12282cat conftest.$ac_ext >&5
12283ac_cv_type_mode_t=no
12284fi
12285rm -f conftest.$ac_objext conftest.$ac_ext
12286fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012287echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012288echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12289if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012290
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012291cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012292#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012293_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012294
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012295
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012296fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012297echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012298echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12299if test "${ac_cv_type_off_t+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301else
12302 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012303#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012304#include "confdefs.h"
12305$ac_includes_default
12306int
12307main ()
12308{
12309if ((off_t *) 0)
12310 return 0;
12311if (sizeof (off_t))
12312 return 0;
12313 ;
12314 return 0;
12315}
12316_ACEOF
12317rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012319 (eval $ac_compile) 2>&5
12320 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012322 (exit $ac_status); } &&
12323 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012325 (eval $ac_try) 2>&5
12326 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012328 (exit $ac_status); }; }; then
12329 ac_cv_type_off_t=yes
12330else
12331 echo "$as_me: failed program was:" >&5
12332cat conftest.$ac_ext >&5
12333ac_cv_type_off_t=no
12334fi
12335rm -f conftest.$ac_objext conftest.$ac_ext
12336fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012337echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012338echo "${ECHO_T}$ac_cv_type_off_t" >&6
12339if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012340
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012341cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012342#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012343_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012344
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012345
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012346fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012347echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012348echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12349if test "${ac_cv_type_pid_t+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12351else
12352 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012353#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012354#include "confdefs.h"
12355$ac_includes_default
12356int
12357main ()
12358{
12359if ((pid_t *) 0)
12360 return 0;
12361if (sizeof (pid_t))
12362 return 0;
12363 ;
12364 return 0;
12365}
12366_ACEOF
12367rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012369 (eval $ac_compile) 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); } &&
12373 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012375 (eval $ac_try) 2>&5
12376 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012378 (exit $ac_status); }; }; then
12379 ac_cv_type_pid_t=yes
12380else
12381 echo "$as_me: failed program was:" >&5
12382cat conftest.$ac_ext >&5
12383ac_cv_type_pid_t=no
12384fi
12385rm -f conftest.$ac_objext conftest.$ac_ext
12386fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012387echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012388echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12389if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012390
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012391cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012392#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012393_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012394
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012395
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012396fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012397echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012398echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12399if test "${ac_cv_type_size_t+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12401else
12402 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012403#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012404#include "confdefs.h"
12405$ac_includes_default
12406int
12407main ()
12408{
12409if ((size_t *) 0)
12410 return 0;
12411if (sizeof (size_t))
12412 return 0;
12413 ;
12414 return 0;
12415}
12416_ACEOF
12417rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012419 (eval $ac_compile) 2>&5
12420 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012422 (exit $ac_status); } &&
12423 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012425 (eval $ac_try) 2>&5
12426 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012428 (exit $ac_status); }; }; then
12429 ac_cv_type_size_t=yes
12430else
12431 echo "$as_me: failed program was:" >&5
12432cat conftest.$ac_ext >&5
12433ac_cv_type_size_t=no
12434fi
12435rm -f conftest.$ac_objext conftest.$ac_ext
12436fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012437echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012438echo "${ECHO_T}$ac_cv_type_size_t" >&6
12439if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012440
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012441cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012442#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012443_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012444
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012445
12446fi
12447echo "$as_me:$LINENO: checking for ssize_t" >&5
12448echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12449if test "${ac_cv_type_ssize_t+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12451else
12452 cat >conftest.$ac_ext <<_ACEOF
12453#line $LINENO "configure"
12454#include "confdefs.h"
12455$ac_includes_default
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012456int
12457main ()
12458{
12459if ((ssize_t *) 0)
12460 return 0;
12461if (sizeof (ssize_t))
12462 return 0;
12463 ;
12464 return 0;
12465}
12466_ACEOF
12467rm -f conftest.$ac_objext
12468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12469 (eval $ac_compile) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -s conftest.$ac_objext'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 ac_cv_type_ssize_t=yes
12480else
12481 echo "$as_me: failed program was:" >&5
12482cat conftest.$ac_ext >&5
12483ac_cv_type_ssize_t=no
12484fi
12485rm -f conftest.$ac_objext conftest.$ac_ext
12486fi
12487echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12488echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12489if test $ac_cv_type_ssize_t = yes; then
12490
12491cat >>confdefs.h <<_ACEOF
12492#define HAVE_SSIZE_T 1
12493_ACEOF
12494
12495
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012496fi
12497
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012498echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012499echo $ECHO_N "checking for long long... $ECHO_C" >&6
12500if test "${ac_cv_type_long_long+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12502else
12503 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012504#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012505#include "confdefs.h"
12506$ac_includes_default
12507int
12508main ()
12509{
12510if ((long long *) 0)
12511 return 0;
12512if (sizeof (long long))
12513 return 0;
12514 ;
12515 return 0;
12516}
12517_ACEOF
12518rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012520 (eval $ac_compile) 2>&5
12521 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012523 (exit $ac_status); } &&
12524 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012526 (eval $ac_try) 2>&5
12527 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012529 (exit $ac_status); }; }; then
12530 ac_cv_type_long_long=yes
12531else
12532 echo "$as_me: failed program was:" >&5
12533cat conftest.$ac_ext >&5
12534ac_cv_type_long_long=no
12535fi
12536rm -f conftest.$ac_objext conftest.$ac_ext
12537fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012538echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012539echo "${ECHO_T}$ac_cv_type_long_long" >&6
12540
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012541echo "$as_me:$LINENO: checking size of long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012542echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12543if test "${ac_cv_sizeof_long_long+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12545else
12546 if test "$ac_cv_type_long_long" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012547 # The cast to unsigned long works around a bug in the HP C Compiler
12548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12550 # This bug is HP SR number 8606223364.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012551 if test "$cross_compiling" = yes; then
12552 # Depending upon the size, compute the lo and hi bounds.
12553cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012554#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012555#include "confdefs.h"
12556$ac_includes_default
12557int
12558main ()
12559{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012560static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12561test_array [0] = 0
12562
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012563 ;
12564 return 0;
12565}
12566_ACEOF
12567rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012569 (eval $ac_compile) 2>&5
12570 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012572 (exit $ac_status); } &&
12573 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012575 (eval $ac_try) 2>&5
12576 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012578 (exit $ac_status); }; }; then
12579 ac_lo=0 ac_mid=0
12580 while :; do
12581 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012582#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012583#include "confdefs.h"
12584$ac_includes_default
12585int
12586main ()
12587{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012588static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12589test_array [0] = 0
12590
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012591 ;
12592 return 0;
12593}
12594_ACEOF
12595rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012597 (eval $ac_compile) 2>&5
12598 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012600 (exit $ac_status); } &&
12601 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012603 (eval $ac_try) 2>&5
12604 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012606 (exit $ac_status); }; }; then
12607 ac_hi=$ac_mid; break
12608else
12609 echo "$as_me: failed program was:" >&5
12610cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012611ac_lo=`expr $ac_mid + 1`
12612 if test $ac_lo -le $ac_mid; then
12613 ac_lo= ac_hi=
12614 break
12615 fi
12616 ac_mid=`expr 2 '*' $ac_mid + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012617fi
12618rm -f conftest.$ac_objext conftest.$ac_ext
12619 done
12620else
12621 echo "$as_me: failed program was:" >&5
12622cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012623cat >conftest.$ac_ext <<_ACEOF
12624#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012625#include "confdefs.h"
12626$ac_includes_default
12627int
12628main ()
12629{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012630static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12631test_array [0] = 0
12632
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012633 ;
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
12648 (exit $ac_status); }; }; then
12649 ac_hi=-1 ac_mid=-1
12650 while :; do
12651 cat >conftest.$ac_ext <<_ACEOF
12652#line $LINENO "configure"
12653#include "confdefs.h"
12654$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012655int
12656main ()
12657{
12658static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12659test_array [0] = 0
12660
12661 ;
12662 return 0;
12663}
12664_ACEOF
12665rm -f conftest.$ac_objext
12666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12667 (eval $ac_compile) 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -s conftest.$ac_objext'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012676 (exit $ac_status); }; }; then
12677 ac_lo=$ac_mid; break
12678else
12679 echo "$as_me: failed program was:" >&5
12680cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012681ac_hi=`expr '(' $ac_mid ')' - 1`
12682 if test $ac_mid -le $ac_hi; then
12683 ac_lo= ac_hi=
12684 break
12685 fi
12686 ac_mid=`expr 2 '*' $ac_mid`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012687fi
12688rm -f conftest.$ac_objext conftest.$ac_ext
12689 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012690else
12691 echo "$as_me: failed program was:" >&5
12692cat conftest.$ac_ext >&5
12693ac_lo= ac_hi=
12694fi
12695rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012696fi
12697rm -f conftest.$ac_objext conftest.$ac_ext
12698# Binary search between lo and hi bounds.
12699while test "x$ac_lo" != "x$ac_hi"; do
12700 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12701 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012702#line $LINENO "configure"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012703#include "confdefs.h"
12704$ac_includes_default
12705int
12706main ()
12707{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012708static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12709test_array [0] = 0
12710
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012711 ;
12712 return 0;
12713}
12714_ACEOF
12715rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012717 (eval $ac_compile) 2>&5
12718 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012720 (exit $ac_status); } &&
12721 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012723 (eval $ac_try) 2>&5
12724 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012726 (exit $ac_status); }; }; then
12727 ac_hi=$ac_mid
12728else
12729 echo "$as_me: failed program was:" >&5
12730cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012731ac_lo=`expr '(' $ac_mid ')' + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012732fi
12733rm -f conftest.$ac_objext conftest.$ac_ext
12734done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012735case $ac_lo in
12736?*) ac_cv_sizeof_long_long=$ac_lo;;
12737'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12738echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12739 { (exit 1); exit 1; }; } ;;
12740esac
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012741else
12742 if test "$cross_compiling" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012743 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012744echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12745 { (exit 1); exit 1; }; }
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012746else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012747 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012748#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012749#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012750$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012751long longval () { return (long) (sizeof (long long)); }
12752unsigned long ulongval () { return (long) (sizeof (long long)); }
12753#include <stdio.h>
12754#include <stdlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012755int
12756main ()
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012757{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012758
12759 FILE *f = fopen ("conftest.val", "w");
12760 if (! f)
12761 exit (1);
12762 if (((long) (sizeof (long long))) < 0)
12763 {
12764 long i = longval ();
12765 if (i != ((long) (sizeof (long long))))
12766 exit (1);
12767 fprintf (f, "%ld\n", i);
12768 }
12769 else
12770 {
12771 unsigned long i = ulongval ();
12772 if (i != ((long) (sizeof (long long))))
12773 exit (1);
12774 fprintf (f, "%lu\n", i);
12775 }
12776 exit (ferror (f) || fclose (f) != 0);
12777
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012778 ;
12779 return 0;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012780}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012781_ACEOF
12782rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012784 (eval $ac_link) 2>&5
12785 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012789 (eval $ac_try) 2>&5
12790 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012792 (exit $ac_status); }; }; then
12793 ac_cv_sizeof_long_long=`cat conftest.val`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012794else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012795 echo "$as_me: program exited with status $ac_status" >&5
12796echo "$as_me: failed program was:" >&5
12797cat conftest.$ac_ext >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012798( exit $ac_status )
12799{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5
12800echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;}
12801 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012802fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012803rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012804fi
12805fi
12806rm -f conftest.val
12807else
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012808 ac_cv_sizeof_long_long=0
12809fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012810fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012811echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012812echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012813cat >>confdefs.h <<_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012814#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012815_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000012816
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012817
12818
12819echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012820echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
12821if test "${wine_cv_linux_input_h+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012823else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012824 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012825#line $LINENO "configure"
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012826#include "confdefs.h"
12827
12828 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012829
12830int
12831main ()
12832{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012833
12834 int foo = EVIOCGBIT(EV_ABS,42);
12835 int bar = BTN_PINKIE;
12836 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012837
12838 ;
12839 return 0;
12840}
12841_ACEOF
12842rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012844 (eval $ac_compile) 2>&5
12845 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012847 (exit $ac_status); } &&
12848 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012850 (eval $ac_try) 2>&5
12851 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012853 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012854 wine_cv_linux_input_h=yes
12855else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012856 echo "$as_me: failed program was:" >&5
12857cat conftest.$ac_ext >&5
12858wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012859fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012860rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012861
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012862fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012863echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012864echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012865 if test "$wine_cv_linux_input_h" = "yes"
12866 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012867
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012868cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012869#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012870_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000012871
12872 fi
12873
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012874
12875echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012876echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
12877if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000012879else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012880 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012881#line $LINENO "configure"
Rein Klazesff7a61f2000-09-24 19:41:57 +000012882#include "confdefs.h"
12883
12884#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012885
12886int
12887main ()
12888{
Rein Klazesff7a61f2000-09-24 19:41:57 +000012889
12890 char *name=NULL;
12891 struct hostent he;
12892 struct hostent *result;
12893 char *buf=NULL;
12894 int bufsize=0;
12895 int res,errnr;
12896 char *addr=NULL;
12897 int addrlen=0;
12898 int addrtype=0;
12899 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
12900 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012901
12902 ;
12903 return 0;
12904}
12905_ACEOF
12906rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012908 (eval $ac_compile) 2>&5
12909 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012911 (exit $ac_status); } &&
12912 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012914 (eval $ac_try) 2>&5
12915 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012917 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000012918 wine_cv_linux_gethostbyname_r_6=yes
12919else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012920 echo "$as_me: failed program was:" >&5
12921cat conftest.$ac_ext >&5
12922wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000012923
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012924fi
12925rm -f conftest.$ac_objext conftest.$ac_ext
12926
12927fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012928echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012929echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000012930 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
12931 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012932
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012933cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000012934#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012935_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000012936
12937 fi
12938
Marcus Meissner028e9a11999-08-04 15:07:56 +000012939if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012940then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012941 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012942echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
12943if test "${wine_cv_linux_joystick_22_api+set}" = set; then
12944 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012945else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012946 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012947#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000012948#include "confdefs.h"
12949
Marcus Meissner028e9a11999-08-04 15:07:56 +000012950 #include <sys/ioctl.h>
12951 #include <linux/joystick.h>
12952
12953 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000012954 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
12955 #error "no 2.2 header"
12956 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012957
12958int
12959main ()
12960{
Marcus Meissner028e9a11999-08-04 15:07:56 +000012961/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012962 ;
12963 return 0;
12964}
12965_ACEOF
12966rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012968 (eval $ac_compile) 2>&5
12969 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012971 (exit $ac_status); } &&
12972 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012974 (eval $ac_try) 2>&5
12975 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012977 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000012978 wine_cv_linux_joystick_22_api=yes
12979else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012980 echo "$as_me: failed program was:" >&5
12981cat conftest.$ac_ext >&5
12982wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000012983fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012984rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000012985
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012986fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012987echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012988echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000012989 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000012990 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012991
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012992cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000012993#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012994_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000012995
12996 fi
12997fi
12998
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012999
Marcus Meissner028e9a11999-08-04 15:07:56 +000013000if test "$ac_cv_header_sys_vfs_h" = "yes"
13001then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013002 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013003echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
13004if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000013006else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013007 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013008#line $LINENO "configure"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013009#include "confdefs.h"
13010
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013011 #include <sys/types.h>
13012 #ifdef HAVE_SYS_PARAM_H
13013 # include <sys/param.h>
13014 #endif
13015 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013016
13017int
13018main ()
13019{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013020
13021 struct statfs stfs;
13022
13023 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013024
13025 ;
13026 return 0;
13027}
13028_ACEOF
13029rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013031 (eval $ac_compile) 2>&5
13032 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013034 (exit $ac_status); } &&
13035 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013037 (eval $ac_try) 2>&5
13038 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013040 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013041 wine_cv_sys_vfs_has_statfs=yes
13042else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013043 echo "$as_me: failed program was:" >&5
13044cat conftest.$ac_ext >&5
13045wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013046
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013047fi
13048rm -f conftest.$ac_objext conftest.$ac_ext
13049
13050fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013051echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013052echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013053 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
13054 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013055
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013056cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013057#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013058_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013059
13060 fi
13061fi
13062
13063if test "$ac_cv_header_sys_statfs_h" = "yes"
13064then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013065 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013066echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
13067if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013069else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013070 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013071#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013072#include "confdefs.h"
13073
13074 #include <sys/types.h>
13075 #ifdef HAVE_SYS_PARAM_H
13076 # include <sys/param.h>
13077 #endif
13078 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013079
13080int
13081main ()
13082{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013083
13084 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013085
13086 ;
13087 return 0;
13088}
13089_ACEOF
13090rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013092 (eval $ac_compile) 2>&5
13093 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013095 (exit $ac_status); } &&
13096 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013098 (eval $ac_try) 2>&5
13099 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013101 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013102 wine_cv_sys_statfs_has_statfs=yes
13103else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013104 echo "$as_me: failed program was:" >&5
13105cat conftest.$ac_ext >&5
13106wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013107
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013108fi
13109rm -f conftest.$ac_objext conftest.$ac_ext
13110
13111fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013112echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013113echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013114 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
13115 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013116
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013117cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013118#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013119_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013120
13121 fi
13122fi
13123
13124if test "$ac_cv_header_sys_mount_h" = "yes"
13125then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013126 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013127echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
13128if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013130else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013131 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013132#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013133#include "confdefs.h"
13134
13135 #include <sys/types.h>
13136 #ifdef HAVE_SYS_PARAM_H
13137 # include <sys/param.h>
13138 #endif
13139 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013140
13141int
13142main ()
13143{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013144
13145 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013146
13147 ;
13148 return 0;
13149}
13150_ACEOF
13151rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013153 (eval $ac_compile) 2>&5
13154 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013156 (exit $ac_status); } &&
13157 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013159 (eval $ac_try) 2>&5
13160 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013162 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013163 wine_cv_sys_mount_has_statfs=yes
13164else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013165 echo "$as_me: failed program was:" >&5
13166cat conftest.$ac_ext >&5
13167wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013168
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013169fi
13170rm -f conftest.$ac_objext conftest.$ac_ext
13171
13172fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013173echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013174echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013175 if test "$wine_cv_sys_mount_has_statfs" = "yes"
13176 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013177
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013178cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013179#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013180_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013181
13182 fi
13183fi
13184
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013185
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013186echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013187echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6
13188if test "${ac_cv_c_statfs_f_bfree+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013190else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013191 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013192#line $LINENO "configure"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013193#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013194#include <sys/types.h>
13195#ifdef HAVE_SYS_PARAM_H
13196# include <sys/param.h>
13197#endif
13198#ifdef STATFS_DEFINED_BY_SYS_MOUNT
13199# include <sys/mount.h>
13200#else
13201# ifdef STATFS_DEFINED_BY_SYS_VFS
13202# include <sys/vfs.h>
13203# else
13204# ifdef STATFS_DEFINED_BY_SYS_STATFS
13205# include <sys/statfs.h>
13206# endif
13207# endif
13208#endif
13209int
13210main ()
13211{
13212struct statfs s; s.f_bfree = 0
13213 ;
13214 return 0;
13215}
13216_ACEOF
13217rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013219 (eval $ac_compile) 2>&5
13220 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013222 (exit $ac_status); } &&
13223 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013225 (eval $ac_try) 2>&5
13226 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013228 (exit $ac_status); }; }; then
13229 ac_cv_c_statfs_f_bfree="yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013230else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013231 echo "$as_me: failed program was:" >&5
13232cat conftest.$ac_ext >&5
13233ac_cv_c_statfs_f_bfree="no"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013234fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013235rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013236fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013237echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013238echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6
13239if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013240
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013241cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013242#define STATFS_HAS_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013243_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013244
13245fi
13246
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013247
13248
13249echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013250echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6
13251if test "${ac_cv_c_statfs_f_bavail+set}" = set; then
13252 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013253else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013254 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013255#line $LINENO "configure"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013256#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013257#include <sys/types.h>
13258#ifdef HAVE_SYS_PARAM_H
13259# include <sys/param.h>
13260#endif
13261#ifdef STATFS_DEFINED_BY_SYS_MOUNT
13262# include <sys/mount.h>
13263#else
13264# ifdef STATFS_DEFINED_BY_SYS_VFS
13265# include <sys/vfs.h>
13266# else
13267# ifdef STATFS_DEFINED_BY_SYS_STATFS
13268# include <sys/statfs.h>
13269# endif
13270# endif
13271#endif
13272int
13273main ()
13274{
13275struct statfs s; s.f_bavail = 0
13276 ;
13277 return 0;
13278}
13279_ACEOF
13280rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013282 (eval $ac_compile) 2>&5
13283 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013285 (exit $ac_status); } &&
13286 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013288 (eval $ac_try) 2>&5
13289 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013291 (exit $ac_status); }; }; then
13292 ac_cv_c_statfs_f_bavail="yes"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013293else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013294 echo "$as_me: failed program was:" >&5
13295cat conftest.$ac_ext >&5
13296ac_cv_c_statfs_f_bavail="no"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013297fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013298rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013299fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013300echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013301echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6
13302if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013303
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013304cat >>confdefs.h <<\_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013305#define STATFS_HAS_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013306_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013307
13308fi
13309
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013310
13311
13312echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013313echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6
13314if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard829fe321998-07-26 14:27:39 +000013316else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013317 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013318#line $LINENO "configure"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013319#include "confdefs.h"
13320#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013321#ifdef HAVE_SYS_SOCKET_H
13322# include <sys/socket.h>
13323#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013324int
13325main ()
13326{
13327struct msghdr s; s.msg_accrights = 0
13328 ;
13329 return 0;
13330}
13331_ACEOF
13332rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013334 (eval $ac_compile) 2>&5
13335 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013337 (exit $ac_status); } &&
13338 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013340 (eval $ac_try) 2>&5
13341 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013343 (exit $ac_status); }; }; then
13344 ac_cv_c_msghdr_msg_accrights="yes"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013345else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013346 echo "$as_me: failed program was:" >&5
13347cat conftest.$ac_ext >&5
13348ac_cv_c_msghdr_msg_accrights="no"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013349fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013350rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000013351fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013352echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013353echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6
13354if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then
Alexandre Julliard829fe321998-07-26 14:27:39 +000013355
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013356cat >>confdefs.h <<\_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000013357#define HAVE_MSGHDR_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013358_ACEOF
Alexandre Julliard829fe321998-07-26 14:27:39 +000013359
13360fi
13361
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013362
13363
13364echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013365echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
13366if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013368else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013369 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013370#line $LINENO "configure"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013371#include "confdefs.h"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013372#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013373#ifdef HAVE_SYS_SOCKET_H
13374# include <sys/socket.h>
13375#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013376int
13377main ()
13378{
13379struct sockaddr s; s.sa_len = 0
13380 ;
13381 return 0;
13382}
13383_ACEOF
13384rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013386 (eval $ac_compile) 2>&5
13387 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013389 (exit $ac_status); } &&
13390 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013392 (eval $ac_try) 2>&5
13393 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013395 (exit $ac_status); }; }; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000013396 ac_cv_c_sockaddr_sa_len="yes"
13397else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013398 echo "$as_me: failed program was:" >&5
13399cat conftest.$ac_ext >&5
13400ac_cv_c_sockaddr_sa_len="no"
Patrik Stridvall09da9662001-07-08 22:30:50 +000013401fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013402rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000013403fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013404echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013405echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6
13406if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000013407
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013408cat >>confdefs.h <<\_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013409#define HAVE_SOCKADDR_SA_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013410_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013411
13412fi
13413
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013414
13415
13416echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013417echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6
13418if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000013420else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013421 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013422#line $LINENO "configure"
Patrik Stridvall09da9662001-07-08 22:30:50 +000013423#include "confdefs.h"
13424#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013425#ifdef HAVE_SYS_SOCKET_H
13426# include <sys/socket.h>
13427#endif
13428#ifdef HAVE_SYS_UN_H
13429# include <sys/un.h>
13430#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013431int
13432main ()
13433{
13434struct sockaddr_un s; s.sun_len = 0
13435 ;
13436 return 0;
13437}
13438_ACEOF
13439rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013441 (eval $ac_compile) 2>&5
13442 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013444 (exit $ac_status); } &&
13445 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013447 (eval $ac_try) 2>&5
13448 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013450 (exit $ac_status); }; }; then
13451 ac_cv_c_sockaddr_un_sun_len="yes"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013452else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013453 echo "$as_me: failed program was:" >&5
13454cat conftest.$ac_ext >&5
13455ac_cv_c_sockaddr_un_sun_len="no"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013456fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013457rm -f conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000013458fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013459echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013460echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6
13461if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000013462
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013463cat >>confdefs.h <<\_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013464#define HAVE_SOCKADDR_SUN_LEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013465_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013466
13467fi
13468
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013469
13470
13471
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013472case $host_cpu in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013473 *i345678986* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013474 echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013475echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
13476if test "${ac_cv_cpp_def_i386+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000013478else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013479 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013480#line $LINENO "configure"
Juergen Lock2d33ab92000-02-13 16:03:29 +000013481#include "confdefs.h"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013482#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013483yes
13484#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013485_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013487 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013488 ac_cv_cpp_def_i386="yes"
13489else
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013490 ac_cv_cpp_def_i386="no"
13491fi
13492rm -f conftest*
13493
13494fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013495echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013496echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6
13497 ;;
13498esac
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013499if test "$ac_cv_cpp_def_i386" = "yes"
13500then
13501 CFLAGS="$CFLAGS -D__i386__"
Patrik Stridvalla9be64e1999-07-31 17:39:44 +000013502 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013503fi
13504
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013505
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013506case $host_cpu in
13507 *sparc* )
13508 echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
13509echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
13510if test "${ac_cv_cpp_def_sparc+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
13512else
13513 cat >conftest.$ac_ext <<_ACEOF
13514#line $LINENO "configure"
13515#include "confdefs.h"
13516#ifndef __sparc__
13517yes
13518#endif
13519_ACEOF
13520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013521 $EGREP "yes" >/dev/null 2>&1; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013522 ac_cv_cpp_def_sparc="yes"
13523else
13524 ac_cv_cpp_def_sparc="no"
13525fi
13526rm -f conftest*
13527
13528fi
13529echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sparc" >&5
13530echo "${ECHO_T}$ac_cv_cpp_def_sparc" >&6
13531 ;;
13532esac
13533if test "$ac_cv_cpp_def_sparc" = "yes"
13534then
13535 CFLAGS="$CFLAGS -D__sparc__"
13536 LINTFLAGS="$LINTFLAGS -D__sparc__"
13537fi
13538
13539
13540case $host_vendor in
13541 *sun* )
13542 echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
13543echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
13544if test "${ac_cv_cpp_def_sun+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546else
13547 cat >conftest.$ac_ext <<_ACEOF
13548#line $LINENO "configure"
13549#include "confdefs.h"
13550#ifndef __sun__
13551yes
13552#endif
13553_ACEOF
13554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013555 $EGREP "yes" >/dev/null 2>&1; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013556 ac_cv_cpp_def_sun="yes"
13557else
13558 ac_cv_cpp_def_sun="no"
13559fi
13560rm -f conftest*
13561
13562fi
13563echo "$as_me:$LINENO: result: $ac_cv_cpp_def_sun" >&5
13564echo "${ECHO_T}$ac_cv_cpp_def_sun" >&6
13565 ;;
13566esac
13567if test "$ac_cv_cpp_def_sun" = "yes"
13568then
13569 CFLAGS="$CFLAGS -D__sun__"
13570 LINTFLAGS="$LINTFLAGS -D__sun__"
13571fi
13572
13573
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013574
13575
13576
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013577 ac_config_commands="$ac_config_commands controls"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013578
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013579 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000013580
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013581 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000013582
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013583 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000013584
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013585 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000013586
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013587 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000013588
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013589 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000013590
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013591 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013592
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013593 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013594
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013595 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013596
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013597 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000013598
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013599 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000013600
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013601 ac_config_commands="$ac_config_commands dlls/gdi/win16drv"
Alexandre Julliard89118562002-03-27 21:13:40 +000013602
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013603 ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013604
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013605 ac_config_commands="$ac_config_commands dlls/user/dde"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013606
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013607 ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013608
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013609 ac_config_commands="$ac_config_commands dlls/wineps/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013610
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013611 ac_config_commands="$ac_config_commands files"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013612
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013613 ac_config_commands="$ac_config_commands graphics"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013614
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013615 ac_config_commands="$ac_config_commands graphics/x11drv"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013616
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013617 ac_config_commands="$ac_config_commands if1632"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013618
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013619 ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013620
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013621 ac_config_commands="$ac_config_commands loader"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013622
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013623 ac_config_commands="$ac_config_commands loader/ne"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013624
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013625 ac_config_commands="$ac_config_commands memory"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013626
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013627 ac_config_commands="$ac_config_commands misc"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013628
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013629 ac_config_commands="$ac_config_commands msdos"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013630
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013631 ac_config_commands="$ac_config_commands objects"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013632
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013633 ac_config_commands="$ac_config_commands programs/regapi/tests"
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000013634
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013635 ac_config_commands="$ac_config_commands programs/regedit/tests"
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000013636
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013637 ac_config_commands="$ac_config_commands relay32"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013638
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013639 ac_config_commands="$ac_config_commands scheduler"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013640
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013641 ac_config_commands="$ac_config_commands win32"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013642
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013643 ac_config_commands="$ac_config_commands windows"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000013644
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000013645
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000013646MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013647
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013648
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000013649MAKE_DLL_RULES=dlls/Makedll.rules
13650
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013651
Alexandre Julliardedeee892002-08-09 01:22:40 +000013652MAKE_TEST_RULES=dlls/Maketest.rules
13653
13654
Alexandre Julliard626f4252000-11-10 23:35:20 +000013655MAKE_PROG_RULES=programs/Makeprog.rules
13656
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013657
Patrik Stridvall9398d9c2002-11-12 01:13:10 +000013658 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/d3d8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/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 unicode/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013659
Alexandre Julliard626f4252000-11-10 23:35:20 +000013660
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013661cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013662# This file is a shell script that caches the results of configure
13663# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013664# scripts and configure runs, see configure's option --config-cache.
13665# It is not useful on other systems. If it contains results you don't
13666# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013667#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013668# config.status only pays attention to the cache file if you give it
13669# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013670#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013671# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013672# loading this file, other *unset* `ac_cv_foo' will be assigned the
13673# following values.
13674
13675_ACEOF
13676
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013677# The following way of writing the cache mishandles newlines in values,
13678# but we know of no workaround that is simple, portable, and efficient.
13679# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013680# Ultrix sh set writes to stderr and can't be redirected directly,
13681# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013682{
13683 (set) 2>&1 |
13684 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13685 *ac_space=\ *)
13686 # `set' does not quote correctly, so add quotes (double-quote
13687 # substitution turns \\\\ into \\, and sed turns \\ into \).
13688 sed -n \
13689 "s/'/'\\\\''/g;
13690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13691 ;;
13692 *)
13693 # `set' quotes correctly as required by POSIX, so do not add quotes.
13694 sed -n \
13695 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13696 ;;
13697 esac;
13698} |
13699 sed '
13700 t clear
13701 : clear
13702 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13703 t end
13704 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13705 : end' >>confcache
13706if cmp -s $cache_file confcache; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013707 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013708 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13709 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013710 else
13711 echo "not updating unwritable cache $cache_file"
13712 fi
13713fi
13714rm -f confcache
13715
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013716test "x$prefix" = xNONE && prefix=$ac_default_prefix
13717# Let make expand exec_prefix.
13718test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13719
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013720# VPATH may cause trouble with some makes, so we remove $(srcdir),
13721# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13722# trailing colons and then remove the whole line if VPATH becomes empty
13723# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013724if test "x$srcdir" = x.; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013725 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13726s/:*\$(srcdir):*/:/;
13727s/:*\${srcdir}:*/:/;
13728s/:*@srcdir@:*/:/;
13729s/^\([^=]*=[ ]*\):*/\1/;
13730s/:*$//;
13731s/^[^=]*=[ ]*$//;
13732}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013733fi
13734
Alexandre Julliard18f92e71996-07-17 20:02:21 +000013735DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013736
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013737ac_libobjs=
13738ac_ltlibobjs=
13739for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13740 # 1. Remove the extension, and $U if already installed.
13741 ac_i=`echo "$ac_i" |
13742 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13743 # 2. Add them.
13744 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13745 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13746done
13747LIBOBJS=$ac_libobjs
13748
13749LTLIBOBJS=$ac_ltlibobjs
13750
13751
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013752
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013753: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013754ac_clean_files_save=$ac_clean_files
13755ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013756{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013757echo "$as_me: creating $CONFIG_STATUS" >&6;}
13758cat >$CONFIG_STATUS <<_ACEOF
13759#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013760# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013761# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013762# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013763# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013764
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013765debug=false
13766SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013767_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013768
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013769cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013770## --------------------- ##
13771## M4sh Initialization. ##
13772## --------------------- ##
13773
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013774# Be Bourne compatible
13775if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13776 emulate sh
13777 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013778 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13779 # is contrary to our usage. Disable this feature.
13780 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013781elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13782 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000013783fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013784
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013785# Support unset when possible.
13786if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13787 as_unset=unset
13788else
13789 as_unset=false
13790fi
13791
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013792
13793# Work around bugs in pre-3.0 UWIN ksh.
13794$as_unset ENV MAIL MAILPATH
13795PS1='$ '
13796PS2='> '
13797PS4='+ '
13798
13799# NLS nuisances.
13800for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
13801do
13802 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
13803 eval $as_var=C; export $as_var
13804 else
13805 $as_unset $as_var
13806 fi
13807done
13808
13809# Required to use basename.
13810if expr a : '\(a\)' >/dev/null 2>&1; then
13811 as_expr=expr
13812else
13813 as_expr=false
13814fi
13815
13816if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13817 as_basename=basename
13818else
13819 as_basename=false
13820fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013821
13822
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013823# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013824as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013825$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13826 X"$0" : 'X\(//\)$' \| \
13827 X"$0" : 'X\(/\)$' \| \
13828 . : '\(.\)' 2>/dev/null ||
13829echo X/"$0" |
13830 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13831 /^X\/\(\/\/\)$/{ s//\1/; q; }
13832 /^X\/\(\/\).*/{ s//\1/; q; }
13833 s/.*/./; q'`
13834
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013835
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013836# PATH needs CR, and LINENO needs CR and PATH.
13837# Avoid depending upon Character Ranges.
13838as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13839as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13840as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13841as_cr_digits='0123456789'
13842as_cr_alnum=$as_cr_Letters$as_cr_digits
13843
13844# The user is always right.
13845if test "${PATH_SEPARATOR+set}" != set; then
13846 echo "#! /bin/sh" >conftest.sh
13847 echo "exit 0" >>conftest.sh
13848 chmod +x conftest.sh
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013849 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013850 PATH_SEPARATOR=';'
13851 else
13852 PATH_SEPARATOR=:
13853 fi
13854 rm -f conftest.sh
13855fi
13856
13857
13858 as_lineno_1=$LINENO
13859 as_lineno_2=$LINENO
13860 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13861 test "x$as_lineno_1" != "x$as_lineno_2" &&
13862 test "x$as_lineno_3" = "x$as_lineno_2" || {
13863 # Find who we are. Look in the path if we contain no path at all
13864 # relative or not.
13865 case $0 in
13866 *[\\/]* ) as_myself=$0 ;;
13867 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13868for as_dir in $PATH
13869do
13870 IFS=$as_save_IFS
13871 test -z "$as_dir" && as_dir=.
13872 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13873done
13874
13875 ;;
13876 esac
13877 # We did not find ourselves, most probably we were run as `sh COMMAND'
13878 # in which case we are not to be found in the path.
13879 if test "x$as_myself" = x; then
13880 as_myself=$0
13881 fi
13882 if test ! -f "$as_myself"; then
13883 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13884echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13885 { (exit 1); exit 1; }; }
13886 fi
13887 case $CONFIG_SHELL in
13888 '')
13889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13890for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13891do
13892 IFS=$as_save_IFS
13893 test -z "$as_dir" && as_dir=.
13894 for as_base in sh bash ksh sh5; do
13895 case $as_dir in
13896 /*)
13897 if ("$as_dir/$as_base" -c '
13898 as_lineno_1=$LINENO
13899 as_lineno_2=$LINENO
13900 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13901 test "x$as_lineno_1" != "x$as_lineno_2" &&
13902 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013903 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13904 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013905 CONFIG_SHELL=$as_dir/$as_base
13906 export CONFIG_SHELL
13907 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13908 fi;;
13909 esac
13910 done
13911done
13912;;
13913 esac
13914
13915 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13916 # uniformly replaced by the line number. The first 'sed' inserts a
13917 # line-number line before each line; the second 'sed' does the real
13918 # work. The second script uses 'N' to pair each line-number line
13919 # with the numbered line, and appends trailing '-' during
13920 # substitution so that $LINENO is not a special case at line end.
13921 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13922 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13923 sed '=' <$as_myself |
13924 sed '
13925 N
13926 s,$,-,
13927 : loop
13928 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13929 t loop
13930 s,-$,,
13931 s,^['$as_cr_digits']*\n,,
13932 ' >$as_me.lineno &&
13933 chmod +x $as_me.lineno ||
13934 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13935echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13936 { (exit 1); exit 1; }; }
13937
13938 # Don't try to exec as it changes $[0], causing all sort of problems
13939 # (the dirname of $[0] is not the place where we might find the
13940 # original and so on. Autoconf is especially sensible to this).
13941 . ./$as_me.lineno
13942 # Exit status is that of the last command.
13943 exit
13944}
13945
13946
13947case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13948 *c*,-n*) ECHO_N= ECHO_C='
13949' ECHO_T=' ' ;;
13950 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13951 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13952esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013953
13954if expr a : '\(a\)' >/dev/null 2>&1; then
13955 as_expr=expr
13956else
13957 as_expr=false
13958fi
13959
13960rm -f conf$$ conf$$.exe conf$$.file
13961echo >conf$$.file
13962if ln -s conf$$.file conf$$ 2>/dev/null; then
13963 # We could just check for DJGPP; but this test a) works b) is more generic
13964 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13965 if test -f conf$$.exe; then
13966 # Don't use ln at all; we don't have any links
13967 as_ln_s='cp -p'
13968 else
13969 as_ln_s='ln -s'
13970 fi
13971elif ln conf$$.file conf$$ 2>/dev/null; then
13972 as_ln_s=ln
13973else
13974 as_ln_s='cp -p'
13975fi
13976rm -f conf$$ conf$$.exe conf$$.file
13977
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013978if mkdir -p . 2>/dev/null; then
13979 as_mkdir_p=:
13980else
13981 as_mkdir_p=false
13982fi
13983
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013984as_executable_p="test -f"
13985
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013986# Sed expression to map a string onto a valid CPP name.
13987as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013988
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013989# Sed expression to map a string onto a valid variable name.
13990as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13991
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013992
13993# IFS
13994# We need space, tab and new line, in precisely that order.
13995as_nl='
13996'
13997IFS=" $as_nl"
13998
13999# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014000$as_unset CDPATH
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014001
14002exec 6>&1
14003
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014004# Open the log real soon, to keep \$[0] and so on meaningful, and to
14005# report actual input values of CONFIG_FILES etc. instead of their
14006# values after options handling. Logging --version etc. is OK.
14007exec 5>>config.log
14008{
14009 echo
14010 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14011## Running $as_me. ##
14012_ASBOX
14013} >&5
14014cat >&5 <<_CSEOF
14015
Alexandre Julliarde8d0f972002-11-01 02:30:46 +000014016This file was extended by Wine $as_me 20021031, which was
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014017generated by GNU Autoconf 2.54. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014018
14019 CONFIG_FILES = $CONFIG_FILES
14020 CONFIG_HEADERS = $CONFIG_HEADERS
14021 CONFIG_LINKS = $CONFIG_LINKS
14022 CONFIG_COMMANDS = $CONFIG_COMMANDS
14023 $ $0 $@
14024
14025_CSEOF
14026echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14027echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014028_ACEOF
14029
14030# Files that config.status was made for.
14031if test -n "$ac_config_files"; then
14032 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14033fi
14034
14035if test -n "$ac_config_headers"; then
14036 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14037fi
14038
14039if test -n "$ac_config_links"; then
14040 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14041fi
14042
14043if test -n "$ac_config_commands"; then
14044 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14045fi
14046
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014047cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014048
14049ac_cs_usage="\
14050\`$as_me' instantiates files from templates according to the
14051current configuration.
14052
14053Usage: $0 [OPTIONS] [FILE]...
14054
14055 -h, --help print this help, then exit
14056 -V, --version print version number, then exit
14057 -d, --debug don't remove temporary files
14058 --recheck update $as_me by reconfiguring in the same conditions
14059 --file=FILE[:TEMPLATE]
14060 instantiate the configuration file FILE
14061 --header=FILE[:TEMPLATE]
14062 instantiate the configuration header FILE
14063
14064Configuration files:
14065$config_files
14066
14067Configuration headers:
14068$config_headers
14069
14070Configuration commands:
14071$config_commands
14072
14073Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014074_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000014075
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014076cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014077ac_cs_version="\\
Alexandre Julliarde8d0f972002-11-01 02:30:46 +000014078Wine config.status 20021031
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014079configured by $0, generated by GNU Autoconf 2.54,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014080 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014081
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014082Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14083Free Software Foundation, Inc.
14084This config.status script is free software; the Free Software Foundation
14085gives unlimited permission to copy, distribute and modify it."
14086srcdir=$srcdir
14087INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014088_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014089
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014090cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014091# If no file are specified by the user, then we need to provide default
14092# value. By we need to know if files were specified by the user.
14093ac_need_defaults=:
14094while test $# != 0
14095do
14096 case $1 in
14097 --*=*)
14098 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14099 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014100 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014101 ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014102 -*)
14103 ac_option=$1
14104 ac_optarg=$2
14105 ac_shift=shift
14106 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014107 *) # This is not an option, so the user has probably given explicit
14108 # arguments.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014109 ac_option=$1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014110 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014111 esac
14112
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014113 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014114 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014115_ACEOF
14116cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14118 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14119 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014120_ACEOF
14121cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014122 --version | --vers* | -V )
14123 echo "$ac_cs_version"; exit 0 ;;
14124 --he | --h)
14125 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014126 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014127Try \`$0 --help' for more information." >&5
14128echo "$as_me: error: ambiguous option: $1
14129Try \`$0 --help' for more information." >&2;}
14130 { (exit 1); exit 1; }; };;
14131 --help | --hel | -h )
14132 echo "$ac_cs_usage"; exit 0 ;;
14133 --debug | --d* | -d )
14134 debug=: ;;
14135 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014136 $ac_shift
14137 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014138 ac_need_defaults=false;;
14139 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014140 $ac_shift
14141 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014142 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014143
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014144 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014145 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014146Try \`$0 --help' for more information." >&5
14147echo "$as_me: error: unrecognized option: $1
14148Try \`$0 --help' for more information." >&2;}
14149 { (exit 1); exit 1; }; } ;;
14150
14151 *) ac_config_targets="$ac_config_targets $1" ;;
14152
14153 esac
14154 shift
14155done
14156
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014157_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014158
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014159
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014160
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014161
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014162
14163cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014164for ac_config_target in $ac_config_targets
14165do
14166 case "$ac_config_target" in
14167 # Handling of arguments.
14168 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
14169 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014170 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014171 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
14172 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014173 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
14174 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014175 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014176 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
14177 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000014178 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014179 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
14180 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
14181 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
14182 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
Sylvain Petreolle3a99d8b2002-06-25 23:23:03 +000014183 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014184 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
14185 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
14186 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
14187 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
Ove Kaavend2d08f02002-06-14 00:39:44 +000014188 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014189 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
14190 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
14191 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
14192 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
Patrik Stridvall928ecb42002-10-02 19:58:27 +000014193 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014194 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
14195 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
14196 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
14197 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
14198 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014199 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014200 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
14201 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
14202 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
14203 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000014204 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000014205 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000014206 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Eric Pouechb706b232002-06-04 17:53:46 +000014207 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014208 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
14209 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000014210 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014211 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014212 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
Uwe Bonnesa768fa32002-10-30 23:49:03 +000014213 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014214 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
14215 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
Michael Günnewig288b8ee2002-10-08 00:40:05 +000014216 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014217 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
Andriy Palamarchukb812c902002-09-11 02:35:17 +000014218 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014219 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
Jon Griffiths1da29712002-08-15 22:08:40 +000014220 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014221 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
14222 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
14223 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014224 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014225 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
14226 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
14227 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
14228 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
14229 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
14230 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
14231 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
14232 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
14233 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
14234 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
14235 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
Greg Turnerac89cc22002-10-07 21:54:07 +000014236 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014237 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
14238 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
14239 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
14240 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
Andriy Palamarchuk5b5bea02002-08-27 01:34:33 +000014241 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014242 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
14243 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014244 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000014245 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014246 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
14247 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
14248 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000014249 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014250 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
14251 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
Patrik Stridvall9398d9c2002-11-12 01:13:10 +000014252 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014253 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014254 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014255 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
14256 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
14257 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
14258 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
14259 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
14260 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014261 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014262 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
14263 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
14264 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
14265 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
14266 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
14267 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
14268 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
14269 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
Francois Gouget4ce28372002-11-04 23:47:49 +000014270 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014271 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Eric Pouecha120ce02002-06-28 17:40:16 +000014272 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014273 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014274 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
14275 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014276 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
14277 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
14278 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000014279 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014280 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
14281 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
14282 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
14283 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
14284 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
14285 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014286 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14287 "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014288 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014289 "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;;
14290 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14291 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
14292 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
14293 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
14294 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000014295 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014296 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
14297 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
14298 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
14299 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000014300 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000014301 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014302 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
14303 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
14304 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
14305 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
14306 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
Alexandre Julliardf264bd32002-09-13 17:54:27 +000014307 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
Alexandre Julliard65a42162002-06-04 21:29:40 +000014308 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014309 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000014310 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014311 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
14312 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014313 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14314 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000014315 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014316 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
14317 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
14318 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
14319 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
Alexandre Julliardb7d3c792002-07-16 02:33:10 +000014320 "tools/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wpp/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014321 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014322 "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014323 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014324 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
14325 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
14326 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
14327 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
14328 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
14329 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
14330 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
14331 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
14332 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000014333 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
14334 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
14335 "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014336 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
14337 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
14338 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
14339 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014340 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
14341 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
14342 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
14343 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014344 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014345 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
14346 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
14347 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
14348 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
14349 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
14350 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000014351 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000014352 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000014353 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
14354 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
14355 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
14356 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014357 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014358 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014359echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14360 { (exit 1); exit 1; }; };;
14361 esac
14362done
14363
14364# If the user did not use the arguments to specify the items to instantiate,
14365# then the envvar interface is used. Set only those that are not.
14366# We use the long form for the default assignment because of an extremely
14367# bizarre bug on SunOS 4.1.3.
14368if $ac_need_defaults; then
14369 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14370 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14371 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14372fi
14373
14374# Create a temporary directory, and hook for its removal unless debugging.
14375$debug ||
14376{
14377 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14378 trap '{ (exit 1); exit 1; }' 1 2 13 15
14379}
14380
14381# Create a (secure) tmp directory for tmp files.
14382: ${TMPDIR=/tmp}
14383{
14384 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14385 test -n "$tmp" && test -d "$tmp"
14386} ||
14387{
14388 tmp=$TMPDIR/cs$$-$RANDOM
14389 (umask 077 && mkdir $tmp)
14390} ||
14391{
14392 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14393 { (exit 1); exit 1; }
14394}
14395
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014396_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014397
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014398cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014399
14400#
14401# CONFIG_FILES section.
14402#
14403
14404# No need to generate the scripts if there are no CONFIG_FILES.
14405# This happens for instance when ./config.status config.h
14406if test -n "\$CONFIG_FILES"; then
14407 # Protect against being on the right side of a sed subst in config.status.
14408 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14409 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14410s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014411s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14412s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14413s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14414s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14415s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14416s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014417s,@exec_prefix@,$exec_prefix,;t t
14418s,@prefix@,$prefix,;t t
14419s,@program_transform_name@,$program_transform_name,;t t
14420s,@bindir@,$bindir,;t t
14421s,@sbindir@,$sbindir,;t t
14422s,@libexecdir@,$libexecdir,;t t
14423s,@datadir@,$datadir,;t t
14424s,@sysconfdir@,$sysconfdir,;t t
14425s,@sharedstatedir@,$sharedstatedir,;t t
14426s,@localstatedir@,$localstatedir,;t t
14427s,@libdir@,$libdir,;t t
14428s,@includedir@,$includedir,;t t
14429s,@oldincludedir@,$oldincludedir,;t t
14430s,@infodir@,$infodir,;t t
14431s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014432s,@build_alias@,$build_alias,;t t
14433s,@host_alias@,$host_alias,;t t
14434s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014435s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014436s,@ECHO_C@,$ECHO_C,;t t
14437s,@ECHO_N@,$ECHO_N,;t t
14438s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014439s,@LIBS@,$LIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014440s,@LIBEXT@,$LIBEXT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014441s,@OPTIONS@,$OPTIONS,;t t
Alexandre Julliardc728efc2002-10-02 02:34:09 +000014442s,@WIN16_FILES@,$WIN16_FILES,;t t
14443s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014444s,@build@,$build,;t t
14445s,@build_cpu@,$build_cpu,;t t
14446s,@build_vendor@,$build_vendor,;t t
14447s,@build_os@,$build_os,;t t
14448s,@host@,$host,;t t
14449s,@host_cpu@,$host_cpu,;t t
14450s,@host_vendor@,$host_vendor,;t t
14451s,@host_os@,$host_os,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014452s,@SET_MAKE@,$SET_MAKE,;t t
14453s,@CC@,$CC,;t t
14454s,@CFLAGS@,$CFLAGS,;t t
14455s,@LDFLAGS@,$LDFLAGS,;t t
14456s,@CPPFLAGS@,$CPPFLAGS,;t t
14457s,@ac_ct_CC@,$ac_ct_CC,;t t
14458s,@EXEEXT@,$EXEEXT,;t t
14459s,@OBJEXT@,$OBJEXT,;t t
14460s,@CPP@,$CPP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014461s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014462s,@X_CFLAGS@,$X_CFLAGS,;t t
14463s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
14464s,@X_LIBS@,$X_LIBS,;t t
14465s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14466s,@YACC@,$YACC,;t t
14467s,@LEX@,$LEX,;t t
14468s,@LEXLIB@,$LEXLIB,;t t
14469s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14470s,@XYACC@,$XYACC,;t t
14471s,@XLEX@,$XLEX,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000014472s,@LD@,$LD,;t t
14473s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014474s,@AR@,$AR,;t t
14475s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014476s,@RANLIB@,$RANLIB,;t t
14477s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014478s,@STRIP@,$STRIP,;t t
14479s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14480s,@WINDRES@,$WINDRES,;t t
14481s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014482s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14483s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14484s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14485s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000014486s,@LN@,$LN,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014487s,@C2MAN@,$C2MAN,;t t
14488s,@LDCONFIG@,$LDCONFIG,;t t
14489s,@LINT@,$LINT,;t t
14490s,@LINTFLAGS@,$LINTFLAGS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014491s,@JPEGLIB@,$JPEGLIB,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014492s,@EGREP@,$EGREP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014493s,@XLIB@,$XLIB,;t t
14494s,@XFILES@,$XFILES,;t t
14495s,@OPENGLFILES@,$OPENGLFILES,;t t
14496s,@GLU32FILES@,$GLU32FILES,;t t
Francois Gouget6f670b12002-10-10 17:54:27 +000014497s,@NASLIBS@,$NASLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014498s,@CURSESLIBS@,$CURSESLIBS,;t t
14499s,@CUPSLIBS@,$CUPSLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000014500s,@sane_devel@,$sane_devel,;t t
14501s,@SANELIBS@,$SANELIBS,;t t
14502s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014503s,@ft_devel@,$ft_devel,;t t
14504s,@ft_devel2@,$ft_devel2,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014505s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014506s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
14507s,@ARTSLIBS@,$ARTSLIBS,;t t
14508s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014509s,@ALSALIBS@,$ALSALIBS,;t t
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014510s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014511s,@DLLEXT@,$DLLEXT,;t t
14512s,@DLLFLAGS@,$DLLFLAGS,;t t
14513s,@DLLIBS@,$DLLIBS,;t t
14514s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
14515s,@LDSHARED@,$LDSHARED,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014516s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014517s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014518s,@CROSSTEST@,$CROSSTEST,;t t
14519s,@CROSSCC@,$CROSSCC,;t t
14520s,@DLLTOOL@,$DLLTOOL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014521s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014522s,@CRTLIBS@,$CRTLIBS,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014523s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014524s,@ALLOCA@,$ALLOCA,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014525s,@LIBOBJS@,$LIBOBJS,;t t
14526s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014527/@MAKE_RULES@/r $MAKE_RULES
14528s,@MAKE_RULES@,,;t t
14529/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
14530s,@MAKE_DLL_RULES@,,;t t
Alexandre Julliardedeee892002-08-09 01:22:40 +000014531/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
14532s,@MAKE_TEST_RULES@,,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014533/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
14534s,@MAKE_PROG_RULES@,,;t t
14535CEOF
14536
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014537_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014538
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014539 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014540 # Split the substitutions into bite-sized pieces for seds with
14541 # small command number limits, like on Digital OSF/1 and HP-UX.
14542 ac_max_sed_lines=48
14543 ac_sed_frag=1 # Number of current file.
14544 ac_beg=1 # First line for current file.
14545 ac_end=$ac_max_sed_lines # Line after last line for current file.
14546 ac_more_lines=:
14547 ac_sed_cmds=
14548 while $ac_more_lines; do
14549 if test $ac_beg -gt 1; then
14550 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14551 else
14552 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14553 fi
14554 if test ! -s $tmp/subs.frag; then
14555 ac_more_lines=false
14556 else
14557 # The purpose of the label and of the branching condition is to
14558 # speed up the sed processing (if there are no `@' at all, there
14559 # is no need to browse any of the substitutions).
14560 # These are the two extra sed commands mentioned above.
14561 (echo ':t
14562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14563 if test -z "$ac_sed_cmds"; then
14564 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14565 else
14566 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14567 fi
14568 ac_sed_frag=`expr $ac_sed_frag + 1`
14569 ac_beg=$ac_end
14570 ac_end=`expr $ac_end + $ac_max_sed_lines`
14571 fi
14572 done
14573 if test -z "$ac_sed_cmds"; then
14574 ac_sed_cmds=cat
14575 fi
14576fi # test -n "$CONFIG_FILES"
14577
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014578_ACEOF
14579cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014580for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14582 case $ac_file in
14583 - | *:- | *:-:* ) # input from stdin
14584 cat >$tmp/stdin
14585 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14586 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14587 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14588 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14589 * ) ac_file_in=$ac_file.in ;;
14590 esac
14591
14592 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014593 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014595 X"$ac_file" : 'X\(//\)[^/]' \| \
14596 X"$ac_file" : 'X\(//\)$' \| \
14597 X"$ac_file" : 'X\(/\)' \| \
14598 . : '\(.\)' 2>/dev/null ||
14599echo X"$ac_file" |
14600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14601 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14602 /^X\(\/\/\)$/{ s//\1/; q; }
14603 /^X\(\/\).*/{ s//\1/; q; }
14604 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014605 { if $as_mkdir_p; then
14606 mkdir -p "$ac_dir"
14607 else
14608 as_dir="$ac_dir"
14609 as_dirs=
14610 while test ! -d "$as_dir"; do
14611 as_dirs="$as_dir $as_dirs"
14612 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14613$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14614 X"$as_dir" : 'X\(//\)[^/]' \| \
14615 X"$as_dir" : 'X\(//\)$' \| \
14616 X"$as_dir" : 'X\(/\)' \| \
14617 . : '\(.\)' 2>/dev/null ||
14618echo X"$as_dir" |
14619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14621 /^X\(\/\/\)$/{ s//\1/; q; }
14622 /^X\(\/\).*/{ s//\1/; q; }
14623 s/.*/./; q'`
14624 done
14625 test ! -n "$as_dirs" || mkdir $as_dirs
14626 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14627echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14628 { (exit 1); exit 1; }; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014629
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014630 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014631
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014632if test "$ac_dir" != .; then
14633 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14634 # A "../" for each directory in $ac_dir_suffix.
14635 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14636else
14637 ac_dir_suffix= ac_top_builddir=
14638fi
14639
14640case $srcdir in
14641 .) # No --srcdir option. We are building in place.
14642 ac_srcdir=.
14643 if test -z "$ac_top_builddir"; then
14644 ac_top_srcdir=.
14645 else
14646 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14647 fi ;;
14648 [\\/]* | ?:[\\/]* ) # Absolute path.
14649 ac_srcdir=$srcdir$ac_dir_suffix;
14650 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014651 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014652 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14653 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14654esac
14655# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14656# absolute.
14657ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014658ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014659ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14660ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14661
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014662
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014663 case $INSTALL in
14664 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014665 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014666 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000014667
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014668 if test x"$ac_file" != x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014669 { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014670echo "$as_me: creating $ac_file" >&6;}
14671 rm -f "$ac_file"
14672 fi
14673 # Let's still pretend it is `configure' which instantiates (i.e., don't
14674 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014675 # /* config.h. Generated by config.status. */
14676 if test x"$ac_file" = x-; then
14677 configure_input=
14678 else
14679 configure_input="$ac_file. "
14680 fi
14681 configure_input=$configure_input"Generated from `echo $ac_file_in |
14682 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014683
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014684 # First look for the input files in the build tree, otherwise in the
14685 # src tree.
14686 ac_file_inputs=`IFS=:
14687 for f in $ac_file_in; do
14688 case $f in
14689 -) echo $tmp/stdin ;;
14690 [\\/$]*)
14691 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014692 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014693echo "$as_me: error: cannot find input file: $f" >&2;}
14694 { (exit 1); exit 1; }; }
14695 echo $f;;
14696 *) # Relative
14697 if test -f "$f"; then
14698 # Build tree
14699 echo $f
14700 elif test -f "$srcdir/$f"; then
14701 # Source tree
14702 echo $srcdir/$f
14703 else
14704 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014705 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014706echo "$as_me: error: cannot find input file: $f" >&2;}
14707 { (exit 1); exit 1; }; }
14708 fi;;
14709 esac
14710 done` || { (exit 1); exit 1; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014711_ACEOF
14712cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014713 sed "$ac_vpsub
14714$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014715_ACEOF
14716cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014717:t
14718/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14719s,@configure_input@,$configure_input,;t t
14720s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014721s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014722s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014723s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14724s,@builddir@,$ac_builddir,;t t
14725s,@abs_builddir@,$ac_abs_builddir,;t t
14726s,@top_builddir@,$ac_top_builddir,;t t
14727s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014728s,@INSTALL@,$ac_INSTALL,;t t
14729" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14730 rm -f $tmp/stdin
14731 if test x"$ac_file" != x-; then
14732 mv $tmp/out $ac_file
14733 else
14734 cat $tmp/out
14735 rm -f $tmp/out
14736 fi
14737
14738done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014739_ACEOF
14740cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014741
14742#
14743# CONFIG_HEADER section.
14744#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014745
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014746# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14747# NAME is the cpp macro being defined and VALUE is the value it is being given.
14748#
14749# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014750ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14751ac_dB='[ ].*$,\1#\2'
14752ac_dC=' '
14753ac_dD=',;t'
14754# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14755ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14756ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014757ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014758ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014759
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014760for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014761 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014762 case $ac_file in
14763 - | *:- | *:-:* ) # input from stdin
14764 cat >$tmp/stdin
14765 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14766 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14767 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14769 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014770 esac
14771
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014772 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014773echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014774
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014775 # First look for the input files in the build tree, otherwise in the
14776 # src tree.
14777 ac_file_inputs=`IFS=:
14778 for f in $ac_file_in; do
14779 case $f in
14780 -) echo $tmp/stdin ;;
14781 [\\/$]*)
14782 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014783 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014784echo "$as_me: error: cannot find input file: $f" >&2;}
14785 { (exit 1); exit 1; }; }
14786 echo $f;;
14787 *) # Relative
14788 if test -f "$f"; then
14789 # Build tree
14790 echo $f
14791 elif test -f "$srcdir/$f"; then
14792 # Source tree
14793 echo $srcdir/$f
14794 else
14795 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014796 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014797echo "$as_me: error: cannot find input file: $f" >&2;}
14798 { (exit 1); exit 1; }; }
14799 fi;;
14800 esac
14801 done` || { (exit 1); exit 1; }
14802 # Remove the trailing spaces.
14803 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014804
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014805_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014806
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014807# Transform confdefs.h into two sed scripts, `conftest.defines' and
14808# `conftest.undefs', that substitutes the proper values into
14809# config.h.in to produce config.h. The first handles `#define'
14810# templates, and the second `#undef' templates.
14811# And first: Protect against being on the right side of a sed subst in
14812# config.status. Protect against being in an unquoted here document
14813# in config.status.
14814rm -f conftest.defines conftest.undefs
14815# Using a here document instead of a string reduces the quoting nightmare.
14816# Putting comments in sed scripts is not portable.
14817#
14818# `end' is used to avoid that the second main sed command (meant for
14819# 0-ary CPP macros) applies to n-ary macro definitions.
14820# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014821cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014822s/[\\&,]/\\&/g
14823s,[\\$`],\\&,g
14824t clear
14825: clear
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014826s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014827t end
14828s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14829: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014830_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014831# If some macros were called several times there might be several times
14832# the same #defines, which is useless. Nevertheless, we may not want to
14833# sort them, since we want the *last* AC-DEFINE to be honored.
14834uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14835sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14836rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014837
14838# This sed command replaces #undef with comments. This is necessary, for
14839# example, in the case of _POSIX_SOURCE, which is predefined and required
14840# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014841cat >>conftest.undefs <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014842s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014843_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014844
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014845# Break up conftest.defines because some shells have a limit on the size
14846# of here documents, and old seds have small limits too (100 cmds).
14847echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014848echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014849echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14850echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014851rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014852while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014853do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014854 # Write a limited-size here document to $tmp/defines.sed.
14855 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14856 # Speed up: don't consider the non `#define' lines.
14857 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14858 # Work around the forget-to-reset-the-flag bug.
14859 echo 't clr' >>$CONFIG_STATUS
14860 echo ': clr' >>$CONFIG_STATUS
14861 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014862 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014863 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14864 rm -f $tmp/in
14865 mv $tmp/out $tmp/in
14866' >>$CONFIG_STATUS
14867 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14868 rm -f conftest.defines
14869 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014870done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014871rm -f conftest.defines
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014872echo ' fi # grep' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014873echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014874
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014875# Break up conftest.undefs because some shells have a limit on the size
14876# of here documents, and old seds have small limits too (100 cmds).
14877echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14878rm -f conftest.tail
14879while grep . conftest.undefs >/dev/null
14880do
14881 # Write a limited-size here document to $tmp/undefs.sed.
14882 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14883 # Speed up: don't consider the non `#undef'
14884 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14885 # Work around the forget-to-reset-the-flag bug.
14886 echo 't clr' >>$CONFIG_STATUS
14887 echo ': clr' >>$CONFIG_STATUS
14888 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14889 echo 'CEOF
14890 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14891 rm -f $tmp/in
14892 mv $tmp/out $tmp/in
14893' >>$CONFIG_STATUS
14894 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14895 rm -f conftest.undefs
14896 mv conftest.tail conftest.undefs
14897done
14898rm -f conftest.undefs
14899
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014900cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014901 # Let's still pretend it is `configure' which instantiates (i.e., don't
14902 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014903 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014904 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014905 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014906 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014907 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014908 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014909 cat $tmp/in >>$tmp/config.h
14910 rm -f $tmp/in
14911 if test x"$ac_file" != x-; then
14912 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014913 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014914echo "$as_me: $ac_file is unchanged" >&6;}
14915 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014916 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14917$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014918 X"$ac_file" : 'X\(//\)[^/]' \| \
14919 X"$ac_file" : 'X\(//\)$' \| \
14920 X"$ac_file" : 'X\(/\)' \| \
14921 . : '\(.\)' 2>/dev/null ||
14922echo X"$ac_file" |
14923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14925 /^X\(\/\/\)$/{ s//\1/; q; }
14926 /^X\(\/\).*/{ s//\1/; q; }
14927 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014928 { if $as_mkdir_p; then
14929 mkdir -p "$ac_dir"
14930 else
14931 as_dir="$ac_dir"
14932 as_dirs=
14933 while test ! -d "$as_dir"; do
14934 as_dirs="$as_dir $as_dirs"
14935 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14936$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14937 X"$as_dir" : 'X\(//\)[^/]' \| \
14938 X"$as_dir" : 'X\(//\)$' \| \
14939 X"$as_dir" : 'X\(/\)' \| \
14940 . : '\(.\)' 2>/dev/null ||
14941echo X"$as_dir" |
14942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14943 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14944 /^X\(\/\/\)$/{ s//\1/; q; }
14945 /^X\(\/\).*/{ s//\1/; q; }
14946 s/.*/./; q'`
14947 done
14948 test ! -n "$as_dirs" || mkdir $as_dirs
14949 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14950echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14951 { (exit 1); exit 1; }; }; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014952
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014953 rm -f $ac_file
14954 mv $tmp/config.h $ac_file
14955 fi
14956 else
14957 cat $tmp/config.h
14958 rm -f $tmp/config.h
14959 fi
14960done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014961_ACEOF
14962cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014963
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014964#
14965# CONFIG_COMMANDS section.
14966#
14967for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14968 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14969 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014970 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14971$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14972 X"$ac_dest" : 'X\(//\)[^/]' \| \
14973 X"$ac_dest" : 'X\(//\)$' \| \
14974 X"$ac_dest" : 'X\(/\)' \| \
14975 . : '\(.\)' 2>/dev/null ||
14976echo X"$ac_dest" |
14977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14979 /^X\(\/\/\)$/{ s//\1/; q; }
14980 /^X\(\/\).*/{ s//\1/; q; }
14981 s/.*/./; q'`
14982 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014983
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014984if test "$ac_dir" != .; then
14985 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14986 # A "../" for each directory in $ac_dir_suffix.
14987 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014988else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014989 ac_dir_suffix= ac_top_builddir=
14990fi
14991
14992case $srcdir in
14993 .) # No --srcdir option. We are building in place.
14994 ac_srcdir=.
14995 if test -z "$ac_top_builddir"; then
14996 ac_top_srcdir=.
14997 else
14998 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14999 fi ;;
15000 [\\/]* | ?:[\\/]* ) # Absolute path.
15001 ac_srcdir=$srcdir$ac_dir_suffix;
15002 ac_top_srcdir=$srcdir ;;
15003 *) # Relative path.
15004 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15005 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15006esac
15007# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15008# absolute.
15009ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015010ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015011ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15012ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15013
15014
15015 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15016echo "$as_me: executing $ac_dest commands" >&6;}
15017 case $ac_dest in
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015018 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
15019echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015020 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
15021echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
15022 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
15023echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
15024 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
15025echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
15026 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
15027echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
15028 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
15029echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
15030 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
15031echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
15032 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
15033echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
15034 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
15035echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
15036 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
15037echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
15038 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
15039echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
15040 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
15041echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
15042 dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5
15043echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;;
15044 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
15045echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015046 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
15047echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
15048 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
15049echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015050 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
15051echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015052 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
15053echo "$as_me: creating files" >&6;} && mkdir "files") ;;
15054 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
15055echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
15056 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
15057echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
15058 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
15059echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015060 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
15061echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015062 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
15063echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
15064 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
15065echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
15066 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
15067echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
15068 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
15069echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
15070 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
15071echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
15072 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
15073echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015074 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
15075echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000015076 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
15077echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015078 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
15079echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
15080 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
15081echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
15082 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
15083echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
15084 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
15085echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015086 esac
15087done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015088_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015089
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015090cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000015091
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015092{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015093_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015094chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015095ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015096
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015097
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015098# configure is writing to config.log, and then calls config.status.
15099# config.status does its own redirection, appending to config.log.
15100# Unfortunately, on DOS this fails, as config.log is still kept open
15101# by configure, so config.status won't be able to write to it; its
15102# output is simply discarded. So we exec the FD to /dev/null,
15103# effectively closing config.log, so it can be properly (re)opened and
15104# appended to by config.status. When coming back to configure, we
15105# need to make the FD available again.
15106if test "$no_create" != yes; then
15107 ac_cs_success=:
15108 exec 5>/dev/null
15109 $SHELL $CONFIG_STATUS || ac_cs_success=false
15110 exec 5>>config.log
15111 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15112 # would make configure fail if this is the last instruction.
15113 $ac_cs_success || { (exit 1); exit 1; }
15114fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015115
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015116
Ove Kaaven8b4431f1999-01-23 13:59:11 +000015117if test "$have_x" = "no"
15118then
15119 echo
15120 echo "*** Warning: X development files not found. Wine will be built without"
15121 echo "*** X support, which currently does not work, and would probably not be"
15122 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000015123 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000015124fi
15125
Alexandre Julliard638f1691999-01-17 16:32:32 +000015126if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes"
15127then
15128 echo
15129 echo "*** Warning: resizeterm not found in ncurses. Wine will be built without"
15130 echo "*** terminal resize support. Consider upgrading ncurses."
Alexandre Julliard638f1691999-01-17 16:32:32 +000015131fi
15132
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015133if test "$wine_cv_libc_reentrant" = "no"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000015134then
15135 echo
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015136 echo "*** Warning: non-reentrant libc detected. Wine will be built without"
15137 echo "*** threading support. Consider upgrading libc to a more recent"
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000015138 echo "*** reentrant version of libc."
Alexandre Julliardd30dfd21998-09-27 18:28:36 +000015139fi
15140
Alexandre Julliard867fb9d2002-04-24 22:24:43 +000015141if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes"
15142then
15143 echo
15144 echo "*** Warning: non-reentrant X11 library detected. Multi-threaded"
15145 echo "*** applications won't work properly. You should upgrade your X11 library."
15146fi
15147
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000015148if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000015149then
15150 echo
15151 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000015152 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
15153fi
15154
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015155if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000015156then
15157 echo
15158 echo "*** Warning: the OpenGL version you have installed relies on libpthread for"
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015159 echo "*** thread-safety. To prevent crashes, OpenGL support has been disabled."
Andreas Mohr18a9d742001-01-17 21:52:42 +000015160 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 +000015161 echo "*** start configure with '--enable-opengl' to force OpenGL support."
Lionel Ulmer5c085701999-02-28 19:48:53 +000015162fi
15163
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015164if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000015165then
15166 echo
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +000015167 echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000015168 echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL"
15169 echo "*** support before reporting bugs."
15170fi
15171
Marcus Meissner3ee02ba2001-04-30 18:18:50 +000015172if test "$wine_cv_warn_cups_h" = "yes"
15173then
15174 echo
15175 echo "*** Note: You have cups runtime libraries, but no development"
15176 echo "*** libraries. Install the cups-devel package or whichever package"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015177 echo "*** contains cups.h to enable CUPS support in Wine."
Marcus Meissner3ee02ba2001-04-30 18:18:50 +000015178fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000015179
Ian Pilcher563598d2001-05-16 20:56:05 +000015180if test "$wine_cv_msg_freetype" = "yes"
15181then
15182 echo
15183 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015184 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
15185 echo "*** freetype-devel package (or its equivalent on your distribution) to"
15186 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000015187fi
15188
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015189echo
Steffen Moeller1511bae1999-02-17 15:27:03 +000015190echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015191echo
15192