blob: a8ff547247913b7a69252d7f499d426cc7505708 [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 Julliard93cd1932005-02-11 13:34:17 +00003# Generated by GNU Autoconf 2.59 for Wine 20050211.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004#
Alexandre Julliard875927f2004-01-02 01:55:29 +00005# Report bugs to <wine-devel@winehq.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000018 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000024DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025
Alexandre Julliarddaa28862002-04-11 21:54:01 +000026# Support unset when possible.
Alexandre Julliard875927f2004-01-02 01:55:29 +000027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000028 as_unset=unset
29else
30 as_unset=false
31fi
32
Alexandre Julliard11af04e2002-10-10 03:48:04 +000033
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000041for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000045do
Alexandre Julliard875927f2004-01-02 01:55:29 +000046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000047 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000065
66
Alexandre Julliardf5818d22002-02-14 19:47:29 +000067# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000068as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000069$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
Alexandre Julliard11af04e2002-10-10 03:48:04 +000079
Alexandre Julliarddaa28862002-04-11 21:54:01 +000080# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000090 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000094 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000098 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000099fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
Alexandre Julliard875927f2004-01-02 01:55:29 +0000223 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000224 as_mkdir_p=false
225fi
226
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000227as_executable_p="test -f"
228
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000229# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000231
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000232# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000234
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000243$as_unset CDPATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000244
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000256ac_default_prefix=/usr/local
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000257ac_config_libobj_dir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000258cross_compiling=no
259subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000260MFLAGS=
261MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000269# Identity of this package.
270PACKAGE_NAME='Wine'
271PACKAGE_TARNAME='wine'
Alexandre Julliard93cd1932005-02-11 13:34:17 +0000272PACKAGE_VERSION='20050211'
273PACKAGE_STRING='Wine 20050211'
Alexandre Julliard875927f2004-01-02 01:55:29 +0000274PACKAGE_BUGREPORT='wine-devel@winehq.org'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000275
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000276ac_unique_file="server/atom.c"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000313
Marcus Meissner67d3afb2005-01-07 15:33:02 +0000314ac_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 WIN16_FILES WIN16_INSTALL DLLDEFS 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 CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT FONTFORGE LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPELIBS FREETYPEINCL FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDLIBWINEFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
Alexandre Julliard117436e2003-05-01 00:39:29 +0000315ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000316
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000317# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000318ac_init_help=
319ac_init_version=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000320# The variables have the same names as the options, with
321# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000322cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000323exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000324no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000333verbose=
334x_includes=NONE
335x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000354
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000355ac_prev=
356for ac_option
357do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000369 case $ac_option in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000370
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000374 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000375
376 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000377 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000379 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000390
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000395 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000396
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000397 -disable-* | --disable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000399 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000405
406 -enable-* | --enable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000408 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000415 *) ac_optarg=yes ;;
416 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000417 eval "enable_$ac_feature='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000426 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000438
439 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000440 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000441 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000442 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000443
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000449 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000454 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000459 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000466 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000475 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000480 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000481
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000487 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000501 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000502
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000506 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000513 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000520 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000537 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000547 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000558 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000559
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000563 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000568 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000569
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000575 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000576
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000577 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000578 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000580 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000587
588 -with-* | --with-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000590 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000594 ac_package=`echo $ac_package| sed 's/-/_/g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000597 *) ac_optarg=yes ;;
598 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000599 eval "with_$ac_package='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000600
601 -without-* | --without-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000603 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000619 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000626 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000627
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000631 ;;
632
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000643 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000658fi
659
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000662do
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000667 { (exit 1); exit 1; }; };;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000668 esac
669done
670
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Alexandre Julliard875927f2004-01-02 01:55:29 +0000673 localstatedir libdir includedir oldincludedir infodir mandir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000674do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000679 { (exit 1); exit 1; }; };;
680 esac
681done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000682
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000685# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000686build=$build_alias
687host=$host_alias
688target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000689
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000690# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000705
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000706
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +0000713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000733 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000734 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000736 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000737 fi
738fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +0000771ac_env_CXX_set=${CXX+set}
772ac_env_CXX_value=$CXX
773ac_cv_env_CXX_set=${CXX+set}
774ac_cv_env_CXX_value=$CXX
775ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_env_CXXFLAGS_value=$CXXFLAGS
777ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778ac_cv_env_CXXFLAGS_value=$CXXFLAGS
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000783
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000790 cat <<_ACEOF
Alexandre Julliard93cd1932005-02-11 13:34:17 +0000791\`configure' configures Wine 20050211 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE. See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000811_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000812
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000813 cat <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000814Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliard875927f2004-01-02 01:55:29 +0000816 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliard875927f2004-01-02 01:55:29 +0000818 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000840_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000841
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000842 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000843
844X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
847
848System types:
849 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000851_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000852fi
853
854if test -n "$ac_init_help"; then
855 case $ac_init_help in
Alexandre Julliard93cd1932005-02-11 13:34:17 +0000856 short | recursive ) echo "Configuration of Wine 20050211:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000857 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000858 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000859
860Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +0000863 --disable-win16 do not include Win16 support
864 --disable-debug compile out all debugging messages
865 --disable-trace compile out TRACE messages
Alexandre Julliard2aa8e872004-10-08 23:39:16 +0000866 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
867 binaries)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000868
869Optional Packages:
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Eric Pouech53fa0d52004-02-05 01:27:38 +0000872 --without-opengl do not use OpenGL
873 --without-curses do not use curses
874 --with-wine-tools=<dir> use Wine tools from directory <dir>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000875 --with-x use the X Window System
876
877Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +0000878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +0000884 CXX C++ compiler command
885 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +0000886 CPP C preprocessor
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000887
888Use these variables to override the choices made by `configure' or to help
889it to find libraries and programs with nonstandard names/locations.
890
Alexandre Julliard875927f2004-01-02 01:55:29 +0000891Report bugs to <wine-devel@winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000892_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000893fi
894
895if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000901
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000902if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906else
907 ac_dir_suffix= ac_top_builddir=
908fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000909
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000910case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924esac
Alexandre Julliard875927f2004-01-02 01:55:29 +0000925
926# Do not use `cd foo && pwd` to compute absolute paths, because
927# the directories may not exist.
928case `pwd` in
929.) ac_abs_builddir="$ac_dir";;
930*)
931 case "$ac_dir" in
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 esac;;
936esac
937case $ac_abs_builddir in
938.) ac_abs_top_builddir=${ac_top_builddir}.;;
939*)
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 esac;;
945esac
946case $ac_abs_builddir in
947.) ac_abs_srcdir=$ac_srcdir;;
948*)
949 case $ac_srcdir in
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 esac;;
954esac
955case $ac_abs_builddir in
956.) ac_abs_top_srcdir=$ac_top_srcdir;;
957*)
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 esac;;
963esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000964
965 cd $ac_dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000966 # Check for guested configure; otherwise get Cygnus style configure.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000967 if test -f $ac_srcdir/configure.gnu; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000968 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000971 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
Alexandre Julliard875927f2004-01-02 01:55:29 +0000974 test -f $ac_srcdir/configure.in; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000975 echo
976 $ac_configure --help
977 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000979 fi
Alexandre Julliardccc75702003-09-19 04:36:54 +0000980 cd "$ac_popdir"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000981 done
982fi
983
984test -n "$ac_init_help" && exit 0
985if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000986 cat <<\_ACEOF
Alexandre Julliard93cd1932005-02-11 13:34:17 +0000987Wine configure 20050211
Eric Pouech53fa0d52004-02-05 01:27:38 +0000988generated by GNU Autoconf 2.59
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000989
Alexandre Julliard875927f2004-01-02 01:55:29 +0000990Copyright (C) 2003 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000991This configure script is free software; the Free Software Foundation
992gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000993_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000994 exit 0
995fi
996exec 5>config.log
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000997cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000998This file contains any messages produced by compilers while
999running configure, to aid debugging if configure makes a mistake.
1000
Alexandre Julliard93cd1932005-02-11 13:34:17 +00001001It was created by Wine $as_me 20050211, which was
Eric Pouech53fa0d52004-02-05 01:27:38 +00001002generated by GNU Autoconf 2.59. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001003
1004 $ $0 $@
1005
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001006_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001007{
1008cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001009## --------- ##
1010## Platform. ##
1011## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001012
1013hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1021
1022/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1029
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001030_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001031
1032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033for as_dir in $PATH
1034do
1035 IFS=$as_save_IFS
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1038done
1039
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001040} >&5
1041
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001042cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001043
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001044
1045## ----------- ##
1046## Core tests. ##
1047## ----------- ##
1048
1049_ACEOF
1050
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001051
1052# Keep a trace of the command line.
1053# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001054# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001055# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001056# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001057ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001058ac_configure_args0=
1059ac_configure_args1=
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001060ac_sep=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001061ac_must_keep_next=false
1062for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001063do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001064 for ac_arg
1065 do
1066 case $ac_arg in
1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 continue ;;
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073 esac
1074 case $ac_pass in
1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076 2)
1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001079 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001080 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00001081 case $ac_arg in
1082 *=* | --config-cache | -C | -disable-* | --disable-* \
1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085 | -with-* | --with-* | -without-* | --without-* | --x)
1086 case "$ac_configure_args0 " in
1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088 esac
1089 ;;
1090 -* ) ac_must_keep_next=true ;;
1091 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001092 fi
1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094 # Get rid of the leading space.
1095 ac_sep=" "
1096 ;;
1097 esac
1098 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001099done
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001100$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001102
1103# When interrupted or exit'd, cleanup temporary files, and complete
1104# config.log. We remove comments because anyway the quotes in there
1105# would cause problems or look ugly.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001106# WARNING: Be sure not to use single quotes in there, as some shells,
1107# such as our DU 5.0 friend, will then `close' the trap.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001108trap 'exit_status=$?
1109 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001110 {
1111 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001112
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001113 cat <<\_ASBOX
1114## ---------------- ##
1115## Cache variables. ##
1116## ---------------- ##
1117_ASBOX
1118 echo
1119 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001120{
1121 (set) 2>&1 |
1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123 *ac_space=\ *)
1124 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +00001125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001127 ;;
1128 *)
1129 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +00001130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001131 ;;
1132 esac;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001133}
1134 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001135
1136 cat <<\_ASBOX
1137## ----------------- ##
1138## Output variables. ##
1139## ----------------- ##
1140_ASBOX
1141 echo
1142 for ac_var in $ac_subst_vars
1143 do
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1146 done | sort
1147 echo
1148
1149 if test -n "$ac_subst_files"; then
1150 cat <<\_ASBOX
1151## ------------- ##
1152## Output files. ##
1153## ------------- ##
1154_ASBOX
1155 echo
1156 for ac_var in $ac_subst_files
1157 do
1158 eval ac_val=$`echo $ac_var`
Alexandre Julliard875927f2004-01-02 01:55:29 +00001159 echo "$ac_var='"'"'$ac_val'"'"'"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001160 done | sort
1161 echo
1162 fi
1163
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001164 if test -s confdefs.h; then
1165 cat <<\_ASBOX
1166## ----------- ##
1167## confdefs.h. ##
1168## ----------- ##
1169_ASBOX
1170 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001171 sed "/^$/d" confdefs.h | sort
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001172 echo
1173 fi
1174 test "$ac_signal" != 0 &&
1175 echo "$as_me: caught signal $ac_signal"
1176 echo "$as_me: exit $exit_status"
1177 } >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +00001178 rm -f core *.core &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001179 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001180 exit $exit_status
1181 ' 0
1182for ac_signal in 1 2 13 15; do
1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184done
1185ac_signal=0
1186
1187# confdefs.h avoids OS command line length limits that DEFS can exceed.
1188rm -rf conftest* confdefs.h
1189# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190echo >confdefs.h
1191
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001192# Predefined preprocessor variables.
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_NAME "$PACKAGE_NAME"
1196_ACEOF
1197
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_VERSION "$PACKAGE_VERSION"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_STRING "$PACKAGE_STRING"
1211_ACEOF
1212
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216_ACEOF
1217
1218
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001219# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001220# Prefer explicitly selected file to automatically selected ones.
1221if test -z "$CONFIG_SITE"; then
1222 if test "x$prefix" != xNONE; then
1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224 else
1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226 fi
1227fi
1228for ac_site_file in $CONFIG_SITE; do
1229 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001231echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001232 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001233 . "$ac_site_file"
1234 fi
1235done
1236
1237if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001238 # Some versions of bash will fail to source /dev/null (special
1239 # files actually), so we avoid doing that.
1240 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001242echo "$as_me: loading cache $cache_file" >&6;}
1243 case $cache_file in
1244 [\\/]* | ?:[\\/]* ) . $cache_file;;
1245 *) . ./$cache_file;;
1246 esac
1247 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001248else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001250echo "$as_me: creating cache $cache_file" >&6;}
1251 >$cache_file
1252fi
1253
1254# Check that the precious variables saved in the cache have kept the same
1255# value.
1256ac_cache_corrupted=false
1257for ac_var in `(set) 2>&1 |
Alexandre Julliard875927f2004-01-02 01:55:29 +00001258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260 eval ac_new_set=\$ac_env_${ac_var}_set
1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262 eval ac_new_val="\$ac_env_${ac_var}_value"
1263 case $ac_old_set,$ac_new_set in
1264 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001265 { 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 +00001266echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001270echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1272 ,);;
1273 *)
1274 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001276echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001278echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001280echo "$as_me: current value: $ac_new_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001281 ac_cache_corrupted=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001282 fi;;
1283 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001284 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001285 if test "$ac_new_set" = set; then
1286 case $ac_new_val in
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 *) ac_arg=$ac_var=$ac_new_val ;;
1290 esac
1291 case " $ac_configure_args " in
1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001294 esac
1295 fi
1296done
1297if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001299echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001301echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001303fi
1304
1305ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001306ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001310
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001336
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001337
1338 ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001339
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001340ac_aux_dir=
1341for ac_dir in tools $srcdir/tools; do
1342 if test -f $ac_dir/install-sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install-sh -c"
1345 break
1346 elif test -f $ac_dir/install.sh; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/install.sh -c"
1349 break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001350 elif test -f $ac_dir/shtool; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001354 fi
1355done
1356if test -z "$ac_aux_dir"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001357 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001358echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1359 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001360fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001361ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Howard Abrams13277481999-07-10 13:16:29 +00001364
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001365
1366
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001367# Check whether --enable-win16 or --disable-win16 was given.
1368if test "${enable_win16+set}" = set; then
1369 enableval="$enable_win16"
1370
1371fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001372# Check whether --enable-debug or --disable-debug was given.
1373if test "${enable_debug+set}" = set; then
1374 enableval="$enable_debug"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001375
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001376fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001377# Check whether --enable-trace or --disable-trace was given.
1378if test "${enable_trace+set}" = set; then
1379 enableval="$enable_trace"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001380
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001381fi;
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001382# Check whether --enable-win64 or --disable-win64 was given.
1383if test "${enable_win64+set}" = set; then
1384 enableval="$enable_win64"
1385
1386fi;
Alexandre Julliardb8074992002-11-21 21:51:24 +00001387
1388
1389# Check whether --with-opengl or --without-opengl was given.
1390if test "${with_opengl+set}" = set; then
1391 withval="$with_opengl"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001392
1393fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001394
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001395# Check whether --with-curses or --without-curses was given.
1396if test "${with_curses+set}" = set; then
1397 withval="$with_curses"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001398
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001399fi;
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001400
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001401# Check whether --with-wine-tools or --without-wine-tools was given.
1402if test "${with_wine_tools+set}" = set; then
1403 withval="$with_wine_tools"
1404
1405fi;
1406
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001407WIN16_FILES="\$(WIN16_FILES)"
1408
1409WIN16_INSTALL="\$(WIN16_INSTALL)"
1410
1411if test "x$enable_win16" = "xno"
1412then
1413 WIN16_FILES=""
1414 WIN16_INSTALL=""
1415fi
Vincent Béron1f504142004-10-19 23:06:11 +00001416
1417DLLDEFS=""
1418
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001419if test "x$enable_debug" = "xno"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001420then
Vincent Béron1f504142004-10-19 23:06:11 +00001421 DLLDEFS="$DLLDEFS -DWINE_NO_DEBUG_MSGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001422fi
1423if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001424then
Vincent Béron1f504142004-10-19 23:06:11 +00001425 DLLDEFS="$DLLDEFS -DWINE_NO_TRACE_MSGS"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001426fi
1427
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001428
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001429# Make sure we can run config.sub.
1430$ac_config_sub sun4 >/dev/null 2>&1 ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001431 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001432echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1433 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001434
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001435echo "$as_me:$LINENO: checking build system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001436echo $ECHO_N "checking build system type... $ECHO_C" >&6
1437if test "${ac_cv_build+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001439else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001440 ac_cv_build_alias=$build_alias
1441test -z "$ac_cv_build_alias" &&
1442 ac_cv_build_alias=`$ac_config_guess`
1443test -z "$ac_cv_build_alias" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001444 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001445echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1446 { (exit 1); exit 1; }; }
1447ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001448 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1449echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001450 { (exit 1); exit 1; }; }
1451
1452fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001453echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001454echo "${ECHO_T}$ac_cv_build" >&6
1455build=$ac_cv_build
1456build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1457build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1458build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001460
1461echo "$as_me:$LINENO: checking host system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001462echo $ECHO_N "checking host system type... $ECHO_C" >&6
1463if test "${ac_cv_host+set}" = set; then
1464 echo $ECHO_N "(cached) $ECHO_C" >&6
1465else
1466 ac_cv_host_alias=$host_alias
1467test -z "$ac_cv_host_alias" &&
1468 ac_cv_host_alias=$ac_cv_build_alias
1469ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001470 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001471echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1472 { (exit 1); exit 1; }; }
1473
1474fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001475echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001476echo "${ECHO_T}$ac_cv_host" >&6
1477host=$ac_cv_host
1478host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1479host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1480host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1481
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001482
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001483case $host in
1484 x86_64*linux*)
1485 if test "x$enable_win64" != "xyes"
1486 then
1487 test -n "$CC" || CC="gcc -m32"
1488 test -n "$LD" || LD="ld -m elf_i386"
1489 test -n "$AS" || AS="as --32"
Alex Woodsbbcf9862005-02-10 19:09:08 +00001490 host_cpu="i386"
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001491 fi
1492 ;;
1493esac
1494
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001495echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1496echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Alexandre Julliard875927f2004-01-02 01:55:29 +00001497set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001498if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1500else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001501 cat >conftest.make <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001502all:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001503 @echo 'ac_maketemp="$(MAKE)"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001504_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001505# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001506eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001507if test -n "$ac_maketemp"; then
1508 eval ac_cv_prog_make_${ac_make}_set=yes
1509else
1510 eval ac_cv_prog_make_${ac_make}_set=no
1511fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001512rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001513fi
1514if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001515 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001516echo "${ECHO_T}yes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001517 SET_MAKE=
1518else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001519 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001520echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001521 SET_MAKE="MAKE=${MAKE-make}"
1522fi
1523
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001524ac_ext=c
1525ac_cpp='$CPP $CPPFLAGS'
1526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1528ac_compiler_gnu=$ac_cv_c_compiler_gnu
1529if test -n "$ac_tool_prefix"; then
1530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1531set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001532echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534if test "${ac_cv_prog_CC+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001536else
1537 if test -n "$CC"; then
1538 ac_cv_prog_CC="$CC" # Let the user override the test.
1539else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541for as_dir in $PATH
1542do
1543 IFS=$as_save_IFS
1544 test -z "$as_dir" && as_dir=.
1545 for ac_exec_ext in '' $ac_executable_extensions; do
1546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549 break 2
1550 fi
1551done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001552done
1553
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001554fi
1555fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001556CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001557if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001558 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001559echo "${ECHO_T}$CC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001560else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001561 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001562echo "${ECHO_T}no" >&6
1563fi
1564
1565fi
1566if test -z "$ac_cv_prog_CC"; then
1567 ac_ct_CC=$CC
1568 # Extract the first word of "gcc", so it can be a program name with args.
1569set dummy gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001570echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574else
1575 if test -n "$ac_ct_CC"; then
1576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1577else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579for as_dir in $PATH
1580do
1581 IFS=$as_save_IFS
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_ac_ct_CC="gcc"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
1588 fi
1589done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001590done
1591
1592fi
1593fi
1594ac_ct_CC=$ac_cv_prog_ac_ct_CC
1595if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001596 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001597echo "${ECHO_T}$ac_ct_CC" >&6
1598else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001599 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001600echo "${ECHO_T}no" >&6
1601fi
1602
1603 CC=$ac_ct_CC
1604else
1605 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001606fi
1607
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001608if test -z "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001609 if test -n "$ac_tool_prefix"; then
1610 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1611set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001612echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1614if test "${ac_cv_prog_CC+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001616else
1617 if test -n "$CC"; then
1618 ac_cv_prog_CC="$CC" # Let the user override the test.
1619else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621for as_dir in $PATH
1622do
1623 IFS=$as_save_IFS
1624 test -z "$as_dir" && as_dir=.
1625 for ac_exec_ext in '' $ac_executable_extensions; do
1626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627 ac_cv_prog_CC="${ac_tool_prefix}cc"
1628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1629 break 2
1630 fi
1631done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001632done
1633
1634fi
1635fi
1636CC=$ac_cv_prog_CC
1637if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001638 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001639echo "${ECHO_T}$CC" >&6
1640else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001641 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001642echo "${ECHO_T}no" >&6
1643fi
1644
1645fi
1646if test -z "$ac_cv_prog_CC"; then
1647 ac_ct_CC=$CC
1648 # Extract the first word of "cc", so it can be a program name with args.
1649set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001650echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655 if test -n "$ac_ct_CC"; then
1656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659for as_dir in $PATH
1660do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_ac_ct_CC="cc"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
1668 fi
1669done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001670done
1671
1672fi
1673fi
1674ac_ct_CC=$ac_cv_prog_ac_ct_CC
1675if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001676 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001677echo "${ECHO_T}$ac_ct_CC" >&6
1678else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001679 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001680echo "${ECHO_T}no" >&6
1681fi
1682
1683 CC=$ac_ct_CC
1684else
1685 CC="$ac_cv_prog_CC"
1686fi
1687
1688fi
1689if test -z "$CC"; then
1690 # Extract the first word of "cc", so it can be a program name with args.
1691set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001692echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694if test "${ac_cv_prog_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1696else
1697 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test.
1699else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001700 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702for as_dir in $PATH
1703do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1709 ac_prog_rejected=yes
1710 continue
1711 fi
1712 ac_cv_prog_CC="cc"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001717done
1718
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001719if test $ac_prog_rejected = yes; then
1720 # We found a bogon in the path, so make sure we never use it.
1721 set dummy $ac_cv_prog_CC
1722 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001723 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001724 # We chose a different compiler from the bogus one.
1725 # However, it has the same basename, so the bogon will be chosen
1726 # first if we set CC to just the basename; use the full file name.
1727 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001728 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001729 fi
1730fi
1731fi
1732fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001733CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001734if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001735 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001736echo "${ECHO_T}$CC" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001737else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001738 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001739echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001740fi
1741
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001742fi
1743if test -z "$CC"; then
1744 if test -n "$ac_tool_prefix"; then
1745 for ac_prog in cl
1746 do
1747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1748set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001749echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751if test "${ac_cv_prog_CC+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001753else
1754 if test -n "$CC"; then
1755 ac_cv_prog_CC="$CC" # Let the user override the test.
1756else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758for as_dir in $PATH
1759do
1760 IFS=$as_save_IFS
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766 break 2
1767 fi
1768done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001769done
1770
Eric Pouech18ad24a2000-01-16 22:16:33 +00001771fi
1772fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001773CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00001774if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001775 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001776echo "${ECHO_T}$CC" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001777else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001778 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001779echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001780fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001781
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001782 test -n "$CC" && break
1783 done
1784fi
1785if test -z "$CC"; then
1786 ac_ct_CC=$CC
1787 for ac_prog in cl
1788do
1789 # Extract the first word of "$ac_prog", so it can be a program name with args.
1790set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001791echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795else
1796 if test -n "$ac_ct_CC"; then
1797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1798else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800for as_dir in $PATH
1801do
1802 IFS=$as_save_IFS
1803 test -z "$as_dir" && as_dir=.
1804 for ac_exec_ext in '' $ac_executable_extensions; do
1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806 ac_cv_prog_ac_ct_CC="$ac_prog"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808 break 2
1809 fi
1810done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001811done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001812
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001813fi
1814fi
1815ac_ct_CC=$ac_cv_prog_ac_ct_CC
1816if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001817 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001818echo "${ECHO_T}$ac_ct_CC" >&6
1819else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001820 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001821echo "${ECHO_T}no" >&6
1822fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001823
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001824 test -n "$ac_ct_CC" && break
1825done
Eric Pouech18ad24a2000-01-16 22:16:33 +00001826
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001827 CC=$ac_ct_CC
1828fi
1829
1830fi
1831
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001832
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001833test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1834See \`config.log' for more details." >&5
1835echo "$as_me: error: no acceptable C compiler found in \$PATH
1836See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001837 { (exit 1); exit 1; }; }
1838
1839# Provide some information about the compiler.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001840echo "$as_me:$LINENO:" \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001841 "checking for C compiler version" >&5
1842ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001843{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001844 (eval $ac_compiler --version </dev/null >&5) 2>&5
1845 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001847 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001848{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001849 (eval $ac_compiler -v </dev/null >&5) 2>&5
1850 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001852 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001853{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001854 (eval $ac_compiler -V </dev/null >&5) 2>&5
1855 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001857 (exit $ac_status); }
1858
1859cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001860/* confdefs.h. */
1861_ACEOF
1862cat confdefs.h >>conftest.$ac_ext
1863cat >>conftest.$ac_ext <<_ACEOF
1864/* end confdefs.h. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00001865
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001866int
1867main ()
1868{
1869
1870 ;
1871 return 0;
1872}
1873_ACEOF
1874ac_clean_files_save=$ac_clean_files
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001875ac_clean_files="$ac_clean_files a.out a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001876# Try to create an executable without -o first, disregard a.out.
1877# It will help us diagnose broken compilers, and finding out an intuition
1878# of exeext.
Alexandre Julliard875927f2004-01-02 01:55:29 +00001879echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1880echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001881ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001882if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001883 (eval $ac_link_default) 2>&5
1884 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001886 (exit $ac_status); }; then
1887 # Find the output, starting from the most likely. This scheme is
1888# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1889# resort.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001890
1891# Be careful to initialize this variable, since it used to be cached.
1892# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1893ac_cv_exeext=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001894# b.out is created by i960 compilers.
1895for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001897 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001898 case $ac_file in
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001900 ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001901 conftest.$ac_ext )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001902 # This is the source file.
1903 ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001904 [ab].out )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001905 # We found the default executable, but exeext='' is most
1906 # certainly right.
1907 break;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001908 *.* )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001909 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1910 # FIXME: I believe we export ac_cv_exeext for Libtool,
1911 # but it would be cool to find out if it's true. Does anybody
1912 # maintain Libtool? --akim.
1913 export ac_cv_exeext
1914 break;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001915 * )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001916 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001917 esac
1918done
1919else
1920 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001921sed 's/^/| /' conftest.$ac_ext >&5
1922
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001923{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001924See \`config.log' for more details." >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001925echo "$as_me: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001926See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001927 { (exit 77); exit 77; }; }
1928fi
1929
1930ac_exeext=$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001931echo "$as_me:$LINENO: result: $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001932echo "${ECHO_T}$ac_file" >&6
1933
1934# Check the compiler produces executables we can run. If not, either
1935# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001936echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001937echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1938# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1939# If not cross compiling, check that we can run a simple program.
1940if test "$cross_compiling" != yes; then
1941 if { ac_try='./$ac_file'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001943 (eval $ac_try) 2>&5
1944 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001946 (exit $ac_status); }; }; then
1947 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001948 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001949 if test "$cross_compiling" = maybe; then
1950 cross_compiling=yes
1951 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001952 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001953If you meant to cross compile, use \`--host'.
1954See \`config.log' for more details." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001955echo "$as_me: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001956If you meant to cross compile, use \`--host'.
1957See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001958 { (exit 1); exit 1; }; }
1959 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001960 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001961fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001962echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001963echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001964
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001965rm -f a.out a.exe conftest$ac_cv_exeext b.out
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001966ac_clean_files=$ac_clean_files_save
1967# Check the compiler produces executables we can run. If not, either
1968# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001969echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001970echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001971echo "$as_me:$LINENO: result: $cross_compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001972echo "${ECHO_T}$cross_compiling" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001973
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001974echo "$as_me:$LINENO: checking for suffix of executables" >&5
1975echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001977 (eval $ac_link) 2>&5
1978 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001980 (exit $ac_status); }; then
1981 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1982# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1983# work properly (i.e., refer to `conftest.exe'), while it won't with
1984# `rm'.
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001985for ac_file in conftest.exe conftest conftest.*; do
1986 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001987 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001989 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Alexandre Julliard875927f2004-01-02 01:55:29 +00001990 export ac_cv_exeext
1991 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001992 * ) break;;
1993 esac
1994done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001995else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001996 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1997See \`config.log' for more details." >&5
1998echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1999See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002000 { (exit 1); exit 1; }; }
2001fi
2002
2003rm -f conftest$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002004echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002005echo "${ECHO_T}$ac_cv_exeext" >&6
2006
2007rm -f conftest.$ac_ext
2008EXEEXT=$ac_cv_exeext
2009ac_exeext=$EXEEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002010echo "$as_me:$LINENO: checking for suffix of object files" >&5
2011echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002012if test "${ac_cv_objext+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014else
2015 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002016/* confdefs.h. */
2017_ACEOF
2018cat confdefs.h >>conftest.$ac_ext
2019cat >>conftest.$ac_ext <<_ACEOF
2020/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002021
2022int
2023main ()
2024{
2025
2026 ;
2027 return 0;
2028}
2029_ACEOF
2030rm -f conftest.o conftest.obj
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002032 (eval $ac_compile) 2>&5
2033 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002035 (exit $ac_status); }; then
2036 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2037 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2040 break;;
2041 esac
2042done
2043else
2044 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002045sed 's/^/| /' conftest.$ac_ext >&5
2046
2047{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2048See \`config.log' for more details." >&5
2049echo "$as_me: error: cannot compute suffix of object files: cannot compile
2050See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002051 { (exit 1); exit 1; }; }
2052fi
2053
2054rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002056echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002057echo "${ECHO_T}$ac_cv_objext" >&6
2058OBJEXT=$ac_cv_objext
2059ac_objext=$OBJEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002060echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002061echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2062if test "${ac_cv_c_compiler_gnu+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2064else
2065 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002066/* confdefs.h. */
2067_ACEOF
2068cat confdefs.h >>conftest.$ac_ext
2069cat >>conftest.$ac_ext <<_ACEOF
2070/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002071
2072int
2073main ()
2074{
2075#ifndef __GNUC__
2076 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002077#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002078
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002079 ;
2080 return 0;
2081}
2082_ACEOF
2083rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002085 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002086 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002087 grep -v '^ *+' conftest.er1 >conftest.err
2088 rm -f conftest.er1
2089 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002091 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; } &&
2098 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002100 (eval $ac_try) 2>&5
2101 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002103 (exit $ac_status); }; }; then
2104 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00002105else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002106 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002107sed 's/^/| /' conftest.$ac_ext >&5
2108
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002109ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00002110fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002112ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00002113
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002114fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002115echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002116echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2117GCC=`test $ac_compiler_gnu = yes && echo yes`
2118ac_test_CFLAGS=${CFLAGS+set}
2119ac_save_CFLAGS=$CFLAGS
2120CFLAGS="-g"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002121echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002122echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2123if test "${ac_cv_prog_cc_g+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002125else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002126 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002127/* confdefs.h. */
2128_ACEOF
2129cat confdefs.h >>conftest.$ac_ext
2130cat >>conftest.$ac_ext <<_ACEOF
2131/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002132
2133int
2134main ()
2135{
2136
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002143 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002144 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002145 grep -v '^ *+' conftest.er1 >conftest.err
2146 rm -f conftest.er1
2147 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002149 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; } &&
2156 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002158 (eval $ac_try) 2>&5
2159 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002161 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002162 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002163else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002164 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002165sed 's/^/| /' conftest.$ac_ext >&5
2166
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002167ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002168fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002170fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002171echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002172echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00002173if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002174 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002175elif test $ac_cv_prog_cc_g = yes; then
2176 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002177 CFLAGS="-g -O2"
2178 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002179 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002180 fi
2181else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002182 if test "$GCC" = yes; then
2183 CFLAGS="-O2"
2184 else
2185 CFLAGS=
2186 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002187fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002188echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2189echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2190if test "${ac_cv_prog_cc_stdc+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192else
2193 ac_cv_prog_cc_stdc=no
2194ac_save_CC=$CC
2195cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002196/* confdefs.h. */
2197_ACEOF
2198cat confdefs.h >>conftest.$ac_ext
2199cat >>conftest.$ac_ext <<_ACEOF
2200/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002201#include <stdarg.h>
2202#include <stdio.h>
2203#include <sys/types.h>
2204#include <sys/stat.h>
2205/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2206struct buf { int x; };
2207FILE * (*rcsopen) (struct buf *, struct stat *, int);
2208static char *e (p, i)
2209 char **p;
2210 int i;
2211{
2212 return p[i];
2213}
2214static char *f (char * (*g) (char **, int), char **p, ...)
2215{
2216 char *s;
2217 va_list v;
2218 va_start (v,p);
2219 s = g (p, va_arg (v,int));
2220 va_end (v);
2221 return s;
2222}
Alexandre Julliard875927f2004-01-02 01:55:29 +00002223
2224/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2225 function prototypes and stuff, but not '\xHH' hex character constants.
2226 These don't provoke an error unfortunately, instead are silently treated
2227 as 'x'. The following induces an error, until -std1 is added to get
2228 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2229 array size at least. It's necessary to write '\x00'==0 to get something
2230 that's true only with -std1. */
2231int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2232
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002233int test (int i, double x);
2234struct s1 {int (*f) (int a);};
2235struct s2 {int (*f) (double a);};
2236int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2237int argc;
2238char **argv;
2239int
2240main ()
2241{
2242return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247# Don't try gcc -ansi; that turns off useful extensions and
2248# breaks some systems' header files.
2249# AIX -qlanglvl=ansi
2250# Ultrix and OSF/1 -std1
2251# HP-UX 10.20 and later -Ae
2252# HP-UX older versions -Aa -D_HPUX_SOURCE
2253# SVR4 -Xc -D__EXTENSIONS__
2254for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2255do
2256 CC="$ac_save_CC $ac_arg"
2257 rm -f conftest.$ac_objext
2258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002259 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002260 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002261 grep -v '^ *+' conftest.er1 >conftest.err
2262 rm -f conftest.er1
2263 cat conftest.err >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; } &&
2272 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 (eval $ac_try) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; }; then
2278 ac_cv_prog_cc_stdc=$ac_arg
2279break
2280else
2281 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002282sed 's/^/| /' conftest.$ac_ext >&5
2283
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002284fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002285rm -f conftest.err conftest.$ac_objext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002286done
2287rm -f conftest.$ac_ext conftest.$ac_objext
2288CC=$ac_save_CC
2289
2290fi
2291
2292case "x$ac_cv_prog_cc_stdc" in
2293 x|xno)
2294 echo "$as_me:$LINENO: result: none needed" >&5
2295echo "${ECHO_T}none needed" >&6 ;;
2296 *)
2297 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2298echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2299 CC="$CC $ac_cv_prog_cc_stdc" ;;
2300esac
2301
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002302# Some people use a C++ compiler to compile C. Since we use `exit',
2303# in C++ we need to declare it. In case someone uses the same compiler
2304# for both compiling C and C++ we need to have the C++ compiler decide
2305# the declaration of exit, since it's the most demanding environment.
2306cat >conftest.$ac_ext <<_ACEOF
2307#ifndef __cplusplus
2308 choke me
2309#endif
2310_ACEOF
2311rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002313 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002314 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002319 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002328 (eval $ac_try) 2>&5
2329 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002331 (exit $ac_status); }; }; then
2332 for ac_declaration in \
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002333 '' \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002334 'extern "C" void std::exit (int) throw (); using std::exit;' \
2335 'extern "C" void std::exit (int); using std::exit;' \
2336 'extern "C" void exit (int) throw ();' \
2337 'extern "C" void exit (int);' \
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002338 'void exit (int);'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002339do
2340 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002341/* confdefs.h. */
2342_ACEOF
2343cat confdefs.h >>conftest.$ac_ext
2344cat >>conftest.$ac_ext <<_ACEOF
2345/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002346$ac_declaration
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002347#include <stdlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002348int
2349main ()
2350{
2351exit (42);
2352 ;
2353 return 0;
2354}
2355_ACEOF
2356rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002358 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002359 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002360 grep -v '^ *+' conftest.er1 >conftest.err
2361 rm -f conftest.er1
2362 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002364 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002373 (eval $ac_try) 2>&5
2374 ac_status=$?
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); }; }; then
2377 :
2378else
2379 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002380sed 's/^/| /' conftest.$ac_ext >&5
2381
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002382continue
2383fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002385 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002386/* confdefs.h. */
2387_ACEOF
2388cat confdefs.h >>conftest.$ac_ext
2389cat >>conftest.$ac_ext <<_ACEOF
2390/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002391$ac_declaration
2392int
2393main ()
2394{
2395exit (42);
2396 ;
2397 return 0;
2398}
2399_ACEOF
2400rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002402 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002403 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002408 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002417 (eval $ac_try) 2>&5
2418 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002420 (exit $ac_status); }; }; then
2421 break
2422else
2423 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002424sed 's/^/| /' conftest.$ac_ext >&5
2425
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002426fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002428done
2429rm -f conftest*
2430if test -n "$ac_declaration"; then
2431 echo '#ifdef __cplusplus' >>confdefs.h
2432 echo $ac_declaration >>confdefs.h
2433 echo '#endif' >>confdefs.h
2434fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002435
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002436else
2437 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002438sed 's/^/| /' conftest.$ac_ext >&5
2439
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002440fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002442ac_ext=c
2443ac_cpp='$CPP $CPPFLAGS'
2444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002448ac_ext=cc
2449ac_cpp='$CXXCPP $CPPFLAGS'
2450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2453if test -n "$ac_tool_prefix"; then
2454 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2455 do
2456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2457set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2458echo "$as_me:$LINENO: checking for $ac_word" >&5
2459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460if test "${ac_cv_prog_CXX+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462else
2463 if test -n "$CXX"; then
2464 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2465else
2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2476 fi
2477done
2478done
2479
2480fi
2481fi
2482CXX=$ac_cv_prog_CXX
2483if test -n "$CXX"; then
2484 echo "$as_me:$LINENO: result: $CXX" >&5
2485echo "${ECHO_T}$CXX" >&6
2486else
2487 echo "$as_me:$LINENO: result: no" >&5
2488echo "${ECHO_T}no" >&6
2489fi
2490
2491 test -n "$CXX" && break
2492 done
2493fi
2494if test -z "$CXX"; then
2495 ac_ct_CXX=$CXX
2496 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2497do
2498 # Extract the first word of "$ac_prog", so it can be a program name with args.
2499set dummy $ac_prog; ac_word=$2
2500echo "$as_me:$LINENO: checking for $ac_word" >&5
2501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2502if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2504else
2505 if test -n "$ac_ct_CXX"; then
2506 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2507else
2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515 ac_cv_prog_ac_ct_CXX="$ac_prog"
2516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2518 fi
2519done
2520done
2521
2522fi
2523fi
2524ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2525if test -n "$ac_ct_CXX"; then
2526 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2527echo "${ECHO_T}$ac_ct_CXX" >&6
2528else
2529 echo "$as_me:$LINENO: result: no" >&5
2530echo "${ECHO_T}no" >&6
2531fi
2532
2533 test -n "$ac_ct_CXX" && break
2534done
2535test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2536
2537 CXX=$ac_ct_CXX
2538fi
2539
2540
2541# Provide some information about the compiler.
2542echo "$as_me:$LINENO:" \
2543 "checking for C++ compiler version" >&5
2544ac_compiler=`set X $ac_compile; echo $2`
2545{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2546 (eval $ac_compiler --version </dev/null >&5) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }
2550{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2551 (eval $ac_compiler -v </dev/null >&5) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }
2555{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2556 (eval $ac_compiler -V </dev/null >&5) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }
2560
2561echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2562echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2563if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566 cat >conftest.$ac_ext <<_ACEOF
2567/* confdefs.h. */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h. */
2572
2573int
2574main ()
2575{
2576#ifndef __GNUC__
2577 choke me
2578#endif
2579
2580 ;
2581 return 0;
2582}
2583_ACEOF
2584rm -f conftest.$ac_objext
2585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>conftest.er1
2587 ac_status=$?
2588 grep -v '^ *+' conftest.er1 >conftest.err
2589 rm -f conftest.er1
2590 cat conftest.err >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595 (eval $ac_try) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; } &&
2599 { ac_try='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2605 ac_compiler_gnu=yes
2606else
2607 echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610ac_compiler_gnu=no
2611fi
2612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2613ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2614
2615fi
2616echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2617echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2618GXX=`test $ac_compiler_gnu = yes && echo yes`
2619ac_test_CXXFLAGS=${CXXFLAGS+set}
2620ac_save_CXXFLAGS=$CXXFLAGS
2621CXXFLAGS="-g"
2622echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2623echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2624if test "${ac_cv_prog_cxx_g+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626else
2627 cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h. */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h. */
2633
2634int
2635main ()
2636{
2637
2638 ;
2639 return 0;
2640}
2641_ACEOF
2642rm -f conftest.$ac_objext
2643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644 (eval $ac_compile) 2>conftest.er1
2645 ac_status=$?
2646 grep -v '^ *+' conftest.er1 >conftest.err
2647 rm -f conftest.er1
2648 cat conftest.err >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653 (eval $ac_try) 2>&5
2654 ac_status=$?
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; } &&
2657 { ac_try='test -s conftest.$ac_objext'
2658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659 (eval $ac_try) 2>&5
2660 ac_status=$?
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; }; then
2663 ac_cv_prog_cxx_g=yes
2664else
2665 echo "$as_me: failed program was:" >&5
2666sed 's/^/| /' conftest.$ac_ext >&5
2667
2668ac_cv_prog_cxx_g=no
2669fi
2670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671fi
2672echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2673echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2674if test "$ac_test_CXXFLAGS" = set; then
2675 CXXFLAGS=$ac_save_CXXFLAGS
2676elif test $ac_cv_prog_cxx_g = yes; then
2677 if test "$GXX" = yes; then
2678 CXXFLAGS="-g -O2"
2679 else
2680 CXXFLAGS="-g"
2681 fi
2682else
2683 if test "$GXX" = yes; then
2684 CXXFLAGS="-O2"
2685 else
2686 CXXFLAGS=
2687 fi
2688fi
2689for ac_declaration in \
2690 '' \
2691 'extern "C" void std::exit (int) throw (); using std::exit;' \
2692 'extern "C" void std::exit (int); using std::exit;' \
2693 'extern "C" void exit (int) throw ();' \
2694 'extern "C" void exit (int);' \
2695 'void exit (int);'
2696do
2697 cat >conftest.$ac_ext <<_ACEOF
2698/* confdefs.h. */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h. */
2703$ac_declaration
2704#include <stdlib.h>
2705int
2706main ()
2707{
2708exit (42);
2709 ;
2710 return 0;
2711}
2712_ACEOF
2713rm -f conftest.$ac_objext
2714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2715 (eval $ac_compile) 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; } &&
2728 { ac_try='test -s conftest.$ac_objext'
2729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 (eval $ac_try) 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2734 :
2735else
2736 echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739continue
2740fi
2741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742 cat >conftest.$ac_ext <<_ACEOF
2743/* confdefs.h. */
2744_ACEOF
2745cat confdefs.h >>conftest.$ac_ext
2746cat >>conftest.$ac_ext <<_ACEOF
2747/* end confdefs.h. */
2748$ac_declaration
2749int
2750main ()
2751{
2752exit (42);
2753 ;
2754 return 0;
2755}
2756_ACEOF
2757rm -f conftest.$ac_objext
2758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>conftest.er1
2760 ac_status=$?
2761 grep -v '^ *+' conftest.er1 >conftest.err
2762 rm -f conftest.er1
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 break
2779else
2780 echo "$as_me: failed program was:" >&5
2781sed 's/^/| /' conftest.$ac_ext >&5
2782
2783fi
2784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785done
2786rm -f conftest*
2787if test -n "$ac_declaration"; then
2788 echo '#ifdef __cplusplus' >>confdefs.h
2789 echo $ac_declaration >>confdefs.h
2790 echo '#endif' >>confdefs.h
2791fi
2792
2793ac_ext=c
2794ac_cpp='$CPP $CPPFLAGS'
2795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002799if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2801set dummy ${ac_tool_prefix}cpp; ac_word=$2
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002802echo "$as_me:$LINENO: checking for $ac_word" >&5
2803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002804if test "${ac_cv_prog_CPPBIN+set}" = set; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002807 if test -n "$CPPBIN"; then
2808 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002809else
2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002817 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2820 fi
2821done
2822done
2823
2824fi
2825fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002826CPPBIN=$ac_cv_prog_CPPBIN
2827if test -n "$CPPBIN"; then
2828 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2829echo "${ECHO_T}$CPPBIN" >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002830else
2831 echo "$as_me:$LINENO: result: no" >&5
2832echo "${ECHO_T}no" >&6
2833fi
2834
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002835fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002836if test -z "$ac_cv_prog_CPPBIN"; then
2837 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002838 # Extract the first word of "cpp", so it can be a program name with args.
2839set dummy cpp; ac_word=$2
2840echo "$as_me:$LINENO: checking for $ac_word" >&5
2841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002842if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002843 echo $ECHO_N "(cached) $ECHO_C" >&6
2844else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002845 if test -n "$ac_ct_CPPBIN"; then
2846 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002847else
2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH
2850do
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002855 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2858 fi
2859done
2860done
2861
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002862 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002863fi
2864fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002865ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2866if test -n "$ac_ct_CPPBIN"; then
2867 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2868echo "${ECHO_T}$ac_ct_CPPBIN" >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002869else
2870 echo "$as_me:$LINENO: result: no" >&5
2871echo "${ECHO_T}no" >&6
2872fi
2873
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002874 CPPBIN=$ac_ct_CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002875else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002876 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002877fi
2878
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002879
2880echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2881echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2882if test "${wine_cv_toolsdir+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884else
2885 if test -z "$with_wine_tools"; then
2886 if test "$cross_compiling" = "yes"; then
2887 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2888echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2889 { (exit 1); exit 1; }; }
2890 else
2891 wine_cv_toolsdir="\$(TOPOBJDIR)"
2892 fi
2893 elif test -d "$with_wine_tools/tools/winebuild"; then
2894 case $with_wine_tools in
2895 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2896 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2897 esac
2898 else
2899 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2900echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2901 { (exit 1); exit 1; }; }
2902 fi
2903fi
2904echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2905echo "${ECHO_T}$wine_cv_toolsdir" >&6
2906TOOLSDIR=$wine_cv_toolsdir
2907
2908
2909
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002910ac_ext=c
2911ac_cpp='$CPP $CPPFLAGS'
2912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2914ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002915echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002916echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002917# On Suns, sometimes $CPP names a directory.
2918if test -n "$CPP" && test -d "$CPP"; then
2919 CPP=
2920fi
2921if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002922 if test "${ac_cv_prog_CPP+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002924else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002925 # Double quotes because CPP needs to be expanded
2926 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2927 do
2928 ac_preproc_ok=false
2929for ac_c_preproc_warn_flag in '' yes
2930do
2931 # Use a header file that comes with gcc, so configuring glibc
2932 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2934 # <limits.h> exists even on freestanding compilers.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002935 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002936 # not just through cpp. "Syntax error" is here to catch this case.
2937 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
2943#ifdef __STDC__
2944# include <limits.h>
2945#else
2946# include <assert.h>
2947#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00002948 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002949_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002953 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002954 rm -f conftest.er1
2955 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002957 (exit $ac_status); } >/dev/null; then
2958 if test -s conftest.err; then
2959 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00002960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002961 else
2962 ac_cpp_err=
2963 fi
2964else
2965 ac_cpp_err=yes
2966fi
2967if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002968 :
2969else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002970 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002971sed 's/^/| /' conftest.$ac_ext >&5
2972
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002973 # Broken: fails on valid input.
2974continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002975fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002976rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002977
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002978 # OK, works on sane cases. Now check whether non-existent headers
2979 # can be detected and how.
2980 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002981/* confdefs.h. */
2982_ACEOF
2983cat confdefs.h >>conftest.$ac_ext
2984cat >>conftest.$ac_ext <<_ACEOF
2985/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002986#include <ac_nonexistent.h>
2987_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2990 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002991 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002992 rm -f conftest.er1
2993 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002995 (exit $ac_status); } >/dev/null; then
2996 if test -s conftest.err; then
2997 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00002998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002999 else
3000 ac_cpp_err=
3001 fi
3002else
3003 ac_cpp_err=yes
3004fi
3005if test -z "$ac_cpp_err"; then
3006 # Broken: success on invalid input.
3007continue
3008else
3009 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003010sed 's/^/| /' conftest.$ac_ext >&5
3011
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003012 # Passes both tests.
3013ac_preproc_ok=:
3014break
3015fi
3016rm -f conftest.err conftest.$ac_ext
3017
3018done
3019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3020rm -f conftest.err conftest.$ac_ext
3021if $ac_preproc_ok; then
3022 break
3023fi
3024
3025 done
3026 ac_cv_prog_CPP=$CPP
3027
3028fi
3029 CPP=$ac_cv_prog_CPP
3030else
3031 ac_cv_prog_CPP=$CPP
3032fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003033echo "$as_me:$LINENO: result: $CPP" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003034echo "${ECHO_T}$CPP" >&6
3035ac_preproc_ok=false
3036for ac_c_preproc_warn_flag in '' yes
3037do
3038 # Use a header file that comes with gcc, so configuring glibc
3039 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3041 # <limits.h> exists even on freestanding compilers.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003042 # On the NeXT, cc -E runs the code through the compiler's parser,
3043 # not just through cpp. "Syntax error" is here to catch this case.
3044 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003045/* confdefs.h. */
3046_ACEOF
3047cat confdefs.h >>conftest.$ac_ext
3048cat >>conftest.$ac_ext <<_ACEOF
3049/* end confdefs.h. */
3050#ifdef __STDC__
3051# include <limits.h>
3052#else
3053# include <assert.h>
3054#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003055 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003056_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003060 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003061 rm -f conftest.er1
3062 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003064 (exit $ac_status); } >/dev/null; then
3065 if test -s conftest.err; then
3066 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003068 else
3069 ac_cpp_err=
3070 fi
3071else
3072 ac_cpp_err=yes
3073fi
3074if test -z "$ac_cpp_err"; then
3075 :
3076else
3077 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003078sed 's/^/| /' conftest.$ac_ext >&5
3079
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003080 # Broken: fails on valid input.
3081continue
3082fi
3083rm -f conftest.err conftest.$ac_ext
3084
3085 # OK, works on sane cases. Now check whether non-existent headers
3086 # can be detected and how.
3087 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003088/* confdefs.h. */
3089_ACEOF
3090cat confdefs.h >>conftest.$ac_ext
3091cat >>conftest.$ac_ext <<_ACEOF
3092/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003093#include <ac_nonexistent.h>
3094_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3097 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003098 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003099 rm -f conftest.er1
3100 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003102 (exit $ac_status); } >/dev/null; then
3103 if test -s conftest.err; then
3104 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003106 else
3107 ac_cpp_err=
3108 fi
3109else
3110 ac_cpp_err=yes
3111fi
3112if test -z "$ac_cpp_err"; then
3113 # Broken: success on invalid input.
3114continue
3115else
3116 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003117sed 's/^/| /' conftest.$ac_ext >&5
3118
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003119 # Passes both tests.
3120ac_preproc_ok=:
3121break
3122fi
3123rm -f conftest.err conftest.$ac_ext
3124
3125done
3126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3127rm -f conftest.err conftest.$ac_ext
3128if $ac_preproc_ok; then
3129 :
3130else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003131 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3132See \`config.log' for more details." >&5
3133echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3134See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003135 { (exit 1); exit 1; }; }
3136fi
3137
3138ac_ext=c
3139ac_cpp='$CPP $CPPFLAGS'
3140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003144
Eric Pouech800864a2004-04-05 22:21:27 +00003145
3146if test "x$ac_path_x_has_been_run" != xyes; then
3147 echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003148echo $ECHO_N "checking for X... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003149
Eric Pouech800864a2004-04-05 22:21:27 +00003150ac_path_x_has_been_run=yes
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003151
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003152# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003153if test "${with_x+set}" = set; then
3154 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003155
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003156fi;
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003157# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003158if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003159 # The user explicitly disabled X.
3160 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003161else
3162 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003163 # Both variables are already set.
3164 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003165 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003166 if test "${ac_cv_have_x+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003168else
3169 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003170ac_x_includes=no ac_x_libraries=no
3171rm -fr conftest.dir
3172if mkdir conftest.dir; then
3173 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003174 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003175 cat >Imakefile <<'_ACEOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003176acfindx:
3177 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003178_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003179 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003181 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003182 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3183 for ac_extension in a so sl; do
3184 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003185 test -f $ac_im_libdir/libX11.$ac_extension; then
3186 ac_im_usrlibdir=$ac_im_libdir; break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003187 fi
3188 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003189 # Screen out bogus values from the imake configuration. They are
3190 # bogus both because they are the default anyway, and because
3191 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003192 case $ac_im_incroot in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003193 /usr/include) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003194 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003195 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003196 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003197 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003198 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003199 esac
3200 fi
3201 cd ..
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003202 rm -fr conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003203fi
3204
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003205# Standard set of common directories for X headers.
3206# Check X11 before X11Rn because it is often a symlink to the current release.
3207ac_x_header_dirs='
3208/usr/X11/include
3209/usr/X11R6/include
3210/usr/X11R5/include
3211/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003212
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003213/usr/include/X11
3214/usr/include/X11R6
3215/usr/include/X11R5
3216/usr/include/X11R4
3217
3218/usr/local/X11/include
3219/usr/local/X11R6/include
3220/usr/local/X11R5/include
3221/usr/local/X11R4/include
3222
3223/usr/local/include/X11
3224/usr/local/include/X11R6
3225/usr/local/include/X11R5
3226/usr/local/include/X11R4
3227
3228/usr/X386/include
3229/usr/x386/include
3230/usr/XFree86/include/X11
3231
3232/usr/include
3233/usr/local/include
3234/usr/unsupported/include
3235/usr/athena/include
3236/usr/local/x11r5/include
3237/usr/lpp/Xamples/include
3238
3239/usr/openwin/include
3240/usr/openwin/share/include'
3241
3242if test "$ac_x_includes" = no; then
Eric Pouech800864a2004-04-05 22:21:27 +00003243 # Guess where to find include files, by looking for a specified header file.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003244 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003245 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003246/* confdefs.h. */
3247_ACEOF
3248cat confdefs.h >>conftest.$ac_ext
3249cat >>conftest.$ac_ext <<_ACEOF
3250/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003251#include <X11/Intrinsic.h>
3252_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003256 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003257 rm -f conftest.er1
3258 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003260 (exit $ac_status); } >/dev/null; then
3261 if test -s conftest.err; then
3262 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003264 else
3265 ac_cpp_err=
3266 fi
3267else
3268 ac_cpp_err=yes
3269fi
3270if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003271 # We can compile using X headers with no special include directory.
3272ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003273else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003274 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003275sed 's/^/| /' conftest.$ac_ext >&5
3276
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003277 for ac_dir in $ac_x_header_dirs; do
3278 if test -r "$ac_dir/X11/Intrinsic.h"; then
3279 ac_x_includes=$ac_dir
3280 break
3281 fi
3282done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003283fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003284rm -f conftest.err conftest.$ac_ext
3285fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003286
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003287if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003288 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003289 # See if we find them without any special options.
3290 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003291 ac_save_LIBS=$LIBS
3292 LIBS="-lXt $LIBS"
3293 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003294/* confdefs.h. */
3295_ACEOF
3296cat confdefs.h >>conftest.$ac_ext
3297cat >>conftest.$ac_ext <<_ACEOF
3298/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003299#include <X11/Intrinsic.h>
3300int
3301main ()
3302{
3303XtMalloc (0)
3304 ;
3305 return 0;
3306}
3307_ACEOF
3308rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003310 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003311 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003312 grep -v '^ *+' conftest.er1 >conftest.err
3313 rm -f conftest.er1
3314 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003316 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003325 (eval $ac_try) 2>&5
3326 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003328 (exit $ac_status); }; }; then
3329 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003330# We can link X programs with no special library path.
3331ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003332else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003333 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003334sed 's/^/| /' conftest.$ac_ext >&5
3335
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003336LIBS=$ac_save_LIBS
3337for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003338do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003339 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003340 for ac_extension in a so sl; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003341 if test -r $ac_dir/libXt.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003342 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003343 break 2
3344 fi
3345 done
3346done
3347fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003348rm -f conftest.err conftest.$ac_objext \
3349 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003350fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003351
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003352if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003353 # Didn't find X anywhere. Cache the known absence of X.
3354 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003355else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003356 # Record where we found X for the cache.
3357 ac_cv_have_x="have_x=yes \
Alexandre Julliard875927f2004-01-02 01:55:29 +00003358 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003359fi
3360fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003361
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003362 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003363 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003364fi # $with_x != no
3365
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003366if test "$have_x" != yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003367 echo "$as_me:$LINENO: result: $have_x" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003368echo "${ECHO_T}$have_x" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003369 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003370else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003371 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003372 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3373 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003374 # Update the cache value to reflect the command line values.
3375 ac_cv_have_x="have_x=yes \
3376 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Eric Pouech800864a2004-04-05 22:21:27 +00003377 # It might be that x_includes is empty (headers are found in the
3378 # standard search path. Then output the corresponding message
3379 ac_out_x_includes=$x_includes
3380 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3381 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3382echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003383fi
3384
Eric Pouech800864a2004-04-05 22:21:27 +00003385fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003386if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003387 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003388
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003389cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003390#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003391_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003392
3393 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003394else
3395 if test -n "$x_includes"; then
3396 X_CFLAGS="$X_CFLAGS -I$x_includes"
3397 fi
3398
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003399 # It would also be nice to do this for all -L options, not just this one.
3400 if test -n "$x_libraries"; then
3401 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003402 # For Solaris; some versions of Sun CC require a space after -R and
3403 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003404 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003405 "SunOS 5"*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003406 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003407echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3408 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3409 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003415
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003416int
3417main ()
3418{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003419
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003420 ;
3421 return 0;
3422}
3423_ACEOF
3424rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003426 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003427 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003432 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; } &&
3439 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003441 (eval $ac_try) 2>&5
3442 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003444 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003445 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003446else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003447 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003448sed 's/^/| /' conftest.$ac_ext >&5
3449
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003450ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003451fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003452rm -f conftest.err conftest.$ac_objext \
3453 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003454 if test $ac_R_nospace = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003455 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003456echo "${ECHO_T}no" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003457 X_LIBS="$X_LIBS -R$x_libraries"
3458 else
3459 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003460 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003466
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003467int
3468main ()
3469{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003470
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003471 ;
3472 return 0;
3473}
3474_ACEOF
3475rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003477 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003478 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003483 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; } &&
3490 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003492 (eval $ac_try) 2>&5
3493 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003495 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003496 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003497else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003498 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003499sed 's/^/| /' conftest.$ac_ext >&5
3500
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003501ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003502fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003503rm -f conftest.err conftest.$ac_objext \
3504 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003505 if test $ac_R_space = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003506 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003507echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003508 X_LIBS="$X_LIBS -R $x_libraries"
3509 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003510 echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003511echo "${ECHO_T}neither works" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003512 fi
3513 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003514 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003515 esac
3516 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003517
3518 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003519 # Do this before checking for the system-independent R6 libraries
3520 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003521
3522 if test "$ISC" = yes; then
3523 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3524 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003525 # Martyn Johnson says this is needed for Ultrix, if the X
3526 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003527 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003528 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3529 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003530/* confdefs.h. */
3531_ACEOF
3532cat confdefs.h >>conftest.$ac_ext
3533cat >>conftest.$ac_ext <<_ACEOF
3534/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003535
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003536/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003537#ifdef __cplusplus
3538extern "C"
3539#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003540/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003541 builtin and then its argument prototype would still apply. */
3542char XOpenDisplay ();
3543int
3544main ()
3545{
3546XOpenDisplay ();
3547 ;
3548 return 0;
3549}
3550_ACEOF
3551rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003553 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003554 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003559 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 (eval $ac_try) 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; } &&
3566 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003568 (eval $ac_try) 2>&5
3569 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003571 (exit $ac_status); }; }; then
3572 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003573else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003574 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003575sed 's/^/| /' conftest.$ac_ext >&5
3576
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003577echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003578echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3579if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581else
3582 ac_check_lib_save_LIBS=$LIBS
3583LIBS="-ldnet $LIBS"
3584cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003585/* confdefs.h. */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003590
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003591/* Override any gcc2 internal prototype to avoid an error. */
3592#ifdef __cplusplus
3593extern "C"
3594#endif
3595/* We use char because int might match the return type of a gcc2
3596 builtin and then its argument prototype would still apply. */
3597char dnet_ntoa ();
3598int
3599main ()
3600{
3601dnet_ntoa ();
3602 ;
3603 return 0;
3604}
3605_ACEOF
3606rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003608 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003609 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003610 grep -v '^ *+' conftest.er1 >conftest.err
3611 rm -f conftest.er1
3612 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003614 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617 (eval $ac_try) 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }; } &&
3621 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003623 (eval $ac_try) 2>&5
3624 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003626 (exit $ac_status); }; }; then
3627 ac_cv_lib_dnet_dnet_ntoa=yes
3628else
3629 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003630sed 's/^/| /' conftest.$ac_ext >&5
3631
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003632ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003633fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003634rm -f conftest.err conftest.$ac_objext \
3635 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003636LIBS=$ac_check_lib_save_LIBS
3637fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003638echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003639echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3640if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003641 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003642fi
3643
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003644 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003645 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003646echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3647if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003649else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003650 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003651LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003652cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003653/* confdefs.h. */
3654_ACEOF
3655cat confdefs.h >>conftest.$ac_ext
3656cat >>conftest.$ac_ext <<_ACEOF
3657/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003658
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003659/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003660#ifdef __cplusplus
3661extern "C"
3662#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003663/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003664 builtin and then its argument prototype would still apply. */
3665char dnet_ntoa ();
3666int
3667main ()
3668{
3669dnet_ntoa ();
3670 ;
3671 return 0;
3672}
3673_ACEOF
3674rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003676 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003677 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003678 grep -v '^ *+' conftest.er1 >conftest.err
3679 rm -f conftest.er1
3680 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003682 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
3689 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003691 (eval $ac_try) 2>&5
3692 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003694 (exit $ac_status); }; }; then
3695 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003696else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003697 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003698sed 's/^/| /' conftest.$ac_ext >&5
3699
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003700ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003701fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003702rm -f conftest.err conftest.$ac_objext \
3703 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003704LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003705fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003706echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003707echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3708if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003709 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003710fi
3711
3712 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003713fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003714rm -f conftest.err conftest.$ac_objext \
3715 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003716 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003717
3718 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3719 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003720 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003721 # needs -lnsl.
3722 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003723 # on Irix 5.2, according to T.E. Dickey.
3724 # The functions gethostbyname, getservbyname, and inet_addr are
3725 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003726 echo "$as_me:$LINENO: checking for gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003727echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3728if test "${ac_cv_func_gethostbyname+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003730else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003731 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003732/* confdefs.h. */
3733_ACEOF
3734cat confdefs.h >>conftest.$ac_ext
3735cat >>conftest.$ac_ext <<_ACEOF
3736/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003737/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3739#define gethostbyname innocuous_gethostbyname
3740
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003741/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003742 which can conflict with char gethostbyname (); below.
3743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3744 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003745
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003746#ifdef __STDC__
3747# include <limits.h>
3748#else
3749# include <assert.h>
3750#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003751
3752#undef gethostbyname
3753
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003754/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003755#ifdef __cplusplus
3756extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003757{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003758#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003759/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003760 builtin and then its argument prototype would still apply. */
3761char gethostbyname ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003762/* The GNU C library defines this for functions which it implements
3763 to always fail with ENOSYS. Some functions are actually named
3764 something starting with __ and the normal name is an alias. */
3765#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3766choke me
3767#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003768char (*f) () = gethostbyname;
3769#endif
3770#ifdef __cplusplus
3771}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003772#endif
3773
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003774int
3775main ()
3776{
3777return f != gethostbyname;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003778 ;
3779 return 0;
3780}
3781_ACEOF
3782rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003784 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003785 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003786 grep -v '^ *+' conftest.er1 >conftest.err
3787 rm -f conftest.er1
3788 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003790 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3793 (eval $ac_try) 2>&5
3794 ac_status=$?
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; } &&
3797 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003799 (eval $ac_try) 2>&5
3800 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003802 (exit $ac_status); }; }; then
3803 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003804else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003805 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003806sed 's/^/| /' conftest.$ac_ext >&5
3807
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003808ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003809fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003810rm -f conftest.err conftest.$ac_objext \
3811 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003812fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003813echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003814echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003815
3816 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003817 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003818echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3819if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003821else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003822 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003823LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003824cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003825/* confdefs.h. */
3826_ACEOF
3827cat confdefs.h >>conftest.$ac_ext
3828cat >>conftest.$ac_ext <<_ACEOF
3829/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003830
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003831/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003832#ifdef __cplusplus
3833extern "C"
3834#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003835/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003836 builtin and then its argument prototype would still apply. */
3837char gethostbyname ();
3838int
3839main ()
3840{
3841gethostbyname ();
3842 ;
3843 return 0;
3844}
3845_ACEOF
3846rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003848 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003849 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003854 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003863 (eval $ac_try) 2>&5
3864 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003866 (exit $ac_status); }; }; then
3867 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003868else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003869 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003870sed 's/^/| /' conftest.$ac_ext >&5
3871
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003872ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003873fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003874rm -f conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003876LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003877fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003878echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003879echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3880if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003881 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003882fi
3883
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003884 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00003885 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003886echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3887if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889else
3890 ac_check_lib_save_LIBS=$LIBS
3891LIBS="-lbsd $LIBS"
3892cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003893/* confdefs.h. */
3894_ACEOF
3895cat confdefs.h >>conftest.$ac_ext
3896cat >>conftest.$ac_ext <<_ACEOF
3897/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003898
3899/* Override any gcc2 internal prototype to avoid an error. */
3900#ifdef __cplusplus
3901extern "C"
3902#endif
3903/* We use char because int might match the return type of a gcc2
3904 builtin and then its argument prototype would still apply. */
3905char gethostbyname ();
3906int
3907main ()
3908{
3909gethostbyname ();
3910 ;
3911 return 0;
3912}
3913_ACEOF
3914rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003916 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003917 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003922 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; } &&
3929 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003931 (eval $ac_try) 2>&5
3932 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003934 (exit $ac_status); }; }; then
3935 ac_cv_lib_bsd_gethostbyname=yes
3936else
3937 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003938sed 's/^/| /' conftest.$ac_ext >&5
3939
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003940ac_cv_lib_bsd_gethostbyname=no
3941fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003942rm -f conftest.err conftest.$ac_objext \
3943 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003944LIBS=$ac_check_lib_save_LIBS
3945fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003946echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003947echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3948if test $ac_cv_lib_bsd_gethostbyname = yes; then
3949 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3950fi
3951
3952 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003953 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003954
3955 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003956 # socket/setsockopt and other routines are undefined under SCO ODT
3957 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003958 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003959 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003960 # must be given before -lnsl if both are needed. We assume that
3961 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003962 echo "$as_me:$LINENO: checking for connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003963echo $ECHO_N "checking for connect... $ECHO_C" >&6
3964if test "${ac_cv_func_connect+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003966else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003967 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003968/* confdefs.h. */
3969_ACEOF
3970cat confdefs.h >>conftest.$ac_ext
3971cat >>conftest.$ac_ext <<_ACEOF
3972/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003973/* Define connect to an innocuous variant, in case <limits.h> declares connect.
3974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3975#define connect innocuous_connect
3976
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003977/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003978 which can conflict with char connect (); below.
3979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3980 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003981
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003982#ifdef __STDC__
3983# include <limits.h>
3984#else
3985# include <assert.h>
3986#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003987
3988#undef connect
3989
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003990/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003991#ifdef __cplusplus
3992extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003993{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003994#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003995/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003996 builtin and then its argument prototype would still apply. */
3997char connect ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003998/* The GNU C library defines this for functions which it implements
3999 to always fail with ENOSYS. Some functions are actually named
4000 something starting with __ and the normal name is an alias. */
4001#if defined (__stub_connect) || defined (__stub___connect)
4002choke me
4003#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004004char (*f) () = connect;
4005#endif
4006#ifdef __cplusplus
4007}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004008#endif
4009
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004010int
4011main ()
4012{
4013return f != connect;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004014 ;
4015 return 0;
4016}
4017_ACEOF
4018rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004020 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004021 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004026 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004035 (eval $ac_try) 2>&5
4036 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004038 (exit $ac_status); }; }; then
4039 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004040else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004041 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004042sed 's/^/| /' conftest.$ac_ext >&5
4043
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004044ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004045fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004046rm -f conftest.err conftest.$ac_objext \
4047 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004048fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004049echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004050echo "${ECHO_T}$ac_cv_func_connect" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004051
4052 if test $ac_cv_func_connect = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004053 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004054echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4055if test "${ac_cv_lib_socket_connect+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004057else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004058 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004059LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004060cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004061/* confdefs.h. */
4062_ACEOF
4063cat confdefs.h >>conftest.$ac_ext
4064cat >>conftest.$ac_ext <<_ACEOF
4065/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004066
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004067/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004068#ifdef __cplusplus
4069extern "C"
4070#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004071/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004072 builtin and then its argument prototype would still apply. */
4073char connect ();
4074int
4075main ()
4076{
4077connect ();
4078 ;
4079 return 0;
4080}
4081_ACEOF
4082rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004084 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004085 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004086 grep -v '^ *+' conftest.er1 >conftest.err
4087 rm -f conftest.er1
4088 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004090 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4093 (eval $ac_try) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; } &&
4097 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004099 (eval $ac_try) 2>&5
4100 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004102 (exit $ac_status); }; }; then
4103 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004104else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004105 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004106sed 's/^/| /' conftest.$ac_ext >&5
4107
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004108ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004109fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004110rm -f conftest.err conftest.$ac_objext \
4111 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004112LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004113fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004114echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004115echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4116if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004117 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004118fi
4119
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004120 fi
4121
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004122 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004123 echo "$as_me:$LINENO: checking for remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004124echo $ECHO_N "checking for remove... $ECHO_C" >&6
4125if test "${ac_cv_func_remove+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004127else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004128 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004129/* confdefs.h. */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004134/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4136#define remove innocuous_remove
4137
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004138/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004139 which can conflict with char remove (); below.
4140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4141 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004142
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004143#ifdef __STDC__
4144# include <limits.h>
4145#else
4146# include <assert.h>
4147#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004148
4149#undef remove
4150
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004151/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004152#ifdef __cplusplus
4153extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004154{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004155#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004156/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004157 builtin and then its argument prototype would still apply. */
4158char remove ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004159/* The GNU C library defines this for functions which it implements
4160 to always fail with ENOSYS. Some functions are actually named
4161 something starting with __ and the normal name is an alias. */
4162#if defined (__stub_remove) || defined (__stub___remove)
4163choke me
4164#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004165char (*f) () = remove;
4166#endif
4167#ifdef __cplusplus
4168}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004169#endif
4170
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004171int
4172main ()
4173{
4174return f != remove;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004175 ;
4176 return 0;
4177}
4178_ACEOF
4179rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004181 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004182 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004183 grep -v '^ *+' conftest.er1 >conftest.err
4184 rm -f conftest.er1
4185 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004187 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; } &&
4194 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004196 (eval $ac_try) 2>&5
4197 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004199 (exit $ac_status); }; }; then
4200 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004201else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004202 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004203sed 's/^/| /' conftest.$ac_ext >&5
4204
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004205ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004206fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004207rm -f conftest.err conftest.$ac_objext \
4208 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004209fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004210echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004211echo "${ECHO_T}$ac_cv_func_remove" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004212
4213 if test $ac_cv_func_remove = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004214 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004215echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4216if test "${ac_cv_lib_posix_remove+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004218else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004219 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004220LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004221cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004222/* confdefs.h. */
4223_ACEOF
4224cat confdefs.h >>conftest.$ac_ext
4225cat >>conftest.$ac_ext <<_ACEOF
4226/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004227
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004228/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004229#ifdef __cplusplus
4230extern "C"
4231#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004232/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004233 builtin and then its argument prototype would still apply. */
4234char remove ();
4235int
4236main ()
4237{
4238remove ();
4239 ;
4240 return 0;
4241}
4242_ACEOF
4243rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004245 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004246 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004251 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254 (eval $ac_try) 2>&5
4255 ac_status=$?
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); }; } &&
4258 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004260 (eval $ac_try) 2>&5
4261 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004263 (exit $ac_status); }; }; then
4264 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004265else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004266 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004267sed 's/^/| /' conftest.$ac_ext >&5
4268
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004269ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004270fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004271rm -f conftest.err conftest.$ac_objext \
4272 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004273LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004274fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004275echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004276echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4277if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004278 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004279fi
4280
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004281 fi
4282
4283 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004284 echo "$as_me:$LINENO: checking for shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004285echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4286if test "${ac_cv_func_shmat+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004288else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004289 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004290/* confdefs.h. */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004295/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4297#define shmat innocuous_shmat
4298
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004299/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004300 which can conflict with char shmat (); below.
4301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4302 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004303
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004304#ifdef __STDC__
4305# include <limits.h>
4306#else
4307# include <assert.h>
4308#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004309
4310#undef shmat
4311
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004312/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004313#ifdef __cplusplus
4314extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004315{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004316#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004317/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004318 builtin and then its argument prototype would still apply. */
4319char shmat ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004320/* The GNU C library defines this for functions which it implements
4321 to always fail with ENOSYS. Some functions are actually named
4322 something starting with __ and the normal name is an alias. */
4323#if defined (__stub_shmat) || defined (__stub___shmat)
4324choke me
4325#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004326char (*f) () = shmat;
4327#endif
4328#ifdef __cplusplus
4329}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004330#endif
4331
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004332int
4333main ()
4334{
4335return f != shmat;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004336 ;
4337 return 0;
4338}
4339_ACEOF
4340rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004342 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004343 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004348 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004357 (eval $ac_try) 2>&5
4358 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004360 (exit $ac_status); }; }; then
4361 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004362else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004363 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004364sed 's/^/| /' conftest.$ac_ext >&5
4365
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004366ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004367fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004368rm -f conftest.err conftest.$ac_objext \
4369 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004370fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004371echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004372echo "${ECHO_T}$ac_cv_func_shmat" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004373
4374 if test $ac_cv_func_shmat = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004375 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004376echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4377if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004379else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004380 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004381LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004382cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004383/* confdefs.h. */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004388
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004389/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004390#ifdef __cplusplus
4391extern "C"
4392#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004393/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004394 builtin and then its argument prototype would still apply. */
4395char shmat ();
4396int
4397main ()
4398{
4399shmat ();
4400 ;
4401 return 0;
4402}
4403_ACEOF
4404rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004406 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004407 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004412 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; } &&
4419 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004421 (eval $ac_try) 2>&5
4422 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004424 (exit $ac_status); }; }; then
4425 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004426else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004427 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004428sed 's/^/| /' conftest.$ac_ext >&5
4429
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004430ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004431fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004432rm -f conftest.err conftest.$ac_objext \
4433 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004434LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004435fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004436echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004437echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4438if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004439 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004440fi
4441
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004442 fi
4443 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004444
4445 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004446 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004447 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4448 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4449 # check for ICE first), but we must link in the order -lSM -lICE or
4450 # we get undefined symbols. So assume we have SM if we have ICE.
4451 # These have to be linked with before -lX11, unlike the other
4452 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004453 # John Interrante, Karl Berry
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004454 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004455echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4456if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004458else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004459 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00004460LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004461cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004462/* confdefs.h. */
4463_ACEOF
4464cat confdefs.h >>conftest.$ac_ext
4465cat >>conftest.$ac_ext <<_ACEOF
4466/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004467
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004468/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004469#ifdef __cplusplus
4470extern "C"
4471#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004472/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004473 builtin and then its argument prototype would still apply. */
4474char IceConnectionNumber ();
4475int
4476main ()
4477{
4478IceConnectionNumber ();
4479 ;
4480 return 0;
4481}
4482_ACEOF
4483rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004485 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004486 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004487 grep -v '^ *+' conftest.er1 >conftest.err
4488 rm -f conftest.er1
4489 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004491 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; } &&
4498 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004500 (eval $ac_try) 2>&5
4501 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004503 (exit $ac_status); }; }; then
4504 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004505else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004506 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004507sed 's/^/| /' conftest.$ac_ext >&5
4508
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004509ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004510fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004511rm -f conftest.err conftest.$ac_objext \
4512 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004513LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004514fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004515echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004516echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4517if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004518 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004519fi
4520
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004521 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004522
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004523fi
4524
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004525for ac_prog in flex lex
4526do
4527 # Extract the first word of "$ac_prog", so it can be a program name with args.
4528set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004529echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531if test "${ac_cv_prog_LEX+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004533else
4534 if test -n "$LEX"; then
4535 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4536else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538for as_dir in $PATH
4539do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_LEX="$ac_prog"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004549done
4550
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004551fi
4552fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004553LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004554if test -n "$LEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004555 echo "$as_me:$LINENO: result: $LEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004556echo "${ECHO_T}$LEX" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004557else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004558 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004559echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004560fi
4561
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004562 test -n "$LEX" && break
4563done
4564test -n "$LEX" || LEX=":"
4565
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004566if test -z "$LEXLIB"
4567then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004568 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004569echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4570if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004572else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004573 ac_check_lib_save_LIBS=$LIBS
4574LIBS="-lfl $LIBS"
4575cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004576/* confdefs.h. */
4577_ACEOF
4578cat confdefs.h >>conftest.$ac_ext
4579cat >>conftest.$ac_ext <<_ACEOF
4580/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004581
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004582/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004583#ifdef __cplusplus
4584extern "C"
4585#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004586/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004587 builtin and then its argument prototype would still apply. */
4588char yywrap ();
4589int
4590main ()
4591{
4592yywrap ();
4593 ;
4594 return 0;
4595}
4596_ACEOF
4597rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004599 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004600 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004601 grep -v '^ *+' conftest.er1 >conftest.err
4602 rm -f conftest.er1
4603 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004605 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 (eval $ac_try) 2>&5
4609 ac_status=$?
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; } &&
4612 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004614 (eval $ac_try) 2>&5
4615 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004617 (exit $ac_status); }; }; then
4618 ac_cv_lib_fl_yywrap=yes
4619else
4620 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004621sed 's/^/| /' conftest.$ac_ext >&5
4622
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004623ac_cv_lib_fl_yywrap=no
4624fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004625rm -f conftest.err conftest.$ac_objext \
4626 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004627LIBS=$ac_check_lib_save_LIBS
4628fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004629echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004630echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4631if test $ac_cv_lib_fl_yywrap = yes; then
4632 LEXLIB="-lfl"
4633else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004634 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004635echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4636if test "${ac_cv_lib_l_yywrap+set}" = set; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638else
4639 ac_check_lib_save_LIBS=$LIBS
4640LIBS="-ll $LIBS"
4641cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004642/* confdefs.h. */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004647
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004648/* Override any gcc2 internal prototype to avoid an error. */
4649#ifdef __cplusplus
4650extern "C"
4651#endif
4652/* We use char because int might match the return type of a gcc2
4653 builtin and then its argument prototype would still apply. */
4654char yywrap ();
4655int
4656main ()
4657{
4658yywrap ();
4659 ;
4660 return 0;
4661}
4662_ACEOF
4663rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004665 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004666 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004667 grep -v '^ *+' conftest.er1 >conftest.err
4668 rm -f conftest.er1
4669 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004671 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; } &&
4678 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004680 (eval $ac_try) 2>&5
4681 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004683 (exit $ac_status); }; }; then
4684 ac_cv_lib_l_yywrap=yes
4685else
4686 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004687sed 's/^/| /' conftest.$ac_ext >&5
4688
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004689ac_cv_lib_l_yywrap=no
4690fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004691rm -f conftest.err conftest.$ac_objext \
4692 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004693LIBS=$ac_check_lib_save_LIBS
4694fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004695echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004696echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4697if test $ac_cv_lib_l_yywrap = yes; then
4698 LEXLIB="-ll"
4699fi
4700
4701fi
4702
4703fi
4704
4705if test "x$LEX" != "x:"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004706 echo "$as_me:$LINENO: checking lex output file root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004707echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4708if test "${ac_cv_prog_lex_root+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710else
4711 # The minimal lex program is just a single line: %%. But some broken lexes
4712# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004713cat >conftest.l <<_ACEOF
4714%%
4715%%
4716_ACEOF
4717{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4718 (eval $LEX conftest.l) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004722if test -f lex.yy.c; then
4723 ac_cv_prog_lex_root=lex.yy
4724elif test -f lexyy.c; then
4725 ac_cv_prog_lex_root=lexyy
4726else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004727 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004728echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4729 { (exit 1); exit 1; }; }
4730fi
4731fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004732echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004733echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004734rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004735LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4736
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004737echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004738echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4739if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741else
4742 # POSIX says lex can declare yytext either as a pointer or an array; the
4743# default is implementation-dependent. Figure out which it is, since
4744# not all implementations provide the %pointer and %array declarations.
4745ac_cv_prog_lex_yytext_pointer=no
4746echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4747ac_save_LIBS=$LIBS
4748LIBS="$LIBS $LEXLIB"
4749cat >conftest.$ac_ext <<_ACEOF
4750`cat $LEX_OUTPUT_ROOT.c`
4751_ACEOF
4752rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004754 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004755 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004756 grep -v '^ *+' conftest.er1 >conftest.err
4757 rm -f conftest.er1
4758 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004760 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763 (eval $ac_try) 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }; } &&
4767 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004769 (eval $ac_try) 2>&5
4770 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004772 (exit $ac_status); }; }; then
4773 ac_cv_prog_lex_yytext_pointer=yes
4774else
4775 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004776sed 's/^/| /' conftest.$ac_ext >&5
4777
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004778fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004779rm -f conftest.err conftest.$ac_objext \
4780 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004781LIBS=$ac_save_LIBS
4782rm -f "${LEX_OUTPUT_ROOT}.c"
4783
4784fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004785echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004786echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4787if test $ac_cv_prog_lex_yytext_pointer = yes; then
4788
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004789cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004790#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004791_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004792
4793fi
4794
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004795fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004796
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004797for ac_prog in $LEX flex lex
4798do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004799 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004800set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004801echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4803if test "${ac_cv_prog_XLEX+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004805else
4806 if test -n "$XLEX"; then
4807 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4808else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810for as_dir in $PATH
4811do
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4816 ac_cv_prog_XLEX="$ac_prog"
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 break 2
4819 fi
4820done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004821done
4822
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004823fi
4824fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004825XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004826if test -n "$XLEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004827 echo "$as_me:$LINENO: result: $XLEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004828echo "${ECHO_T}$XLEX" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004829else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004830 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004831echo "${ECHO_T}no" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004832fi
4833
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004834 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004835done
4836test -n "$XLEX" || XLEX="none"
4837
4838if test "$XLEX" = "none"
4839then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004840 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004841echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4842 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004843fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004844
Mike McCormackc068f672004-03-16 03:11:39 +00004845for ac_prog in bison
4846do
4847 # Extract the first word of "$ac_prog", so it can be a program name with args.
4848set dummy $ac_prog; ac_word=$2
4849echo "$as_me:$LINENO: checking for $ac_word" >&5
4850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4851if test "${ac_cv_prog_BISON+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4853else
4854 if test -n "$BISON"; then
4855 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4856else
4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4864 ac_cv_prog_BISON="$ac_prog"
4865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 break 2
4867 fi
4868done
4869done
4870
4871fi
4872fi
4873BISON=$ac_cv_prog_BISON
4874if test -n "$BISON"; then
4875 echo "$as_me:$LINENO: result: $BISON" >&5
4876echo "${ECHO_T}$BISON" >&6
4877else
4878 echo "$as_me:$LINENO: result: no" >&5
4879echo "${ECHO_T}no" >&6
4880fi
4881
4882 test -n "$BISON" && break
4883done
4884test -n "$BISON" || BISON="none"
4885
4886if test "$BISON" = "none"
4887then
4888 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4889echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4890 { (exit 1); exit 1; }; }
4891fi
4892
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004893if test -n "$ac_tool_prefix"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004894 for ac_prog in gas as
4895 do
4896 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4897set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Marcus Meissner1d4db782003-01-09 00:46:54 +00004898echo "$as_me:$LINENO: checking for $ac_word" >&5
4899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4900if test "${ac_cv_prog_AS+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903 if test -n "$AS"; then
4904 ac_cv_prog_AS="$AS" # Let the user override the test.
4905else
4906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907for as_dir in $PATH
4908do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004913 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00004914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4916 fi
4917done
4918done
4919
4920fi
4921fi
4922AS=$ac_cv_prog_AS
4923if test -n "$AS"; then
4924 echo "$as_me:$LINENO: result: $AS" >&5
4925echo "${ECHO_T}$AS" >&6
4926else
4927 echo "$as_me:$LINENO: result: no" >&5
4928echo "${ECHO_T}no" >&6
4929fi
4930
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004931 test -n "$AS" && break
4932 done
Marcus Meissner1d4db782003-01-09 00:46:54 +00004933fi
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004934if test -z "$AS"; then
Marcus Meissner1d4db782003-01-09 00:46:54 +00004935 ac_ct_AS=$AS
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004936 for ac_prog in gas as
4937do
4938 # Extract the first word of "$ac_prog", so it can be a program name with args.
4939set dummy $ac_prog; ac_word=$2
Marcus Meissner1d4db782003-01-09 00:46:54 +00004940echo "$as_me:$LINENO: checking for $ac_word" >&5
4941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4942if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944else
4945 if test -n "$ac_ct_AS"; then
4946 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4947else
4948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH
4950do
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004955 ac_cv_prog_ac_ct_AS="$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00004956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4958 fi
4959done
4960done
4961
Marcus Meissner1d4db782003-01-09 00:46:54 +00004962fi
4963fi
4964ac_ct_AS=$ac_cv_prog_ac_ct_AS
4965if test -n "$ac_ct_AS"; then
4966 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4967echo "${ECHO_T}$ac_ct_AS" >&6
4968else
4969 echo "$as_me:$LINENO: result: no" >&5
4970echo "${ECHO_T}no" >&6
4971fi
4972
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004973 test -n "$ac_ct_AS" && break
4974done
4975test -n "$ac_ct_AS" || ac_ct_AS="as"
4976
Marcus Meissner1d4db782003-01-09 00:46:54 +00004977 AS=$ac_ct_AS
Marcus Meissner1d4db782003-01-09 00:46:54 +00004978fi
4979
4980if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00004981 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4982set dummy ${ac_tool_prefix}ld; ac_word=$2
4983echo "$as_me:$LINENO: checking for $ac_word" >&5
4984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4985if test "${ac_cv_prog_LD+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987else
4988 if test -n "$LD"; then
4989 ac_cv_prog_LD="$LD" # Let the user override the test.
4990else
4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH
4993do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_LD="${ac_tool_prefix}ld"
4999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5001 fi
5002done
5003done
5004
5005fi
5006fi
5007LD=$ac_cv_prog_LD
5008if test -n "$LD"; then
5009 echo "$as_me:$LINENO: result: $LD" >&5
5010echo "${ECHO_T}$LD" >&6
5011else
5012 echo "$as_me:$LINENO: result: no" >&5
5013echo "${ECHO_T}no" >&6
5014fi
5015
5016fi
5017if test -z "$ac_cv_prog_LD"; then
5018 ac_ct_LD=$LD
5019 # Extract the first word of "ld", so it can be a program name with args.
5020set dummy ld; ac_word=$2
5021echo "$as_me:$LINENO: checking for $ac_word" >&5
5022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025else
5026 if test -n "$ac_ct_LD"; then
5027 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5028else
5029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH
5031do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_prog_ac_ct_LD="ld"
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5039 fi
5040done
5041done
5042
5043 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5044fi
5045fi
5046ac_ct_LD=$ac_cv_prog_ac_ct_LD
5047if test -n "$ac_ct_LD"; then
5048 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5049echo "${ECHO_T}$ac_ct_LD" >&6
5050else
5051 echo "$as_me:$LINENO: result: no" >&5
5052echo "${ECHO_T}no" >&6
5053fi
5054
5055 LD=$ac_ct_LD
5056else
5057 LD="$ac_cv_prog_LD"
5058fi
5059
5060if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005061 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5062set dummy ${ac_tool_prefix}ar; ac_word=$2
5063echo "$as_me:$LINENO: checking for $ac_word" >&5
5064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5065if test "${ac_cv_prog_AR+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067else
5068 if test -n "$AR"; then
5069 ac_cv_prog_AR="$AR" # Let the user override the test.
5070else
5071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072for as_dir in $PATH
5073do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_AR="${ac_tool_prefix}ar"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082done
5083done
5084
5085fi
5086fi
5087AR=$ac_cv_prog_AR
5088if test -n "$AR"; then
5089 echo "$as_me:$LINENO: result: $AR" >&5
5090echo "${ECHO_T}$AR" >&6
5091else
5092 echo "$as_me:$LINENO: result: no" >&5
5093echo "${ECHO_T}no" >&6
5094fi
5095
5096fi
5097if test -z "$ac_cv_prog_AR"; then
5098 ac_ct_AR=$AR
5099 # Extract the first word of "ar", so it can be a program name with args.
5100set dummy ar; ac_word=$2
5101echo "$as_me:$LINENO: checking for $ac_word" >&5
5102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106 if test -n "$ac_ct_AR"; then
5107 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5108else
5109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110for as_dir in $PATH
5111do
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116 ac_cv_prog_ac_ct_AR="ar"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118 break 2
5119 fi
5120done
5121done
5122
5123 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5124fi
5125fi
5126ac_ct_AR=$ac_cv_prog_ac_ct_AR
5127if test -n "$ac_ct_AR"; then
5128 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5129echo "${ECHO_T}$ac_ct_AR" >&6
5130else
5131 echo "$as_me:$LINENO: result: no" >&5
5132echo "${ECHO_T}no" >&6
5133fi
5134
5135 AR=$ac_ct_AR
5136else
5137 AR="$ac_cv_prog_AR"
5138fi
5139
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005140if test -n "$ac_tool_prefix"; then
5141 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5142set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005143echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5145if test "${ac_cv_prog_RANLIB+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005147else
5148 if test -n "$RANLIB"; then
5149 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5150else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005163done
5164
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005165fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005166fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005167RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005168if test -n "$RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005169 echo "$as_me:$LINENO: result: $RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005170echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005171else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005172 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005173echo "${ECHO_T}no" >&6
5174fi
5175
5176fi
5177if test -z "$ac_cv_prog_RANLIB"; then
5178 ac_ct_RANLIB=$RANLIB
5179 # Extract the first word of "ranlib", so it can be a program name with args.
5180set dummy ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005181echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186 if test -n "$ac_ct_RANLIB"; then
5187 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5188else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_ac_ct_RANLIB="ranlib"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005201done
5202
5203 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5204fi
5205fi
5206ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5207if test -n "$ac_ct_RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005208 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005209echo "${ECHO_T}$ac_ct_RANLIB" >&6
5210else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005211 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005212echo "${ECHO_T}no" >&6
5213fi
5214
5215 RANLIB=$ac_ct_RANLIB
5216else
5217 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005218fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005219
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005220if test -n "$ac_tool_prefix"; then
5221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5222set dummy ${ac_tool_prefix}strip; ac_word=$2
5223echo "$as_me:$LINENO: checking for $ac_word" >&5
5224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225if test "${ac_cv_prog_STRIP+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227else
5228 if test -n "$STRIP"; then
5229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5230else
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242done
5243done
5244
5245fi
5246fi
5247STRIP=$ac_cv_prog_STRIP
5248if test -n "$STRIP"; then
5249 echo "$as_me:$LINENO: result: $STRIP" >&5
5250echo "${ECHO_T}$STRIP" >&6
5251else
5252 echo "$as_me:$LINENO: result: no" >&5
5253echo "${ECHO_T}no" >&6
5254fi
5255
5256fi
5257if test -z "$ac_cv_prog_STRIP"; then
5258 ac_ct_STRIP=$STRIP
5259 # Extract the first word of "strip", so it can be a program name with args.
5260set dummy strip; ac_word=$2
5261echo "$as_me:$LINENO: checking for $ac_word" >&5
5262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265else
5266 if test -n "$ac_ct_STRIP"; then
5267 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5268else
5269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270for as_dir in $PATH
5271do
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276 ac_cv_prog_ac_ct_STRIP="strip"
5277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5279 fi
5280done
5281done
5282
5283 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5284fi
5285fi
5286ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5287if test -n "$ac_ct_STRIP"; then
5288 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5289echo "${ECHO_T}$ac_ct_STRIP" >&6
5290else
5291 echo "$as_me:$LINENO: result: no" >&5
5292echo "${ECHO_T}no" >&6
5293fi
5294
5295 STRIP=$ac_ct_STRIP
5296else
5297 STRIP="$ac_cv_prog_STRIP"
5298fi
5299
5300if test -n "$ac_tool_prefix"; then
5301 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5302set dummy ${ac_tool_prefix}windres; ac_word=$2
5303echo "$as_me:$LINENO: checking for $ac_word" >&5
5304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5305if test "${ac_cv_prog_WINDRES+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
5307else
5308 if test -n "$WINDRES"; then
5309 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5310else
5311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312for as_dir in $PATH
5313do
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5321 fi
5322done
5323done
5324
5325fi
5326fi
5327WINDRES=$ac_cv_prog_WINDRES
5328if test -n "$WINDRES"; then
5329 echo "$as_me:$LINENO: result: $WINDRES" >&5
5330echo "${ECHO_T}$WINDRES" >&6
5331else
5332 echo "$as_me:$LINENO: result: no" >&5
5333echo "${ECHO_T}no" >&6
5334fi
5335
5336fi
5337if test -z "$ac_cv_prog_WINDRES"; then
5338 ac_ct_WINDRES=$WINDRES
5339 # Extract the first word of "windres", so it can be a program name with args.
5340set dummy windres; ac_word=$2
5341echo "$as_me:$LINENO: checking for $ac_word" >&5
5342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345else
5346 if test -n "$ac_ct_WINDRES"; then
5347 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5348else
5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
5355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356 ac_cv_prog_ac_ct_WINDRES="windres"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5359 fi
5360done
5361done
5362
5363 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5364fi
5365fi
5366ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5367if test -n "$ac_ct_WINDRES"; then
5368 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5369echo "${ECHO_T}$ac_ct_WINDRES" >&6
5370else
5371 echo "$as_me:$LINENO: result: no" >&5
5372echo "${ECHO_T}no" >&6
5373fi
5374
5375 WINDRES=$ac_ct_WINDRES
5376else
5377 WINDRES="$ac_cv_prog_WINDRES"
5378fi
5379
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005380echo "$as_me:$LINENO: checking whether ln -s works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005381echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5382LN_S=$as_ln_s
5383if test "$LN_S" = "ln -s"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005384 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005385echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00005386else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005387 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005388echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00005389fi
5390
Alexandre Julliarddf234a92002-05-22 02:10:39 +00005391echo "$as_me:$LINENO: checking whether ln works" >&5
5392echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5393rm -f conf$$ conf$$.file
5394echo >conf$$.file
5395if ln conf$$.file conf$$ 2>/dev/null; then
5396 LN=ln
5397
5398 echo "$as_me:$LINENO: result: yes" >&5
5399echo "${ECHO_T}yes" >&6
5400else
5401 LN="cp -p"
5402
5403 echo "$as_me:$LINENO: result: no, using $LN" >&5
5404echo "${ECHO_T}no, using $LN" >&6
5405fi
5406rm -f conf$$ conf$$.file
Alexandre Julliardc6264912004-08-16 20:09:37 +00005407echo "$as_me:$LINENO: checking for egrep" >&5
5408echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5409if test "${ac_cv_prog_egrep+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5413 then ac_cv_prog_egrep='grep -E'
5414 else ac_cv_prog_egrep='egrep'
5415 fi
5416fi
5417echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5418echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5419 EGREP=$ac_cv_prog_egrep
5420
5421
James Juranffe6b761999-06-12 08:21:57 +00005422# Extract the first word of "ldconfig", so it can be a program name with args.
5423set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005424echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5426if test "${ac_cv_path_LDCONFIG+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00005428else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005429 case $LDCONFIG in
5430 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00005431 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5432 ;;
5433 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00005435for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005436do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5444 fi
5445done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005446done
5447
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005448 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00005449 ;;
5450esac
5451fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005452LDCONFIG=$ac_cv_path_LDCONFIG
5453
James Juranffe6b761999-06-12 08:21:57 +00005454if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005455 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005456echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00005457else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005458 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005459echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00005460fi
5461
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005462# Find a good install program. We prefer a C program (faster),
5463# so one script is as good as another. But avoid the broken or
5464# incompatible versions:
5465# SysV /etc/install, /usr/sbin/install
5466# SunOS /usr/etc/install
5467# IRIX /sbin/install
5468# AIX /bin/install
5469# AmigaOS /C/install, which installs bootblocks on floppy discs
5470# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5471# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5472# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00005473# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005474# ./install, which can be erroneously created by make from ./install.sh.
5475echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5476echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5477if test -z "$INSTALL"; then
5478if test "${ac_cv_path_install+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482for as_dir in $PATH
5483do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 # Account for people who put trailing slashes in PATH elements.
5487case $as_dir/ in
5488 ./ | .// | /cC/* | \
5489 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005490 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005491 /usr/ucb/* ) ;;
5492 *)
5493 # OSF1 and SCO ODT 3.0 have their own names for install.
5494 # Don't use installbsd from OSF since it installs stuff as root
5495 # by default.
5496 for ac_prog in ginstall scoinst install; do
5497 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliard875927f2004-01-02 01:55:29 +00005498 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5499 if test $ac_prog = install &&
5500 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5501 # AIX install. It has an incompatible calling convention.
5502 :
5503 elif test $ac_prog = install &&
5504 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5505 # program-specific install script used by HP pwplus--don't use.
5506 :
5507 else
5508 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5509 break 3
5510 fi
5511 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005512 done
5513 done
5514 ;;
5515esac
5516done
5517
5518
5519fi
5520 if test "${ac_cv_path_install+set}" = set; then
5521 INSTALL=$ac_cv_path_install
5522 else
5523 # As a last resort, use the slow shell script. We don't cache a
5524 # path for INSTALL within a source directory, because that will
5525 # break other packages using the cache if that directory is
5526 # removed, or if the path is relative.
5527 INSTALL=$ac_install_sh
5528 fi
5529fi
5530echo "$as_me:$LINENO: result: $INSTALL" >&5
5531echo "${ECHO_T}$INSTALL" >&6
5532
5533# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5534# It thinks the first close brace ends the variable substitution.
5535test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5536
5537test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5538
5539test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5540
5541case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00005542 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005543 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5544esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005545
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005546for ac_prog in lclint lint
5547do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005548 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005549set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005550echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5552if test "${ac_cv_prog_LINT+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005554else
5555 if test -n "$LINT"; then
5556 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5557else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559for as_dir in $PATH
5560do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565 ac_cv_prog_LINT="$ac_prog"
5566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5568 fi
5569done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005570done
5571
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005572fi
5573fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005574LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005575if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005576 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005577echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005578else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005579 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005580echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005581fi
5582
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005583 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005584done
5585
5586if test "$LINT" = "lint"
5587then
5588 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5589 fi
5590
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005591
5592
Vincent Béron1d8cb6e2002-11-23 01:20:02 +00005593for ac_prog in docbook2html db2html
5594do
5595 # Extract the first word of "$ac_prog", so it can be a program name with args.
5596set dummy $ac_prog; ac_word=$2
5597echo "$as_me:$LINENO: checking for $ac_word" >&5
5598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5599if test "${ac_cv_prog_DB2HTML+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602 if test -n "$DB2HTML"; then
5603 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5604else
5605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606for as_dir in $PATH
5607do
5608 IFS=$as_save_IFS
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5612 ac_cv_prog_DB2HTML="$ac_prog"
5613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 break 2
5615 fi
5616done
5617done
5618
5619fi
5620fi
5621DB2HTML=$ac_cv_prog_DB2HTML
5622if test -n "$DB2HTML"; then
5623 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5624echo "${ECHO_T}$DB2HTML" >&6
5625else
5626 echo "$as_me:$LINENO: result: no" >&5
5627echo "${ECHO_T}no" >&6
5628fi
5629
5630 test -n "$DB2HTML" && break
5631done
5632test -n "$DB2HTML" || DB2HTML="false"
5633
Vincent Béron1d8cb6e2002-11-23 01:20:02 +00005634for ac_prog in docbook2pdf db2pdf
5635do
5636 # Extract the first word of "$ac_prog", so it can be a program name with args.
5637set dummy $ac_prog; ac_word=$2
5638echo "$as_me:$LINENO: checking for $ac_word" >&5
5639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5640if test "${ac_cv_prog_DB2PDF+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643 if test -n "$DB2PDF"; then
5644 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5645else
5646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647for as_dir in $PATH
5648do
5649 IFS=$as_save_IFS
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653 ac_cv_prog_DB2PDF="$ac_prog"
5654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 break 2
5656 fi
5657done
5658done
5659
5660fi
5661fi
5662DB2PDF=$ac_cv_prog_DB2PDF
5663if test -n "$DB2PDF"; then
5664 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5665echo "${ECHO_T}$DB2PDF" >&6
5666else
5667 echo "$as_me:$LINENO: result: no" >&5
5668echo "${ECHO_T}no" >&6
5669fi
5670
5671 test -n "$DB2PDF" && break
5672done
5673test -n "$DB2PDF" || DB2PDF="false"
5674
Vincent Béron1d8cb6e2002-11-23 01:20:02 +00005675for ac_prog in docbook2ps db2ps
5676do
5677 # Extract the first word of "$ac_prog", so it can be a program name with args.
5678set dummy $ac_prog; ac_word=$2
5679echo "$as_me:$LINENO: checking for $ac_word" >&5
5680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5681if test "${ac_cv_prog_DB2PS+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683else
5684 if test -n "$DB2PS"; then
5685 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_DB2PS="$ac_prog"
5695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698done
5699done
5700
5701fi
5702fi
5703DB2PS=$ac_cv_prog_DB2PS
5704if test -n "$DB2PS"; then
5705 echo "$as_me:$LINENO: result: $DB2PS" >&5
5706echo "${ECHO_T}$DB2PS" >&6
5707else
5708 echo "$as_me:$LINENO: result: no" >&5
5709echo "${ECHO_T}no" >&6
5710fi
5711
5712 test -n "$DB2PS" && break
5713done
5714test -n "$DB2PS" || DB2PS="false"
5715
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005716for ac_prog in docbook2txt db2txt
5717do
5718 # Extract the first word of "$ac_prog", so it can be a program name with args.
5719set dummy $ac_prog; ac_word=$2
5720echo "$as_me:$LINENO: checking for $ac_word" >&5
5721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5722if test "${ac_cv_prog_DB2TXT+set}" = set; then
5723 echo $ECHO_N "(cached) $ECHO_C" >&6
5724else
5725 if test -n "$DB2TXT"; then
5726 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5727else
5728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729for as_dir in $PATH
5730do
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735 ac_cv_prog_DB2TXT="$ac_prog"
5736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 break 2
5738 fi
5739done
5740done
5741
5742fi
5743fi
5744DB2TXT=$ac_cv_prog_DB2TXT
5745if test -n "$DB2TXT"; then
5746 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5747echo "${ECHO_T}$DB2TXT" >&6
5748else
5749 echo "$as_me:$LINENO: result: no" >&5
5750echo "${ECHO_T}no" >&6
5751fi
5752
5753 test -n "$DB2TXT" && break
5754done
5755test -n "$DB2TXT" || DB2TXT="false"
5756
Huw Davies00acb5f2004-08-17 22:33:14 +00005757for ac_prog in fontforge
5758do
5759 # Extract the first word of "$ac_prog", so it can be a program name with args.
5760set dummy $ac_prog; ac_word=$2
5761echo "$as_me:$LINENO: checking for $ac_word" >&5
5762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5763if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765else
5766 if test -n "$FONTFORGE"; then
5767 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5768else
5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770for as_dir in $PATH
5771do
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_FONTFORGE="$ac_prog"
5777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5779 fi
5780done
5781done
5782
5783fi
5784fi
5785FONTFORGE=$ac_cv_prog_FONTFORGE
5786if test -n "$FONTFORGE"; then
5787 echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5788echo "${ECHO_T}$FONTFORGE" >&6
5789else
5790 echo "$as_me:$LINENO: result: no" >&5
5791echo "${ECHO_T}no" >&6
5792fi
5793
5794 test -n "$FONTFORGE" && break
5795done
5796test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005797
5798
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005799
5800
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005801echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005802echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5803if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005805else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005806 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005807LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005808cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005809/* confdefs.h. */
5810_ACEOF
5811cat confdefs.h >>conftest.$ac_ext
5812cat >>conftest.$ac_ext <<_ACEOF
5813/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005814
Alexandre Julliard59730ae1996-03-24 16:20:51 +00005815/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005816#ifdef __cplusplus
5817extern "C"
5818#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005819/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005820 builtin and then its argument prototype would still apply. */
5821char i386_set_ldt ();
5822int
5823main ()
5824{
5825i386_set_ldt ();
5826 ;
5827 return 0;
5828}
5829_ACEOF
5830rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005832 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005833 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005834 grep -v '^ *+' conftest.er1 >conftest.err
5835 rm -f conftest.er1
5836 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005838 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; } &&
5845 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005847 (eval $ac_try) 2>&5
5848 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005850 (exit $ac_status); }; }; then
5851 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005852else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005853 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005854sed 's/^/| /' conftest.$ac_ext >&5
5855
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005856ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005857fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005858rm -f conftest.err conftest.$ac_objext \
5859 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005860LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005861fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005862echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005863echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5864if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005865 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005866#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005867_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005868
5869 LIBS="-li386 $LIBS"
5870
Alexandre Julliard02e90081998-01-04 17:49:09 +00005871fi
5872
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005873
5874echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005875echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5876if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005878else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005879 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005880LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005881cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005882/* confdefs.h. */
5883_ACEOF
5884cat confdefs.h >>conftest.$ac_ext
5885cat >>conftest.$ac_ext <<_ACEOF
5886/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005887
Todd Vierlingecc76691998-12-15 17:49:02 +00005888/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005889#ifdef __cplusplus
5890extern "C"
5891#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00005892/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005893 builtin and then its argument prototype would still apply. */
5894char _oss_ioctl ();
5895int
5896main ()
5897{
5898_oss_ioctl ();
5899 ;
5900 return 0;
5901}
5902_ACEOF
5903rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005905 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005906 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005911 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; } &&
5918 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005920 (eval $ac_try) 2>&5
5921 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005923 (exit $ac_status); }; }; then
5924 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005925else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005926 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005927sed 's/^/| /' conftest.$ac_ext >&5
5928
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005929ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005930fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005931rm -f conftest.err conftest.$ac_objext \
5932 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005933LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005934fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005935echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005936echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5937if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005938 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005939#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005940_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005941
5942 LIBS="-lossaudio $LIBS"
5943
Todd Vierlingecc76691998-12-15 17:49:02 +00005944fi
5945
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005946
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005947for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00005948do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005949as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005950echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005951echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5952if eval "test \"\${$as_ac_var+set}\" = set"; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005954else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005955 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005956/* confdefs.h. */
5957_ACEOF
5958cat confdefs.h >>conftest.$ac_ext
5959cat >>conftest.$ac_ext <<_ACEOF
5960/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005961/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5963#define $ac_func innocuous_$ac_func
5964
Patrik Stridvallea584721998-11-01 16:22:07 +00005965/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005966 which can conflict with char $ac_func (); below.
5967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5968 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005969
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005970#ifdef __STDC__
5971# include <limits.h>
5972#else
5973# include <assert.h>
5974#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00005975
5976#undef $ac_func
5977
Patrik Stridvallea584721998-11-01 16:22:07 +00005978/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005979#ifdef __cplusplus
5980extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005981{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005982#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005983/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005984 builtin and then its argument prototype would still apply. */
5985char $ac_func ();
Patrik Stridvallea584721998-11-01 16:22:07 +00005986/* The GNU C library defines this for functions which it implements
5987 to always fail with ENOSYS. Some functions are actually named
5988 something starting with __ and the normal name is an alias. */
5989#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5990choke me
5991#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005992char (*f) () = $ac_func;
5993#endif
5994#ifdef __cplusplus
5995}
Patrik Stridvallea584721998-11-01 16:22:07 +00005996#endif
5997
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005998int
5999main ()
6000{
6001return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006002 ;
6003 return 0;
6004}
6005_ACEOF
6006rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006008 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006009 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006014 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 (eval $ac_try) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; } &&
6021 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006023 (eval $ac_try) 2>&5
6024 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006026 (exit $ac_status); }; }; then
6027 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006028else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006029 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006030sed 's/^/| /' conftest.$ac_ext >&5
6031
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006032eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006033fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006034rm -f conftest.err conftest.$ac_objext \
6035 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006036fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006038echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6039if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006040 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006042_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006043
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006044else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006045
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006046echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006047echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
6048if test "${ac_cv_lib_w_iswalnum+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006050else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006051 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006052LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006053cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006054/* confdefs.h. */
6055_ACEOF
6056cat confdefs.h >>conftest.$ac_ext
6057cat >>conftest.$ac_ext <<_ACEOF
6058/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006059
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006060/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006061#ifdef __cplusplus
6062extern "C"
6063#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006064/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006065 builtin and then its argument prototype would still apply. */
6066char iswalnum ();
6067int
6068main ()
6069{
6070iswalnum ();
6071 ;
6072 return 0;
6073}
6074_ACEOF
6075rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006077 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006078 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006083 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006092 (eval $ac_try) 2>&5
6093 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006095 (exit $ac_status); }; }; then
6096 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006097else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006098 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006099sed 's/^/| /' conftest.$ac_ext >&5
6100
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006101ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006102fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006103rm -f conftest.err conftest.$ac_objext \
6104 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006105LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006106fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006107echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006108echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6109if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006110 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006111#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006112_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006113
6114 LIBS="-lw $LIBS"
6115
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006116fi
6117
6118fi
6119done
6120
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006121
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006122for ac_func in gethostbyname
6123do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006125echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6127if eval "test \"\${$as_ac_var+set}\" = set"; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006129else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006130 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006131/* confdefs.h. */
6132_ACEOF
6133cat confdefs.h >>conftest.$ac_ext
6134cat >>conftest.$ac_ext <<_ACEOF
6135/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6138#define $ac_func innocuous_$ac_func
6139
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006140/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006141 which can conflict with char $ac_func (); below.
6142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6143 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006144
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006145#ifdef __STDC__
6146# include <limits.h>
6147#else
6148# include <assert.h>
6149#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006150
6151#undef $ac_func
6152
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006153/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006154#ifdef __cplusplus
6155extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006156{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006157#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006158/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006159 builtin and then its argument prototype would still apply. */
6160char $ac_func ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006161/* The GNU C library defines this for functions which it implements
6162 to always fail with ENOSYS. Some functions are actually named
6163 something starting with __ and the normal name is an alias. */
6164#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6165choke me
6166#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006167char (*f) () = $ac_func;
6168#endif
6169#ifdef __cplusplus
6170}
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006171#endif
6172
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006173int
6174main ()
6175{
6176return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006177 ;
6178 return 0;
6179}
6180_ACEOF
6181rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006183 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006184 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006185 grep -v '^ *+' conftest.er1 >conftest.err
6186 rm -f conftest.er1
6187 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006189 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192 (eval $ac_try) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; } &&
6196 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006198 (eval $ac_try) 2>&5
6199 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006201 (exit $ac_status); }; }; then
6202 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00006203else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006204 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006205sed 's/^/| /' conftest.$ac_ext >&5
6206
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006207eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00006208fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006209rm -f conftest.err conftest.$ac_objext \
6210 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00006211fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006213echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6214if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006215 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006216#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006217_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00006218
Patrik Stridvallea584721998-11-01 16:22:07 +00006219else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006220
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006221echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006222echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6223if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00006225else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006226 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006227LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006228cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006229/* confdefs.h. */
6230_ACEOF
6231cat confdefs.h >>conftest.$ac_ext
6232cat >>conftest.$ac_ext <<_ACEOF
6233/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006234
Patrik Stridvallea584721998-11-01 16:22:07 +00006235/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006236#ifdef __cplusplus
6237extern "C"
6238#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00006239/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006240 builtin and then its argument prototype would still apply. */
6241char gethostbyname ();
6242int
6243main ()
6244{
6245gethostbyname ();
6246 ;
6247 return 0;
6248}
6249_ACEOF
6250rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006252 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006253 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006258 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006267 (eval $ac_try) 2>&5
6268 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006270 (exit $ac_status); }; }; then
6271 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00006272else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006273 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006274sed 's/^/| /' conftest.$ac_ext >&5
6275
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006276ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00006277fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006278rm -f conftest.err conftest.$ac_objext \
6279 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006280LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00006281fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006282echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006283echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6284if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006285 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006286#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006287_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00006288
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006289 LIBS="-lnsl $LIBS"
6290
Ron Recorde977d6c1999-09-05 12:32:05 +00006291fi
6292
Patrik Stridvallea584721998-11-01 16:22:07 +00006293fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00006294done
6295
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006296
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006297for ac_func in connect
6298do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006300echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6302if eval "test \"\${$as_ac_var+set}\" = set"; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006304else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006305 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006306/* confdefs.h. */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6313#define $ac_func innocuous_$ac_func
6314
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006315/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006316 which can conflict with char $ac_func (); below.
6317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6318 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006319
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006320#ifdef __STDC__
6321# include <limits.h>
6322#else
6323# include <assert.h>
6324#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006325
6326#undef $ac_func
6327
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006328/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006329#ifdef __cplusplus
6330extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006331{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006332#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006333/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006334 builtin and then its argument prototype would still apply. */
6335char $ac_func ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006336/* The GNU C library defines this for functions which it implements
6337 to always fail with ENOSYS. Some functions are actually named
6338 something starting with __ and the normal name is an alias. */
6339#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6340choke me
6341#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006342char (*f) () = $ac_func;
6343#endif
6344#ifdef __cplusplus
6345}
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006346#endif
6347
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006348int
6349main ()
6350{
6351return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006352 ;
6353 return 0;
6354}
6355_ACEOF
6356rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006358 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006359 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006364 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 (eval $ac_try) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); }; } &&
6371 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006373 (eval $ac_try) 2>&5
6374 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006376 (exit $ac_status); }; }; then
6377 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006378else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006379 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006380sed 's/^/| /' conftest.$ac_ext >&5
6381
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006382eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006383fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006384rm -f conftest.err conftest.$ac_objext \
6385 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006386fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006388echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6389if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006390 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006392_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006393
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006394else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006395
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006396echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006397echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6398if test "${ac_cv_lib_socket_connect+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006400else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006401 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006402LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006403cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006404/* confdefs.h. */
6405_ACEOF
6406cat confdefs.h >>conftest.$ac_ext
6407cat >>conftest.$ac_ext <<_ACEOF
6408/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006409
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006410/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006411#ifdef __cplusplus
6412extern "C"
6413#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006414/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006415 builtin and then its argument prototype would still apply. */
6416char connect ();
6417int
6418main ()
6419{
6420connect ();
6421 ;
6422 return 0;
6423}
6424_ACEOF
6425rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006427 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006428 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006429 grep -v '^ *+' conftest.er1 >conftest.err
6430 rm -f conftest.er1
6431 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006433 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5
6437 ac_status=$?
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; } &&
6440 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006442 (eval $ac_try) 2>&5
6443 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006445 (exit $ac_status); }; }; then
6446 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006447else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006448 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006449sed 's/^/| /' conftest.$ac_ext >&5
6450
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006451ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006452fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006453rm -f conftest.err conftest.$ac_objext \
6454 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006455LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006456fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006457echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006458echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6459if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006460 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006461#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006462_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006463
6464 LIBS="-lsocket $LIBS"
6465
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006466fi
6467
6468fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00006469done
6470
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006471
Alexandre Julliardc5552742002-04-03 20:24:44 +00006472for ac_func in inet_aton
6473do
6474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006475echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6477if eval "test \"\${$as_ac_var+set}\" = set"; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006481/* confdefs.h. */
6482_ACEOF
6483cat confdefs.h >>conftest.$ac_ext
6484cat >>conftest.$ac_ext <<_ACEOF
6485/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6488#define $ac_func innocuous_$ac_func
6489
Alexandre Julliardc5552742002-04-03 20:24:44 +00006490/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006491 which can conflict with char $ac_func (); below.
6492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6493 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006494
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006495#ifdef __STDC__
6496# include <limits.h>
6497#else
6498# include <assert.h>
6499#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006500
6501#undef $ac_func
6502
Alexandre Julliardc5552742002-04-03 20:24:44 +00006503/* Override any gcc2 internal prototype to avoid an error. */
6504#ifdef __cplusplus
6505extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006506{
Alexandre Julliardc5552742002-04-03 20:24:44 +00006507#endif
6508/* We use char because int might match the return type of a gcc2
6509 builtin and then its argument prototype would still apply. */
6510char $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00006511/* The GNU C library defines this for functions which it implements
6512 to always fail with ENOSYS. Some functions are actually named
6513 something starting with __ and the normal name is an alias. */
6514#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6515choke me
6516#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006517char (*f) () = $ac_func;
6518#endif
6519#ifdef __cplusplus
6520}
Alexandre Julliardc5552742002-04-03 20:24:44 +00006521#endif
6522
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006523int
6524main ()
6525{
6526return f != $ac_func;
Alexandre Julliardc5552742002-04-03 20:24:44 +00006527 ;
6528 return 0;
6529}
6530_ACEOF
6531rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006533 (eval $ac_link) 2>conftest.er1
Alexandre Julliardc5552742002-04-03 20:24:44 +00006534 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006535 grep -v '^ *+' conftest.er1 >conftest.err
6536 rm -f conftest.er1
6537 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006539 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 (eval $ac_try) 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; } &&
6546 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006548 (eval $ac_try) 2>&5
6549 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006551 (exit $ac_status); }; }; then
6552 eval "$as_ac_var=yes"
6553else
6554 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006555sed 's/^/| /' conftest.$ac_ext >&5
6556
Alexandre Julliardc5552742002-04-03 20:24:44 +00006557eval "$as_ac_var=no"
6558fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006559rm -f conftest.err conftest.$ac_objext \
6560 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc5552742002-04-03 20:24:44 +00006561fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006563echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6564if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006565 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00006566#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006567_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00006568
6569else
6570
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006571echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006572echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6573if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575else
6576 ac_check_lib_save_LIBS=$LIBS
6577LIBS="-lresolv $LIBS"
6578cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006579/* confdefs.h. */
6580_ACEOF
6581cat confdefs.h >>conftest.$ac_ext
6582cat >>conftest.$ac_ext <<_ACEOF
6583/* end confdefs.h. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00006584
6585/* Override any gcc2 internal prototype to avoid an error. */
6586#ifdef __cplusplus
6587extern "C"
6588#endif
6589/* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6591char inet_aton ();
6592int
6593main ()
6594{
6595inet_aton ();
6596 ;
6597 return 0;
6598}
6599_ACEOF
6600rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006602 (eval $ac_link) 2>conftest.er1
Francois Gouget3b943bc2002-04-01 21:05:15 +00006603 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006608 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; } &&
6615 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006617 (eval $ac_try) 2>&5
6618 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006620 (exit $ac_status); }; }; then
6621 ac_cv_lib_resolv_inet_aton=yes
6622else
6623 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006624sed 's/^/| /' conftest.$ac_ext >&5
6625
Francois Gouget3b943bc2002-04-01 21:05:15 +00006626ac_cv_lib_resolv_inet_aton=no
6627fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006628rm -f conftest.err conftest.$ac_objext \
6629 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3b943bc2002-04-01 21:05:15 +00006630LIBS=$ac_check_lib_save_LIBS
6631fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006632echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006633echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6634if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006635 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00006636#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006637_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00006638
6639 LIBS="-lresolv $LIBS"
6640
6641fi
6642
Alexandre Julliardc5552742002-04-03 20:24:44 +00006643fi
6644done
6645
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006646
6647echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006648echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6649if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006651else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006652 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006653LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006654cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006655/* confdefs.h. */
6656_ACEOF
6657cat confdefs.h >>conftest.$ac_ext
6658cat >>conftest.$ac_ext <<_ACEOF
6659/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006660
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006661/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006662#ifdef __cplusplus
6663extern "C"
6664#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006665/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006666 builtin and then its argument prototype would still apply. */
6667char _xpg4_setrunelocale ();
6668int
6669main ()
6670{
6671_xpg4_setrunelocale ();
6672 ;
6673 return 0;
6674}
6675_ACEOF
6676rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006678 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006679 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006684 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 (eval $ac_try) 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; } &&
6691 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006693 (eval $ac_try) 2>&5
6694 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006696 (exit $ac_status); }; }; then
6697 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006698else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006699 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006700sed 's/^/| /' conftest.$ac_ext >&5
6701
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006702ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006703fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006704rm -f conftest.err conftest.$ac_objext \
6705 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006706LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006707fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006708echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006709echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6710if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006711 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006712#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006713_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006714
6715 LIBS="-lxpg4 $LIBS"
6716
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006717fi
6718
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006719
6720echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6721echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6722if test "${ac_cv_lib_poll_poll+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725 ac_check_lib_save_LIBS=$LIBS
6726LIBS="-lpoll $LIBS"
6727cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006728/* confdefs.h. */
6729_ACEOF
6730cat confdefs.h >>conftest.$ac_ext
6731cat >>conftest.$ac_ext <<_ACEOF
6732/* end confdefs.h. */
6733
6734/* Override any gcc2 internal prototype to avoid an error. */
6735#ifdef __cplusplus
6736extern "C"
6737#endif
6738/* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6740char poll ();
6741int
6742main ()
6743{
6744poll ();
6745 ;
6746 return 0;
6747}
6748_ACEOF
6749rm -f conftest.$ac_objext conftest$ac_exeext
6750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006751 (eval $ac_link) 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006752 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006753 grep -v '^ *+' conftest.er1 >conftest.err
6754 rm -f conftest.er1
6755 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; } &&
6764 { ac_try='test -s conftest$ac_exeext'
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_cv_lib_poll_poll=yes
6771else
6772 echo "$as_me: failed program was:" >&5
6773sed 's/^/| /' conftest.$ac_ext >&5
6774
6775ac_cv_lib_poll_poll=no
6776fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006777rm -f conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006779LIBS=$ac_check_lib_save_LIBS
6780fi
6781echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6782echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6783if test $ac_cv_lib_poll_poll = yes; then
6784 cat >>confdefs.h <<_ACEOF
6785#define HAVE_LIBPOLL 1
6786_ACEOF
6787
6788 LIBS="-lpoll $LIBS"
6789
6790fi
6791
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00006792
6793echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6794echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6795if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797else
6798 ac_check_lib_save_LIBS=$LIBS
6799LIBS="-lresolv $LIBS"
6800cat >conftest.$ac_ext <<_ACEOF
6801/* confdefs.h. */
6802_ACEOF
6803cat confdefs.h >>conftest.$ac_ext
6804cat >>conftest.$ac_ext <<_ACEOF
6805/* end confdefs.h. */
6806
6807/* Override any gcc2 internal prototype to avoid an error. */
6808#ifdef __cplusplus
6809extern "C"
6810#endif
6811/* We use char because int might match the return type of a gcc2
6812 builtin and then its argument prototype would still apply. */
6813char res_9_init ();
6814int
6815main ()
6816{
6817res_9_init ();
6818 ;
6819 return 0;
6820}
6821_ACEOF
6822rm -f conftest.$ac_objext conftest$ac_exeext
6823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6824 (eval $ac_link) 2>conftest.er1
6825 ac_status=$?
6826 grep -v '^ *+' conftest.er1 >conftest.err
6827 rm -f conftest.er1
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } &&
6831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest$ac_exeext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
6843 ac_cv_lib_resolv_res_9_init=yes
6844else
6845 echo "$as_me: failed program was:" >&5
6846sed 's/^/| /' conftest.$ac_ext >&5
6847
6848ac_cv_lib_resolv_res_9_init=no
6849fi
6850rm -f conftest.err conftest.$ac_objext \
6851 conftest$ac_exeext conftest.$ac_ext
6852LIBS=$ac_check_lib_save_LIBS
6853fi
6854echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6855echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6856if test $ac_cv_lib_resolv_res_9_init = yes; then
6857 cat >>confdefs.h <<_ACEOF
6858#define HAVE_LIBRESOLV 1
6859_ACEOF
6860
6861 LIBS="-lresolv $LIBS"
6862
6863fi
6864
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006865echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6866echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6867if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006868 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006869else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006870 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006871LIBS="-lpthread $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006872cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006873/* confdefs.h. */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006878
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006879/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006880#ifdef __cplusplus
6881extern "C"
6882#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006883/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006884 builtin and then its argument prototype would still apply. */
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006885char pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006886int
6887main ()
6888{
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006889pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006890 ;
6891 return 0;
6892}
6893_ACEOF
6894rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006896 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006897 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006902 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; } &&
6909 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006911 (eval $ac_try) 2>&5
6912 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006914 (exit $ac_status); }; }; then
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006915 ac_cv_lib_pthread_pthread_create=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006916else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006917 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006918sed 's/^/| /' conftest.$ac_ext >&5
6919
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006920ac_cv_lib_pthread_pthread_create=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006921fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006922rm -f conftest.err conftest.$ac_objext \
6923 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006924LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006925fi
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006926echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6927echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6928if test $ac_cv_lib_pthread_pthread_create = yes; then
6929 LIBPTHREAD="-lpthread"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006930
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006931fi
6932
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006933
Alexandre Julliard562089b2001-12-31 22:28:35 +00006934
Huw Daviese82dfab2004-08-04 19:10:26 +00006935
6936XFILES=""
6937
6938OPENGLFILES=""
6939
6940GLU32FILES=""
6941
6942OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00006943
Rein Klazes7ff12562004-11-09 20:16:35 +00006944
6945echo "$as_me:$LINENO: checking for ANSI C header files" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006946echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6947if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006948 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00006949else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006950 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006951/* confdefs.h. */
6952_ACEOF
6953cat confdefs.h >>conftest.$ac_ext
6954cat >>conftest.$ac_ext <<_ACEOF
6955/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006956#include <stdlib.h>
6957#include <stdarg.h>
6958#include <string.h>
6959#include <float.h>
6960
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006961int
6962main ()
6963{
6964
6965 ;
6966 return 0;
6967}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006968_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006969rm -f conftest.$ac_objext
6970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006971 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006972 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006977 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 (eval $ac_try) 2>&5
6981 ac_status=$?
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; } &&
6984 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986 (eval $ac_try) 2>&5
6987 ac_status=$?
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006990 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006991else
6992 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006993sed 's/^/| /' conftest.$ac_ext >&5
6994
6995ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00006996fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006998
6999if test $ac_cv_header_stdc = yes; then
7000 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7001 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007002/* confdefs.h. */
7003_ACEOF
7004cat confdefs.h >>conftest.$ac_ext
7005cat >>conftest.$ac_ext <<_ACEOF
7006/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007007#include <string.h>
7008
7009_ACEOF
7010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007011 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007012 :
7013else
7014 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00007015fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007016rm -f conftest*
7017
7018fi
7019
7020if test $ac_cv_header_stdc = yes; then
7021 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7022 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007023/* confdefs.h. */
7024_ACEOF
7025cat confdefs.h >>conftest.$ac_ext
7026cat >>conftest.$ac_ext <<_ACEOF
7027/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007028#include <stdlib.h>
7029
7030_ACEOF
7031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007032 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007033 :
7034else
7035 ac_cv_header_stdc=no
7036fi
7037rm -f conftest*
7038
7039fi
7040
7041if test $ac_cv_header_stdc = yes; then
7042 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7043 if test "$cross_compiling" = yes; then
7044 :
7045else
7046 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007047/* confdefs.h. */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007052#include <ctype.h>
7053#if ((' ' & 0x0FF) == 0x020)
7054# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7055# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7056#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007057# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007058 (('a' <= (c) && (c) <= 'i') \
7059 || ('j' <= (c) && (c) <= 'r') \
7060 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007061# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7062#endif
7063
7064#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7065int
7066main ()
7067{
7068 int i;
7069 for (i = 0; i < 256; i++)
7070 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00007071 || toupper (i) != TOUPPER (i))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007072 exit(2);
7073 exit (0);
7074}
7075_ACEOF
7076rm -f conftest$ac_exeext
7077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 (eval $ac_try) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 :
7088else
7089 echo "$as_me: program exited with status $ac_status" >&5
7090echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007091sed 's/^/| /' conftest.$ac_ext >&5
7092
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007093( exit $ac_status )
7094ac_cv_header_stdc=no
7095fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +00007096rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007097fi
7098fi
7099fi
7100echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7101echo "${ECHO_T}$ac_cv_header_stdc" >&6
7102if test $ac_cv_header_stdc = yes; then
7103
7104cat >>confdefs.h <<\_ACEOF
7105#define STDC_HEADERS 1
7106_ACEOF
7107
7108fi
7109
7110# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007121 inttypes.h stdint.h unistd.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007122do
7123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7124echo "$as_me:$LINENO: checking for $ac_header" >&5
7125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7126if eval "test \"\${$as_ac_Header+set}\" = set"; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128else
7129 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007130/* confdefs.h. */
7131_ACEOF
7132cat confdefs.h >>conftest.$ac_ext
7133cat >>conftest.$ac_ext <<_ACEOF
7134/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007135$ac_includes_default
7136
7137#include <$ac_header>
7138_ACEOF
7139rm -f conftest.$ac_objext
7140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007141 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007142 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 (eval $ac_try) 2>&5
7151 ac_status=$?
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; } &&
7154 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 (eval $ac_try) 2>&5
7157 ac_status=$?
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 eval "$as_ac_Header=yes"
7161else
7162 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007163sed 's/^/| /' conftest.$ac_ext >&5
7164
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007165eval "$as_ac_Header=no"
7166fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007168fi
7169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7171if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007172 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007174_ACEOF
7175
7176fi
7177
7178done
7179
7180
7181
Rein Klazes7ff12562004-11-09 20:16:35 +00007182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
Steven Edwards57279182005-03-04 12:38:36 +00007264
Rein Klazes7ff12562004-11-09 20:16:35 +00007265for ac_header in \
7266 arpa/inet.h \
7267 arpa/nameser.h \
7268 cups/cups.h \
7269 direct.h \
7270 elf.h \
7271 float.h \
7272 fontconfig/fontconfig.h \
7273 getopt.h \
7274 gif_lib.h \
7275 ieeefp.h \
7276 io.h \
7277 jack/jack.h \
7278 jpeglib.h \
Kevin Koltzaua2bbacb2004-11-23 17:33:55 +00007279 lcms/lcms.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007280 lcms.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007281 link.h \
7282 linux/cdrom.h \
7283 linux/compiler.h \
7284 linux/hdreg.h \
7285 linux/input.h \
7286 linux/ioctl.h \
7287 linux/joystick.h \
7288 linux/major.h \
7289 linux/param.h \
7290 linux/serial.h \
7291 linux/ucdrom.h \
7292 machine/cpu.h \
7293 mntent.h \
7294 netdb.h \
7295 netinet/in.h \
7296 netinet/in_systm.h \
7297 netinet/tcp.h \
7298 netinet/tcp_fsm.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007299 openssl/ssl.h \
Steven Edwards57279182005-03-04 12:38:36 +00007300 poll.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007301 process.h \
7302 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007303 pwd.h \
7304 regex.h \
7305 sched.h \
7306 scsi/sg.h \
7307 scsi/scsi.h \
7308 scsi/scsi_ioctl.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007309 stdint.h \
7310 strings.h \
7311 sys/cdio.h \
7312 sys/elf32.h \
7313 sys/errno.h \
7314 sys/epoll.h \
7315 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007316 sys/filio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007317 sys/ioctl.h \
7318 sys/ipc.h \
7319 sys/link.h \
7320 sys/lwp.h \
7321 sys/mman.h \
7322 sys/modem.h \
7323 sys/msg.h \
7324 sys/param.h \
7325 sys/poll.h \
7326 sys/ptrace.h \
7327 sys/reg.h \
7328 sys/scsiio.h \
7329 sys/shm.h \
7330 sys/signal.h \
7331 sys/socket.h \
7332 sys/sockio.h \
7333 sys/statfs.h \
7334 sys/statvfs.h \
7335 sys/strtio.h \
7336 sys/syscall.h \
7337 sys/sysctl.h \
7338 sys/time.h \
7339 sys/times.h \
7340 sys/uio.h \
7341 sys/un.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007342 sys/vfs.h \
7343 sys/vm86.h \
7344 sys/wait.h \
7345 syscall.h \
7346 termios.h \
7347 unistd.h \
7348 utime.h \
7349 valgrind/memcheck.h
7350
7351do
7352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7353if eval "test \"\${$as_ac_Header+set}\" = set"; then
7354 echo "$as_me:$LINENO: checking for $ac_header" >&5
7355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7356if eval "test \"\${$as_ac_Header+set}\" = set"; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358fi
7359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7361else
7362 # Is the header compilable?
7363echo "$as_me:$LINENO: checking $ac_header usability" >&5
7364echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7365cat >conftest.$ac_ext <<_ACEOF
7366/* confdefs.h. */
7367_ACEOF
7368cat confdefs.h >>conftest.$ac_ext
7369cat >>conftest.$ac_ext <<_ACEOF
7370/* end confdefs.h. */
7371$ac_includes_default
7372#include <$ac_header>
7373_ACEOF
7374rm -f conftest.$ac_objext
7375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>conftest.er1
7377 ac_status=$?
7378 grep -v '^ *+' conftest.er1 >conftest.err
7379 rm -f conftest.er1
7380 cat conftest.err >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
7383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 (eval $ac_try) 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; } &&
7389 { ac_try='test -s conftest.$ac_objext'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 (eval $ac_try) 2>&5
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7395 ac_header_compiler=yes
7396else
7397 echo "$as_me: failed program was:" >&5
7398sed 's/^/| /' conftest.$ac_ext >&5
7399
7400ac_header_compiler=no
7401fi
7402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7403echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7404echo "${ECHO_T}$ac_header_compiler" >&6
7405
7406# Is the header present?
7407echo "$as_me:$LINENO: checking $ac_header presence" >&5
7408echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7409cat >conftest.$ac_ext <<_ACEOF
7410/* confdefs.h. */
7411_ACEOF
7412cat confdefs.h >>conftest.$ac_ext
7413cat >>conftest.$ac_ext <<_ACEOF
7414/* end confdefs.h. */
7415#include <$ac_header>
7416_ACEOF
7417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } >/dev/null; then
7425 if test -s conftest.err; then
7426 ac_cpp_err=$ac_c_preproc_warn_flag
7427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7428 else
7429 ac_cpp_err=
7430 fi
7431else
7432 ac_cpp_err=yes
7433fi
7434if test -z "$ac_cpp_err"; then
7435 ac_header_preproc=yes
7436else
7437 echo "$as_me: failed program was:" >&5
7438sed 's/^/| /' conftest.$ac_ext >&5
7439
7440 ac_header_preproc=no
7441fi
7442rm -f conftest.err conftest.$ac_ext
7443echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7444echo "${ECHO_T}$ac_header_preproc" >&6
7445
7446# So? What about this header?
7447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7448 yes:no: )
7449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7450echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7452echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7453 ac_header_preproc=yes
7454 ;;
7455 no:yes:* )
7456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7457echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7459echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7461echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7463echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7467echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7468 (
7469 cat <<\_ASBOX
7470## ------------------------------------ ##
7471## Report this to wine-devel@winehq.org ##
7472## ------------------------------------ ##
7473_ASBOX
7474 ) |
7475 sed "s/^/$as_me: WARNING: /" >&2
7476 ;;
7477esac
7478echo "$as_me:$LINENO: checking for $ac_header" >&5
7479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7480if eval "test \"\${$as_ac_Header+set}\" = set"; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482else
7483 eval "$as_ac_Header=\$ac_header_preproc"
7484fi
7485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7487
7488fi
7489if test `eval echo '${'$as_ac_Header'}'` = yes; then
7490 cat >>confdefs.h <<_ACEOF
7491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7492_ACEOF
7493
7494fi
7495
7496done
7497
7498echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7499echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7500if test "${ac_cv_header_stat_broken+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502else
7503 cat >conftest.$ac_ext <<_ACEOF
7504/* confdefs.h. */
7505_ACEOF
7506cat confdefs.h >>conftest.$ac_ext
7507cat >>conftest.$ac_ext <<_ACEOF
7508/* end confdefs.h. */
7509#include <sys/types.h>
7510#include <sys/stat.h>
7511
7512#if defined(S_ISBLK) && defined(S_IFDIR)
7513# if S_ISBLK (S_IFDIR)
7514You lose.
7515# endif
7516#endif
7517
7518#if defined(S_ISBLK) && defined(S_IFCHR)
7519# if S_ISBLK (S_IFCHR)
7520You lose.
7521# endif
7522#endif
7523
7524#if defined(S_ISLNK) && defined(S_IFREG)
7525# if S_ISLNK (S_IFREG)
7526You lose.
7527# endif
7528#endif
7529
7530#if defined(S_ISSOCK) && defined(S_IFREG)
7531# if S_ISSOCK (S_IFREG)
7532You lose.
7533# endif
7534#endif
7535
7536_ACEOF
7537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7538 $EGREP "You lose" >/dev/null 2>&1; then
7539 ac_cv_header_stat_broken=yes
7540else
7541 ac_cv_header_stat_broken=no
7542fi
7543rm -f conftest*
7544
7545fi
7546echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7547echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7548if test $ac_cv_header_stat_broken = yes; then
7549
7550cat >>confdefs.h <<\_ACEOF
7551#define STAT_MACROS_BROKEN 1
7552_ACEOF
7553
7554fi
7555
7556
7557
7558if test "$have_x" = "yes"
7559then
7560 XLIB="-lXext -lX11"
7561 ac_save_CPPFLAGS="$CPPFLAGS"
7562 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7563
7564
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007565for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007566do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007568if eval "test \"\${$as_ac_Header+set}\" = set"; then
7569 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7571if eval "test \"\${$as_ac_Header+set}\" = set"; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007573fi
7574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007576else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007577 # Is the header compilable?
7578echo "$as_me:$LINENO: checking $ac_header usability" >&5
7579echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7580cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007581/* confdefs.h. */
7582_ACEOF
7583cat confdefs.h >>conftest.$ac_ext
7584cat >>conftest.$ac_ext <<_ACEOF
7585/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007586$ac_includes_default
7587#include <$ac_header>
7588_ACEOF
7589rm -f conftest.$ac_objext
7590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007591 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007592 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007593 grep -v '^ *+' conftest.er1 >conftest.err
7594 rm -f conftest.er1
7595 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; } &&
7604 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606 (eval $ac_try) 2>&5
7607 ac_status=$?
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); }; }; then
7610 ac_header_compiler=yes
7611else
7612 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007613sed 's/^/| /' conftest.$ac_ext >&5
7614
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007615ac_header_compiler=no
7616fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007618echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7619echo "${ECHO_T}$ac_header_compiler" >&6
7620
7621# Is the header present?
7622echo "$as_me:$LINENO: checking $ac_header presence" >&5
7623echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7624cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007625/* confdefs.h. */
7626_ACEOF
7627cat confdefs.h >>conftest.$ac_ext
7628cat >>conftest.$ac_ext <<_ACEOF
7629/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007630#include <$ac_header>
7631_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7634 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007635 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007636 rm -f conftest.er1
7637 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007639 (exit $ac_status); } >/dev/null; then
7640 if test -s conftest.err; then
7641 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00007642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007643 else
7644 ac_cpp_err=
7645 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007646else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007647 ac_cpp_err=yes
7648fi
7649if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007650 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007651else
7652 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007653sed 's/^/| /' conftest.$ac_ext >&5
7654
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007655 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007656fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007657rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7659echo "${ECHO_T}$ac_header_preproc" >&6
7660
7661# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7663 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7665echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7667echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7668 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007669 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00007670 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7672echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7674echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7676echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7678echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007680echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7682echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007683 (
7684 cat <<\_ASBOX
7685## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00007686## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007687## ------------------------------------ ##
7688_ASBOX
7689 ) |
7690 sed "s/^/$as_me: WARNING: /" >&2
7691 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007692esac
7693echo "$as_me:$LINENO: checking for $ac_header" >&5
7694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7695if eval "test \"\${$as_ac_Header+set}\" = set"; then
7696 echo $ECHO_N "(cached) $ECHO_C" >&6
7697else
Alexandre Julliard875927f2004-01-02 01:55:29 +00007698 eval "$as_ac_Header=\$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007699fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007702
7703fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007704if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007705 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007707_ACEOF
7708
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007709
Alexandre Julliard255b4862003-10-15 04:09:55 +00007710
7711
7712
7713
7714
7715
7716
7717
7718for ac_header in X11/XKBlib.h \
7719 X11/Xutil.h \
7720 X11/extensions/shape.h \
Aric Stewart2eebf3c2004-01-09 00:03:00 +00007721 X11/extensions/XInput.h \
Alexandre Julliard255b4862003-10-15 04:09:55 +00007722 X11/extensions/XShm.h \
7723 X11/extensions/Xrandr.h \
7724 X11/extensions/Xrender.h \
Alexandre Julliard255b4862003-10-15 04:09:55 +00007725 X11/extensions/xf86dga.h \
7726 X11/extensions/xf86vmode.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007727do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007729echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7731if eval "test \"\${$as_ac_Header+set}\" = set"; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007733else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007734 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007735/* confdefs.h. */
7736_ACEOF
7737cat confdefs.h >>conftest.$ac_ext
7738cat >>conftest.$ac_ext <<_ACEOF
7739/* end confdefs.h. */
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007740#include <X11/Xlib.h>
Alexandre Julliard255b4862003-10-15 04:09:55 +00007741 #ifdef HAVE_X11_XUTIL_H
7742 # include <X11/Xutil.h>
7743 #endif
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007744
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007745#include <$ac_header>
7746_ACEOF
7747rm -f conftest.$ac_objext
7748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007749 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007750 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; } &&
7762 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007768 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007769else
7770 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007771sed 's/^/| /' conftest.$ac_ext >&5
7772
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007773eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007774fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007776fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7779if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007780 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007781#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007782_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00007783
7784fi
7785
7786done
7787
7788
7789 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7790 then
7791 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007792echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7793if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007795else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007796 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00007797LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007798cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007799/* confdefs.h. */
7800_ACEOF
7801cat confdefs.h >>conftest.$ac_ext
7802cat >>conftest.$ac_ext <<_ACEOF
7803/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007804
Patrik Stridvall24110281999-02-04 10:09:54 +00007805/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007806#ifdef __cplusplus
7807extern "C"
7808#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007809/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007810 builtin and then its argument prototype would still apply. */
7811char XkbQueryExtension ();
7812int
7813main ()
7814{
7815XkbQueryExtension ();
7816 ;
7817 return 0;
7818}
7819_ACEOF
7820rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007822 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007823 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007824 grep -v '^ *+' conftest.er1 >conftest.err
7825 rm -f conftest.er1
7826 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007828 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; } &&
7835 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007837 (eval $ac_try) 2>&5
7838 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007840 (exit $ac_status); }; }; then
7841 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007842else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007843 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007844sed 's/^/| /' conftest.$ac_ext >&5
7845
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007846ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007847fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007848rm -f conftest.err conftest.$ac_objext \
7849 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007850LIBS=$ac_check_lib_save_LIBS
7851fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007852echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007853echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7854if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007855
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007856cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007857#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007858_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007859
Patrik Stridvall24110281999-02-04 10:09:54 +00007860fi
7861
Alexandre Julliard255b4862003-10-15 04:09:55 +00007862 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007863
Alexandre Julliard255b4862003-10-15 04:09:55 +00007864 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7865 then
7866 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007867echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7868if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00007870else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007871 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00007872LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007873cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007874/* confdefs.h. */
7875_ACEOF
7876cat confdefs.h >>conftest.$ac_ext
7877cat >>conftest.$ac_ext <<_ACEOF
7878/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007879
Francois Jacques5b6879c2000-07-28 23:04:54 +00007880/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007881#ifdef __cplusplus
7882extern "C"
7883#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00007884/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007885 builtin and then its argument prototype would still apply. */
7886char XShmQueryExtension ();
7887int
7888main ()
7889{
7890XShmQueryExtension ();
7891 ;
7892 return 0;
7893}
7894_ACEOF
7895rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007897 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007898 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007899 grep -v '^ *+' conftest.er1 >conftest.err
7900 rm -f conftest.er1
7901 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007903 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; } &&
7910 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007912 (eval $ac_try) 2>&5
7913 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007915 (exit $ac_status); }; }; then
7916 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00007917else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007918 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007919sed 's/^/| /' conftest.$ac_ext >&5
7920
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007921ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00007922fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007923rm -f conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007925LIBS=$ac_check_lib_save_LIBS
7926fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007927echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007928echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7929if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00007930
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007931cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007932#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007933_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00007934
Francois Jacques5b6879c2000-07-28 23:04:54 +00007935fi
7936
Alexandre Julliard255b4862003-10-15 04:09:55 +00007937 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007938
Alexandre Julliard255b4862003-10-15 04:09:55 +00007939 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7940 then
7941 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007942echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7943if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00007945else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007946 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00007947LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007948cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007949/* confdefs.h. */
7950_ACEOF
7951cat confdefs.h >>conftest.$ac_ext
7952cat >>conftest.$ac_ext <<_ACEOF
7953/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007954
Ove Kaavenc90fb252001-01-02 22:39:14 +00007955/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007956#ifdef __cplusplus
7957extern "C"
7958#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00007959/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007960 builtin and then its argument prototype would still apply. */
7961char XShapeQueryExtension ();
7962int
7963main ()
7964{
7965XShapeQueryExtension ();
7966 ;
7967 return 0;
7968}
7969_ACEOF
7970rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007972 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007973 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007974 grep -v '^ *+' conftest.er1 >conftest.err
7975 rm -f conftest.er1
7976 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007978 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 (eval $ac_try) 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; } &&
7985 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007987 (eval $ac_try) 2>&5
7988 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007990 (exit $ac_status); }; }; then
7991 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00007992else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007993 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007994sed 's/^/| /' conftest.$ac_ext >&5
7995
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007996ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00007997fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007998rm -f conftest.err conftest.$ac_objext \
7999 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008000LIBS=$ac_check_lib_save_LIBS
8001fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008002echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008003echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8004if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00008005
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008006cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00008007#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008008_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00008009
Ove Kaavenc90fb252001-01-02 22:39:14 +00008010fi
8011
Alexandre Julliard255b4862003-10-15 04:09:55 +00008012 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008013
Alexandre Julliard255b4862003-10-15 04:09:55 +00008014 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8015 then
8016 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008017echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8018if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008020else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008021 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00008022LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008023cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008024/* confdefs.h. */
8025_ACEOF
8026cat confdefs.h >>conftest.$ac_ext
8027cat >>conftest.$ac_ext <<_ACEOF
8028/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008029
Patrik Stridvall24110281999-02-04 10:09:54 +00008030/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008031#ifdef __cplusplus
8032extern "C"
8033#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00008034/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008035 builtin and then its argument prototype would still apply. */
8036char XDGAQueryExtension ();
8037int
8038main ()
8039{
8040XDGAQueryExtension ();
8041 ;
8042 return 0;
8043}
8044_ACEOF
8045rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008047 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008048 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008049 grep -v '^ *+' conftest.er1 >conftest.err
8050 rm -f conftest.er1
8051 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008053 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; } &&
8060 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008062 (eval $ac_try) 2>&5
8063 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008065 (exit $ac_status); }; }; then
8066 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008067else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008068 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008069sed 's/^/| /' conftest.$ac_ext >&5
8070
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008071ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008072fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008073rm -f conftest.err conftest.$ac_objext \
8074 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008075LIBS=$ac_check_lib_save_LIBS
8076fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008077echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008078echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8079if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008080
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008081cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008082#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008083_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00008084
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008085 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008086
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008087fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008088
Alexandre Julliard255b4862003-10-15 04:09:55 +00008089 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008090
Alexandre Julliard255b4862003-10-15 04:09:55 +00008091 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8092 then
8093 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008094echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8095if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008097else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008098 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00008099LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008100cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008101/* confdefs.h. */
8102_ACEOF
8103cat confdefs.h >>conftest.$ac_ext
8104cat >>conftest.$ac_ext <<_ACEOF
8105/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008106
Patrik Stridvall24110281999-02-04 10:09:54 +00008107/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008108#ifdef __cplusplus
8109extern "C"
8110#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00008111/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008112 builtin and then its argument prototype would still apply. */
8113char XF86VidModeQueryExtension ();
8114int
8115main ()
8116{
8117XF86VidModeQueryExtension ();
8118 ;
8119 return 0;
8120}
8121_ACEOF
8122rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008124 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008125 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008130 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 (eval $ac_try) 2>&5
8134 ac_status=$?
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); }; } &&
8137 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008139 (eval $ac_try) 2>&5
8140 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008142 (exit $ac_status); }; }; then
8143 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008144else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008145 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008146sed 's/^/| /' conftest.$ac_ext >&5
8147
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008148ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008149fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008150rm -f conftest.err conftest.$ac_objext \
8151 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008152LIBS=$ac_check_lib_save_LIBS
8153fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008154echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008155echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8156if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00008157
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008158cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00008159#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008160_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008161
8162 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008163
Patrik Stridvall24110281999-02-04 10:09:54 +00008164fi
8165
Alexandre Julliard255b4862003-10-15 04:09:55 +00008166 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008167
Alexandre Julliard255b4862003-10-15 04:09:55 +00008168 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8169 then
Mike McCormackc7c9f932004-04-07 03:57:35 +00008170 cat >conftest.$ac_ext <<_ACEOF
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008171/* confdefs.h. */
8172_ACEOF
8173cat confdefs.h >>conftest.$ac_ext
8174cat >>conftest.$ac_ext <<_ACEOF
8175/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008176#include <X11/Xlib.h>
8177#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008178int
8179main ()
8180{
Mike McCormackc7c9f932004-04-07 03:57:35 +00008181static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008182 ;
8183 return 0;
8184}
8185_ACEOF
Mike McCormackc7c9f932004-04-07 03:57:35 +00008186rm -f conftest.$ac_objext
8187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8188 (eval $ac_compile) 2>conftest.er1
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008189 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 (eval $ac_try) 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; } &&
Mike McCormackc7c9f932004-04-07 03:57:35 +00008201 { ac_try='test -s conftest.$ac_objext'
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203 (eval $ac_try) 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008207
8208cat >>confdefs.h <<\_ACEOF
8209#define HAVE_LIBXRANDR 1
8210_ACEOF
8211
Mike McCormackc7c9f932004-04-07 03:57:35 +00008212else
8213 echo "$as_me: failed program was:" >&5
8214sed 's/^/| /' conftest.$ac_ext >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008215
8216fi
Mike McCormackc7c9f932004-04-07 03:57:35 +00008217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008218 fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008219
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00008220 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8221 then
8222 echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8223echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6
8224if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226else
8227 ac_check_lib_save_LIBS=$LIBS
8228LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8229cat >conftest.$ac_ext <<_ACEOF
8230/* confdefs.h. */
8231_ACEOF
8232cat confdefs.h >>conftest.$ac_ext
8233cat >>conftest.$ac_ext <<_ACEOF
8234/* end confdefs.h. */
8235
8236/* Override any gcc2 internal prototype to avoid an error. */
8237#ifdef __cplusplus
8238extern "C"
8239#endif
8240/* We use char because int might match the return type of a gcc2
8241 builtin and then its argument prototype would still apply. */
8242char XRenderSetPictureTransform ();
8243int
8244main ()
8245{
8246XRenderSetPictureTransform ();
8247 ;
8248 return 0;
8249}
8250_ACEOF
8251rm -f conftest.$ac_objext conftest$ac_exeext
8252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>conftest.er1
8254 ac_status=$?
8255 grep -v '^ *+' conftest.er1 >conftest.err
8256 rm -f conftest.er1
8257 cat conftest.err >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } &&
8260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; } &&
8266 { ac_try='test -s conftest$ac_exeext'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268 (eval $ac_try) 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8273else
8274 echo "$as_me: failed program was:" >&5
8275sed 's/^/| /' conftest.$ac_ext >&5
8276
8277ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8278fi
8279rm -f conftest.err conftest.$ac_objext \
8280 conftest$ac_exeext conftest.$ac_ext
8281LIBS=$ac_check_lib_save_LIBS
8282fi
8283echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8284echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6
8285if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8286
8287cat >>confdefs.h <<\_ACEOF
8288#define HAVE_XRENDERSETPICTURETRANSFORM 1
8289_ACEOF
8290
8291fi
8292
8293 fi
8294
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008295
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008296fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008297
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008298done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008299
Alexandre Julliardb8074992002-11-21 21:51:24 +00008300 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008301 then
Francois Gouget42dcd972002-01-29 17:52:28 +00008302 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008303 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008304 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008305This prevents linking to OpenGL. Delete the file and restart configure." >&5
8306echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8307This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8308 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008309 fi
8310
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008311
8312
8313for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008314do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008316if eval "test \"\${$as_ac_Header+set}\" = set"; then
8317 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8319if eval "test \"\${$as_ac_Header+set}\" = set"; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008321fi
8322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8323echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008324else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008325 # Is the header compilable?
8326echo "$as_me:$LINENO: checking $ac_header usability" >&5
8327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8328cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008329/* confdefs.h. */
8330_ACEOF
8331cat confdefs.h >>conftest.$ac_ext
8332cat >>conftest.$ac_ext <<_ACEOF
8333/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008334$ac_includes_default
8335#include <$ac_header>
8336_ACEOF
8337rm -f conftest.$ac_objext
8338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008339 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008340 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008341 grep -v '^ *+' conftest.er1 >conftest.err
8342 rm -f conftest.er1
8343 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 (eval $ac_try) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_header_compiler=yes
8359else
8360 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008361sed 's/^/| /' conftest.$ac_ext >&5
8362
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008363ac_header_compiler=no
8364fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008366echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8367echo "${ECHO_T}$ac_header_compiler" >&6
8368
8369# Is the header present?
8370echo "$as_me:$LINENO: checking $ac_header presence" >&5
8371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8372cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008373/* confdefs.h. */
8374_ACEOF
8375cat confdefs.h >>conftest.$ac_ext
8376cat >>conftest.$ac_ext <<_ACEOF
8377/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008378#include <$ac_header>
8379_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8382 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008383 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008384 rm -f conftest.er1
8385 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008387 (exit $ac_status); } >/dev/null; then
8388 if test -s conftest.err; then
8389 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00008390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008391 else
8392 ac_cpp_err=
8393 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008394else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008395 ac_cpp_err=yes
8396fi
8397if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008398 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008399else
8400 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008401sed 's/^/| /' conftest.$ac_ext >&5
8402
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008403 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008404fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008405rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008406echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8407echo "${ECHO_T}$ac_header_preproc" >&6
8408
8409# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8411 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8413echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8415echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8416 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008417 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00008418 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8422echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8424echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8426echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008428echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8430echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008431 (
8432 cat <<\_ASBOX
8433## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00008434## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008435## ------------------------------------ ##
8436_ASBOX
8437 ) |
8438 sed "s/^/$as_me: WARNING: /" >&2
8439 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008440esac
8441echo "$as_me:$LINENO: checking for $ac_header" >&5
8442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8443if eval "test \"\${$as_ac_Header+set}\" = set"; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8445else
Alexandre Julliard875927f2004-01-02 01:55:29 +00008446 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00008447fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008450
Patrik Stridvall24110281999-02-04 10:09:54 +00008451fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008452if test `eval echo '${'$as_ac_Header'}'` = yes; then
8453 cat >>confdefs.h <<_ACEOF
8454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8455_ACEOF
8456
8457fi
8458
Patrik Stridvall24110281999-02-04 10:09:54 +00008459done
8460
Marcus Meissner22a969b2000-08-08 20:46:50 +00008461 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008462 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008463
8464for ac_header in GL/glext.h
8465do
8466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8467echo "$as_me:$LINENO: checking for $ac_header" >&5
8468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8469if eval "test \"\${$as_ac_Header+set}\" = set"; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8471else
8472 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008473/* confdefs.h. */
8474_ACEOF
8475cat confdefs.h >>conftest.$ac_ext
8476cat >>conftest.$ac_ext <<_ACEOF
8477/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008478#include <GL/glx.h>
8479
8480#include <$ac_header>
8481_ACEOF
8482rm -f conftest.$ac_objext
8483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008484 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008485 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8493 (eval $ac_try) 2>&5
8494 ac_status=$?
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; } &&
8497 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 eval "$as_ac_Header=yes"
8504else
8505 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008506sed 's/^/| /' conftest.$ac_ext >&5
8507
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008508eval "$as_ac_Header=no"
8509fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008511fi
8512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8514if test `eval echo '${'$as_ac_Header'}'` = yes; then
8515 cat >>confdefs.h <<_ACEOF
8516#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8517_ACEOF
8518
8519fi
8520
8521done
8522
8523 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008524echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8525if test "${wine_cv_opengl_version_OK+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008527else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008528 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008529/* confdefs.h. */
8530_ACEOF
8531cat confdefs.h >>conftest.$ac_ext
8532cat >>conftest.$ac_ext <<_ACEOF
8533/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008534#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008535int
8536main ()
8537{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008538GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008539 ;
8540 return 0;
8541}
8542_ACEOF
8543rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008545 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008546 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008547 grep -v '^ *+' conftest.er1 >conftest.err
8548 rm -f conftest.er1
8549 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008551 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554 (eval $ac_try) 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; } &&
8558 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008560 (eval $ac_try) 2>&5
8561 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008563 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008564 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008565else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008566 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008567sed 's/^/| /' conftest.$ac_ext >&5
8568
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008569wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008570
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008571fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00008573
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008574fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008575echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008576echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8577
Alexandre Julliardb8074992002-11-21 21:51:24 +00008578 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008579 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008580 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008581echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8582if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008584else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008585 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00008586LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008587cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008588/* confdefs.h. */
8589_ACEOF
8590cat confdefs.h >>conftest.$ac_ext
8591cat >>conftest.$ac_ext <<_ACEOF
8592/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008593
Patrik Stridvall24110281999-02-04 10:09:54 +00008594/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008595#ifdef __cplusplus
8596extern "C"
8597#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00008598/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008599 builtin and then its argument prototype would still apply. */
8600char glXCreateContext ();
8601int
8602main ()
8603{
8604glXCreateContext ();
8605 ;
8606 return 0;
8607}
8608_ACEOF
8609rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008611 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008612 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008613 grep -v '^ *+' conftest.er1 >conftest.err
8614 rm -f conftest.er1
8615 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008617 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008626 (eval $ac_try) 2>&5
8627 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008629 (exit $ac_status); }; }; then
8630 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008631else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008632 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008633sed 's/^/| /' conftest.$ac_ext >&5
8634
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008635ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008636fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008637rm -f conftest.err conftest.$ac_objext \
8638 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008639LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008640fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008641echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008642echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8643if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008644 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00008645
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008646fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008647
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008648
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008649 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008650 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008651 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008652
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008653cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008654#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008655_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008656
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008657 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008658 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008659echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8660if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008662else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008663 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008664LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008665 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008666cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008667/* confdefs.h. */
8668_ACEOF
8669cat confdefs.h >>conftest.$ac_ext
8670cat >>conftest.$ac_ext <<_ACEOF
8671/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008672
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008673/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008674#ifdef __cplusplus
8675extern "C"
8676#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008677/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008678 builtin and then its argument prototype would still apply. */
8679char gluLookAt ();
8680int
8681main ()
8682{
8683gluLookAt ();
8684 ;
8685 return 0;
8686}
8687_ACEOF
8688rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008690 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008691 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008696 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699 (eval $ac_try) 2>&5
8700 ac_status=$?
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; } &&
8703 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008705 (eval $ac_try) 2>&5
8706 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008708 (exit $ac_status); }; }; then
8709 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008710else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008711 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008712sed 's/^/| /' conftest.$ac_ext >&5
8713
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008714ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008715fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008716rm -f conftest.err conftest.$ac_objext \
8717 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008718LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008719fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008720echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008721echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8722if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008723 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008724 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008725
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008726fi
8727
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008728 fi
Jacek Cabanef799c42003-12-02 04:11:09 +00008729
8730 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8731echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8732if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8734else
8735 ac_check_lib_save_LIBS=$LIBS
Jacek Caban5e69f112003-12-03 20:26:43 +00008736LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
Jacek Cabanef799c42003-12-02 04:11:09 +00008737cat >conftest.$ac_ext <<_ACEOF
Jacek Cabanef799c42003-12-02 04:11:09 +00008738/* confdefs.h. */
8739_ACEOF
8740cat confdefs.h >>conftest.$ac_ext
8741cat >>conftest.$ac_ext <<_ACEOF
8742/* end confdefs.h. */
8743
8744/* Override any gcc2 internal prototype to avoid an error. */
8745#ifdef __cplusplus
8746extern "C"
8747#endif
8748/* We use char because int might match the return type of a gcc2
8749 builtin and then its argument prototype would still apply. */
8750char glutMainLoop ();
8751int
8752main ()
8753{
8754glutMainLoop ();
8755 ;
8756 return 0;
8757}
8758_ACEOF
8759rm -f conftest.$ac_objext conftest$ac_exeext
8760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008761 (eval $ac_link) 2>conftest.er1
Jacek Cabanef799c42003-12-02 04:11:09 +00008762 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
Jacek Cabanef799c42003-12-02 04:11:09 +00008766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770 (eval $ac_try) 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; } &&
8774 { ac_try='test -s conftest$ac_exeext'
Jacek Cabanef799c42003-12-02 04:11:09 +00008775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 (eval $ac_try) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 ac_cv_lib_glut_glutMainLoop=yes
8781else
8782 echo "$as_me: failed program was:" >&5
8783sed 's/^/| /' conftest.$ac_ext >&5
8784
8785ac_cv_lib_glut_glutMainLoop=no
8786fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008787rm -f conftest.err conftest.$ac_objext \
8788 conftest$ac_exeext conftest.$ac_ext
Jacek Cabanef799c42003-12-02 04:11:09 +00008789LIBS=$ac_check_lib_save_LIBS
8790fi
8791echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8792echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8793if test $ac_cv_lib_glut_glutMainLoop = yes; then
Jacek Caban5e69f112003-12-03 20:26:43 +00008794 GLUT_LIBS="-lglut -lXmu -lXi"
Jacek Cabanef799c42003-12-02 04:11:09 +00008795
8796 GLUT32FILES='$(GLUT32FILES)'
8797
8798fi
8799
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008800 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008801 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008802
Francois Gouget6f670b12002-10-10 17:54:27 +00008803 NASLIBS=""
8804
8805
8806for ac_header in audio/audiolib.h
8807do
8808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8809if eval "test \"\${$as_ac_Header+set}\" = set"; then
8810 echo "$as_me:$LINENO: checking for $ac_header" >&5
8811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8812if eval "test \"\${$as_ac_Header+set}\" = set"; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8814fi
8815echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8816echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8817else
8818 # Is the header compilable?
8819echo "$as_me:$LINENO: checking $ac_header usability" >&5
8820echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8821cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008822/* confdefs.h. */
8823_ACEOF
8824cat confdefs.h >>conftest.$ac_ext
8825cat >>conftest.$ac_ext <<_ACEOF
8826/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008827$ac_includes_default
8828#include <$ac_header>
8829_ACEOF
8830rm -f conftest.$ac_objext
8831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008832 (eval $ac_compile) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00008833 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00008837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8841 (eval $ac_try) 2>&5
8842 ac_status=$?
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; } &&
8845 { ac_try='test -s conftest.$ac_objext'
Francois Gouget6f670b12002-10-10 17:54:27 +00008846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 (eval $ac_try) 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 ac_header_compiler=yes
8852else
8853 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008854sed 's/^/| /' conftest.$ac_ext >&5
8855
Francois Gouget6f670b12002-10-10 17:54:27 +00008856ac_header_compiler=no
8857fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008859echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8860echo "${ECHO_T}$ac_header_compiler" >&6
8861
8862# Is the header present?
8863echo "$as_me:$LINENO: checking $ac_header presence" >&5
8864echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8865cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008866/* confdefs.h. */
8867_ACEOF
8868cat confdefs.h >>conftest.$ac_ext
8869cat >>conftest.$ac_ext <<_ACEOF
8870/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008871#include <$ac_header>
8872_ACEOF
8873if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8874 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8875 ac_status=$?
8876 grep -v '^ *+' conftest.er1 >conftest.err
8877 rm -f conftest.er1
8878 cat conftest.err >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } >/dev/null; then
8881 if test -s conftest.err; then
8882 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00008883 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Francois Gouget6f670b12002-10-10 17:54:27 +00008884 else
8885 ac_cpp_err=
8886 fi
8887else
8888 ac_cpp_err=yes
8889fi
8890if test -z "$ac_cpp_err"; then
8891 ac_header_preproc=yes
8892else
8893 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008894sed 's/^/| /' conftest.$ac_ext >&5
8895
Francois Gouget6f670b12002-10-10 17:54:27 +00008896 ac_header_preproc=no
8897fi
8898rm -f conftest.err conftest.$ac_ext
8899echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8900echo "${ECHO_T}$ac_header_preproc" >&6
8901
8902# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8904 yes:no: )
Francois Gouget6f670b12002-10-10 17:54:27 +00008905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8906echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8908echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8909 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008910 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00008911 no:yes:* )
Francois Gouget6f670b12002-10-10 17:54:27 +00008912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8913echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8915echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8917echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8919echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Francois Gouget6f670b12002-10-10 17:54:27 +00008920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008921echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8923echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008924 (
8925 cat <<\_ASBOX
8926## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00008927## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008928## ------------------------------------ ##
8929_ASBOX
8930 ) |
8931 sed "s/^/$as_me: WARNING: /" >&2
8932 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00008933esac
8934echo "$as_me:$LINENO: checking for $ac_header" >&5
8935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8936if eval "test \"\${$as_ac_Header+set}\" = set"; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938else
Alexandre Julliard875927f2004-01-02 01:55:29 +00008939 eval "$as_ac_Header=\$ac_header_preproc"
Francois Gouget6f670b12002-10-10 17:54:27 +00008940fi
8941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8943
8944fi
8945if test `eval echo '${'$as_ac_Header'}'` = yes; then
8946 cat >>confdefs.h <<_ACEOF
8947#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8948_ACEOF
8949
8950for ac_header in audio/soundlib.h
8951do
8952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8953echo "$as_me:$LINENO: checking for $ac_header" >&5
8954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8955if eval "test \"\${$as_ac_Header+set}\" = set"; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8957else
8958 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008959/* confdefs.h. */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008964#include <audio/audiolib.h>
8965
8966#include <$ac_header>
8967_ACEOF
8968rm -f conftest.$ac_objext
8969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008970 (eval $ac_compile) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00008971 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00008975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 (eval $ac_try) 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try='test -s conftest.$ac_objext'
Francois Gouget6f670b12002-10-10 17:54:27 +00008984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 eval "$as_ac_Header=yes"
8990else
8991 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008992sed 's/^/| /' conftest.$ac_ext >&5
8993
Francois Gouget6f670b12002-10-10 17:54:27 +00008994eval "$as_ac_Header=no"
8995fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008997fi
8998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9000if test `eval echo '${'$as_ac_Header'}'` = yes; then
9001 cat >>confdefs.h <<_ACEOF
9002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9003_ACEOF
9004
9005fi
9006
9007done
9008
9009 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9010echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9011if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013else
9014 ac_check_lib_save_LIBS=$LIBS
9015LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9016cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009017/* confdefs.h. */
9018_ACEOF
9019cat confdefs.h >>conftest.$ac_ext
9020cat >>conftest.$ac_ext <<_ACEOF
9021/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009022
9023/* Override any gcc2 internal prototype to avoid an error. */
9024#ifdef __cplusplus
9025extern "C"
9026#endif
9027/* We use char because int might match the return type of a gcc2
9028 builtin and then its argument prototype would still apply. */
9029char AuCreateFlow ();
9030int
9031main ()
9032{
9033AuCreateFlow ();
9034 ;
9035 return 0;
9036}
9037_ACEOF
9038rm -f conftest.$ac_objext conftest$ac_exeext
9039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009040 (eval $ac_link) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00009041 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00009045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9049 (eval $ac_try) 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; } &&
9053 { ac_try='test -s conftest$ac_exeext'
Francois Gouget6f670b12002-10-10 17:54:27 +00009054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 (eval $ac_try) 2>&5
9056 ac_status=$?
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); }; }; then
9059 ac_cv_lib_audio_AuCreateFlow=yes
9060else
9061 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009062sed 's/^/| /' conftest.$ac_ext >&5
9063
Francois Gouget6f670b12002-10-10 17:54:27 +00009064ac_cv_lib_audio_AuCreateFlow=no
9065fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009066rm -f conftest.err conftest.$ac_objext \
9067 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00009068LIBS=$ac_check_lib_save_LIBS
9069fi
9070echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9071echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9072if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9073
9074cat >>confdefs.h <<\_ACEOF
9075#define HAVE_NAS 1
9076_ACEOF
9077
9078 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9079fi
9080
9081fi
9082
9083done
9084
9085
Ove Kaaven1eb593c1999-02-14 09:34:46 +00009086 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00009087 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00009088else
9089 XLIB=""
9090 X_CFLAGS=""
9091 X_LIBS=""
9092fi
Alexandre Julliard902da691995-11-05 14:39:02 +00009093
Alexandre Julliard48957682001-12-26 23:08:31 +00009094CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009095if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00009096then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009097
9098for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00009099do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009100as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009101if eval "test \"\${$as_ac_Header+set}\" = set"; then
9102 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9104if eval "test \"\${$as_ac_Header+set}\" = set"; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009106fi
9107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009109else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009110 # Is the header compilable?
9111echo "$as_me:$LINENO: checking $ac_header usability" >&5
9112echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9113cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009114/* confdefs.h. */
9115_ACEOF
9116cat confdefs.h >>conftest.$ac_ext
9117cat >>conftest.$ac_ext <<_ACEOF
9118/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009119$ac_includes_default
9120#include <$ac_header>
9121_ACEOF
9122rm -f conftest.$ac_objext
9123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009124 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009125 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009126 grep -v '^ *+' conftest.er1 >conftest.err
9127 rm -f conftest.er1
9128 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; } &&
9137 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_header_compiler=yes
9144else
9145 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009146sed 's/^/| /' conftest.$ac_ext >&5
9147
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009148ac_header_compiler=no
9149fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009151echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9152echo "${ECHO_T}$ac_header_compiler" >&6
9153
9154# Is the header present?
9155echo "$as_me:$LINENO: checking $ac_header presence" >&5
9156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9157cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009158/* confdefs.h. */
9159_ACEOF
9160cat confdefs.h >>conftest.$ac_ext
9161cat >>conftest.$ac_ext <<_ACEOF
9162/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009163#include <$ac_header>
9164_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9167 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009168 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009169 rm -f conftest.er1
9170 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009172 (exit $ac_status); } >/dev/null; then
9173 if test -s conftest.err; then
9174 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009176 else
9177 ac_cpp_err=
9178 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009179else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009180 ac_cpp_err=yes
9181fi
9182if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009183 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009184else
9185 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009186sed 's/^/| /' conftest.$ac_ext >&5
9187
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009188 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009189fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009190rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009191echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9192echo "${ECHO_T}$ac_header_preproc" >&6
9193
9194# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9196 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9198echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9200echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9201 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009202 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009203 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9207echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9209echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9211echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009213echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9215echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009216 (
9217 cat <<\_ASBOX
9218## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009219## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009220## ------------------------------------ ##
9221_ASBOX
9222 ) |
9223 sed "s/^/$as_me: WARNING: /" >&2
9224 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009225esac
9226echo "$as_me:$LINENO: checking for $ac_header" >&5
9227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9228if eval "test \"\${$as_ac_Header+set}\" = set"; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9230else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009231 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00009232fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009235
9236fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009237if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009238 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009240_ACEOF
9241 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009242echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9243if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009245else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009246 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009247LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009248cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009249/* confdefs.h. */
9250_ACEOF
9251cat confdefs.h >>conftest.$ac_ext
9252cat >>conftest.$ac_ext <<_ACEOF
9253/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009254
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009255/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009256#ifdef __cplusplus
9257extern "C"
9258#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009259/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009260 builtin and then its argument prototype would still apply. */
9261char waddch ();
9262int
9263main ()
9264{
9265waddch ();
9266 ;
9267 return 0;
9268}
9269_ACEOF
9270rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009272 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009273 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009274 grep -v '^ *+' conftest.er1 >conftest.err
9275 rm -f conftest.er1
9276 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009278 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 (eval $ac_try) 2>&5
9282 ac_status=$?
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; } &&
9285 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009287 (eval $ac_try) 2>&5
9288 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009290 (exit $ac_status); }; }; then
9291 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009292else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009293 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009294sed 's/^/| /' conftest.$ac_ext >&5
9295
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009296ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009297fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009298rm -f conftest.err conftest.$ac_objext \
9299 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009300LIBS=$ac_check_lib_save_LIBS
9301fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009302echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009303echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9304if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009305
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009306cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00009307#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009308_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009309
Alexandre Julliard48957682001-12-26 23:08:31 +00009310 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00009311else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009312
9313for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00009314do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009316if eval "test \"\${$as_ac_Header+set}\" = set"; then
9317 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9319if eval "test \"\${$as_ac_Header+set}\" = set"; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009321fi
9322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9323echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009324else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009325 # Is the header compilable?
9326echo "$as_me:$LINENO: checking $ac_header usability" >&5
9327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9328cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009329/* confdefs.h. */
9330_ACEOF
9331cat confdefs.h >>conftest.$ac_ext
9332cat >>conftest.$ac_ext <<_ACEOF
9333/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009334$ac_includes_default
9335#include <$ac_header>
9336_ACEOF
9337rm -f conftest.$ac_objext
9338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009339 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009340 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009341 grep -v '^ *+' conftest.er1 >conftest.err
9342 rm -f conftest.er1
9343 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 (eval $ac_try) 2>&5
9349 ac_status=$?
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; } &&
9352 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 (eval $ac_try) 2>&5
9355 ac_status=$?
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; }; then
9358 ac_header_compiler=yes
9359else
9360 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009361sed 's/^/| /' conftest.$ac_ext >&5
9362
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009363ac_header_compiler=no
9364fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009366echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9367echo "${ECHO_T}$ac_header_compiler" >&6
9368
9369# Is the header present?
9370echo "$as_me:$LINENO: checking $ac_header presence" >&5
9371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9372cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009373/* confdefs.h. */
9374_ACEOF
9375cat confdefs.h >>conftest.$ac_ext
9376cat >>conftest.$ac_ext <<_ACEOF
9377/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009378#include <$ac_header>
9379_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9382 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009383 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009384 rm -f conftest.er1
9385 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009387 (exit $ac_status); } >/dev/null; then
9388 if test -s conftest.err; then
9389 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009391 else
9392 ac_cpp_err=
9393 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009394else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009395 ac_cpp_err=yes
9396fi
9397if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009398 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009399else
9400 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009401sed 's/^/| /' conftest.$ac_ext >&5
9402
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009403 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009404fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009405rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009406echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9407echo "${ECHO_T}$ac_header_preproc" >&6
9408
9409# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9411 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9413echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9415echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9416 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009417 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009418 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9422echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9424echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9426echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009428echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9430echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009431 (
9432 cat <<\_ASBOX
9433## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009434## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009435## ------------------------------------ ##
9436_ASBOX
9437 ) |
9438 sed "s/^/$as_me: WARNING: /" >&2
9439 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009440esac
9441echo "$as_me:$LINENO: checking for $ac_header" >&5
9442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9443if eval "test \"\${$as_ac_Header+set}\" = set"; then
9444 echo $ECHO_N "(cached) $ECHO_C" >&6
9445else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009446 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00009447fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009450
9451fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009452if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009453 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009455_ACEOF
9456 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009457echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9458if test "${ac_cv_lib_curses_waddch+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009460else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009461 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009462LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009463cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009464/* confdefs.h. */
9465_ACEOF
9466cat confdefs.h >>conftest.$ac_ext
9467cat >>conftest.$ac_ext <<_ACEOF
9468/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009469
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009470/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009471#ifdef __cplusplus
9472extern "C"
9473#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009474/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009475 builtin and then its argument prototype would still apply. */
9476char waddch ();
9477int
9478main ()
9479{
9480waddch ();
9481 ;
9482 return 0;
9483}
9484_ACEOF
9485rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009487 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009488 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009489 grep -v '^ *+' conftest.er1 >conftest.err
9490 rm -f conftest.er1
9491 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009493 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; } &&
9500 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009502 (eval $ac_try) 2>&5
9503 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009505 (exit $ac_status); }; }; then
9506 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009507else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009508 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009509sed 's/^/| /' conftest.$ac_ext >&5
9510
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009511ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009512fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009513rm -f conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009515LIBS=$ac_check_lib_save_LIBS
9516fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009517echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009518echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9519if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009520
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009521cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00009522#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009523_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009524
Alexandre Julliard48957682001-12-26 23:08:31 +00009525 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009526fi
9527
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009528fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009529
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009530done
9531
9532fi
Alexandre Julliard48957682001-12-26 23:08:31 +00009533
Alexandre Julliard48957682001-12-26 23:08:31 +00009534fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009535
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009536done
9537
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009538fi
9539
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009540
Shi Quan He6b0720f2002-03-21 02:58:39 +00009541# Extract the first word of "sane-config", so it can be a program name with args.
9542set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009543echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9545if test "${ac_cv_prog_sane_devel+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547else
9548 if test -n "$sane_devel"; then
9549 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9550else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9552for as_dir in $PATH
9553do
9554 IFS=$as_save_IFS
9555 test -z "$as_dir" && as_dir=.
9556 for ac_exec_ext in '' $ac_executable_extensions; do
9557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9558 ac_cv_prog_sane_devel="sane-config"
9559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9560 break 2
9561 fi
9562done
Shi Quan He6b0720f2002-03-21 02:58:39 +00009563done
9564
9565 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9566fi
9567fi
9568sane_devel=$ac_cv_prog_sane_devel
9569if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009570 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009571echo "${ECHO_T}$sane_devel" >&6
9572else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009573 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009574echo "${ECHO_T}no" >&6
9575fi
9576
9577if test "$sane_devel" = "no"
9578then
9579 SANELIBS=""
9580 SANEINCL=""
9581else
9582 SANELIBS="`$sane_devel --libs`"
9583 SANEINCL="`$sane_devel --cflags`"
9584 ac_save_CPPFLAGS="$CPPFLAGS"
9585 ac_save_LIBS="$LIBS"
9586 CPPFLAGS="$CPPFLAGS $SANEINCL"
9587 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009588 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9589 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009590echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9591if test "${ac_cv_header_sane_sane_h+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009593fi
9594echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9595echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009596else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009597 # Is the header compilable?
9598echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9599echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9600cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009601/* confdefs.h. */
9602_ACEOF
9603cat confdefs.h >>conftest.$ac_ext
9604cat >>conftest.$ac_ext <<_ACEOF
9605/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009606$ac_includes_default
9607#include <sane/sane.h>
9608_ACEOF
9609rm -f conftest.$ac_objext
9610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009611 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009612 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009613 grep -v '^ *+' conftest.er1 >conftest.err
9614 rm -f conftest.er1
9615 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 (eval $ac_try) 2>&5
9621 ac_status=$?
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; } &&
9624 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 (eval $ac_try) 2>&5
9627 ac_status=$?
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); }; }; then
9630 ac_header_compiler=yes
9631else
9632 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009633sed 's/^/| /' conftest.$ac_ext >&5
9634
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009635ac_header_compiler=no
9636fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9639echo "${ECHO_T}$ac_header_compiler" >&6
9640
9641# Is the header present?
9642echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9643echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9644cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009645/* confdefs.h. */
9646_ACEOF
9647cat confdefs.h >>conftest.$ac_ext
9648cat >>conftest.$ac_ext <<_ACEOF
9649/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009650#include <sane/sane.h>
9651_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9654 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009655 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +00009656 rm -f conftest.er1
9657 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009659 (exit $ac_status); } >/dev/null; then
9660 if test -s conftest.err; then
9661 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Shi Quan He6b0720f2002-03-21 02:58:39 +00009663 else
9664 ac_cpp_err=
9665 fi
9666else
9667 ac_cpp_err=yes
9668fi
9669if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009670 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +00009671else
9672 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009673sed 's/^/| /' conftest.$ac_ext >&5
9674
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009675 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +00009676fi
9677rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9679echo "${ECHO_T}$ac_header_preproc" >&6
9680
9681# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9683 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009684 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9685echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009686 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9687echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9688 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009689 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009690 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009691 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9692echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009693 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9694echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9695 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9696echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9697 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
9698echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009699 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009700echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009701 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9702echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009703 (
9704 cat <<\_ASBOX
9705## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009706## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009707## ------------------------------------ ##
9708_ASBOX
9709 ) |
9710 sed "s/^/$as_me: WARNING: /" >&2
9711 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009712esac
9713echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9714echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9715if test "${ac_cv_header_sane_sane_h+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9717else
9718 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +00009719fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009720echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009721echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009722
9723fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009724if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009725 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009726echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9727if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9729else
9730 ac_check_lib_save_LIBS=$LIBS
9731LIBS="-lsane $LIBS"
9732cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009733/* confdefs.h. */
9734_ACEOF
9735cat confdefs.h >>conftest.$ac_ext
9736cat >>conftest.$ac_ext <<_ACEOF
9737/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009738
9739/* Override any gcc2 internal prototype to avoid an error. */
9740#ifdef __cplusplus
9741extern "C"
9742#endif
9743/* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9745char sane_open ();
9746int
9747main ()
9748{
9749sane_open ();
9750 ;
9751 return 0;
9752}
9753_ACEOF
9754rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009756 (eval $ac_link) 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +00009757 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009762 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; } &&
9769 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009771 (eval $ac_try) 2>&5
9772 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009774 (exit $ac_status); }; }; then
9775 ac_cv_lib_sane_sane_open=yes
9776else
9777 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009778sed 's/^/| /' conftest.$ac_ext >&5
9779
Shi Quan He6b0720f2002-03-21 02:58:39 +00009780ac_cv_lib_sane_sane_open=no
9781fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009782rm -f conftest.err conftest.$ac_objext \
9783 conftest$ac_exeext conftest.$ac_ext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009784LIBS=$ac_check_lib_save_LIBS
9785fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009786echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009787echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9788if test $ac_cv_lib_sane_sane_open = yes; then
9789
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009790cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009791#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009792_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009793
9794else
9795 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +00009796 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009797fi
9798
Alexandre Julliard96328b32002-03-31 19:23:41 +00009799else
9800 SANELIBS=""
9801 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009802fi
9803
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009804
Shi Quan He6b0720f2002-03-21 02:58:39 +00009805 LIBS="$ac_save_LIBS"
9806 CPPFLAGS="$ac_save_CPPFLAGS"
9807fi
9808
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009809
9810
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009811
9812for ac_header in unicode/ubidi.h
9813do
9814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9815if eval "test \"\${$as_ac_Header+set}\" = set"; then
9816 echo "$as_me:$LINENO: checking for $ac_header" >&5
9817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9818if eval "test \"\${$as_ac_Header+set}\" = set"; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820fi
9821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9822echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9823else
9824 # Is the header compilable?
9825echo "$as_me:$LINENO: checking $ac_header usability" >&5
9826echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9827cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009828/* confdefs.h. */
9829_ACEOF
9830cat confdefs.h >>conftest.$ac_ext
9831cat >>conftest.$ac_ext <<_ACEOF
9832/* end confdefs.h. */
9833$ac_includes_default
9834#include <$ac_header>
9835_ACEOF
9836rm -f conftest.$ac_objext
9837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009838 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009839 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009840 grep -v '^ *+' conftest.er1 >conftest.err
9841 rm -f conftest.er1
9842 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847 (eval $ac_try) 2>&5
9848 ac_status=$?
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; } &&
9851 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 (eval $ac_try) 2>&5
9854 ac_status=$?
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 ac_header_compiler=yes
9858else
9859 echo "$as_me: failed program was:" >&5
9860sed 's/^/| /' conftest.$ac_ext >&5
9861
9862ac_header_compiler=no
9863fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009865echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9866echo "${ECHO_T}$ac_header_compiler" >&6
9867
9868# Is the header present?
9869echo "$as_me:$LINENO: checking $ac_header presence" >&5
9870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9871cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009872/* confdefs.h. */
9873_ACEOF
9874cat confdefs.h >>conftest.$ac_ext
9875cat >>conftest.$ac_ext <<_ACEOF
9876/* end confdefs.h. */
9877#include <$ac_header>
9878_ACEOF
9879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9881 ac_status=$?
9882 grep -v '^ *+' conftest.er1 >conftest.err
9883 rm -f conftest.er1
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } >/dev/null; then
9887 if test -s conftest.err; then
9888 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009890 else
9891 ac_cpp_err=
9892 fi
9893else
9894 ac_cpp_err=yes
9895fi
9896if test -z "$ac_cpp_err"; then
9897 ac_header_preproc=yes
9898else
9899 echo "$as_me: failed program was:" >&5
9900sed 's/^/| /' conftest.$ac_ext >&5
9901
9902 ac_header_preproc=no
9903fi
9904rm -f conftest.err conftest.$ac_ext
9905echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9906echo "${ECHO_T}$ac_header_preproc" >&6
9907
9908# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9910 yes:no: )
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9915 ac_header_preproc=yes
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009916 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009917 no:yes:* )
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9921echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9925echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009930 (
9931 cat <<\_ASBOX
9932## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009933## Report this to wine-devel@winehq.org ##
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009934## ------------------------------------ ##
9935_ASBOX
9936 ) |
9937 sed "s/^/$as_me: WARNING: /" >&2
9938 ;;
9939esac
9940echo "$as_me:$LINENO: checking for $ac_header" >&5
9941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9942if eval "test \"\${$as_ac_Header+set}\" = set"; then
9943 echo $ECHO_N "(cached) $ECHO_C" >&6
9944else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009945 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009946fi
9947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9949
9950fi
9951if test `eval echo '${'$as_ac_Header'}'` = yes; then
9952 cat >>confdefs.h <<_ACEOF
9953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9954_ACEOF
9955
9956fi
9957
9958done
9959
9960if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9961then
Marcus Meissnerbc624582004-01-18 22:15:46 +00009962 saved_libs="$LIBS"
9963 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
Shachar Shemesh9f2627e2004-04-06 20:13:21 +00009964 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
9965 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
9966 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
9967echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +00009968 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9969 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009970/* confdefs.h. */
9971_ACEOF
9972cat confdefs.h >>conftest.$ac_ext
9973cat >>conftest.$ac_ext <<_ACEOF
9974/* end confdefs.h. */
9975#include <unicode/ubidi.h>
9976int
9977main ()
9978{
9979ubidi_open()
9980 ;
9981 return 0;
9982}
9983_ACEOF
9984rm -f conftest.$ac_objext conftest$ac_exeext
9985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009986 (eval $ac_link) 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009987 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 (eval $ac_try) 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; } &&
9999 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10002 ac_status=$?
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010005
10006cat >>confdefs.h <<\_ACEOF
10007#define HAVE_ICU 1
10008_ACEOF
10009
Marcus Meissnerbc624582004-01-18 22:15:46 +000010010 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010011
Shachar Shemesh9f2627e2004-04-06 20:13:21 +000010012 echo "$as_me:$LINENO: result: yes" >&5
10013echo "${ECHO_T}yes" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +000010014else
10015 echo "$as_me: failed program was:" >&5
10016sed 's/^/| /' conftest.$ac_ext >&5
10017
Shachar Shemesh9f2627e2004-04-06 20:13:21 +000010018echo "$as_me:$LINENO: result: no" >&5
10019echo "${ECHO_T}no" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +000010020fi
10021rm -f conftest.err conftest.$ac_objext \
10022 conftest$ac_exeext conftest.$ac_ext
10023 LIBS="$saved_libs"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010024fi
10025
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010026echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010027echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10028if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010030else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010031 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +000010032LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010033cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010034/* confdefs.h. */
10035_ACEOF
10036cat confdefs.h >>conftest.$ac_ext
10037cat >>conftest.$ac_ext <<_ACEOF
10038/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010039
Ian Pilcher563598d2001-05-16 20:56:05 +000010040/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010041#ifdef __cplusplus
10042extern "C"
10043#endif
Ian Pilcher563598d2001-05-16 20:56:05 +000010044/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010045 builtin and then its argument prototype would still apply. */
10046char FT_Init_FreeType ();
10047int
10048main ()
10049{
10050FT_Init_FreeType ();
10051 ;
10052 return 0;
10053}
10054_ACEOF
10055rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010057 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010058 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010063 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066 (eval $ac_try) 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; } &&
10070 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010072 (eval $ac_try) 2>&5
10073 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010075 (exit $ac_status); }; }; then
10076 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010077else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010078 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010079sed 's/^/| /' conftest.$ac_ext >&5
10080
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010081ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010082fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010083rm -f conftest.err conftest.$ac_objext \
10084 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010085LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010086fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010087echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010088echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10089if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +000010090 ft_lib=yes
10091else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010092 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010093fi
10094
10095if test "$ft_lib" = "no"
10096then
Huw Davies00acb5f2004-08-17 22:33:14 +000010097 FREETYPELIBS=""
Ian Pilcher563598d2001-05-16 20:56:05 +000010098 FREETYPEINCL=""
10099 wine_cv_msg_freetype=no
10100else
10101 # Extract the first word of "freetype-config", so it can be a program name with args.
10102set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010103echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10105if test "${ac_cv_prog_ft_devel+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010107else
10108 if test -n "$ft_devel"; then
10109 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10110else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112for as_dir in $PATH
10113do
10114 IFS=$as_save_IFS
10115 test -z "$as_dir" && as_dir=.
10116 for ac_exec_ext in '' $ac_executable_extensions; do
10117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10118 ac_cv_prog_ft_devel="freetype-config"
10119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10120 break 2
10121 fi
10122done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010123done
10124
Ian Pilcher563598d2001-05-16 20:56:05 +000010125 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10126fi
10127fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010128ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +000010129if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010130 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010131echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010132else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010133 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010134echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010135fi
10136
10137 if test "$ft_devel" = "no"
10138 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010139 # Extract the first word of "freetype2-config", so it can be a program name with args.
10140set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010141echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10143if test "${ac_cv_prog_ft_devel2+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010145else
10146 if test -n "$ft_devel2"; then
10147 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10148else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10150for as_dir in $PATH
10151do
10152 IFS=$as_save_IFS
10153 test -z "$as_dir" && as_dir=.
10154 for ac_exec_ext in '' $ac_executable_extensions; do
10155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10156 ac_cv_prog_ft_devel2="freetype2-config"
10157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10158 break 2
10159 fi
10160done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010161done
10162
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010163 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10164fi
10165fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010166ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010167if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010168 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010169echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010170else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010171 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010172echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010173fi
10174
10175 if test "$ft_devel2" = "freetype2-config"
10176 then
10177 ft_devel=$ft_devel2
10178 fi
10179 fi
10180 if test "$ft_devel" = "no"
10181 then
Huw Davies00acb5f2004-08-17 22:33:14 +000010182 FREETYPELIBS=""
Ian Pilcher563598d2001-05-16 20:56:05 +000010183 FREETYPEINCL=""
10184 wine_cv_msg_freetype=yes
10185 else
Huw Davies00acb5f2004-08-17 22:33:14 +000010186 FREETYPELIBS=`$ft_devel --libs`
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010187 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +000010188 ac_save_CPPFLAGS="$CPPFLAGS"
10189 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010190
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010191
10192
10193
10194
10195
10196
10197
Rein Klazese617a9c2003-11-19 02:18:13 +000010198
Huw Daviesc2217182004-06-16 20:06:26 +000010199
Rein Klazese617a9c2003-11-19 02:18:13 +000010200for ac_header in ft2build.h \
10201 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010202 freetype/ftglyph.h \
10203 freetype/tttables.h \
10204 freetype/ftnames.h \
10205 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010206 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010207 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010208 freetype/ftwinfnt.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010209 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +000010210do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Rein Klazes9c269172003-11-20 04:17:33 +000010212echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10214if eval "test \"\${$as_ac_Header+set}\" = set"; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010216else
Rein Klazes9c269172003-11-20 04:17:33 +000010217 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010218/* confdefs.h. */
10219_ACEOF
10220cat confdefs.h >>conftest.$ac_ext
10221cat >>conftest.$ac_ext <<_ACEOF
10222/* end confdefs.h. */
Rein Klazes9c269172003-11-20 04:17:33 +000010223#if HAVE_FT2BUILD_H
10224 #include <ft2build.h>
10225 #endif
10226
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010227#include <$ac_header>
10228_ACEOF
10229rm -f conftest.$ac_objext
10230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010231 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010232 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10247 ac_status=$?
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
Rein Klazes9c269172003-11-20 04:17:33 +000010250 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010251else
10252 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010253sed 's/^/| /' conftest.$ac_ext >&5
10254
Rein Klazes9c269172003-11-20 04:17:33 +000010255eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010256fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010258fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010261if test `eval echo '${'$as_ac_Header'}'` = yes; then
10262 cat >>confdefs.h <<_ACEOF
10263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10264_ACEOF
10265
10266fi
10267
Ian Pilcher40432fe2001-06-06 21:05:23 +000010268done
10269
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010270 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010271/* confdefs.h. */
10272_ACEOF
10273cat confdefs.h >>conftest.$ac_ext
10274cat >>conftest.$ac_ext <<_ACEOF
10275/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010276#include <ft2build.h>
10277 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010278_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10281 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010282 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010283 rm -f conftest.er1
10284 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010286 (exit $ac_status); } >/dev/null; then
10287 if test -s conftest.err; then
10288 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010290 else
10291 ac_cpp_err=
10292 fi
10293else
10294 ac_cpp_err=yes
10295fi
10296if test -z "$ac_cpp_err"; then
10297
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010298cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000010299#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010300_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000010301
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010302 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010303else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010304 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010305sed 's/^/| /' conftest.$ac_ext >&5
10306
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010307 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010308fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010309rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +000010310 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010311 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010312 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010313
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010314cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010315#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010316_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010317
10318 wine_cv_msg_freetype=no
10319 else
Huw Davies00acb5f2004-08-17 22:33:14 +000010320 FREETYPELIBS=""
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010321 FREETYPEINCL=""
10322 wine_cv_msg_freetype=yes
10323 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010324 fi
10325fi
10326
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010327
Huw Davies00acb5f2004-08-17 22:33:14 +000010328
10329if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10330then
10331 FONTSSUBDIRS="fonts"
10332
10333fi
10334
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010335echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010336echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10337if test "${ac_cv_c_ppdev+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010339else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010340 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010341/* confdefs.h. */
10342_ACEOF
10343cat confdefs.h >>conftest.$ac_ext
10344cat >>conftest.$ac_ext <<_ACEOF
10345/* end confdefs.h. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010346#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010347int
10348main ()
10349{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010350ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010351 ;
10352 return 0;
10353}
10354_ACEOF
10355rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010357 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010358 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010359 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010363 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5
10367 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; } &&
10370 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010372 (eval $ac_try) 2>&5
10373 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010375 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010376 ac_cv_c_ppdev="yes"
10377else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010378 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010379sed 's/^/| /' conftest.$ac_ext >&5
10380
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010381ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010382fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010384
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010385fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010386echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010387echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010388if test "$ac_cv_c_ppdev" = "yes"
10389then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010390
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010391cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010392#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010393_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010394
10395fi
10396
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010397echo "$as_me:$LINENO: checking for va_copy" >&5
10398echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10399if test "${ac_cv_c_va_copy+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10401else
10402 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010403/* confdefs.h. */
10404_ACEOF
10405cat confdefs.h >>conftest.$ac_ext
10406cat >>conftest.$ac_ext <<_ACEOF
10407/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010408#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010409int
10410main ()
10411{
10412va_list ap1, ap2;
10413 va_copy(ap1,ap2);
10414
10415 ;
10416 return 0;
10417}
10418_ACEOF
10419rm -f conftest.$ac_objext conftest$ac_exeext
10420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010421 (eval $ac_link) 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010422 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10431 ac_status=$?
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; } &&
10434 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
10440 ac_cv_c_va_copy="yes"
10441else
10442 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010443sed 's/^/| /' conftest.$ac_ext >&5
10444
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010445ac_cv_c_va_copy="no"
10446fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010447rm -f conftest.err conftest.$ac_objext \
10448 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010449
10450fi
10451echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10452echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10453if test "$ac_cv_c_va_copy" = "yes"
10454then
10455
10456cat >>confdefs.h <<\_ACEOF
10457#define HAVE_VA_COPY 1
10458_ACEOF
10459
10460fi
10461echo "$as_me:$LINENO: checking for __va_copy" >&5
10462echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10463if test "${ac_cv_c___va_copy+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10465else
10466 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010467/* confdefs.h. */
10468_ACEOF
10469cat confdefs.h >>conftest.$ac_ext
10470cat >>conftest.$ac_ext <<_ACEOF
10471/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010472#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010473int
10474main ()
10475{
10476va_list ap1, ap2;
10477 __va_copy(ap1,ap2);
10478
10479 ;
10480 return 0;
10481}
10482_ACEOF
10483rm -f conftest.$ac_objext conftest$ac_exeext
10484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010485 (eval $ac_link) 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010486 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010487 grep -v '^ *+' conftest.er1 >conftest.err
10488 rm -f conftest.er1
10489 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10500 (eval $ac_try) 2>&5
10501 ac_status=$?
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); }; }; then
10504 ac_cv_c___va_copy="yes"
10505else
10506 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010507sed 's/^/| /' conftest.$ac_ext >&5
10508
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010509ac_cv_c___va_copy="no"
10510fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010511rm -f conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010513
10514fi
10515echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10516echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10517if test "$ac_cv_c___va_copy" = "yes"
10518then
10519
10520cat >>confdefs.h <<\_ACEOF
10521#define HAVE___VA_COPY 1
10522_ACEOF
10523
10524fi
10525
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010526echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10527echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10528if test "${ac_cv_c_sigsetjmp+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10530else
10531 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010532/* confdefs.h. */
10533_ACEOF
10534cat confdefs.h >>conftest.$ac_ext
10535cat >>conftest.$ac_ext <<_ACEOF
10536/* end confdefs.h. */
10537#include <setjmp.h>
10538int
10539main ()
10540{
10541sigjmp_buf buf;
10542 sigsetjmp( buf, 1 );
10543 siglongjmp( buf, 1 );
10544 ;
10545 return 0;
10546}
10547_ACEOF
10548rm -f conftest.$ac_objext conftest$ac_exeext
10549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010550 (eval $ac_link) 2>conftest.er1
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010551 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010552 grep -v '^ *+' conftest.er1 >conftest.err
10553 rm -f conftest.er1
10554 cat conftest.err >&5
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; } &&
10563 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 ac_cv_c_sigsetjmp="yes"
10570else
10571 echo "$as_me: failed program was:" >&5
10572sed 's/^/| /' conftest.$ac_ext >&5
10573
10574ac_cv_c_sigsetjmp="no"
10575fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010576rm -f conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010578
10579fi
10580echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10581echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10582if test "$ac_cv_c_sigsetjmp" = "yes"
10583then
10584
10585cat >>confdefs.h <<\_ACEOF
10586#define HAVE_SIGSETJMP 1
10587_ACEOF
10588
10589fi
10590
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010591echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10592echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10593if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10595else
10596 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010597/* confdefs.h. */
10598_ACEOF
10599cat confdefs.h >>conftest.$ac_ext
10600cat >>conftest.$ac_ext <<_ACEOF
10601/* end confdefs.h. */
10602#define _GNU_SOURCE
10603#include <pthread.h>
10604
10605int
10606main ()
10607{
10608if ((pthread_rwlock_t *) 0)
10609 return 0;
10610if (sizeof (pthread_rwlock_t))
10611 return 0;
10612 ;
10613 return 0;
10614}
10615_ACEOF
10616rm -f conftest.$ac_objext
10617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010618 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010619 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010620 grep -v '^ *+' conftest.er1 >conftest.err
10621 rm -f conftest.er1
10622 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; } &&
10631 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10634 ac_status=$?
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; }; then
10637 ac_cv_type_pthread_rwlock_t=yes
10638else
10639 echo "$as_me: failed program was:" >&5
10640sed 's/^/| /' conftest.$ac_ext >&5
10641
10642ac_cv_type_pthread_rwlock_t=no
10643fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010645fi
10646echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10647echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10648if test $ac_cv_type_pthread_rwlock_t = yes; then
10649
10650cat >>confdefs.h <<_ACEOF
10651#define HAVE_PTHREAD_RWLOCK_T 1
10652_ACEOF
10653
10654
10655fi
10656echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10657echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10658if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10660else
10661 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010662/* confdefs.h. */
10663_ACEOF
10664cat confdefs.h >>conftest.$ac_ext
10665cat >>conftest.$ac_ext <<_ACEOF
10666/* end confdefs.h. */
10667#define _GNU_SOURCE
10668#include <pthread.h>
10669
10670int
10671main ()
10672{
10673if ((pthread_rwlockattr_t *) 0)
10674 return 0;
10675if (sizeof (pthread_rwlockattr_t))
10676 return 0;
10677 ;
10678 return 0;
10679}
10680_ACEOF
10681rm -f conftest.$ac_objext
10682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010683 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010684 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692 (eval $ac_try) 2>&5
10693 ac_status=$?
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); }; } &&
10696 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 ac_cv_type_pthread_rwlockattr_t=yes
10703else
10704 echo "$as_me: failed program was:" >&5
10705sed 's/^/| /' conftest.$ac_ext >&5
10706
10707ac_cv_type_pthread_rwlockattr_t=no
10708fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010710fi
10711echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10712echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10713if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10714
10715cat >>confdefs.h <<_ACEOF
10716#define HAVE_PTHREAD_RWLOCKATTR_T 1
10717_ACEOF
10718
10719
10720fi
10721
10722
Alexandre Julliard821ab862003-11-12 22:44:56 +000010723ac_save_LIBS="$LIBS"
10724LIBS="$LIBS $LIBPTHREAD"
10725
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010726
10727
10728for ac_func in \
10729 pthread_getattr_np \
10730 pthread_get_stackaddr_np \
10731 pthread_get_stacksize_np \
10732
Alexandre Julliard821ab862003-11-12 22:44:56 +000010733do
10734as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10735echo "$as_me:$LINENO: checking for $ac_func" >&5
10736echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10737if eval "test \"\${$as_ac_var+set}\" = set"; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739else
10740 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard821ab862003-11-12 22:44:56 +000010741/* confdefs.h. */
10742_ACEOF
10743cat confdefs.h >>conftest.$ac_ext
10744cat >>conftest.$ac_ext <<_ACEOF
10745/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000010746/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10748#define $ac_func innocuous_$ac_func
10749
Alexandre Julliard821ab862003-11-12 22:44:56 +000010750/* System header to define __stub macros and hopefully few prototypes,
10751 which can conflict with char $ac_func (); below.
10752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10753 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000010754
Alexandre Julliard821ab862003-11-12 22:44:56 +000010755#ifdef __STDC__
10756# include <limits.h>
10757#else
10758# include <assert.h>
10759#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000010760
10761#undef $ac_func
10762
Alexandre Julliard821ab862003-11-12 22:44:56 +000010763/* Override any gcc2 internal prototype to avoid an error. */
10764#ifdef __cplusplus
10765extern "C"
10766{
10767#endif
10768/* We use char because int might match the return type of a gcc2
10769 builtin and then its argument prototype would still apply. */
10770char $ac_func ();
10771/* The GNU C library defines this for functions which it implements
10772 to always fail with ENOSYS. Some functions are actually named
10773 something starting with __ and the normal name is an alias. */
10774#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10775choke me
10776#else
10777char (*f) () = $ac_func;
10778#endif
10779#ifdef __cplusplus
10780}
10781#endif
10782
10783int
10784main ()
10785{
10786return f != $ac_func;
10787 ;
10788 return 0;
10789}
10790_ACEOF
10791rm -f conftest.$ac_objext conftest$ac_exeext
10792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010793 (eval $ac_link) 2>conftest.er1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010794 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010795 grep -v '^ *+' conftest.er1 >conftest.err
10796 rm -f conftest.er1
10797 cat conftest.err >&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000010798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; } &&
10806 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard821ab862003-11-12 22:44:56 +000010807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; }; then
10812 eval "$as_ac_var=yes"
10813else
10814 echo "$as_me: failed program was:" >&5
10815sed 's/^/| /' conftest.$ac_ext >&5
10816
10817eval "$as_ac_var=no"
10818fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010819rm -f conftest.err conftest.$ac_objext \
10820 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard821ab862003-11-12 22:44:56 +000010821fi
10822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10823echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10824if test `eval echo '${'$as_ac_var'}'` = yes; then
10825 cat >>confdefs.h <<_ACEOF
10826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10827_ACEOF
10828
10829fi
10830done
10831
10832LIBS="$ac_save_LIBS"
10833
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010834
10835
10836
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010837for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010838do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010839as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010840if eval "test \"\${$as_ac_Header+set}\" = set"; then
10841 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10843if eval "test \"\${$as_ac_Header+set}\" = set"; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010845fi
10846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010848else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010849 # Is the header compilable?
10850echo "$as_me:$LINENO: checking $ac_header usability" >&5
10851echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10852cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010853/* confdefs.h. */
10854_ACEOF
10855cat confdefs.h >>conftest.$ac_ext
10856cat >>conftest.$ac_ext <<_ACEOF
10857/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010858$ac_includes_default
10859#include <$ac_header>
10860_ACEOF
10861rm -f conftest.$ac_objext
10862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010863 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010864 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010865 grep -v '^ *+' conftest.er1 >conftest.err
10866 rm -f conftest.er1
10867 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; } &&
10876 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5
10879 ac_status=$?
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then
10882 ac_header_compiler=yes
10883else
10884 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010885sed 's/^/| /' conftest.$ac_ext >&5
10886
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010887ac_header_compiler=no
10888fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010890echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10891echo "${ECHO_T}$ac_header_compiler" >&6
10892
10893# Is the header present?
10894echo "$as_me:$LINENO: checking $ac_header presence" >&5
10895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10896cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010897/* confdefs.h. */
10898_ACEOF
10899cat confdefs.h >>conftest.$ac_ext
10900cat >>conftest.$ac_ext <<_ACEOF
10901/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010902#include <$ac_header>
10903_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10906 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010907 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010908 rm -f conftest.er1
10909 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010911 (exit $ac_status); } >/dev/null; then
10912 if test -s conftest.err; then
10913 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010915 else
10916 ac_cpp_err=
10917 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010918else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010919 ac_cpp_err=yes
10920fi
10921if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010922 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010923else
10924 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010925sed 's/^/| /' conftest.$ac_ext >&5
10926
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010927 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010928fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010929rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010930echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10931echo "${ECHO_T}$ac_header_preproc" >&6
10932
10933# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10935 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10937echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10939echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10940 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010941 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000010942 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10944echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10946echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10948echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10950echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10954echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010955 (
10956 cat <<\_ASBOX
10957## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000010958## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010959## ------------------------------------ ##
10960_ASBOX
10961 ) |
10962 sed "s/^/$as_me: WARNING: /" >&2
10963 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010964esac
10965echo "$as_me:$LINENO: checking for $ac_header" >&5
10966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10967if eval "test \"\${$as_ac_Header+set}\" = set"; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969else
Alexandre Julliard875927f2004-01-02 01:55:29 +000010970 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010971fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010972echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010973echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010974
10975fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010976if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010977 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010979_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +000010980 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010981fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010982
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010983done
10984
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010985
10986echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010987echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10988if test "${ac_cv_c_opensoundsystem+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010990else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010991 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010992/* confdefs.h. */
10993_ACEOF
10994cat confdefs.h >>conftest.$ac_ext
10995cat >>conftest.$ac_ext <<_ACEOF
10996/* end confdefs.h. */
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010997
Todd Vierlingecc76691998-12-15 17:49:02 +000010998 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010999 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +000011000 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011001 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +000011002 #elif defined(HAVE_SOUNDCARD_H)
11003 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011004 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011005
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011006int
11007main ()
11008{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011009
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011010
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000011011/* check for one of the Open Sound System specific SNDCTL_ defines */
11012#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011013#error No open sound system
11014#endif
11015
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011016 ;
11017 return 0;
11018}
11019_ACEOF
11020rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011022 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011023 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011028 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; } &&
11035 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011037 (eval $ac_try) 2>&5
11038 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011040 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011041 ac_cv_c_opensoundsystem="yes"
11042else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011043 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011044sed 's/^/| /' conftest.$ac_ext >&5
11045
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011046ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011047fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011049fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011050echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011051echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011052
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000011053if test "$ac_cv_c_opensoundsystem" = "yes"
11054then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011055
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011056cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000011057#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011058_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000011059
11060fi
11061
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011062echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011063echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11064if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000011066else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011067 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011068/* confdefs.h. */
11069_ACEOF
11070cat confdefs.h >>conftest.$ac_ext
11071cat >>conftest.$ac_ext <<_ACEOF
11072/* end confdefs.h. */
Eric Pouech338d3b21999-05-22 18:52:21 +000011073
11074 #if defined(HAVE_SYS_SOUNDCARD_H)
11075 #include <sys/soundcard.h>
11076 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11077 #include <machine/soundcard.h>
11078 #elif defined(HAVE_SOUNDCARD_H)
11079 #include <soundcard.h>
11080 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +000011081
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011082int
11083main ()
11084{
Eric Pouech338d3b21999-05-22 18:52:21 +000011085
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011086
Eric Pouech338d3b21999-05-22 18:52:21 +000011087/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11088#if !defined(SNDCTL_SEQ_SYNC)
11089#error No open sound system MIDI interface
11090#endif
11091
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011092 ;
11093 return 0;
11094}
11095_ACEOF
11096rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011098 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011099 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011100 grep -v '^ *+' conftest.er1 >conftest.err
11101 rm -f conftest.er1
11102 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011104 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; } &&
11111 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011113 (eval $ac_try) 2>&5
11114 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011116 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +000011117 ac_cv_c_opensoundsystem_midi="yes"
11118else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011119 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011120sed 's/^/| /' conftest.$ac_ext >&5
11121
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011122ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +000011123fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +000011125fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011126echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011127echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000011128
11129if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11130then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011131
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011132cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000011133#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011134_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000011135
11136fi
11137
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011138# Extract the first word of "artsc-config", so it can be a program name with args.
11139set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011140echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11142if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144else
11145 case $ARTSCCONFIG in
11146 [\\/]* | ?:[\\/]*)
11147 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11148 ;;
11149 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151for as_dir in $PATH
11152do
11153 IFS=$as_save_IFS
11154 test -z "$as_dir" && as_dir=.
11155 for ac_exec_ext in '' $ac_executable_extensions; do
11156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11157 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11159 break 2
11160 fi
11161done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011162done
11163
11164 ;;
11165esac
11166fi
11167ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11168
11169if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011170 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011171echo "${ECHO_T}$ARTSCCONFIG" >&6
11172else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011173 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011174echo "${ECHO_T}no" >&6
11175fi
11176
Marcus Meissnerbc624582004-01-18 22:15:46 +000011177if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11178then
Alexandre Julliardb3b12cf2004-02-24 01:24:20 +000011179 ARTSC_CFLAGS=""
11180 for i in `$ARTSCCONFIG --cflags`
11181 do
11182 case "$i" in
11183 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11184 esac
11185 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000011186 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11187 save_CFLAGS="$CFLAGS"
11188 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11189 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011190/* confdefs.h. */
11191_ACEOF
11192cat confdefs.h >>conftest.$ac_ext
11193cat >>conftest.$ac_ext <<_ACEOF
11194/* end confdefs.h. */
Marcus Meissnerbc624582004-01-18 22:15:46 +000011195#include <artsc.h>
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011196int
11197main ()
11198{
Marcus Meissnerbc624582004-01-18 22:15:46 +000011199arts_stream_t stream;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011200 ;
11201 return 0;
11202}
11203_ACEOF
11204rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011206 (eval $ac_compile) 2>conftest.er1
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011207 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011208 grep -v '^ *+' conftest.er1 >conftest.err
11209 rm -f conftest.er1
11210 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011212 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11216 ac_status=$?
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; } &&
11219 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011221 (eval $ac_try) 2>&5
11222 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011224 (exit $ac_status); }; }; then
Marcus Meissnerbc624582004-01-18 22:15:46 +000011225 ARTSLIBS=$ARTSC_LIBS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011226
Marcus Meissnerbc624582004-01-18 22:15:46 +000011227 ARTSINCL=$ARTSC_CFLAGS
11228
11229
11230cat >>confdefs.h <<\_ACEOF
11231#define HAVE_ARTS 1
11232_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011233
11234else
11235 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011236sed 's/^/| /' conftest.$ac_ext >&5
11237
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011238fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissnerbc624582004-01-18 22:15:46 +000011240 CFLAGS="$save_CFLAGS"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011241fi
11242
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011243ALSALIBS=""
11244
11245
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011246
11247for ac_header in alsa/asoundlib.h sys/asoundlib.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011248do
11249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11250if eval "test \"\${$as_ac_Header+set}\" = set"; then
11251 echo "$as_me:$LINENO: checking for $ac_header" >&5
11252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11253if eval "test \"\${$as_ac_Header+set}\" = set"; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11255fi
11256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11257echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11258else
11259 # Is the header compilable?
11260echo "$as_me:$LINENO: checking $ac_header usability" >&5
11261echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11262cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011263/* confdefs.h. */
11264_ACEOF
11265cat confdefs.h >>conftest.$ac_ext
11266cat >>conftest.$ac_ext <<_ACEOF
11267/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011268$ac_includes_default
11269#include <$ac_header>
11270_ACEOF
11271rm -f conftest.$ac_objext
11272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011273 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011274 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011275 grep -v '^ *+' conftest.er1 >conftest.err
11276 rm -f conftest.er1
11277 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; } &&
11286 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 ac_header_compiler=yes
11293else
11294 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011295sed 's/^/| /' conftest.$ac_ext >&5
11296
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011297ac_header_compiler=no
11298fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11301echo "${ECHO_T}$ac_header_compiler" >&6
11302
11303# Is the header present?
11304echo "$as_me:$LINENO: checking $ac_header presence" >&5
11305echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11306cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011307/* confdefs.h. */
11308_ACEOF
11309cat confdefs.h >>conftest.$ac_ext
11310cat >>conftest.$ac_ext <<_ACEOF
11311/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011312#include <$ac_header>
11313_ACEOF
11314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11316 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011317 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011318 rm -f conftest.er1
11319 cat conftest.err >&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } >/dev/null; then
11322 if test -s conftest.err; then
11323 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011325 else
11326 ac_cpp_err=
11327 fi
11328else
11329 ac_cpp_err=yes
11330fi
11331if test -z "$ac_cpp_err"; then
11332 ac_header_preproc=yes
11333else
11334 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011335sed 's/^/| /' conftest.$ac_ext >&5
11336
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011337 ac_header_preproc=no
11338fi
11339rm -f conftest.err conftest.$ac_ext
11340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11341echo "${ECHO_T}$ac_header_preproc" >&6
11342
11343# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11345 yes:no: )
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11347echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11349echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11350 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011351 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011352 no:yes:* )
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11354echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11356echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11358echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11360echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11364echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011365 (
11366 cat <<\_ASBOX
11367## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011368## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011369## ------------------------------------ ##
11370_ASBOX
11371 ) |
11372 sed "s/^/$as_me: WARNING: /" >&2
11373 ;;
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011374esac
11375echo "$as_me:$LINENO: checking for $ac_header" >&5
11376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11377if eval "test \"\${$as_ac_Header+set}\" = set"; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011380 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011381fi
11382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11383echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11384
11385fi
11386if test `eval echo '${'$as_ac_Header'}'` = yes; then
11387 cat >>confdefs.h <<_ACEOF
11388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11389_ACEOF
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011390 break
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011391fi
11392
11393done
11394
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011395if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011396then
Vincent Béron151015f2005-01-10 13:26:33 +000011397 echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
11398echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6
11399if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401else
11402 ac_check_lib_save_LIBS=$LIBS
11403LIBS="-lasound $LIBS"
11404cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011405/* confdefs.h. */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011410
11411/* Override any gcc2 internal prototype to avoid an error. */
11412#ifdef __cplusplus
11413extern "C"
11414#endif
11415/* We use char because int might match the return type of a gcc2
11416 builtin and then its argument prototype would still apply. */
Vincent Béron151015f2005-01-10 13:26:33 +000011417char snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011418int
11419main ()
11420{
Vincent Béron151015f2005-01-10 13:26:33 +000011421snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011422 ;
11423 return 0;
11424}
11425_ACEOF
11426rm -f conftest.$ac_objext conftest$ac_exeext
11427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011428 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011429 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011430 grep -v '^ *+' conftest.er1 >conftest.err
11431 rm -f conftest.er1
11432 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11438 ac_status=$?
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; } &&
11441 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11443 (eval $ac_try) 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; }; then
Vincent Béron151015f2005-01-10 13:26:33 +000011447 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011448else
11449 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011450sed 's/^/| /' conftest.$ac_ext >&5
11451
Vincent Béron151015f2005-01-10 13:26:33 +000011452ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011453fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011454rm -f conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011456LIBS=$ac_check_lib_save_LIBS
11457fi
Vincent Béron151015f2005-01-10 13:26:33 +000011458echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
11459echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6
11460if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
11461 cat >conftest.$ac_ext <<_ACEOF
11462/* confdefs.h. */
11463_ACEOF
11464cat confdefs.h >>conftest.$ac_ext
11465cat >>conftest.$ac_ext <<_ACEOF
11466/* end confdefs.h. */
11467#ifdef HAVE_ALSA_ASOUNDLIB_H
11468#include <alsa/asoundlib.h>
11469#elif defined(HAVE_SYS_ASOUNDLIB_H)
11470#include <sys/asoundlib.h>
11471#endif
11472int
11473main ()
11474{
11475int ret = snd_pcm_hw_params_get_access(NULL, NULL)
11476 ;
11477 return 0;
11478}
11479_ACEOF
11480rm -f conftest.$ac_objext
11481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482 (eval $ac_compile) 2>conftest.er1
11483 ac_status=$?
11484 grep -v '^ *+' conftest.er1 >conftest.err
11485 rm -f conftest.er1
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); } &&
11489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491 (eval $ac_try) 2>&5
11492 ac_status=$?
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); }; } &&
11495 { ac_try='test -s conftest.$ac_objext'
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; }; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011501
11502cat >>confdefs.h <<\_ACEOF
11503#define HAVE_ALSA 1
11504_ACEOF
11505
Vincent Béron151015f2005-01-10 13:26:33 +000011506 ALSALIBS="-lasound"
11507else
11508 echo "$as_me: failed program was:" >&5
11509sed 's/^/| /' conftest.$ac_ext >&5
11510
11511fi
11512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011513fi
11514
11515fi
11516
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011517
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011518AUDIOIOLIBS=""
11519
11520
11521for ac_header in libaudioio.h
11522do
11523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11524if eval "test \"\${$as_ac_Header+set}\" = set"; then
11525 echo "$as_me:$LINENO: checking for $ac_header" >&5
11526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11527if eval "test \"\${$as_ac_Header+set}\" = set"; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11529fi
11530echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11531echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11532else
11533 # Is the header compilable?
11534echo "$as_me:$LINENO: checking $ac_header usability" >&5
11535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11536cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011537/* confdefs.h. */
11538_ACEOF
11539cat confdefs.h >>conftest.$ac_ext
11540cat >>conftest.$ac_ext <<_ACEOF
11541/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011542$ac_includes_default
11543#include <$ac_header>
11544_ACEOF
11545rm -f conftest.$ac_objext
11546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011547 (eval $ac_compile) 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011548 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11556 (eval $ac_try) 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; } &&
11560 { ac_try='test -s conftest.$ac_objext'
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562 (eval $ac_try) 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
11566 ac_header_compiler=yes
11567else
11568 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011569sed 's/^/| /' conftest.$ac_ext >&5
11570
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011571ac_header_compiler=no
11572fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011574echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11575echo "${ECHO_T}$ac_header_compiler" >&6
11576
11577# Is the header present?
11578echo "$as_me:$LINENO: checking $ac_header presence" >&5
11579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11580cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011581/* confdefs.h. */
11582_ACEOF
11583cat confdefs.h >>conftest.$ac_ext
11584cat >>conftest.$ac_ext <<_ACEOF
11585/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011586#include <$ac_header>
11587_ACEOF
11588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11590 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011591 grep -v '^ *+' conftest.er1 >conftest.err
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } >/dev/null; then
11596 if test -s conftest.err; then
11597 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011599 else
11600 ac_cpp_err=
11601 fi
11602else
11603 ac_cpp_err=yes
11604fi
11605if test -z "$ac_cpp_err"; then
11606 ac_header_preproc=yes
11607else
11608 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011609sed 's/^/| /' conftest.$ac_ext >&5
11610
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011611 ac_header_preproc=no
11612fi
11613rm -f conftest.err conftest.$ac_ext
11614echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11615echo "${ECHO_T}$ac_header_preproc" >&6
11616
11617# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11619 yes:no: )
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11624 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011625 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011626 no:yes:* )
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011639 (
11640 cat <<\_ASBOX
11641## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011642## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011643## ------------------------------------ ##
11644_ASBOX
11645 ) |
11646 sed "s/^/$as_me: WARNING: /" >&2
11647 ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011648esac
11649echo "$as_me:$LINENO: checking for $ac_header" >&5
11650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11651if eval "test \"\${$as_ac_Header+set}\" = set"; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011654 eval "$as_ac_Header=\$ac_header_preproc"
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011655fi
11656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11658
11659fi
11660if test `eval echo '${'$as_ac_Header'}'` = yes; then
11661 cat >>confdefs.h <<_ACEOF
11662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11663_ACEOF
11664 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11665echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11666if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11668else
11669 ac_check_lib_save_LIBS=$LIBS
11670LIBS="-laudioio $LIBS"
11671cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011672/* confdefs.h. */
11673_ACEOF
11674cat confdefs.h >>conftest.$ac_ext
11675cat >>conftest.$ac_ext <<_ACEOF
11676/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011677
11678/* Override any gcc2 internal prototype to avoid an error. */
11679#ifdef __cplusplus
11680extern "C"
11681#endif
11682/* We use char because int might match the return type of a gcc2
11683 builtin and then its argument prototype would still apply. */
11684char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011685int
11686main ()
11687{
11688AudioIOGetVersion ();
11689 ;
11690 return 0;
11691}
11692_ACEOF
11693rm -f conftest.$ac_objext conftest$ac_exeext
11694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011695 (eval $ac_link) 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011696 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011697 grep -v '^ *+' conftest.er1 >conftest.err
11698 rm -f conftest.er1
11699 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704 (eval $ac_try) 2>&5
11705 ac_status=$?
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; } &&
11708 { ac_try='test -s conftest$ac_exeext'
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 ac_cv_lib_audioio_AudioIOGetVersion=yes
11715else
11716 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011717sed 's/^/| /' conftest.$ac_ext >&5
11718
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011719ac_cv_lib_audioio_AudioIOGetVersion=no
11720fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011721rm -f conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011723LIBS=$ac_check_lib_save_LIBS
11724fi
11725echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11726echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11727if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11728 AUDIOIOLIBS="-laudioio"
11729
11730cat >>confdefs.h <<\_ACEOF
11731#define HAVE_LIBAUDIOIO 1
11732_ACEOF
11733
11734fi
11735
11736fi
11737
11738done
11739
11740
11741
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011742
11743for ac_header in capi20.h
11744do
11745as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11746if eval "test \"\${$as_ac_Header+set}\" = set"; then
11747 echo "$as_me:$LINENO: checking for $ac_header" >&5
11748echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11749if eval "test \"\${$as_ac_Header+set}\" = set"; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11751fi
11752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11754else
11755 # Is the header compilable?
11756echo "$as_me:$LINENO: checking $ac_header usability" >&5
11757echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11758cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011759/* confdefs.h. */
11760_ACEOF
11761cat confdefs.h >>conftest.$ac_ext
11762cat >>conftest.$ac_ext <<_ACEOF
11763/* end confdefs.h. */
11764$ac_includes_default
11765#include <$ac_header>
11766_ACEOF
11767rm -f conftest.$ac_objext
11768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011769 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011770 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011771 grep -v '^ *+' conftest.er1 >conftest.err
11772 rm -f conftest.er1
11773 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } &&
11782 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then
11788 ac_header_compiler=yes
11789else
11790 echo "$as_me: failed program was:" >&5
11791sed 's/^/| /' conftest.$ac_ext >&5
11792
11793ac_header_compiler=no
11794fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011796echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11797echo "${ECHO_T}$ac_header_compiler" >&6
11798
11799# Is the header present?
11800echo "$as_me:$LINENO: checking $ac_header presence" >&5
11801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11802cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011803/* confdefs.h. */
11804_ACEOF
11805cat confdefs.h >>conftest.$ac_ext
11806cat >>conftest.$ac_ext <<_ACEOF
11807/* end confdefs.h. */
11808#include <$ac_header>
11809_ACEOF
11810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11812 ac_status=$?
11813 grep -v '^ *+' conftest.er1 >conftest.err
11814 rm -f conftest.er1
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } >/dev/null; then
11818 if test -s conftest.err; then
11819 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011821 else
11822 ac_cpp_err=
11823 fi
11824else
11825 ac_cpp_err=yes
11826fi
11827if test -z "$ac_cpp_err"; then
11828 ac_header_preproc=yes
11829else
11830 echo "$as_me: failed program was:" >&5
11831sed 's/^/| /' conftest.$ac_ext >&5
11832
11833 ac_header_preproc=no
11834fi
11835rm -f conftest.err conftest.$ac_ext
11836echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11837echo "${ECHO_T}$ac_header_preproc" >&6
11838
11839# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11841 yes:no: )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11843echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11845echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11846 ac_header_preproc=yes
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011847 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011848 no:yes:* )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11850echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11852echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11854echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11856echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11860echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011861 (
11862 cat <<\_ASBOX
11863## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011864## Report this to wine-devel@winehq.org ##
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011865## ------------------------------------ ##
11866_ASBOX
11867 ) |
11868 sed "s/^/$as_me: WARNING: /" >&2
11869 ;;
11870esac
11871echo "$as_me:$LINENO: checking for $ac_header" >&5
11872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11873if eval "test \"\${$as_ac_Header+set}\" = set"; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11875else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011876 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011877fi
11878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11880
11881fi
11882if test `eval echo '${'$as_ac_Header'}'` = yes; then
11883 cat >>confdefs.h <<_ACEOF
11884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11885_ACEOF
11886
11887
11888for ac_header in linux/capi.h
11889do
11890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11891if eval "test \"\${$as_ac_Header+set}\" = set"; then
11892 echo "$as_me:$LINENO: checking for $ac_header" >&5
11893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11894if eval "test \"\${$as_ac_Header+set}\" = set"; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896fi
11897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11899else
11900 # Is the header compilable?
11901echo "$as_me:$LINENO: checking $ac_header usability" >&5
11902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11903cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011904/* confdefs.h. */
11905_ACEOF
11906cat confdefs.h >>conftest.$ac_ext
11907cat >>conftest.$ac_ext <<_ACEOF
11908/* end confdefs.h. */
11909$ac_includes_default
11910#include <$ac_header>
11911_ACEOF
11912rm -f conftest.$ac_objext
11913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011914 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011915 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; } &&
11927 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 ac_header_compiler=yes
11934else
11935 echo "$as_me: failed program was:" >&5
11936sed 's/^/| /' conftest.$ac_ext >&5
11937
11938ac_header_compiler=no
11939fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011941echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11942echo "${ECHO_T}$ac_header_compiler" >&6
11943
11944# Is the header present?
11945echo "$as_me:$LINENO: checking $ac_header presence" >&5
11946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11947cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011948/* confdefs.h. */
11949_ACEOF
11950cat confdefs.h >>conftest.$ac_ext
11951cat >>conftest.$ac_ext <<_ACEOF
11952/* end confdefs.h. */
11953#include <$ac_header>
11954_ACEOF
11955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } >/dev/null; then
11963 if test -s conftest.err; then
11964 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011966 else
11967 ac_cpp_err=
11968 fi
11969else
11970 ac_cpp_err=yes
11971fi
11972if test -z "$ac_cpp_err"; then
11973 ac_header_preproc=yes
11974else
11975 echo "$as_me: failed program was:" >&5
11976sed 's/^/| /' conftest.$ac_ext >&5
11977
11978 ac_header_preproc=no
11979fi
11980rm -f conftest.err conftest.$ac_ext
11981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11982echo "${ECHO_T}$ac_header_preproc" >&6
11983
11984# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11986 yes:no: )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11988echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11990echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11991 ac_header_preproc=yes
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011992 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011993 no:yes:* )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11995echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11997echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11999echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12001echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12003echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12005echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012006 (
12007 cat <<\_ASBOX
12008## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000012009## Report this to wine-devel@winehq.org ##
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012010## ------------------------------------ ##
12011_ASBOX
12012 ) |
12013 sed "s/^/$as_me: WARNING: /" >&2
12014 ;;
12015esac
12016echo "$as_me:$LINENO: checking for $ac_header" >&5
12017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12018if eval "test \"\${$as_ac_Header+set}\" = set"; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020else
Alexandre Julliard875927f2004-01-02 01:55:29 +000012021 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012022fi
12023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12025
12026fi
12027if test `eval echo '${'$as_ac_Header'}'` = yes; then
12028 cat >>confdefs.h <<_ACEOF
12029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12030_ACEOF
12031
12032 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12033echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12034if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12036else
12037 ac_check_lib_save_LIBS=$LIBS
12038LIBS="-lcapi20 $LIBS"
12039cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012040/* confdefs.h. */
12041_ACEOF
12042cat confdefs.h >>conftest.$ac_ext
12043cat >>conftest.$ac_ext <<_ACEOF
12044/* end confdefs.h. */
12045
12046/* Override any gcc2 internal prototype to avoid an error. */
12047#ifdef __cplusplus
12048extern "C"
12049#endif
12050/* We use char because int might match the return type of a gcc2
12051 builtin and then its argument prototype would still apply. */
12052char capi20_register ();
12053int
12054main ()
12055{
12056capi20_register ();
12057 ;
12058 return 0;
12059}
12060_ACEOF
12061rm -f conftest.$ac_objext conftest$ac_exeext
12062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012063 (eval $ac_link) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012064 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012065 grep -v '^ *+' conftest.er1 >conftest.err
12066 rm -f conftest.er1
12067 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_cv_lib_capi20_capi20_register=yes
12083else
12084 echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
12086
12087ac_cv_lib_capi20_capi20_register=no
12088fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012089rm -f conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012091LIBS=$ac_check_lib_save_LIBS
12092fi
12093echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12094echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12095if test $ac_cv_lib_capi20_capi20_register = yes; then
12096
12097
12098cat >>confdefs.h <<\_ACEOF
12099#define HAVE_CAPI4LINUX 1
12100_ACEOF
12101
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012102
12103fi
12104
12105
12106fi
12107
12108done
12109
12110
12111fi
12112
12113done
12114
12115
12116
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012117echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012118echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12119if test "${ac_cv_mmap64_works+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012121else
12122 if test "$cross_compiling" = yes; then
12123 ac_cv_mmap64_works="no"
12124else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012125 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012126/* confdefs.h. */
12127_ACEOF
12128cat confdefs.h >>conftest.$ac_ext
12129cat >>conftest.$ac_ext <<_ACEOF
12130/* end confdefs.h. */
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012131
12132 #define _FILE_OFFSET_BITS 64
12133 #include <stdio.h>
12134 #include <unistd.h>
12135 #include <fcntl.h>
12136 #include <sys/mman.h>
12137 #include <errno.h>
12138
12139 int main(int argc,char **argv) {
12140 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12141 if (fd == -1) exit(1);
12142
12143 unlink("conftest.map");
12144
12145 write(fd,"test",4);
12146
12147 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12148 (errno == EINVAL)
12149 ) {
12150 exit(1);
12151 }
12152 close(fd);
12153 fprintf(stderr,"success!\n");
12154 exit(0);
12155 }
12156
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012157
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012158_ACEOF
12159rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012161 (eval $ac_link) 2>&5
12162 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012166 (eval $ac_try) 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); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012170 ac_cv_mmap64_works="yes"
12171else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012172 echo "$as_me: program exited with status $ac_status" >&5
12173echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012174sed 's/^/| /' conftest.$ac_ext >&5
12175
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012176( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012177ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012178fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012179rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012180fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012181fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012182echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012183echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012184
12185if test "$ac_cv_mmap64_works" = "yes"
12186then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012187
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012188cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012189#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012190_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012191
12192fi
12193
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012194
Alexandre Julliardfc094232003-04-14 21:46:41 +000012195EXTRACFLAGS=""
12196
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012197if test "x${GCC}" = "xyes"
12198then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000012199 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000012200
12201 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012202echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12203if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012205else
12206 if test "$cross_compiling" = yes; then
12207 ac_cv_c_gcc_strength_bug="yes"
12208else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012209 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012210/* confdefs.h. */
12211_ACEOF
12212cat confdefs.h >>conftest.$ac_ext
12213cat >>conftest.$ac_ext <<_ACEOF
12214/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012215
Eric Pouech5aee80f2000-11-11 00:31:39 +000012216int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012217int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012218 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012219 unsigned int B = 3;
12220 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012221 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000012222 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12223 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012224
Eric Pouech5aee80f2000-11-11 00:31:39 +000012225 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012226}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012227_ACEOF
12228rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012230 (eval $ac_link) 2>&5
12231 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012235 (eval $ac_try) 2>&5
12236 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012238 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012239 ac_cv_c_gcc_strength_bug="no"
12240else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012241 echo "$as_me: program exited with status $ac_status" >&5
12242echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012243sed 's/^/| /' conftest.$ac_ext >&5
12244
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012245( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012246ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012247fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012248rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012249fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012250fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012251echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012252echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012253 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12254 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012255 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012256 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012257
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000012258 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12259echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12260if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262else
12263 ac_wine_try_cflags_saved=$CFLAGS
12264CFLAGS="$CFLAGS -fshort-wchar"
12265cat >conftest.$ac_ext <<_ACEOF
12266/* confdefs.h. */
12267_ACEOF
12268cat confdefs.h >>conftest.$ac_ext
12269cat >>conftest.$ac_ext <<_ACEOF
12270/* end confdefs.h. */
12271
12272int
12273main ()
12274{
12275
12276 ;
12277 return 0;
12278}
12279_ACEOF
12280rm -f conftest.$ac_objext conftest$ac_exeext
12281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12282 (eval $ac_link) 2>conftest.er1
12283 ac_status=$?
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } &&
12289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12292 ac_status=$?
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; } &&
12295 { ac_try='test -s conftest$ac_exeext'
12296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297 (eval $ac_try) 2>&5
12298 ac_status=$?
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); }; }; then
12301 ac_cv_c_gcc_fshort_wchar="yes"
12302else
12303 echo "$as_me: failed program was:" >&5
12304sed 's/^/| /' conftest.$ac_ext >&5
12305
12306ac_cv_c_gcc_fshort_wchar="no"
12307fi
12308rm -f conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310CFLAGS=$ac_wine_try_cflags_saved
12311fi
12312echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12313echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12314 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12315 then
12316
12317cat >>confdefs.h <<\_ACEOF
12318#define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12319_ACEOF
12320
12321 fi
12322
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012323 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012324echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12325if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012327else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012328 ac_wine_try_cflags_saved=$CFLAGS
12329CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12330cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012331/* confdefs.h. */
12332_ACEOF
12333cat confdefs.h >>conftest.$ac_ext
12334cat >>conftest.$ac_ext <<_ACEOF
12335/* end confdefs.h. */
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012336
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012337int
12338main ()
12339{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012340
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012341 ;
12342 return 0;
12343}
12344_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012345rm -f conftest.$ac_objext conftest$ac_exeext
12346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012347 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012348 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012349 grep -v '^ *+' conftest.er1 >conftest.err
12350 rm -f conftest.er1
12351 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012353 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; } &&
12360 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012362 (eval $ac_try) 2>&5
12363 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012365 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012366 ac_cv_c_gcc_stack_boundary="yes"
12367else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012368 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012369sed 's/^/| /' conftest.$ac_ext >&5
12370
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012371ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012372fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012373rm -f conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012375CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012376fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012377echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012378echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012379 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12380 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012381 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012382 fi
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012383
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012384 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12385echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12386if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388else
12389 ac_wine_try_cflags_saved=$CFLAGS
12390CFLAGS="$CFLAGS -fno-strict-aliasing"
12391cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012392/* confdefs.h. */
12393_ACEOF
12394cat confdefs.h >>conftest.$ac_ext
12395cat >>conftest.$ac_ext <<_ACEOF
12396/* end confdefs.h. */
12397
12398int
12399main ()
12400{
12401
12402 ;
12403 return 0;
12404}
12405_ACEOF
12406rm -f conftest.$ac_objext conftest$ac_exeext
12407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012408 (eval $ac_link) 2>conftest.er1
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012409 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012410 grep -v '^ *+' conftest.er1 >conftest.err
12411 rm -f conftest.er1
12412 cat conftest.err >&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; } &&
12421 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 ac_cv_c_gcc_no_strict_aliasing="yes"
12428else
12429 echo "$as_me: failed program was:" >&5
12430sed 's/^/| /' conftest.$ac_ext >&5
12431
12432ac_cv_c_gcc_no_strict_aliasing="no"
12433fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012434rm -f conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012436CFLAGS=$ac_wine_try_cflags_saved
12437fi
12438echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12439echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12440 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12441 then
12442 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12443 fi
12444
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012445 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12446echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12447if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12449else
12450 ac_wine_try_cflags_saved=$CFLAGS
12451CFLAGS="$CFLAGS -gstabs+"
12452cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012453/* confdefs.h. */
12454_ACEOF
12455cat confdefs.h >>conftest.$ac_ext
12456cat >>conftest.$ac_ext <<_ACEOF
12457/* end confdefs.h. */
12458
12459int
12460main ()
12461{
12462
12463 ;
12464 return 0;
12465}
12466_ACEOF
12467rm -f conftest.$ac_objext conftest$ac_exeext
12468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012469 (eval $ac_link) 2>conftest.er1
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012470 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478 (eval $ac_try) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; } &&
12482 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_cv_c_gcc_gstabs="yes"
12489else
12490 echo "$as_me: failed program was:" >&5
12491sed 's/^/| /' conftest.$ac_ext >&5
12492
12493ac_cv_c_gcc_gstabs="no"
12494fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012495rm -f conftest.err conftest.$ac_objext \
12496 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012497CFLAGS=$ac_wine_try_cflags_saved
12498fi
12499echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12500echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12501 if test "$ac_cv_c_gcc_gstabs" = "yes"
12502 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012503 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012504 fi
Mike McCormackc509bc42003-02-25 04:01:58 +000012505
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012506 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012507 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12508 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12509echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12510if test "${ac_cv_c_string_h_warnings+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12512else
12513 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackc509bc42003-02-25 04:01:58 +000012514/* confdefs.h. */
12515_ACEOF
12516cat confdefs.h >>conftest.$ac_ext
12517cat >>conftest.$ac_ext <<_ACEOF
12518/* end confdefs.h. */
12519#include <string.h>
12520int
12521main ()
12522{
12523
12524 ;
12525 return 0;
12526}
12527_ACEOF
12528rm -f conftest.$ac_objext
12529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012530 (eval $ac_compile) 2>conftest.er1
Mike McCormackc509bc42003-02-25 04:01:58 +000012531 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012532 grep -v '^ *+' conftest.er1 >conftest.err
12533 rm -f conftest.er1
12534 cat conftest.err >&5
Mike McCormackc509bc42003-02-25 04:01:58 +000012535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest.$ac_objext'
Mike McCormackc509bc42003-02-25 04:01:58 +000012544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 ac_cv_c_string_h_warnings=no
12550else
12551 echo "$as_me: failed program was:" >&5
12552sed 's/^/| /' conftest.$ac_ext >&5
12553
12554ac_cv_c_string_h_warnings=yes
12555fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012557fi
12558echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12559echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012560 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012561 if test "$ac_cv_c_string_h_warnings" = "no"
12562 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012563 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000012564 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012565fi
12566
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012567
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012568echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12569echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12570if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012571 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012572else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012573 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012574/* confdefs.h. */
12575_ACEOF
12576cat confdefs.h >>conftest.$ac_ext
12577cat >>conftest.$ac_ext <<_ACEOF
12578/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012579void 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 +000012580
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012581int
12582main ()
12583{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012584
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012585 ;
12586 return 0;
12587}
12588_ACEOF
12589rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012591 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012592 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012593 grep -v '^ *+' conftest.er1 >conftest.err
12594 rm -f conftest.er1
12595 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012597 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; } &&
12604 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012606 (eval $ac_try) 2>&5
12607 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012609 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012610 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012611else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012612 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012613sed 's/^/| /' conftest.$ac_ext >&5
12614
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012615cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012616/* confdefs.h. */
12617_ACEOF
12618cat confdefs.h >>conftest.$ac_ext
12619cat >>conftest.$ac_ext <<_ACEOF
12620/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012621void 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 +000012622
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012623int
12624main ()
12625{
12626
12627 ;
12628 return 0;
12629}
12630_ACEOF
12631rm -f conftest.$ac_objext conftest$ac_exeext
12632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012633 (eval $ac_link) 2>conftest.er1
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012634 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; } &&
12646 { ac_try='test -s conftest$ac_exeext'
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012652 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012653else
12654 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012655sed 's/^/| /' conftest.$ac_ext >&5
12656
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012657cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012658/* confdefs.h. */
12659_ACEOF
12660cat confdefs.h >>conftest.$ac_ext
12661cat >>conftest.$ac_ext <<_ACEOF
12662/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012663void 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 +000012664
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012665int
12666main ()
12667{
12668
12669 ;
12670 return 0;
12671}
12672_ACEOF
12673rm -f conftest.$ac_objext conftest$ac_exeext
12674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012675 (eval $ac_link) 2>conftest.er1
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012676 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012677 grep -v '^ *+' conftest.er1 >conftest.err
12678 rm -f conftest.er1
12679 cat conftest.err >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; } &&
12688 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12694 ac_cv_asm_func_def=".type 2"
12695else
12696 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012697sed 's/^/| /' conftest.$ac_ext >&5
12698
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012699ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012700fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012701rm -f conftest.err conftest.$ac_objext \
12702 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012703fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012704rm -f conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012706fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012707rm -f conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012709fi
12710echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12711echo "${ECHO_T}$ac_cv_asm_func_def" >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012712
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012713
12714
12715case "$ac_cv_asm_func_def" in
12716 ".def")
12717 cat >>confdefs.h <<\_ACEOF
12718#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012719_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012720 ;;
12721 ".type @function")
12722 cat >>confdefs.h <<\_ACEOF
12723#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12724_ACEOF
12725 ;;
12726 ".type 2")
12727 cat >>confdefs.h <<\_ACEOF
12728#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12729_ACEOF
12730 ;;
12731 *)
12732 cat >>confdefs.h <<\_ACEOF
12733#define __ASM_FUNC(name) ""
12734_ACEOF
12735 ;;
12736esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012737
12738
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012739echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012740echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12741if test "${ac_cv_c_extern_prefix+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012743else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012744 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012745/* confdefs.h. */
12746_ACEOF
12747cat confdefs.h >>conftest.$ac_ext
12748cat >>conftest.$ac_ext <<_ACEOF
12749/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012750void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012751extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012752int
12753main ()
12754{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012755if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012756 ;
12757 return 0;
12758}
12759_ACEOF
12760rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012762 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012763 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012764 grep -v '^ *+' conftest.er1 >conftest.err
12765 rm -f conftest.er1
12766 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012768 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; } &&
12775 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012777 (eval $ac_try) 2>&5
12778 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012780 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012781 ac_cv_c_extern_prefix="yes"
12782else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012783 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012784sed 's/^/| /' conftest.$ac_ext >&5
12785
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012786ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012787fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012788rm -f conftest.err conftest.$ac_objext \
12789 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012790fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012791echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012792echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012793
12794
12795
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012796if test "$ac_cv_c_extern_prefix" = "yes"
12797then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012798 cat >>confdefs.h <<\_ACEOF
12799#define __ASM_NAME(name) "_" name
12800_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012801
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012802else
12803 cat >>confdefs.h <<\_ACEOF
12804#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012805_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012806
12807fi
12808
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012809
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012810echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
12811echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012812if test "${ac_cv_c_asm_string+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012814else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012815 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012816/* confdefs.h. */
12817_ACEOF
12818cat confdefs.h >>conftest.$ac_ext
12819cat >>conftest.$ac_ext <<_ACEOF
12820/* end confdefs.h. */
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012821void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012822
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012823int
12824main ()
12825{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012826
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012827 ;
12828 return 0;
12829}
12830_ACEOF
12831rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012833 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012834 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012839 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842 (eval $ac_try) 2>&5
12843 ac_status=$?
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; } &&
12846 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012848 (eval $ac_try) 2>&5
12849 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012851 (exit $ac_status); }; }; then
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012852 ac_cv_c_asm_string=".string"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012853else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012854 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012855sed 's/^/| /' conftest.$ac_ext >&5
12856
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012857cat >conftest.$ac_ext <<_ACEOF
12858/* confdefs.h. */
12859_ACEOF
12860cat confdefs.h >>conftest.$ac_ext
12861cat >>conftest.$ac_ext <<_ACEOF
12862/* end confdefs.h. */
12863void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
12864
12865int
12866main ()
12867{
12868
12869 ;
12870 return 0;
12871}
12872_ACEOF
12873rm -f conftest.$ac_objext conftest$ac_exeext
12874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12875 (eval $ac_link) 2>conftest.er1
12876 ac_status=$?
12877 grep -v '^ *+' conftest.er1 >conftest.err
12878 rm -f conftest.er1
12879 cat conftest.err >&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12885 ac_status=$?
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; } &&
12888 { ac_try='test -s conftest$ac_exeext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 ac_cv_c_asm_string=".asciz"
12895else
12896 echo "$as_me: failed program was:" >&5
12897sed 's/^/| /' conftest.$ac_ext >&5
12898
12899cat >conftest.$ac_ext <<_ACEOF
12900/* confdefs.h. */
12901_ACEOF
12902cat confdefs.h >>conftest.$ac_ext
12903cat >>conftest.$ac_ext <<_ACEOF
12904/* end confdefs.h. */
12905void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
12906
12907int
12908main ()
12909{
12910
12911 ;
12912 return 0;
12913}
12914_ACEOF
12915rm -f conftest.$ac_objext conftest$ac_exeext
12916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917 (eval $ac_link) 2>conftest.er1
12918 ac_status=$?
12919 grep -v '^ *+' conftest.er1 >conftest.err
12920 rm -f conftest.er1
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } &&
12924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12927 ac_status=$?
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); }; } &&
12930 { ac_try='test -s conftest$ac_exeext'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12933 ac_status=$?
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_cv_c_asm_string=".ascii"
12937else
12938 echo "$as_me: failed program was:" >&5
12939sed 's/^/| /' conftest.$ac_ext >&5
12940
12941{ { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
12942echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
12943 { (exit 1); exit 1; }; }
12944fi
12945rm -f conftest.err conftest.$ac_objext \
12946 conftest$ac_exeext conftest.$ac_ext
12947fi
12948rm -f conftest.err conftest.$ac_objext \
12949 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012950fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012951rm -f conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012953fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012954echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012955echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012956
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012957
12958cat >>confdefs.h <<_ACEOF
12959#define __ASM_STRING "$ac_cv_c_asm_string"
Christian Costaf814cf82003-03-23 00:18:26 +000012960_ACEOF
12961
Christian Costaf814cf82003-03-23 00:18:26 +000012962
12963
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012964echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
12965echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
Christian Costaf814cf82003-03-23 00:18:26 +000012966if test "${ac_cv_c_asm_short+set}" = set; then
12967 echo $ECHO_N "(cached) $ECHO_C" >&6
12968else
12969 cat >conftest.$ac_ext <<_ACEOF
Christian Costaf814cf82003-03-23 00:18:26 +000012970/* confdefs.h. */
12971_ACEOF
12972cat confdefs.h >>conftest.$ac_ext
12973cat >>conftest.$ac_ext <<_ACEOF
12974/* end confdefs.h. */
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012975void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
Christian Costaf814cf82003-03-23 00:18:26 +000012976
12977int
12978main ()
12979{
12980
12981 ;
12982 return 0;
12983}
12984_ACEOF
12985rm -f conftest.$ac_objext conftest$ac_exeext
12986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012987 (eval $ac_link) 2>conftest.er1
Christian Costaf814cf82003-03-23 00:18:26 +000012988 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012989 grep -v '^ *+' conftest.er1 >conftest.err
12990 rm -f conftest.er1
12991 cat conftest.err >&5
Christian Costaf814cf82003-03-23 00:18:26 +000012992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; } &&
13000 { ac_try='test -s conftest$ac_exeext'
Christian Costaf814cf82003-03-23 00:18:26 +000013001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002 (eval $ac_try) 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013006 ac_cv_c_asm_short=".short"
Christian Costaf814cf82003-03-23 00:18:26 +000013007else
13008 echo "$as_me: failed program was:" >&5
13009sed 's/^/| /' conftest.$ac_ext >&5
13010
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013011cat >conftest.$ac_ext <<_ACEOF
13012/* confdefs.h. */
13013_ACEOF
13014cat confdefs.h >>conftest.$ac_ext
13015cat >>conftest.$ac_ext <<_ACEOF
13016/* end confdefs.h. */
13017void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13018
13019int
13020main ()
13021{
13022
13023 ;
13024 return 0;
13025}
13026_ACEOF
13027rm -f conftest.$ac_objext conftest$ac_exeext
13028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13029 (eval $ac_link) 2>conftest.er1
13030 ac_status=$?
13031 grep -v '^ *+' conftest.er1 >conftest.err
13032 rm -f conftest.er1
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } &&
13036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest$ac_exeext'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_cv_c_asm_short=".half"
13049else
13050 echo "$as_me: failed program was:" >&5
13051sed 's/^/| /' conftest.$ac_ext >&5
13052
13053{ { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13054echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13055 { (exit 1); exit 1; }; }
13056fi
13057rm -f conftest.err conftest.$ac_objext \
13058 conftest$ac_exeext conftest.$ac_ext
Christian Costaf814cf82003-03-23 00:18:26 +000013059fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013060rm -f conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext conftest.$ac_ext
Christian Costaf814cf82003-03-23 00:18:26 +000013062fi
13063echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13064echo "${ECHO_T}$ac_cv_c_asm_short" >&6
Christian Costaf814cf82003-03-23 00:18:26 +000013065
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013066
13067cat >>confdefs.h <<_ACEOF
13068#define __ASM_SHORT "$ac_cv_c_asm_short"
Christian Costaf814cf82003-03-23 00:18:26 +000013069_ACEOF
13070
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000013071
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013072
Pierre d'Herbemont68467db2004-06-18 19:36:26 +000013073echo "$as_me:$LINENO: checking for .size in assembler" >&5
13074echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
13075if test "${ac_cv_c_asm_size+set}" = set; then
13076 echo $ECHO_N "(cached) $ECHO_C" >&6
13077else
13078 cat >conftest.$ac_ext <<_ACEOF
13079/* confdefs.h. */
13080_ACEOF
13081cat confdefs.h >>conftest.$ac_ext
13082cat >>conftest.$ac_ext <<_ACEOF
13083/* end confdefs.h. */
13084void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
13085
13086int
13087main ()
13088{
13089
13090 ;
13091 return 0;
13092}
13093_ACEOF
13094rm -f conftest.$ac_objext conftest$ac_exeext
13095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13096 (eval $ac_link) 2>conftest.er1
13097 ac_status=$?
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } &&
13103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest$ac_exeext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 ac_cv_c_asm_size="yes"
13116else
13117 echo "$as_me: failed program was:" >&5
13118sed 's/^/| /' conftest.$ac_ext >&5
13119
13120ac_cv_c_asm_size="no"
13121fi
13122rm -f conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124fi
13125echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13126echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13127
13128if test "$ac_cv_c_asm_size" = "yes"
13129then
13130
13131cat >>confdefs.h <<\_ACEOF
13132#define HAVE_ASM_DOT_SIZE 1
13133_ACEOF
13134
13135fi
13136
13137
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013138DLLEXT=""
13139
Alexandre Julliardfc094232003-04-14 21:46:41 +000013140DLLFLAGS="-D_REENTRANT"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013141
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013142DLLIBS=""
13143
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013144LDSHARED=""
13145
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013146LDDLLFLAGS=""
Alexandre Julliard6ac34ac2003-10-11 01:05:18 +000013147
Alexandre Julliardada5e652002-12-12 22:03:14 +000013148LIBEXT="so"
13149
13150IMPLIBEXT="def"
13151
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013152
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013153case $host_os in
13154 cygwin*|mingw32*)
13155 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000013156 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13157set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13158echo "$as_me:$LINENO: checking for $ac_word" >&5
13159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13160if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13162else
13163 if test -n "$DLLTOOL"; then
13164 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13165else
13166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167for as_dir in $PATH
13168do
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13173 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 break 2
13176 fi
13177done
13178done
13179
13180fi
13181fi
13182DLLTOOL=$ac_cv_prog_DLLTOOL
13183if test -n "$DLLTOOL"; then
13184 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13185echo "${ECHO_T}$DLLTOOL" >&6
13186else
13187 echo "$as_me:$LINENO: result: no" >&5
13188echo "${ECHO_T}no" >&6
13189fi
13190
13191fi
13192if test -z "$ac_cv_prog_DLLTOOL"; then
13193 ac_ct_DLLTOOL=$DLLTOOL
13194 # Extract the first word of "dlltool", so it can be a program name with args.
13195set dummy dlltool; ac_word=$2
13196echo "$as_me:$LINENO: checking for $ac_word" >&5
13197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13198if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13200else
13201 if test -n "$ac_ct_DLLTOOL"; then
13202 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13203else
13204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205for as_dir in $PATH
13206do
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13211 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13214 fi
13215done
13216done
13217
13218 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13219fi
13220fi
13221ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13222if test -n "$ac_ct_DLLTOOL"; then
13223 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13224echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13225else
13226 echo "$as_me:$LINENO: result: no" >&5
13227echo "${ECHO_T}no" >&6
13228fi
13229
13230 DLLTOOL=$ac_ct_DLLTOOL
13231else
13232 DLLTOOL="$ac_cv_prog_DLLTOOL"
13233fi
13234
13235 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013236 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13237set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +000013238echo "$as_me:$LINENO: checking for $ac_word" >&5
13239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13240if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242else
13243 if test -n "$DLLWRAP"; then
13244 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13245else
13246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247for as_dir in $PATH
13248do
13249 IFS=$as_save_IFS
13250 test -z "$as_dir" && as_dir=.
13251 for ac_exec_ext in '' $ac_executable_extensions; do
13252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013253 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000013254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13255 break 2
13256 fi
13257done
13258done
13259
Alexandre Julliard466ae142002-05-07 18:33:47 +000013260fi
13261fi
13262DLLWRAP=$ac_cv_prog_DLLWRAP
13263if test -n "$DLLWRAP"; then
13264 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13265echo "${ECHO_T}$DLLWRAP" >&6
13266else
13267 echo "$as_me:$LINENO: result: no" >&5
13268echo "${ECHO_T}no" >&6
13269fi
13270
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013271fi
13272if test -z "$ac_cv_prog_DLLWRAP"; then
13273 ac_ct_DLLWRAP=$DLLWRAP
13274 # Extract the first word of "dllwrap", so it can be a program name with args.
13275set dummy dllwrap; ac_word=$2
13276echo "$as_me:$LINENO: checking for $ac_word" >&5
13277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13278if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280else
13281 if test -n "$ac_ct_DLLWRAP"; then
13282 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13283else
13284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285for as_dir in $PATH
13286do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13291 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13294 fi
13295done
13296done
13297
13298 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13299fi
13300fi
13301ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13302if test -n "$ac_ct_DLLWRAP"; then
13303 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13304echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13305else
13306 echo "$as_me:$LINENO: result: no" >&5
13307echo "${ECHO_T}no" >&6
13308fi
13309
13310 DLLWRAP=$ac_ct_DLLWRAP
13311else
13312 DLLWRAP="$ac_cv_prog_DLLWRAP"
13313fi
13314
13315 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013316 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013317 else
13318 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013319 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000013320 IMPLIBEXT="a"
Alexandre Julliard56a4a762004-08-12 03:27:50 +000013321 WIN16_FILES=""
13322 WIN16_INSTALL=""
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013323 ;;
13324 *)
13325
13326for ac_header in dlfcn.h
13327do
13328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13329if eval "test \"\${$as_ac_Header+set}\" = set"; then
13330 echo "$as_me:$LINENO: checking for $ac_header" >&5
13331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13332if eval "test \"\${$as_ac_Header+set}\" = set"; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13334fi
13335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13337else
13338 # Is the header compilable?
13339echo "$as_me:$LINENO: checking $ac_header usability" >&5
13340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13341cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013342/* confdefs.h. */
13343_ACEOF
13344cat confdefs.h >>conftest.$ac_ext
13345cat >>conftest.$ac_ext <<_ACEOF
13346/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013347$ac_includes_default
13348#include <$ac_header>
13349_ACEOF
13350rm -f conftest.$ac_objext
13351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013352 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013353 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013354 grep -v '^ *+' conftest.er1 >conftest.err
13355 rm -f conftest.er1
13356 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; } &&
13365 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_header_compiler=yes
13372else
13373 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013374sed 's/^/| /' conftest.$ac_ext >&5
13375
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013376ac_header_compiler=no
13377fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13380echo "${ECHO_T}$ac_header_compiler" >&6
13381
13382# Is the header present?
13383echo "$as_me:$LINENO: checking $ac_header presence" >&5
13384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13385cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013386/* confdefs.h. */
13387_ACEOF
13388cat confdefs.h >>conftest.$ac_ext
13389cat >>conftest.$ac_ext <<_ACEOF
13390/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013391#include <$ac_header>
13392_ACEOF
13393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13395 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013396 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013397 rm -f conftest.er1
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } >/dev/null; then
13401 if test -s conftest.err; then
13402 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000013403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013404 else
13405 ac_cpp_err=
13406 fi
13407else
13408 ac_cpp_err=yes
13409fi
13410if test -z "$ac_cpp_err"; then
13411 ac_header_preproc=yes
13412else
13413 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013414sed 's/^/| /' conftest.$ac_ext >&5
13415
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013416 ac_header_preproc=no
13417fi
13418rm -f conftest.err conftest.$ac_ext
13419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13420echo "${ECHO_T}$ac_header_preproc" >&6
13421
13422# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13424 yes:no: )
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13429 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013430 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000013431 no:yes:* )
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013444 (
13445 cat <<\_ASBOX
13446## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000013447## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013448## ------------------------------------ ##
13449_ASBOX
13450 ) |
13451 sed "s/^/$as_me: WARNING: /" >&2
13452 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013453esac
13454echo "$as_me:$LINENO: checking for $ac_header" >&5
13455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13456if eval "test \"\${$as_ac_Header+set}\" = set"; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458else
Alexandre Julliard875927f2004-01-02 01:55:29 +000013459 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013460fi
13461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13463
13464fi
13465if test `eval echo '${'$as_ac_Header'}'` = yes; then
13466 cat >>confdefs.h <<_ACEOF
13467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13468_ACEOF
13469
13470for ac_func in dlopen
13471do
13472as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13473echo "$as_me:$LINENO: checking for $ac_func" >&5
13474echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13475if eval "test \"\${$as_ac_var+set}\" = set"; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13477else
13478 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013479/* confdefs.h. */
13480_ACEOF
13481cat confdefs.h >>conftest.$ac_ext
13482cat >>conftest.$ac_ext <<_ACEOF
13483/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013484/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13486#define $ac_func innocuous_$ac_func
13487
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013488/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013489 which can conflict with char $ac_func (); below.
13490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13491 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013492
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013493#ifdef __STDC__
13494# include <limits.h>
13495#else
13496# include <assert.h>
13497#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000013498
13499#undef $ac_func
13500
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013501/* Override any gcc2 internal prototype to avoid an error. */
13502#ifdef __cplusplus
13503extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013504{
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013505#endif
13506/* We use char because int might match the return type of a gcc2
13507 builtin and then its argument prototype would still apply. */
13508char $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013509/* The GNU C library defines this for functions which it implements
13510 to always fail with ENOSYS. Some functions are actually named
13511 something starting with __ and the normal name is an alias. */
13512#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13513choke me
13514#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013515char (*f) () = $ac_func;
13516#endif
13517#ifdef __cplusplus
13518}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013519#endif
13520
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013521int
13522main ()
13523{
13524return f != $ac_func;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013525 ;
13526 return 0;
13527}
13528_ACEOF
13529rm -f conftest.$ac_objext conftest$ac_exeext
13530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013531 (eval $ac_link) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013532 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013533 grep -v '^ *+' conftest.er1 >conftest.err
13534 rm -f conftest.er1
13535 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13541 ac_status=$?
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; } &&
13544 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
13550 eval "$as_ac_var=yes"
13551else
13552 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013553sed 's/^/| /' conftest.$ac_ext >&5
13554
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013555eval "$as_ac_var=no"
13556fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013557rm -f conftest.err conftest.$ac_objext \
13558 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013559fi
13560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13561echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13562if test `eval echo '${'$as_ac_var'}'` = yes; then
13563 cat >>confdefs.h <<_ACEOF
13564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13565_ACEOF
13566
13567else
13568 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13569echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13570if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572else
13573 ac_check_lib_save_LIBS=$LIBS
13574LIBS="-ldl $LIBS"
13575cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013576/* confdefs.h. */
13577_ACEOF
13578cat confdefs.h >>conftest.$ac_ext
13579cat >>conftest.$ac_ext <<_ACEOF
13580/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013581
13582/* Override any gcc2 internal prototype to avoid an error. */
13583#ifdef __cplusplus
13584extern "C"
13585#endif
13586/* We use char because int might match the return type of a gcc2
13587 builtin and then its argument prototype would still apply. */
13588char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013589int
13590main ()
13591{
13592dlopen ();
13593 ;
13594 return 0;
13595}
13596_ACEOF
13597rm -f conftest.$ac_objext conftest$ac_exeext
13598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013599 (eval $ac_link) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013600 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013601 grep -v '^ *+' conftest.er1 >conftest.err
13602 rm -f conftest.er1
13603 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5
13609 ac_status=$?
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; } &&
13612 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13615 ac_status=$?
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618 ac_cv_lib_dl_dlopen=yes
13619else
13620 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013621sed 's/^/| /' conftest.$ac_ext >&5
13622
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013623ac_cv_lib_dl_dlopen=no
13624fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013625rm -f conftest.err conftest.$ac_objext \
13626 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013627LIBS=$ac_check_lib_save_LIBS
13628fi
13629echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13630echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13631if test $ac_cv_lib_dl_dlopen = yes; then
13632
13633cat >>confdefs.h <<\_ACEOF
13634#define HAVE_DLOPEN 1
13635_ACEOF
13636
13637 DLLIBS="-ldl"
13638else
13639 LIBEXT="a"
13640fi
13641
13642fi
13643done
13644
13645else
13646 LIBEXT="a"
13647fi
13648
13649done
13650
13651
13652 if test "$LIBEXT" = "so"
13653 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000013654 DLLFLAGS="$DLLFLAGS -fPIC"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013655 DLLEXT=".so"
Alexandre Julliard466ae142002-05-07 18:33:47 +000013656 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013657echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13658if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013660else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013661 ac_wine_try_cflags_saved=$CFLAGS
13662CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13663cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000013664void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013665_ACEOF
13666rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013668 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013669 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013674 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; } &&
13681 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013683 (eval $ac_try) 2>&5
13684 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013686 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000013687 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013688else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013689 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013690sed 's/^/| /' conftest.$ac_ext >&5
13691
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013692ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013693fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013694rm -f conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013696CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013697fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013698echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013699echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000013700 if test "$ac_cv_c_dll_gnuelf" = "yes"
13701 then
13702 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013703 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013704 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13705echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13706if test "${ac_cv_c_dll_zdefs+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13708else
13709 ac_wine_try_cflags_saved=$CFLAGS
13710CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13711cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013712/* confdefs.h. */
13713_ACEOF
13714cat confdefs.h >>conftest.$ac_ext
13715cat >>conftest.$ac_ext <<_ACEOF
13716/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013717
13718int
13719main ()
13720{
13721
13722 ;
13723 return 0;
13724}
13725_ACEOF
13726rm -f conftest.$ac_objext conftest$ac_exeext
13727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013728 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013729 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013730 grep -v '^ *+' conftest.er1 >conftest.err
13731 rm -f conftest.er1
13732 cat conftest.err >&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; } &&
13741 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 ac_cv_c_dll_zdefs="yes"
13748else
13749 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013750sed 's/^/| /' conftest.$ac_ext >&5
13751
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013752ac_cv_c_dll_zdefs="no"
13753fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013754rm -f conftest.err conftest.$ac_objext \
13755 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013756CFLAGS=$ac_wine_try_cflags_saved
13757fi
13758echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13759echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13760 if test "$ac_cv_c_dll_zdefs" = "yes"
13761 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013762 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013763 fi
Alexandre Julliard4d52d372003-03-24 19:33:20 +000013764
Alexandre Julliard36048242004-01-08 03:36:53 +000013765 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13766echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13767if test "${ac_cv_c_dll_init_fini+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13769else
13770 ac_wine_try_cflags_saved=$CFLAGS
13771CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13772cat >conftest.$ac_ext <<_ACEOF
13773/* confdefs.h. */
13774_ACEOF
13775cat confdefs.h >>conftest.$ac_ext
13776cat >>conftest.$ac_ext <<_ACEOF
13777/* end confdefs.h. */
13778
13779int
13780main ()
13781{
13782
13783 ;
13784 return 0;
13785}
13786_ACEOF
13787rm -f conftest.$ac_objext conftest$ac_exeext
13788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13789 (eval $ac_link) 2>conftest.er1
13790 ac_status=$?
13791 grep -v '^ *+' conftest.er1 >conftest.err
13792 rm -f conftest.er1
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
13796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; } &&
13802 { ac_try='test -s conftest$ac_exeext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_cv_c_dll_init_fini="yes"
13809else
13810 echo "$as_me: failed program was:" >&5
13811sed 's/^/| /' conftest.$ac_ext >&5
13812
13813ac_cv_c_dll_init_fini="no"
13814fi
13815rm -f conftest.err conftest.$ac_objext \
13816 conftest$ac_exeext conftest.$ac_ext
13817CFLAGS=$ac_wine_try_cflags_saved
13818fi
13819echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13820echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13821 if test "$ac_cv_c_dll_init_fini" = "yes"
13822 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013823 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard36048242004-01-08 03:36:53 +000013824 fi
13825
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000013826 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13827echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13828if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830else
13831 echo '{ global: *; };' >conftest.map
13832 ac_wine_try_cflags_saved=$CFLAGS
13833CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13834cat >conftest.$ac_ext <<_ACEOF
13835/* confdefs.h. */
13836_ACEOF
13837cat confdefs.h >>conftest.$ac_ext
13838cat >>conftest.$ac_ext <<_ACEOF
13839/* end confdefs.h. */
13840
13841int
13842main ()
13843{
13844
13845 ;
13846 return 0;
13847}
13848_ACEOF
13849rm -f conftest.$ac_objext conftest$ac_exeext
13850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13851 (eval $ac_link) 2>conftest.er1
13852 ac_status=$?
13853 grep -v '^ *+' conftest.er1 >conftest.err
13854 rm -f conftest.er1
13855 cat conftest.err >&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); } &&
13858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest$ac_exeext'
13865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
13870 ac_cv_c_ld_version_scripts="yes"
13871else
13872 echo "$as_me: failed program was:" >&5
13873sed 's/^/| /' conftest.$ac_ext >&5
13874
13875ac_cv_c_ld_version_scripts="no"
13876fi
13877rm -f conftest.err conftest.$ac_objext \
13878 conftest$ac_exeext conftest.$ac_ext
13879CFLAGS=$ac_wine_try_cflags_saved
13880 rm -f conftest.map
13881fi
13882echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13883echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13884 if test "$ac_cv_c_ld_version_scripts" = "yes"
13885 then
13886 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13887 fi
13888
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013889 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13890echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13891if test "${ac_cv_c_export_dynamic+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893else
13894 ac_wine_try_cflags_saved=$CFLAGS
13895CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13896cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013897/* confdefs.h. */
13898_ACEOF
13899cat confdefs.h >>conftest.$ac_ext
13900cat >>conftest.$ac_ext <<_ACEOF
13901/* end confdefs.h. */
13902
13903int
13904main ()
13905{
13906
13907 ;
13908 return 0;
13909}
13910_ACEOF
13911rm -f conftest.$ac_objext conftest$ac_exeext
13912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013913 (eval $ac_link) 2>conftest.er1
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013914 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013915 grep -v '^ *+' conftest.er1 >conftest.err
13916 rm -f conftest.er1
13917 cat conftest.err >&5
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922 (eval $ac_try) 2>&5
13923 ac_status=$?
13924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925 (exit $ac_status); }; } &&
13926 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13929 ac_status=$?
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13932 ac_cv_c_export_dynamic="yes"
13933else
13934 echo "$as_me: failed program was:" >&5
13935sed 's/^/| /' conftest.$ac_ext >&5
13936
13937ac_cv_c_export_dynamic="no"
13938fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013939rm -f conftest.err conftest.$ac_objext \
13940 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013941CFLAGS=$ac_wine_try_cflags_saved
13942fi
13943echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13944echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13945 if test "$ac_cv_c_export_dynamic" = "yes"
13946 then
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013947 LDEXECFLAGS="-Wl,--export-dynamic"
13948
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013949 fi
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013950
13951 case $host_cpu in
13952 *i[3456789]86*)
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013953 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
13954echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013955if test "${ac_cv_ld_reloc_exec+set}" = set; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13957else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013958 ac_wine_try_cflags_saved=$CFLAGS
13959CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
13960cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013961/* confdefs.h. */
13962_ACEOF
13963cat confdefs.h >>conftest.$ac_ext
13964cat >>conftest.$ac_ext <<_ACEOF
13965/* end confdefs.h. */
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013966
13967int
13968main ()
13969{
13970
13971 ;
13972 return 0;
13973}
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013974_ACEOF
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013975rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013977 (eval $ac_link) 2>conftest.er1
13978 ac_status=$?
13979 grep -v '^ *+' conftest.er1 >conftest.err
13980 rm -f conftest.er1
13981 cat conftest.err >&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); } &&
13984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013987 ac_status=$?
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 ac_cv_ld_reloc_exec="yes"
13997else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013998 echo "$as_me: failed program was:" >&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013999sed 's/^/| /' conftest.$ac_ext >&5
14000
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014001ac_cv_ld_reloc_exec="no"
14002fi
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014003rm -f conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14005CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014006fi
14007echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14008echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14009 if test "$ac_cv_ld_reloc_exec" = "yes"
14010 then
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014011 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014012 fi
14013 ;;
14014 esac
14015
Alexandre Julliard466ae142002-05-07 18:33:47 +000014016 else
14017 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014018echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14019if test "${ac_cv_c_dll_unixware+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000014021else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014022 ac_wine_try_cflags_saved=$CFLAGS
14023CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14024cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000014025void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014026_ACEOF
14027rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014029 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014030 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014031 grep -v '^ *+' conftest.er1 >conftest.err
14032 rm -f conftest.er1
14033 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014035 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; } &&
14042 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014044 (eval $ac_try) 2>&5
14045 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014047 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000014048 ac_cv_c_dll_unixware="yes"
14049else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014050 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014051sed 's/^/| /' conftest.$ac_ext >&5
14052
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014053ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000014054fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014055rm -f conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014057CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014058fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014059echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014060echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000014061 if test "$ac_cv_c_dll_unixware" = "yes"
14062 then
14063 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014064 LDDLLFLAGS="-Wl,-G,-B,symbolic"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014065
14066 else
14067 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14068echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14069if test "${ac_cv_c_dll_macho+set}" = set; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14071else
14072 ac_wine_try_cflags_saved=$CFLAGS
14073CFLAGS="$CFLAGS -bundle"
14074cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000014075void myfunc() {}
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014076_ACEOF
14077rm -f conftest.$ac_objext conftest$ac_exeext
14078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014079 (eval $ac_link) 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014080 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014081 grep -v '^ *+' conftest.er1 >conftest.err
14082 rm -f conftest.er1
14083 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; } &&
14092 { ac_try='test -s conftest$ac_exeext'
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094 (eval $ac_try) 2>&5
14095 ac_status=$?
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; }; then
14098 ac_cv_c_dll_macho="yes"
14099else
14100 echo "$as_me: failed program was:" >&5
14101sed 's/^/| /' conftest.$ac_ext >&5
14102
14103ac_cv_c_dll_macho="no"
14104fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014105rm -f conftest.err conftest.$ac_objext \
14106 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014107CFLAGS=$ac_wine_try_cflags_saved
14108fi
14109echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14110echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14111 if test "$ac_cv_c_dll_macho" = "yes"
14112 then
14113 LIBEXT="dylib"
Emmanuel Maillard4fe448d2005-03-01 10:46:27 +000014114 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress -read_only_relocs warning"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014115 LDSHARED="\$(CC) -dynamiclib"
14116 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014117 STRIP="$STRIP -u -r"
Emmanuel Maillard46718f82004-07-22 19:48:41 +000014118 LDEXECFLAGS="-seg1addr 0x120000"
14119
14120 LDLIBWINEFLAGS="-seg1addr 0x140000"
14121
Emmanuel Maillard2300ce62004-08-19 01:20:45 +000014122 COREFOUNDATIONLIB="-framework CoreFoundation"
14123
14124 IOKITLIB="-framework IOKit"
14125
Pierre d'Herbemontf94121e2005-02-26 17:43:50 +000014126 IOKITLIB="$IOKITLIB $COREFOUNDATIONLIB"
Warren Baird421e8b92004-09-22 19:17:55 +000014127 else
14128 echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14129echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
14130if test "${ac_cv_c_dll_hpux+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132else
14133 ac_wine_try_cflags_saved=$CFLAGS
14134CFLAGS="$CFLAGS -shared"
14135cat >conftest.$ac_ext <<_ACEOF
14136void myfunc() {}
14137_ACEOF
14138rm -f conftest.$ac_objext conftest$ac_exeext
14139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14140 (eval $ac_link) 2>conftest.er1
14141 ac_status=$?
14142 grep -v '^ *+' conftest.er1 >conftest.err
14143 rm -f conftest.er1
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; } &&
14153 { ac_try='test -s conftest$ac_exeext'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 ac_cv_c_dll_hpux="yes"
14160else
14161 echo "$as_me: failed program was:" >&5
14162sed 's/^/| /' conftest.$ac_ext >&5
14163
14164ac_cv_c_dll_hpux="no"
14165fi
14166rm -f conftest.err conftest.$ac_objext \
14167 conftest$ac_exeext conftest.$ac_ext
14168CFLAGS=$ac_wine_try_cflags_saved
14169fi
14170echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14171echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
14172 if test "$ac_cv_c_dll_hpux" = "yes"
14173 then
14174 LIBEXT="sl"
Warren Baird1023fe32004-10-19 21:37:09 +000014175 DLLEXT=".sl"
14176 LDDLLFLAGS="-shared -fPIC"
Warren Baird421e8b92004-09-22 19:17:55 +000014177 LDSHARED="\$(CC) -shared"
14178 fi
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014179 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000014180 fi
14181 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014182 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014183
14184 CROSSTEST=""
14185
14186 if test "$cross_compiling" = "no"
14187 then
Kevin Koltzaud3444562004-04-15 00:01:05 +000014188 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014189do
14190 # Extract the first word of "$ac_prog", so it can be a program name with args.
14191set dummy $ac_prog; ac_word=$2
14192echo "$as_me:$LINENO: checking for $ac_word" >&5
14193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14194if test "${ac_cv_prog_CROSSCC+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196else
14197 if test -n "$CROSSCC"; then
14198 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14199else
14200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14201for as_dir in $PATH
14202do
14203 IFS=$as_save_IFS
14204 test -z "$as_dir" && as_dir=.
14205 for ac_exec_ext in '' $ac_executable_extensions; do
14206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14207 ac_cv_prog_CROSSCC="$ac_prog"
14208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14209 break 2
14210 fi
14211done
14212done
14213
14214fi
14215fi
14216CROSSCC=$ac_cv_prog_CROSSCC
14217if test -n "$CROSSCC"; then
14218 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14219echo "${ECHO_T}$CROSSCC" >&6
14220else
14221 echo "$as_me:$LINENO: result: no" >&5
14222echo "${ECHO_T}no" >&6
14223fi
14224
14225 test -n "$CROSSCC" && break
14226done
14227test -n "$CROSSCC" || CROSSCC="false"
14228
Kevin Koltzaud3444562004-04-15 00:01:05 +000014229 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014230do
14231 # Extract the first word of "$ac_prog", so it can be a program name with args.
14232set dummy $ac_prog; ac_word=$2
14233echo "$as_me:$LINENO: checking for $ac_word" >&5
14234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14235if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14237else
14238 if test -n "$DLLTOOL"; then
14239 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14240else
14241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14242for as_dir in $PATH
14243do
14244 IFS=$as_save_IFS
14245 test -z "$as_dir" && as_dir=.
14246 for ac_exec_ext in '' $ac_executable_extensions; do
14247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14248 ac_cv_prog_DLLTOOL="$ac_prog"
14249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14250 break 2
14251 fi
14252done
14253done
14254
14255fi
14256fi
14257DLLTOOL=$ac_cv_prog_DLLTOOL
14258if test -n "$DLLTOOL"; then
14259 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14260echo "${ECHO_T}$DLLTOOL" >&6
14261else
14262 echo "$as_me:$LINENO: result: no" >&5
14263echo "${ECHO_T}no" >&6
14264fi
14265
14266 test -n "$DLLTOOL" && break
14267done
14268test -n "$DLLTOOL" || DLLTOOL="false"
14269
Kevin Koltzaud3444562004-04-15 00:01:05 +000014270 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
Alexandre Julliard21ee3292003-04-21 22:52:31 +000014271do
14272 # Extract the first word of "$ac_prog", so it can be a program name with args.
14273set dummy $ac_prog; ac_word=$2
14274echo "$as_me:$LINENO: checking for $ac_word" >&5
14275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14276if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14278else
14279 if test -n "$CROSSWINDRES"; then
14280 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14281else
14282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283for as_dir in $PATH
14284do
14285 IFS=$as_save_IFS
14286 test -z "$as_dir" && as_dir=.
14287 for ac_exec_ext in '' $ac_executable_extensions; do
14288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14289 ac_cv_prog_CROSSWINDRES="$ac_prog"
14290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14291 break 2
14292 fi
14293done
14294done
14295
14296fi
14297fi
14298CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14299if test -n "$CROSSWINDRES"; then
14300 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14301echo "${ECHO_T}$CROSSWINDRES" >&6
14302else
14303 echo "$as_me:$LINENO: result: no" >&5
14304echo "${ECHO_T}no" >&6
14305fi
14306
14307 test -n "$CROSSWINDRES" && break
14308done
14309test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14310
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014311 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14312 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014313 ;;
14314esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014315
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000014316if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014317 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014318It is currently not possible to build Wine without shared library
14319(.so) support to allow transparent switch between .so and .dll files.
14320If you are using Linux, you will need a newer binutils.
14321" >&5
14322echo "$as_me: error: could not find a way to build shared libraries.
14323It is currently not possible to build Wine without shared library
14324(.so) support to allow transparent switch between .so and .dll files.
14325If you are using Linux, you will need a newer binutils.
14326" >&2;}
14327 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000014328fi
14329
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014330case $build_os in
14331 cygwin*|mingw32*)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000014332 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014333 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014334 darwin*|macosx*)
14335 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14336 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014337 *)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000014338 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014339 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014340esac
14341
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014342case $host_os in
14343 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000014344 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000014345
14346 SOCKETLIBS="-lws2_32"
14347
14348 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000014349esac
14350
14351case $host_os in
14352 linux*)
Vincent Béron4bf9d982004-10-14 00:30:59 +000014353 case $host_cpu in
14354 *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14355 ;;
14356 *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14357 ;;
14358 esac
Alexandre Julliarda628c132003-11-12 03:28:21 +000014359 MAIN_BINARY="wine-glibc"
Alexandre Julliard546839f2003-11-11 00:48:21 +000014360
Alexandre Julliard546839f2003-11-11 00:48:21 +000014361 ;;
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000014362 darwin*)
14363 WINE_BINARIES="wine-pthread"
14364
14365 MAIN_BINARY="wine-pthread"
14366
14367 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000014368 *)
14369 WINE_BINARIES="wine-kthread"
14370
14371 MAIN_BINARY="wine-kthread"
14372
14373 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014374esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014375
14376
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014377if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014378then
14379 # Extract the first word of "ldd", so it can be a program name with args.
14380set dummy ldd; ac_word=$2
14381echo "$as_me:$LINENO: checking for $ac_word" >&5
14382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14383if test "${ac_cv_path_LDD+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14385else
14386 case $LDD in
14387 [\\/]* | ?:[\\/]*)
14388 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14389 ;;
14390 *)
14391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014392as_dummy="/sbin:/usr/sbin:$PATH"
14393for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014394do
14395 IFS=$as_save_IFS
14396 test -z "$as_dir" && as_dir=.
14397 for ac_exec_ext in '' $ac_executable_extensions; do
14398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14399 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14401 break 2
14402 fi
14403done
14404done
14405
14406 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14407 ;;
14408esac
14409fi
14410LDD=$ac_cv_path_LDD
14411
14412if test -n "$LDD"; then
14413 echo "$as_me:$LINENO: result: $LDD" >&5
14414echo "${ECHO_T}$LDD" >&6
14415else
14416 echo "$as_me:$LINENO: result: no" >&5
14417echo "${ECHO_T}no" >&6
14418fi
14419
14420
14421echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14422echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14423if test "${ac_cv_lib_soname_X11+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14425else
14426 ac_get_soname_save_LIBS=$LIBS
14427LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14428 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014429/* confdefs.h. */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
14433/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014434
14435/* Override any gcc2 internal prototype to avoid an error. */
14436#ifdef __cplusplus
14437extern "C"
14438#endif
14439/* We use char because int might match the return type of a gcc2
14440 builtin and then its argument prototype would still apply. */
14441char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014442int
14443main ()
14444{
14445XCreateWindow ();
14446 ;
14447 return 0;
14448}
14449_ACEOF
14450rm -f conftest.$ac_objext conftest$ac_exeext
14451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014452 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014453 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014454 grep -v '^ *+' conftest.er1 >conftest.err
14455 rm -f conftest.er1
14456 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; } &&
14465 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014471 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014472 if test "x$ac_cv_lib_soname_X11" = "x"
14473 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014474 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014475 fi
14476else
14477 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014478sed 's/^/| /' conftest.$ac_ext >&5
14479
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014480ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014481fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014482rm -f conftest.err conftest.$ac_objext \
14483 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014484 LIBS=$ac_get_soname_save_LIBS
14485fi
14486echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14487echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14488if test "x$ac_cv_lib_soname_X11" != xNONE
14489then
14490cat >>confdefs.h <<_ACEOF
14491#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14492_ACEOF
14493fi
14494
14495echo "$as_me:$LINENO: checking for -lXext soname" >&5
14496echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14497if test "${ac_cv_lib_soname_Xext+set}" = set; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14499else
14500 ac_get_soname_save_LIBS=$LIBS
14501LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14502 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014503/* confdefs.h. */
14504_ACEOF
14505cat confdefs.h >>conftest.$ac_ext
14506cat >>conftest.$ac_ext <<_ACEOF
14507/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014508
14509/* Override any gcc2 internal prototype to avoid an error. */
14510#ifdef __cplusplus
14511extern "C"
14512#endif
14513/* We use char because int might match the return type of a gcc2
14514 builtin and then its argument prototype would still apply. */
14515char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014516int
14517main ()
14518{
14519XextCreateExtension ();
14520 ;
14521 return 0;
14522}
14523_ACEOF
14524rm -f conftest.$ac_objext conftest$ac_exeext
14525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014526 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014527 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014528 grep -v '^ *+' conftest.er1 >conftest.err
14529 rm -f conftest.er1
14530 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; } &&
14539 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14542 ac_status=$?
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014545 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014546 if test "x$ac_cv_lib_soname_Xext" = "x"
14547 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014548 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014549 fi
14550else
14551 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014552sed 's/^/| /' conftest.$ac_ext >&5
14553
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014554ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014555fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014556rm -f conftest.err conftest.$ac_objext \
14557 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014558 LIBS=$ac_get_soname_save_LIBS
14559fi
14560echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14561echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14562if test "x$ac_cv_lib_soname_Xext" != xNONE
14563then
14564cat >>confdefs.h <<_ACEOF
14565#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14566_ACEOF
14567fi
14568
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014569echo "$as_me:$LINENO: checking for -lXi soname" >&5
14570echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14571if test "${ac_cv_lib_soname_Xi+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573else
14574 ac_get_soname_save_LIBS=$LIBS
14575LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14576 cat >conftest.$ac_ext <<_ACEOF
14577/* confdefs.h. */
14578_ACEOF
14579cat confdefs.h >>conftest.$ac_ext
14580cat >>conftest.$ac_ext <<_ACEOF
14581/* end confdefs.h. */
14582
14583/* Override any gcc2 internal prototype to avoid an error. */
14584#ifdef __cplusplus
14585extern "C"
14586#endif
14587/* We use char because int might match the return type of a gcc2
14588 builtin and then its argument prototype would still apply. */
14589char XOpenDevice ();
14590int
14591main ()
14592{
14593XOpenDevice ();
14594 ;
14595 return 0;
14596}
14597_ACEOF
14598rm -f conftest.$ac_objext conftest$ac_exeext
14599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14600 (eval $ac_link) 2>conftest.er1
14601 ac_status=$?
14602 grep -v '^ *+' conftest.er1 >conftest.err
14603 rm -f conftest.er1
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14610 ac_status=$?
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; } &&
14613 { ac_try='test -s conftest$ac_exeext'
14614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014619 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"`
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014620 if test "x$ac_cv_lib_soname_Xi" = "x"
14621 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014622 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014623 fi
14624else
14625 echo "$as_me: failed program was:" >&5
14626sed 's/^/| /' conftest.$ac_ext >&5
14627
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014628ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014629fi
14630rm -f conftest.err conftest.$ac_objext \
14631 conftest$ac_exeext conftest.$ac_ext
14632 LIBS=$ac_get_soname_save_LIBS
14633fi
14634echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14635echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14636if test "x$ac_cv_lib_soname_Xi" != xNONE
14637then
14638cat >>confdefs.h <<_ACEOF
14639#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14640_ACEOF
14641fi
14642
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014643echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14644echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14645if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14647else
14648 ac_get_soname_save_LIBS=$LIBS
14649LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14650 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014651/* confdefs.h. */
14652_ACEOF
14653cat confdefs.h >>conftest.$ac_ext
14654cat >>conftest.$ac_ext <<_ACEOF
14655/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014656
14657/* Override any gcc2 internal prototype to avoid an error. */
14658#ifdef __cplusplus
14659extern "C"
14660#endif
14661/* We use char because int might match the return type of a gcc2
14662 builtin and then its argument prototype would still apply. */
14663char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014664int
14665main ()
14666{
14667XRenderQueryExtension ();
14668 ;
14669 return 0;
14670}
14671_ACEOF
14672rm -f conftest.$ac_objext conftest$ac_exeext
14673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014674 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014675 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014676 grep -v '^ *+' conftest.er1 >conftest.err
14677 rm -f conftest.er1
14678 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; } &&
14687 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14690 ac_status=$?
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014693 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014694 if test "x$ac_cv_lib_soname_Xrender" = "x"
14695 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014696 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014697 fi
14698else
14699 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014700sed 's/^/| /' conftest.$ac_ext >&5
14701
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014702ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014703fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014704rm -f conftest.err conftest.$ac_objext \
14705 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014706 LIBS=$ac_get_soname_save_LIBS
14707fi
14708echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14709echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14710if test "x$ac_cv_lib_soname_Xrender" != xNONE
14711then
14712cat >>confdefs.h <<_ACEOF
14713#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14714_ACEOF
14715fi
14716
Mike McCormackc7c9f932004-04-07 03:57:35 +000014717echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14718echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14719if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14720 echo $ECHO_N "(cached) $ECHO_C" >&6
14721else
14722 ac_get_soname_save_LIBS=$LIBS
14723LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14724 cat >conftest.$ac_ext <<_ACEOF
14725/* confdefs.h. */
14726_ACEOF
14727cat confdefs.h >>conftest.$ac_ext
14728cat >>conftest.$ac_ext <<_ACEOF
14729/* end confdefs.h. */
14730
14731/* Override any gcc2 internal prototype to avoid an error. */
14732#ifdef __cplusplus
14733extern "C"
14734#endif
14735/* We use char because int might match the return type of a gcc2
14736 builtin and then its argument prototype would still apply. */
14737char XRRQueryExtension ();
14738int
14739main ()
14740{
14741XRRQueryExtension ();
14742 ;
14743 return 0;
14744}
14745_ACEOF
14746rm -f conftest.$ac_objext conftest$ac_exeext
14747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14748 (eval $ac_link) 2>conftest.er1
14749 ac_status=$?
14750 grep -v '^ *+' conftest.er1 >conftest.err
14751 rm -f conftest.er1
14752 cat conftest.err >&5
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); } &&
14755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; } &&
14761 { ac_try='test -s conftest$ac_exeext'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014767 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"`
Mike McCormackc7c9f932004-04-07 03:57:35 +000014768 if test "x$ac_cv_lib_soname_Xrandr" = "x"
14769 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014770 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000014771 fi
14772else
14773 echo "$as_me: failed program was:" >&5
14774sed 's/^/| /' conftest.$ac_ext >&5
14775
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014776ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000014777fi
14778rm -f conftest.err conftest.$ac_objext \
14779 conftest$ac_exeext conftest.$ac_ext
14780 LIBS=$ac_get_soname_save_LIBS
14781fi
14782echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14783echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14784if test "x$ac_cv_lib_soname_Xrandr" != xNONE
14785then
14786cat >>confdefs.h <<_ACEOF
14787#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14788_ACEOF
14789fi
14790
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014791echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14792echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14793if test "${ac_cv_lib_soname_freetype+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14795else
14796 ac_get_soname_save_LIBS=$LIBS
14797LIBS="-lfreetype $X_LIBS $LIBS"
14798 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014799/* confdefs.h. */
14800_ACEOF
14801cat confdefs.h >>conftest.$ac_ext
14802cat >>conftest.$ac_ext <<_ACEOF
14803/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014804
14805/* Override any gcc2 internal prototype to avoid an error. */
14806#ifdef __cplusplus
14807extern "C"
14808#endif
14809/* We use char because int might match the return type of a gcc2
14810 builtin and then its argument prototype would still apply. */
14811char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014812int
14813main ()
14814{
14815FT_Init_FreeType ();
14816 ;
14817 return 0;
14818}
14819_ACEOF
14820rm -f conftest.$ac_objext conftest$ac_exeext
14821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014822 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014823 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014824 grep -v '^ *+' conftest.er1 >conftest.err
14825 rm -f conftest.er1
14826 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; } &&
14835 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14837 (eval $ac_try) 2>&5
14838 ac_status=$?
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014841 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014842 if test "x$ac_cv_lib_soname_freetype" = "x"
14843 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014844 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014845 fi
14846else
14847 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014848sed 's/^/| /' conftest.$ac_ext >&5
14849
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014850ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014851fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014852rm -f conftest.err conftest.$ac_objext \
14853 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014854 LIBS=$ac_get_soname_save_LIBS
14855fi
14856echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14857echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14858if test "x$ac_cv_lib_soname_freetype" != xNONE
14859then
14860cat >>confdefs.h <<_ACEOF
14861#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14862_ACEOF
14863fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000014864
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014865echo "$as_me:$LINENO: checking for -lGL soname" >&5
14866echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14867if test "${ac_cv_lib_soname_GL+set}" = set; then
14868 echo $ECHO_N "(cached) $ECHO_C" >&6
14869else
14870 ac_get_soname_save_LIBS=$LIBS
14871LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14872 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014873/* confdefs.h. */
14874_ACEOF
14875cat confdefs.h >>conftest.$ac_ext
14876cat >>conftest.$ac_ext <<_ACEOF
14877/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014878
14879/* Override any gcc2 internal prototype to avoid an error. */
14880#ifdef __cplusplus
14881extern "C"
14882#endif
14883/* We use char because int might match the return type of a gcc2
14884 builtin and then its argument prototype would still apply. */
14885char glXQueryExtension ();
14886int
14887main ()
14888{
14889glXQueryExtension ();
14890 ;
14891 return 0;
14892}
14893_ACEOF
14894rm -f conftest.$ac_objext conftest$ac_exeext
14895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014896 (eval $ac_link) 2>conftest.er1
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014897 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014898 grep -v '^ *+' conftest.er1 >conftest.err
14899 rm -f conftest.er1
14900 cat conftest.err >&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; } &&
14909 { ac_try='test -s conftest$ac_exeext'
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14911 (eval $ac_try) 2>&5
14912 ac_status=$?
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014915 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"`
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014916 if test "x$ac_cv_lib_soname_GL" = "x"
14917 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014918 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014919 fi
14920else
14921 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014922sed 's/^/| /' conftest.$ac_ext >&5
14923
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014924ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014925fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014926rm -f conftest.err conftest.$ac_objext \
14927 conftest$ac_exeext conftest.$ac_ext
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014928 LIBS=$ac_get_soname_save_LIBS
14929fi
14930echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14931echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14932if test "x$ac_cv_lib_soname_GL" != xNONE
14933then
14934cat >>confdefs.h <<_ACEOF
14935#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14936_ACEOF
14937fi
14938
Christian Costaeac96b52004-07-30 18:54:32 +000014939echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14940echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
14941if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14943else
14944 ac_get_soname_save_LIBS=$LIBS
14945LIBS="-ltxc_dxtn $LIBS"
14946 cat >conftest.$ac_ext <<_ACEOF
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
14952
14953/* Override any gcc2 internal prototype to avoid an error. */
14954#ifdef __cplusplus
14955extern "C"
14956#endif
14957/* We use char because int might match the return type of a gcc2
14958 builtin and then its argument prototype would still apply. */
14959char fetch_2d_texel_rgba_dxt1 ();
14960int
14961main ()
14962{
14963fetch_2d_texel_rgba_dxt1 ();
14964 ;
14965 return 0;
14966}
14967_ACEOF
14968rm -f conftest.$ac_objext conftest$ac_exeext
14969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14970 (eval $ac_link) 2>conftest.er1
14971 ac_status=$?
14972 grep -v '^ *+' conftest.er1 >conftest.err
14973 rm -f conftest.er1
14974 cat conftest.err >&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); } &&
14977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; } &&
14983 { ac_try='test -s conftest$ac_exeext'
14984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985 (eval $ac_try) 2>&5
14986 ac_status=$?
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; }; then
14989 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"`
14990 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
14991 then
14992 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14993 fi
14994else
14995 echo "$as_me: failed program was:" >&5
14996sed 's/^/| /' conftest.$ac_ext >&5
14997
14998ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14999fi
15000rm -f conftest.err conftest.$ac_objext \
15001 conftest$ac_exeext conftest.$ac_ext
15002 LIBS=$ac_get_soname_save_LIBS
15003fi
15004echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15005echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
15006if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
15007then
15008cat >>confdefs.h <<_ACEOF
15009#define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15010_ACEOF
15011fi
15012
Marcus Meissnerf061f762002-11-12 02:22:24 +000015013echo "$as_me:$LINENO: checking for -lcups soname" >&5
15014echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15015if test "${ac_cv_lib_soname_cups+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15017else
15018 ac_get_soname_save_LIBS=$LIBS
15019LIBS="-lcups $LIBS"
15020 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015021/* confdefs.h. */
15022_ACEOF
15023cat confdefs.h >>conftest.$ac_ext
15024cat >>conftest.$ac_ext <<_ACEOF
15025/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000015026
15027/* Override any gcc2 internal prototype to avoid an error. */
15028#ifdef __cplusplus
15029extern "C"
15030#endif
15031/* We use char because int might match the return type of a gcc2
15032 builtin and then its argument prototype would still apply. */
15033char cupsGetDefault ();
15034int
15035main ()
15036{
15037cupsGetDefault ();
15038 ;
15039 return 0;
15040}
15041_ACEOF
15042rm -f conftest.$ac_objext conftest$ac_exeext
15043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015044 (eval $ac_link) 2>conftest.er1
Marcus Meissnerf061f762002-11-12 02:22:24 +000015045 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015046 grep -v '^ *+' conftest.er1 >conftest.err
15047 rm -f conftest.er1
15048 cat conftest.err >&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000015049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; } &&
15057 { ac_try='test -s conftest$ac_exeext'
Marcus Meissnerf061f762002-11-12 02:22:24 +000015058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15060 ac_status=$?
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015063 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"`
Marcus Meissnerf061f762002-11-12 02:22:24 +000015064 if test "x$ac_cv_lib_soname_cups" = "x"
15065 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015066 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000015067 fi
15068else
15069 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015070sed 's/^/| /' conftest.$ac_ext >&5
15071
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015072ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000015073fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015074rm -f conftest.err conftest.$ac_objext \
15075 conftest$ac_exeext conftest.$ac_ext
Marcus Meissnerf061f762002-11-12 02:22:24 +000015076 LIBS=$ac_get_soname_save_LIBS
15077fi
15078echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15079echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15080if test "x$ac_cv_lib_soname_cups" != xNONE
15081then
15082cat >>confdefs.h <<_ACEOF
15083#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15084_ACEOF
15085fi
Chris Morgan4691b182002-12-13 02:26:18 +000015086
15087echo "$as_me:$LINENO: checking for -ljack soname" >&5
15088echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15089if test "${ac_cv_lib_soname_jack+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15091else
15092 ac_get_soname_save_LIBS=$LIBS
15093LIBS="-ljack $LIBS"
15094 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015095/* confdefs.h. */
15096_ACEOF
15097cat confdefs.h >>conftest.$ac_ext
15098cat >>conftest.$ac_ext <<_ACEOF
15099/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000015100
15101/* Override any gcc2 internal prototype to avoid an error. */
15102#ifdef __cplusplus
15103extern "C"
15104#endif
15105/* We use char because int might match the return type of a gcc2
15106 builtin and then its argument prototype would still apply. */
15107char jack_client_new ();
15108int
15109main ()
15110{
15111jack_client_new ();
15112 ;
15113 return 0;
15114}
15115_ACEOF
15116rm -f conftest.$ac_objext conftest$ac_exeext
15117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015118 (eval $ac_link) 2>conftest.er1
Chris Morgan4691b182002-12-13 02:26:18 +000015119 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015120 grep -v '^ *+' conftest.er1 >conftest.err
15121 rm -f conftest.er1
15122 cat conftest.err >&5
Chris Morgan4691b182002-12-13 02:26:18 +000015123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127 (eval $ac_try) 2>&5
15128 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); }; } &&
15131 { ac_try='test -s conftest$ac_exeext'
Chris Morgan4691b182002-12-13 02:26:18 +000015132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015137 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"`
Chris Morgan4691b182002-12-13 02:26:18 +000015138 if test "x$ac_cv_lib_soname_jack" = "x"
15139 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015140 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000015141 fi
15142else
15143 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015144sed 's/^/| /' conftest.$ac_ext >&5
15145
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015146ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000015147fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015148rm -f conftest.err conftest.$ac_objext \
15149 conftest$ac_exeext conftest.$ac_ext
Chris Morgan4691b182002-12-13 02:26:18 +000015150 LIBS=$ac_get_soname_save_LIBS
15151fi
15152echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15153echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15154if test "x$ac_cv_lib_soname_jack" != xNONE
15155then
15156cat >>confdefs.h <<_ACEOF
15157#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15158_ACEOF
15159fi
David Hammerton852c7ae2003-06-20 23:26:56 +000015160
Huw Davies6e128072003-11-09 00:30:13 +000015161echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15162echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15163if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15165else
15166 ac_get_soname_save_LIBS=$LIBS
15167LIBS="-lfontconfig $LIBS"
15168 cat >conftest.$ac_ext <<_ACEOF
Huw Davies6e128072003-11-09 00:30:13 +000015169/* confdefs.h. */
15170_ACEOF
15171cat confdefs.h >>conftest.$ac_ext
15172cat >>conftest.$ac_ext <<_ACEOF
15173/* end confdefs.h. */
15174
15175/* Override any gcc2 internal prototype to avoid an error. */
15176#ifdef __cplusplus
15177extern "C"
15178#endif
15179/* We use char because int might match the return type of a gcc2
15180 builtin and then its argument prototype would still apply. */
15181char FcInit ();
15182int
15183main ()
15184{
15185FcInit ();
15186 ;
15187 return 0;
15188}
15189_ACEOF
15190rm -f conftest.$ac_objext conftest$ac_exeext
15191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015192 (eval $ac_link) 2>conftest.er1
Huw Davies6e128072003-11-09 00:30:13 +000015193 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015194 grep -v '^ *+' conftest.er1 >conftest.err
15195 rm -f conftest.er1
15196 cat conftest.err >&5
Huw Davies6e128072003-11-09 00:30:13 +000015197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5
15202 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; } &&
15205 { ac_try='test -s conftest$ac_exeext'
Huw Davies6e128072003-11-09 00:30:13 +000015206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15208 ac_status=$?
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015211 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"`
Huw Davies6e128072003-11-09 00:30:13 +000015212 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15213 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015214 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000015215 fi
15216else
15217 echo "$as_me: failed program was:" >&5
15218sed 's/^/| /' conftest.$ac_ext >&5
15219
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015220ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000015221fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015222rm -f conftest.err conftest.$ac_objext \
15223 conftest$ac_exeext conftest.$ac_ext
Huw Davies6e128072003-11-09 00:30:13 +000015224 LIBS=$ac_get_soname_save_LIBS
15225fi
15226echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15227echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15228if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15229then
15230cat >>confdefs.h <<_ACEOF
15231#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15232_ACEOF
Alexandre Julliard79994692003-11-13 20:58:55 +000015233fi
Huw Davies6e128072003-11-09 00:30:13 +000015234
David Hammerton852c7ae2003-06-20 23:26:56 +000015235echo "$as_me:$LINENO: checking for -lssl soname" >&5
15236echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15237if test "${ac_cv_lib_soname_ssl+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15239else
15240 ac_get_soname_save_LIBS=$LIBS
15241LIBS="-lssl $LIBS"
15242 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000015243/* confdefs.h. */
15244_ACEOF
15245cat confdefs.h >>conftest.$ac_ext
15246cat >>conftest.$ac_ext <<_ACEOF
15247/* end confdefs.h. */
15248
15249/* Override any gcc2 internal prototype to avoid an error. */
15250#ifdef __cplusplus
15251extern "C"
15252#endif
15253/* We use char because int might match the return type of a gcc2
15254 builtin and then its argument prototype would still apply. */
15255char SSL_library_init ();
15256int
15257main ()
15258{
15259SSL_library_init ();
15260 ;
15261 return 0;
15262}
15263_ACEOF
15264rm -f conftest.$ac_objext conftest$ac_exeext
15265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015266 (eval $ac_link) 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000015267 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015268 grep -v '^ *+' conftest.er1 >conftest.err
15269 rm -f conftest.er1
15270 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000015271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15276 ac_status=$?
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; } &&
15279 { ac_try='test -s conftest$ac_exeext'
David Hammerton852c7ae2003-06-20 23:26:56 +000015280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5
15282 ac_status=$?
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015285 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"`
David Hammerton852c7ae2003-06-20 23:26:56 +000015286 if test "x$ac_cv_lib_soname_ssl" = "x"
15287 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015288 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015289 fi
15290else
15291 echo "$as_me: failed program was:" >&5
15292sed 's/^/| /' conftest.$ac_ext >&5
15293
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015294ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015295fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015296rm -f conftest.err conftest.$ac_objext \
15297 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000015298 LIBS=$ac_get_soname_save_LIBS
15299fi
15300echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15301echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15302if test "x$ac_cv_lib_soname_ssl" != xNONE
15303then
15304cat >>confdefs.h <<_ACEOF
15305#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15306_ACEOF
15307fi
15308
15309echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15310echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15311if test "${ac_cv_lib_soname_crypto+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313else
15314 ac_get_soname_save_LIBS=$LIBS
15315LIBS="-lcrypto $LIBS"
15316 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000015317/* confdefs.h. */
15318_ACEOF
15319cat confdefs.h >>conftest.$ac_ext
15320cat >>conftest.$ac_ext <<_ACEOF
15321/* end confdefs.h. */
15322
15323/* Override any gcc2 internal prototype to avoid an error. */
15324#ifdef __cplusplus
15325extern "C"
15326#endif
15327/* We use char because int might match the return type of a gcc2
15328 builtin and then its argument prototype would still apply. */
15329char BIO_new_socket ();
15330int
15331main ()
15332{
15333BIO_new_socket ();
15334 ;
15335 return 0;
15336}
15337_ACEOF
15338rm -f conftest.$ac_objext conftest$ac_exeext
15339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015340 (eval $ac_link) 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000015341 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015342 grep -v '^ *+' conftest.er1 >conftest.err
15343 rm -f conftest.er1
15344 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000015345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349 (eval $ac_try) 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; } &&
15353 { ac_try='test -s conftest$ac_exeext'
David Hammerton852c7ae2003-06-20 23:26:56 +000015354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15356 ac_status=$?
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015359 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"`
David Hammerton852c7ae2003-06-20 23:26:56 +000015360 if test "x$ac_cv_lib_soname_crypto" = "x"
15361 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015362 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015363 fi
15364else
15365 echo "$as_me: failed program was:" >&5
15366sed 's/^/| /' conftest.$ac_ext >&5
15367
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015368ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015369fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015370rm -f conftest.err conftest.$ac_objext \
15371 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000015372 LIBS=$ac_get_soname_save_LIBS
15373fi
15374echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15375echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15376if test "x$ac_cv_lib_soname_crypto" != xNONE
15377then
15378cat >>confdefs.h <<_ACEOF
15379#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15380_ACEOF
15381fi
Mike McCormack9557d1b2003-08-20 04:19:01 +000015382
15383echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15384echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15385if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15387else
15388 ac_get_soname_save_LIBS=$LIBS
15389LIBS="-lncurses $LIBS"
15390 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000015391/* confdefs.h. */
15392_ACEOF
15393cat confdefs.h >>conftest.$ac_ext
15394cat >>conftest.$ac_ext <<_ACEOF
15395/* end confdefs.h. */
15396
15397/* Override any gcc2 internal prototype to avoid an error. */
15398#ifdef __cplusplus
15399extern "C"
15400#endif
15401/* We use char because int might match the return type of a gcc2
15402 builtin and then its argument prototype would still apply. */
15403char waddch ();
15404int
15405main ()
15406{
15407waddch ();
15408 ;
15409 return 0;
15410}
15411_ACEOF
15412rm -f conftest.$ac_objext conftest$ac_exeext
15413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015414 (eval $ac_link) 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000015415 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015416 grep -v '^ *+' conftest.er1 >conftest.err
15417 rm -f conftest.er1
15418 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000015419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15424 ac_status=$?
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; } &&
15427 { ac_try='test -s conftest$ac_exeext'
Mike McCormack9557d1b2003-08-20 04:19:01 +000015428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015433 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"`
Mike McCormack9557d1b2003-08-20 04:19:01 +000015434 if test "x$ac_cv_lib_soname_ncurses" = "x"
15435 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015436 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015437 fi
15438else
15439 echo "$as_me: failed program was:" >&5
15440sed 's/^/| /' conftest.$ac_ext >&5
15441
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015442ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015443fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015444rm -f conftest.err conftest.$ac_objext \
15445 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000015446 LIBS=$ac_get_soname_save_LIBS
15447fi
15448echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15449echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15450if test "x$ac_cv_lib_soname_ncurses" != xNONE
15451then
15452cat >>confdefs.h <<_ACEOF
15453#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15454_ACEOF
15455fi
15456
15457echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15458echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15459if test "${ac_cv_lib_soname_curses+set}" = set; then
15460 echo $ECHO_N "(cached) $ECHO_C" >&6
15461else
15462 ac_get_soname_save_LIBS=$LIBS
15463LIBS="-lcurses $LIBS"
15464 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000015465/* confdefs.h. */
15466_ACEOF
15467cat confdefs.h >>conftest.$ac_ext
15468cat >>conftest.$ac_ext <<_ACEOF
15469/* end confdefs.h. */
15470
15471/* Override any gcc2 internal prototype to avoid an error. */
15472#ifdef __cplusplus
15473extern "C"
15474#endif
15475/* We use char because int might match the return type of a gcc2
15476 builtin and then its argument prototype would still apply. */
15477char waddch ();
15478int
15479main ()
15480{
15481waddch ();
15482 ;
15483 return 0;
15484}
15485_ACEOF
15486rm -f conftest.$ac_objext conftest$ac_exeext
15487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015488 (eval $ac_link) 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000015489 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015490 grep -v '^ *+' conftest.er1 >conftest.err
15491 rm -f conftest.er1
15492 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000015493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; } &&
15501 { ac_try='test -s conftest$ac_exeext'
Mike McCormack9557d1b2003-08-20 04:19:01 +000015502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015507 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"`
Mike McCormack9557d1b2003-08-20 04:19:01 +000015508 if test "x$ac_cv_lib_soname_curses" = "x"
15509 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015510 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015511 fi
15512else
15513 echo "$as_me: failed program was:" >&5
15514sed 's/^/| /' conftest.$ac_ext >&5
15515
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015516ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015517fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015518rm -f conftest.err conftest.$ac_objext \
15519 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000015520 LIBS=$ac_get_soname_save_LIBS
15521fi
15522echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15523echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15524if test "x$ac_cv_lib_soname_curses" != xNONE
15525then
15526cat >>confdefs.h <<_ACEOF
15527#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15528_ACEOF
15529fi
Huw Daviese82dfab2004-08-04 19:10:26 +000015530
15531echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15532echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15533if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15535else
15536 ac_get_soname_save_LIBS=$LIBS
15537LIBS="-ljpeg $LIBS"
15538 cat >conftest.$ac_ext <<_ACEOF
15539/* confdefs.h. */
15540_ACEOF
15541cat confdefs.h >>conftest.$ac_ext
15542cat >>conftest.$ac_ext <<_ACEOF
15543/* end confdefs.h. */
15544
15545/* Override any gcc2 internal prototype to avoid an error. */
15546#ifdef __cplusplus
15547extern "C"
15548#endif
15549/* We use char because int might match the return type of a gcc2
15550 builtin and then its argument prototype would still apply. */
15551char jpeg_start_decompress ();
15552int
15553main ()
15554{
15555jpeg_start_decompress ();
15556 ;
15557 return 0;
15558}
15559_ACEOF
15560rm -f conftest.$ac_objext conftest$ac_exeext
15561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15562 (eval $ac_link) 2>conftest.er1
15563 ac_status=$?
15564 grep -v '^ *+' conftest.er1 >conftest.err
15565 rm -f conftest.er1
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
15569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15572 ac_status=$?
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; } &&
15575 { ac_try='test -s conftest$ac_exeext'
15576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577 (eval $ac_try) 2>&5
15578 ac_status=$?
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
15581 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"`
15582 if test "x$ac_cv_lib_soname_jpeg" = "x"
15583 then
15584 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15585 fi
15586else
15587 echo "$as_me: failed program was:" >&5
15588sed 's/^/| /' conftest.$ac_ext >&5
15589
15590ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15591fi
15592rm -f conftest.err conftest.$ac_objext \
15593 conftest$ac_exeext conftest.$ac_ext
15594 LIBS=$ac_get_soname_save_LIBS
15595fi
15596echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15597echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15598if test "x$ac_cv_lib_soname_jpeg" != xNONE
15599then
15600cat >>confdefs.h <<_ACEOF
15601#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15602_ACEOF
15603fi
15604
15605echo "$as_me:$LINENO: checking for -lungif soname" >&5
15606echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15607if test "${ac_cv_lib_soname_ungif+set}" = set; then
15608 echo $ECHO_N "(cached) $ECHO_C" >&6
15609else
15610 ac_get_soname_save_LIBS=$LIBS
15611LIBS="-lungif $LIBS"
15612 cat >conftest.$ac_ext <<_ACEOF
15613/* confdefs.h. */
15614_ACEOF
15615cat confdefs.h >>conftest.$ac_ext
15616cat >>conftest.$ac_ext <<_ACEOF
15617/* end confdefs.h. */
15618
15619/* Override any gcc2 internal prototype to avoid an error. */
15620#ifdef __cplusplus
15621extern "C"
15622#endif
15623/* We use char because int might match the return type of a gcc2
15624 builtin and then its argument prototype would still apply. */
15625char DGifOpen ();
15626int
15627main ()
15628{
15629DGifOpen ();
15630 ;
15631 return 0;
15632}
15633_ACEOF
15634rm -f conftest.$ac_objext conftest$ac_exeext
15635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15636 (eval $ac_link) 2>conftest.er1
15637 ac_status=$?
15638 grep -v '^ *+' conftest.er1 >conftest.err
15639 rm -f conftest.er1
15640 cat conftest.err >&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } &&
15643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; } &&
15649 { ac_try='test -s conftest$ac_exeext'
15650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15652 ac_status=$?
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; }; then
15655 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"`
15656 if test "x$ac_cv_lib_soname_ungif" = "x"
15657 then
15658 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15659 fi
15660else
15661 echo "$as_me: failed program was:" >&5
15662sed 's/^/| /' conftest.$ac_ext >&5
15663
15664ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15665fi
15666rm -f conftest.err conftest.$ac_objext \
15667 conftest$ac_exeext conftest.$ac_ext
15668 LIBS=$ac_get_soname_save_LIBS
15669fi
15670echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15671echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15672if test "x$ac_cv_lib_soname_ungif" != xNONE
15673then
15674cat >>confdefs.h <<_ACEOF
15675#define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15676_ACEOF
15677fi
Marcus Meissner00cf13a2004-09-14 19:27:58 +000015678
15679echo "$as_me:$LINENO: checking for -lgif soname" >&5
15680echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15681if test "${ac_cv_lib_soname_gif+set}" = set; then
15682 echo $ECHO_N "(cached) $ECHO_C" >&6
15683else
15684 ac_get_soname_save_LIBS=$LIBS
15685LIBS="-lgif $LIBS"
15686 cat >conftest.$ac_ext <<_ACEOF
15687/* confdefs.h. */
15688_ACEOF
15689cat confdefs.h >>conftest.$ac_ext
15690cat >>conftest.$ac_ext <<_ACEOF
15691/* end confdefs.h. */
15692
15693/* Override any gcc2 internal prototype to avoid an error. */
15694#ifdef __cplusplus
15695extern "C"
15696#endif
15697/* We use char because int might match the return type of a gcc2
15698 builtin and then its argument prototype would still apply. */
15699char DGifOpen ();
15700int
15701main ()
15702{
15703DGifOpen ();
15704 ;
15705 return 0;
15706}
15707_ACEOF
15708rm -f conftest.$ac_objext conftest$ac_exeext
15709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15710 (eval $ac_link) 2>conftest.er1
15711 ac_status=$?
15712 grep -v '^ *+' conftest.er1 >conftest.err
15713 rm -f conftest.er1
15714 cat conftest.err >&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } &&
15717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; } &&
15723 { ac_try='test -s conftest$ac_exeext'
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"`
15730 if test "x$ac_cv_lib_soname_gif" = "x"
15731 then
15732 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15733 fi
15734else
15735 echo "$as_me: failed program was:" >&5
15736sed 's/^/| /' conftest.$ac_ext >&5
15737
15738ac_cv_lib_soname_gif="libgif.$LIBEXT"
15739fi
15740rm -f conftest.err conftest.$ac_objext \
15741 conftest$ac_exeext conftest.$ac_ext
15742 LIBS=$ac_get_soname_save_LIBS
15743fi
15744echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
15745echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
15746if test "x$ac_cv_lib_soname_gif" != xNONE
15747then
15748cat >>confdefs.h <<_ACEOF
15749#define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
15750_ACEOF
15751fi
Hans Leidekker081b2502004-10-07 19:12:41 +000015752
15753echo "$as_me:$LINENO: checking for -llcms soname" >&5
15754echo $ECHO_N "checking for -llcms soname... $ECHO_C" >&6
15755if test "${ac_cv_lib_soname_lcms+set}" = set; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15757else
15758 ac_get_soname_save_LIBS=$LIBS
15759LIBS="-llcms $LIBS"
15760 cat >conftest.$ac_ext <<_ACEOF
15761/* confdefs.h. */
15762_ACEOF
15763cat confdefs.h >>conftest.$ac_ext
15764cat >>conftest.$ac_ext <<_ACEOF
15765/* end confdefs.h. */
15766
15767/* Override any gcc2 internal prototype to avoid an error. */
15768#ifdef __cplusplus
15769extern "C"
15770#endif
15771/* We use char because int might match the return type of a gcc2
15772 builtin and then its argument prototype would still apply. */
15773char cmsOpenProfileFromFile ();
15774int
15775main ()
15776{
15777cmsOpenProfileFromFile ();
15778 ;
15779 return 0;
15780}
15781_ACEOF
15782rm -f conftest.$ac_objext conftest$ac_exeext
15783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15784 (eval $ac_link) 2>conftest.er1
15785 ac_status=$?
15786 grep -v '^ *+' conftest.er1 >conftest.err
15787 rm -f conftest.er1
15788 cat conftest.err >&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
15791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15793 (eval $ac_try) 2>&5
15794 ac_status=$?
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); }; } &&
15797 { ac_try='test -s conftest$ac_exeext'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15800 ac_status=$?
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; }; then
15803 ac_cv_lib_soname_lcms=`$ac_cv_path_LDD conftest$ac_exeext | grep liblcms\\.$LIBEXT | sed "s/^.*\(liblcms\.$LIBEXT[^ ]*\).*$/\1/"`
15804 if test "x$ac_cv_lib_soname_lcms" = "x"
15805 then
15806 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15807 fi
15808else
15809 echo "$as_me: failed program was:" >&5
15810sed 's/^/| /' conftest.$ac_ext >&5
15811
15812ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15813fi
15814rm -f conftest.err conftest.$ac_objext \
15815 conftest$ac_exeext conftest.$ac_ext
15816 LIBS=$ac_get_soname_save_LIBS
15817fi
15818echo "$as_me:$LINENO: result: $ac_cv_lib_soname_lcms" >&5
15819echo "${ECHO_T}$ac_cv_lib_soname_lcms" >&6
15820if test "x$ac_cv_lib_soname_lcms" != xNONE
15821then
15822cat >>confdefs.h <<_ACEOF
15823#define SONAME_LIBLCMS "$ac_cv_lib_soname_lcms"
15824_ACEOF
15825fi
Marcus Meissner67d3afb2005-01-07 15:33:02 +000015826
15827echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15828echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6
15829if test "${ac_cv_lib_soname_capi20+set}" = set; then
15830 echo $ECHO_N "(cached) $ECHO_C" >&6
15831else
15832 ac_get_soname_save_LIBS=$LIBS
15833LIBS="-lcapi20 $LIBS"
15834 cat >conftest.$ac_ext <<_ACEOF
15835/* confdefs.h. */
15836_ACEOF
15837cat confdefs.h >>conftest.$ac_ext
15838cat >>conftest.$ac_ext <<_ACEOF
15839/* end confdefs.h. */
15840
15841/* Override any gcc2 internal prototype to avoid an error. */
15842#ifdef __cplusplus
15843extern "C"
15844#endif
15845/* We use char because int might match the return type of a gcc2
15846 builtin and then its argument prototype would still apply. */
15847char capi20_isinstalled ();
15848int
15849main ()
15850{
15851capi20_isinstalled ();
15852 ;
15853 return 0;
15854}
15855_ACEOF
15856rm -f conftest.$ac_objext conftest$ac_exeext
15857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15858 (eval $ac_link) 2>conftest.er1
15859 ac_status=$?
15860 grep -v '^ *+' conftest.er1 >conftest.err
15861 rm -f conftest.er1
15862 cat conftest.err >&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } &&
15865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; } &&
15871 { ac_try='test -s conftest$ac_exeext'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"`
15878 if test "x$ac_cv_lib_soname_capi20" = "x"
15879 then
15880 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15881 fi
15882else
15883 echo "$as_me: failed program was:" >&5
15884sed 's/^/| /' conftest.$ac_ext >&5
15885
15886ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15887fi
15888rm -f conftest.err conftest.$ac_objext \
15889 conftest$ac_exeext conftest.$ac_ext
15890 LIBS=$ac_get_soname_save_LIBS
15891fi
15892echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15893echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6
15894if test "x$ac_cv_lib_soname_capi20" != xNONE
15895then
15896cat >>confdefs.h <<_ACEOF
15897#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15898_ACEOF
15899fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015900fi
15901
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015902
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015903
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015904# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15905# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015906echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015907echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15908if test "${ac_cv_working_alloca_h+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015910else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015911 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015917#include <alloca.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015918int
15919main ()
15920{
15921char *p = (char *) alloca (2 * sizeof (int));
15922 ;
15923 return 0;
15924}
15925_ACEOF
15926rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015928 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015929 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015930 grep -v '^ *+' conftest.er1 >conftest.err
15931 rm -f conftest.er1
15932 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015934 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937 (eval $ac_try) 2>&5
15938 ac_status=$?
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; } &&
15941 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015943 (eval $ac_try) 2>&5
15944 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015946 (exit $ac_status); }; }; then
15947 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015948else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015949 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015950sed 's/^/| /' conftest.$ac_ext >&5
15951
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015952ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015953fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015954rm -f conftest.err conftest.$ac_objext \
15955 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015956fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015957echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015958echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15959if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000015960
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015961cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015962#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015963_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015964
15965fi
15966
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015967echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015968echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15969if test "${ac_cv_func_alloca_works+set}" = set; then
15970 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015971else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015972 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015973/* confdefs.h. */
15974_ACEOF
15975cat confdefs.h >>conftest.$ac_ext
15976cat >>conftest.$ac_ext <<_ACEOF
15977/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015978#ifdef __GNUC__
15979# define alloca __builtin_alloca
15980#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015981# ifdef _MSC_VER
15982# include <malloc.h>
15983# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015984# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015985# if HAVE_ALLOCA_H
15986# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015987# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015988# ifdef _AIX
15989 #pragma alloca
15990# else
15991# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015992char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000015993# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015994# endif
15995# endif
15996# endif
15997#endif
15998
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015999int
16000main ()
16001{
16002char *p = (char *) alloca (1);
16003 ;
16004 return 0;
16005}
16006_ACEOF
16007rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016009 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016010 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016011 grep -v '^ *+' conftest.er1 >conftest.err
16012 rm -f conftest.er1
16013 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016015 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16019 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; } &&
16022 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016024 (eval $ac_try) 2>&5
16025 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016027 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016028 ac_cv_func_alloca_works=yes
16029else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016030 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016031sed 's/^/| /' conftest.$ac_ext >&5
16032
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016033ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016034fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016035rm -f conftest.err conftest.$ac_objext \
16036 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016037fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016038echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016039echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016040
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016041if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016042
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016043cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016044#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016045_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016046
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016047else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016048 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016049# that cause trouble. Some versions do not even contain alloca or
16050# contain a buggy version. If you still want to use their alloca,
16051# use ar to extract alloca.o from them instead of compiling alloca.c.
16052
16053ALLOCA=alloca.$ac_objext
16054
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016055cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016056#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016057_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016058
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016059
16060echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016061echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16062if test "${ac_cv_os_cray+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016064else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016065 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016066/* confdefs.h. */
16067_ACEOF
16068cat confdefs.h >>conftest.$ac_ext
16069cat >>conftest.$ac_ext <<_ACEOF
16070/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016071#if defined(CRAY) && ! defined(CRAY2)
16072webecray
16073#else
16074wenotbecray
16075#endif
16076
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016077_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016079 $EGREP "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016080 ac_cv_os_cray=yes
16081else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016082 ac_cv_os_cray=no
16083fi
16084rm -f conftest*
16085
16086fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016087echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016088echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016089if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016090 for ac_func in _getb67 GETB67 getb67; do
16091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016092echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16094if eval "test \"\${$as_ac_var+set}\" = set"; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016096else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016097 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016098/* confdefs.h. */
16099_ACEOF
16100cat confdefs.h >>conftest.$ac_ext
16101cat >>conftest.$ac_ext <<_ACEOF
16102/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16105#define $ac_func innocuous_$ac_func
16106
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016107/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016108 which can conflict with char $ac_func (); below.
16109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16110 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016111
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016112#ifdef __STDC__
16113# include <limits.h>
16114#else
16115# include <assert.h>
16116#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000016117
16118#undef $ac_func
16119
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016120/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016121#ifdef __cplusplus
16122extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016123{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016124#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000016125/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016126 builtin and then its argument prototype would still apply. */
16127char $ac_func ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016128/* The GNU C library defines this for functions which it implements
16129 to always fail with ENOSYS. Some functions are actually named
16130 something starting with __ and the normal name is an alias. */
16131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16132choke me
16133#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016134char (*f) () = $ac_func;
16135#endif
16136#ifdef __cplusplus
16137}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016138#endif
16139
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016140int
16141main ()
16142{
16143return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016144 ;
16145 return 0;
16146}
16147_ACEOF
16148rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016150 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016151 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016152 grep -v '^ *+' conftest.er1 >conftest.err
16153 rm -f conftest.er1
16154 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016156 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16160 ac_status=$?
16161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162 (exit $ac_status); }; } &&
16163 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016165 (eval $ac_try) 2>&5
16166 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016168 (exit $ac_status); }; }; then
16169 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016170else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016171 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016172sed 's/^/| /' conftest.$ac_ext >&5
16173
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016174eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016175fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016176rm -f conftest.err conftest.$ac_objext \
16177 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016178fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016180echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16181if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016182
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016183cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016184#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016185_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016186
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016187 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016188fi
16189
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016190 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016191fi
16192
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016193echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016194echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16195if test "${ac_cv_c_stack_direction+set}" = set; then
16196 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016197else
16198 if test "$cross_compiling" = yes; then
16199 ac_cv_c_stack_direction=0
16200else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016201 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016202/* confdefs.h. */
16203_ACEOF
16204cat confdefs.h >>conftest.$ac_ext
16205cat >>conftest.$ac_ext <<_ACEOF
16206/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016207int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016208find_stack_direction ()
16209{
16210 static char *addr = 0;
16211 auto char dummy;
16212 if (addr == 0)
16213 {
16214 addr = &dummy;
16215 return find_stack_direction ();
16216 }
16217 else
16218 return (&dummy > addr) ? 1 : -1;
16219}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016220
16221int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016222main ()
16223{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016224 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016225}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016226_ACEOF
16227rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016229 (eval $ac_link) 2>&5
16230 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016234 (eval $ac_try) 2>&5
16235 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016237 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016238 ac_cv_c_stack_direction=1
16239else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016240 echo "$as_me: program exited with status $ac_status" >&5
16241echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016242sed 's/^/| /' conftest.$ac_ext >&5
16243
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016244( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016245ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016246fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000016247rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016248fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016249fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016250echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016251echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016252
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016253cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016254#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016255_ACEOF
16256
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016257
16258fi
16259
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
Steven Edwardsb9627c12002-05-05 21:03:44 +000016302
16303
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016304
16305
Alexandre Julliard142dab82002-07-01 18:17:30 +000016306
Patrik Stridvall6caeb722002-11-25 21:12:26 +000016307
16308
16309
Pavel Roskin7add08a2003-09-24 18:54:40 +000016310
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000016311
Alexandre Julliarde2930742004-01-08 05:07:05 +000016312
Alexandre Julliard13af4892004-03-05 21:03:46 +000016313
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000016314
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000016315
16316
Alexandre Julliard969f57c2004-09-23 04:48:24 +000016317
Paul Millar10a6c562004-12-07 17:19:54 +000016318
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016319for ac_func in \
16320 _lwp_create \
Alexandre Julliard6f7a2042003-04-01 04:39:35 +000016321 _lwp_self \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016322 _pclose \
16323 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016324 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000016325 _spawnvp \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016326 _stricmp \
16327 _strnicmp \
Steven Edwardsbe514b92003-01-14 19:35:03 +000016328 _vsnprintf \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016329 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016330 clone \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000016331 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000016332 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000016333 finite \
Hans Leidekkerbed38422004-10-14 03:08:57 +000016334 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000016335 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000016336 fstatfs \
16337 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016338 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000016339 futimes \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016340 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000016341 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016342 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016343 getprotobyname \
16344 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000016345 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016346 getservbyport \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000016347 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000016348 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000016349 getuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016350 inet_network \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000016351 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016352 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000016353 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016354 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016355 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016356 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000016357 pwrite \
Alexandre Julliarde2930742004-01-08 05:07:05 +000016358 readlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016359 rfork \
Jeremy White08c0f692004-10-09 02:26:29 +000016360 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016361 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016362 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016363 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016364 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000016365 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016366 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000016367 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016368 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000016369 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000016370 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016371 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000016372 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016373 tcgetattr \
16374 timegm \
16375 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000016376 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016377 wait4 \
16378 waitpid \
16379
16380do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016382echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16384if eval "test \"\${$as_ac_var+set}\" = set"; then
16385 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016386else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016387 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016388/* confdefs.h. */
16389_ACEOF
16390cat confdefs.h >>conftest.$ac_ext
16391cat >>conftest.$ac_ext <<_ACEOF
16392/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16395#define $ac_func innocuous_$ac_func
16396
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016397/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016398 which can conflict with char $ac_func (); below.
16399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16400 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016401
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016402#ifdef __STDC__
16403# include <limits.h>
16404#else
16405# include <assert.h>
16406#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000016407
16408#undef $ac_func
16409
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016410/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016411#ifdef __cplusplus
16412extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016413{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016414#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016415/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016416 builtin and then its argument prototype would still apply. */
16417char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016418/* The GNU C library defines this for functions which it implements
16419 to always fail with ENOSYS. Some functions are actually named
16420 something starting with __ and the normal name is an alias. */
16421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16422choke me
16423#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016424char (*f) () = $ac_func;
16425#endif
16426#ifdef __cplusplus
16427}
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016428#endif
16429
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016430int
16431main ()
16432{
16433return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016434 ;
16435 return 0;
16436}
16437_ACEOF
16438rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016440 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016441 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016442 grep -v '^ *+' conftest.er1 >conftest.err
16443 rm -f conftest.er1
16444 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016446 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; } &&
16453 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016455 (eval $ac_try) 2>&5
16456 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016458 (exit $ac_status); }; }; then
16459 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016460else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016461 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016462sed 's/^/| /' conftest.$ac_ext >&5
16463
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016464eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016465fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016466rm -f conftest.err conftest.$ac_objext \
16467 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016468fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016470echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16471if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016472 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016474_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016475
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016476fi
16477done
16478
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016479
16480
16481
16482
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016483for ac_header in sys/mount.h sys/user.h
16484do
16485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16486echo "$as_me:$LINENO: checking for $ac_header" >&5
16487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16488if eval "test \"\${$as_ac_Header+set}\" = set"; then
16489 echo $ECHO_N "(cached) $ECHO_C" >&6
16490else
16491 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016492/* confdefs.h. */
16493_ACEOF
16494cat confdefs.h >>conftest.$ac_ext
16495cat >>conftest.$ac_ext <<_ACEOF
16496/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000016497#include <sys/types.h>
16498 #if HAVE_SYS_PARAM_H
16499 # include <sys/param.h>
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016500 #endif
16501
16502#include <$ac_header>
16503_ACEOF
16504rm -f conftest.$ac_objext
16505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016506 (eval $ac_compile) 2>conftest.er1
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016507 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016508 grep -v '^ *+' conftest.er1 >conftest.err
16509 rm -f conftest.er1
16510 cat conftest.err >&5
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515 (eval $ac_try) 2>&5
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; } &&
16519 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16522 ac_status=$?
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525 eval "$as_ac_Header=yes"
16526else
16527 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016528sed 's/^/| /' conftest.$ac_ext >&5
16529
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016530eval "$as_ac_Header=no"
16531fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016533fi
16534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16536if test `eval echo '${'$as_ac_Header'}'` = yes; then
16537 cat >>confdefs.h <<_ACEOF
16538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16539_ACEOF
16540
16541fi
16542
16543done
16544
16545
16546
Juan Lang38fa5ad2003-05-13 03:32:20 +000016547
16548
16549
16550
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016551for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016552do
16553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16554echo "$as_me:$LINENO: checking for $ac_header" >&5
16555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16556if eval "test \"\${$as_ac_Header+set}\" = set"; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16558else
16559 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016560/* confdefs.h. */
16561_ACEOF
16562cat confdefs.h >>conftest.$ac_ext
16563cat >>conftest.$ac_ext <<_ACEOF
16564/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000016565#include <sys/types.h>
Gerald Pfeifer87c369d2002-07-23 02:02:02 +000016566 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016567 # include <sys/socket.h>
16568 #endif
16569
16570#include <$ac_header>
16571_ACEOF
16572rm -f conftest.$ac_objext
16573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016574 (eval $ac_compile) 2>conftest.er1
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016575 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016576 grep -v '^ *+' conftest.er1 >conftest.err
16577 rm -f conftest.er1
16578 cat conftest.err >&5
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; } &&
16587 { ac_try='test -s conftest.$ac_objext'
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16593 eval "$as_ac_Header=yes"
16594else
16595 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016596sed 's/^/| /' conftest.$ac_ext >&5
16597
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016598eval "$as_ac_Header=no"
16599fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016601fi
16602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16603echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16604if test `eval echo '${'$as_ac_Header'}'` = yes; then
16605 cat >>confdefs.h <<_ACEOF
16606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16607_ACEOF
16608
16609fi
16610
16611done
16612
16613
16614
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016615for ac_header in resolv.h
16616do
16617as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16618echo "$as_me:$LINENO: checking for $ac_header" >&5
16619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16620if eval "test \"\${$as_ac_Header+set}\" = set"; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16622else
16623 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016624/* confdefs.h. */
16625_ACEOF
16626cat confdefs.h >>conftest.$ac_ext
16627cat >>conftest.$ac_ext <<_ACEOF
16628/* end confdefs.h. */
16629#include <sys/types.h>
16630 #if HAVE_SYS_SOCKET_H
16631 # include <sys/socket.h>
16632 #endif
16633 #if HAVE_NETINET_IN_H
16634 # include <netinet/in.h>
16635 #endif
Pierre d'Herbemontae8ca362003-10-27 21:55:00 +000016636 #if HAVE_ARPA_NAMESER_H
16637 # include <arpa/nameser.h>
16638 #endif
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016639
16640#include <$ac_header>
16641_ACEOF
16642rm -f conftest.$ac_objext
16643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016644 (eval $ac_compile) 2>conftest.er1
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016645 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16659 (eval $ac_try) 2>&5
16660 ac_status=$?
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; }; then
16663 eval "$as_ac_Header=yes"
16664else
16665 echo "$as_me: failed program was:" >&5
16666sed 's/^/| /' conftest.$ac_ext >&5
16667
16668eval "$as_ac_Header=no"
16669fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016671fi
16672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16673echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16674if test `eval echo '${'$as_ac_Header'}'` = yes; then
16675 cat >>confdefs.h <<_ACEOF
16676#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16677_ACEOF
16678
16679fi
16680
16681done
16682
16683
16684
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016685for ac_header in ucontext.h
16686do
16687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16688echo "$as_me:$LINENO: checking for $ac_header" >&5
16689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16690if eval "test \"\${$as_ac_Header+set}\" = set"; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16692else
16693 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016694/* confdefs.h. */
16695_ACEOF
16696cat confdefs.h >>conftest.$ac_ext
16697cat >>conftest.$ac_ext <<_ACEOF
16698/* end confdefs.h. */
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016699#include <signal.h>
16700
16701#include <$ac_header>
16702_ACEOF
16703rm -f conftest.$ac_objext
16704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016705 (eval $ac_compile) 2>conftest.er1
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016706 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016707 grep -v '^ *+' conftest.er1 >conftest.err
16708 rm -f conftest.er1
16709 cat conftest.err >&5
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720 (eval $ac_try) 2>&5
16721 ac_status=$?
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 eval "$as_ac_Header=yes"
16725else
16726 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016727sed 's/^/| /' conftest.$ac_ext >&5
16728
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016729eval "$as_ac_Header=no"
16730fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016732fi
16733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16735if test `eval echo '${'$as_ac_Header'}'` = yes; then
16736 cat >>confdefs.h <<_ACEOF
16737#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16738_ACEOF
16739
16740fi
16741
16742done
16743
16744
16745
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016746echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16747echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16748if test "${ac_cv_c_ipx_gnu+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750else
16751 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016752/* confdefs.h. */
16753_ACEOF
16754cat confdefs.h >>conftest.$ac_ext
16755cat >>conftest.$ac_ext <<_ACEOF
16756/* end confdefs.h. */
16757#include <sys/types.h>
16758 #ifdef HAVE_SYS_SOCKET_H
16759 # include <sys/socket.h>
16760 #endif
16761 #include <netipx/ipx.h>
16762int
16763main ()
16764{
16765((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16766 ;
16767 return 0;
16768}
16769_ACEOF
16770rm -f conftest.$ac_objext
16771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016772 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016773 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016774 grep -v '^ *+' conftest.er1 >conftest.err
16775 rm -f conftest.er1
16776 cat conftest.err >&5
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16781 (eval $ac_try) 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }; } &&
16785 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16787 (eval $ac_try) 2>&5
16788 ac_status=$?
16789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16790 (exit $ac_status); }; }; then
16791 ac_cv_c_ipx_gnu="yes"
16792else
16793 echo "$as_me: failed program was:" >&5
16794sed 's/^/| /' conftest.$ac_ext >&5
16795
16796ac_cv_c_ipx_gnu="no"
16797fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016799
16800fi
16801echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16802echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16803if test "$ac_cv_c_ipx_gnu" = "yes"
16804then
16805
16806cat >>confdefs.h <<\_ACEOF
16807#define HAVE_IPX_GNU 1
16808_ACEOF
16809
16810fi
16811
16812if test "$ac_cv_c_ipx_gnu" = "no"
16813then
16814 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16815echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16816if test "${ac_cv_c_ipx_linux+set}" = set; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16818else
16819 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016820/* confdefs.h. */
16821_ACEOF
16822cat confdefs.h >>conftest.$ac_ext
16823cat >>conftest.$ac_ext <<_ACEOF
16824/* end confdefs.h. */
16825#include <sys/types.h>
16826 #ifdef HAVE_SYS_SOCKET_H
16827 # include <sys/socket.h>
16828 #endif
16829 #include <asm/types.h>
16830 #include <linux/ipx.h>
16831int
16832main ()
16833{
16834((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16835 ;
16836 return 0;
16837}
16838_ACEOF
16839rm -f conftest.$ac_objext
16840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016841 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016842 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016843 grep -v '^ *+' conftest.er1 >conftest.err
16844 rm -f conftest.er1
16845 cat conftest.err >&5
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850 (eval $ac_try) 2>&5
16851 ac_status=$?
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; } &&
16854 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
16860 ac_cv_c_ipx_linux="yes"
16861else
16862 echo "$as_me: failed program was:" >&5
16863sed 's/^/| /' conftest.$ac_ext >&5
16864
16865ac_cv_c_ipx_linux="no"
16866fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016868
16869fi
16870echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
16871echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
16872 if test "$ac_cv_c_ipx_linux" = "yes"
16873 then
16874
16875cat >>confdefs.h <<\_ACEOF
16876#define HAVE_IPX_LINUX 1
16877_ACEOF
16878
16879 fi
16880fi
16881
16882
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016883echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016884echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16885if test "${ac_cv_c_const+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887else
16888 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016889/* confdefs.h. */
16890_ACEOF
16891cat confdefs.h >>conftest.$ac_ext
16892cat >>conftest.$ac_ext <<_ACEOF
16893/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016894
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016895int
16896main ()
16897{
16898/* FIXME: Include the comments suggested by Paul. */
16899#ifndef __cplusplus
16900 /* Ultrix mips cc rejects this. */
16901 typedef int charset[2];
16902 const charset x;
16903 /* SunOS 4.1.1 cc rejects this. */
16904 char const *const *ccp;
16905 char **p;
16906 /* NEC SVR4.0.2 mips cc rejects this. */
16907 struct point {int x, y;};
16908 static struct point const zero = {0,0};
16909 /* AIX XL C 1.02.0.0 rejects this.
16910 It does not let you subtract one const X* pointer from another in
16911 an arm of an if-expression whose if-part is not a constant
16912 expression */
16913 const char *g = "string";
16914 ccp = &g + (g ? g-g : 0);
16915 /* HPUX 7.0 cc rejects these. */
16916 ++ccp;
16917 p = (char**) ccp;
16918 ccp = (char const *const *) p;
16919 { /* SCO 3.2v4 cc rejects this. */
16920 char *t;
16921 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016922
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016923 *t++ = 0;
16924 }
16925 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16926 int x[] = {25, 17};
16927 const int *foo = &x[0];
16928 ++foo;
16929 }
16930 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16931 typedef const int *iptr;
16932 iptr p = 0;
16933 ++p;
16934 }
16935 { /* AIX XL C 1.02.0.0 rejects this saying
16936 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16937 struct s { int j; const int *ap[3]; };
16938 struct s *b; b->j = 5;
16939 }
16940 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16941 const int foo = 10;
16942 }
16943#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016944
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016945 ;
16946 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016947}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016948_ACEOF
16949rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016951 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016952 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016953 grep -v '^ *+' conftest.er1 >conftest.err
16954 rm -f conftest.er1
16955 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016957 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960 (eval $ac_try) 2>&5
16961 ac_status=$?
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); }; } &&
16964 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016966 (eval $ac_try) 2>&5
16967 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016969 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016970 ac_cv_c_const=yes
16971else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016972 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016973sed 's/^/| /' conftest.$ac_ext >&5
16974
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016975ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016976fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016978fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016979echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016980echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016981if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016982
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016983cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016984#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016985_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016986
16987fi
16988
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016989echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016990echo $ECHO_N "checking for inline... $ECHO_C" >&6
16991if test "${ac_cv_c_inline+set}" = set; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016993else
16994 ac_cv_c_inline=no
16995for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016996 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016997/* confdefs.h. */
16998_ACEOF
16999cat confdefs.h >>conftest.$ac_ext
17000cat >>conftest.$ac_ext <<_ACEOF
17001/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017002#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017003typedef int foo_t;
17004static $ac_kw foo_t static_foo () {return 0; }
17005$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017006#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017007
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017008_ACEOF
17009rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017011 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017012 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017017 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020 (eval $ac_try) 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); }; } &&
17024 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017026 (eval $ac_try) 2>&5
17027 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017029 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017030 ac_cv_c_inline=$ac_kw; break
17031else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017032 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017033sed 's/^/| /' conftest.$ac_ext >&5
17034
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017035fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017037done
17038
17039fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017040echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017041echo "${ECHO_T}$ac_cv_c_inline" >&6
Alexandre Julliard875927f2004-01-02 01:55:29 +000017042
17043
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017044case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017045 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000017046 *)
17047 case $ac_cv_c_inline in
17048 no) ac_val=;;
17049 *) ac_val=$ac_cv_c_inline;;
17050 esac
17051 cat >>confdefs.h <<_ACEOF
17052#ifndef __cplusplus
17053#define inline $ac_val
17054#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017055_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000017056 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017057esac
17058
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017059echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017060echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17061if test "${ac_cv_type_mode_t+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17063else
17064 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017065/* confdefs.h. */
17066_ACEOF
17067cat confdefs.h >>conftest.$ac_ext
17068cat >>conftest.$ac_ext <<_ACEOF
17069/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017070$ac_includes_default
17071int
17072main ()
17073{
17074if ((mode_t *) 0)
17075 return 0;
17076if (sizeof (mode_t))
17077 return 0;
17078 ;
17079 return 0;
17080}
17081_ACEOF
17082rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017084 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017085 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017090 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17094 ac_status=$?
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; } &&
17097 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017099 (eval $ac_try) 2>&5
17100 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017102 (exit $ac_status); }; }; then
17103 ac_cv_type_mode_t=yes
17104else
17105 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017106sed 's/^/| /' conftest.$ac_ext >&5
17107
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017108ac_cv_type_mode_t=no
17109fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017111fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017112echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017113echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17114if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017115
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017116cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017117#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017118_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017119
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017120
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017121fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017122echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017123echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17124if test "${ac_cv_type_off_t+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126else
17127 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017128/* confdefs.h. */
17129_ACEOF
17130cat confdefs.h >>conftest.$ac_ext
17131cat >>conftest.$ac_ext <<_ACEOF
17132/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017133$ac_includes_default
17134int
17135main ()
17136{
17137if ((off_t *) 0)
17138 return 0;
17139if (sizeof (off_t))
17140 return 0;
17141 ;
17142 return 0;
17143}
17144_ACEOF
17145rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017147 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017148 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017149 grep -v '^ *+' conftest.er1 >conftest.err
17150 rm -f conftest.er1
17151 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017153 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156 (eval $ac_try) 2>&5
17157 ac_status=$?
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; } &&
17160 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017162 (eval $ac_try) 2>&5
17163 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017165 (exit $ac_status); }; }; then
17166 ac_cv_type_off_t=yes
17167else
17168 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017169sed 's/^/| /' conftest.$ac_ext >&5
17170
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017171ac_cv_type_off_t=no
17172fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017174fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017175echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017176echo "${ECHO_T}$ac_cv_type_off_t" >&6
17177if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017178
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017179cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017180#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017181_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017182
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017183
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017184fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017185echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017186echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17187if test "${ac_cv_type_pid_t+set}" = set; then
17188 echo $ECHO_N "(cached) $ECHO_C" >&6
17189else
17190 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017191/* confdefs.h. */
17192_ACEOF
17193cat confdefs.h >>conftest.$ac_ext
17194cat >>conftest.$ac_ext <<_ACEOF
17195/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017196$ac_includes_default
17197int
17198main ()
17199{
17200if ((pid_t *) 0)
17201 return 0;
17202if (sizeof (pid_t))
17203 return 0;
17204 ;
17205 return 0;
17206}
17207_ACEOF
17208rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017210 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017211 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017212 grep -v '^ *+' conftest.er1 >conftest.err
17213 rm -f conftest.er1
17214 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017216 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; } &&
17223 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017225 (eval $ac_try) 2>&5
17226 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017228 (exit $ac_status); }; }; then
17229 ac_cv_type_pid_t=yes
17230else
17231 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017232sed 's/^/| /' conftest.$ac_ext >&5
17233
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017234ac_cv_type_pid_t=no
17235fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017237fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017238echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017239echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17240if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017241
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017242cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017243#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017244_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017245
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017246
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017247fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017248echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017249echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17250if test "${ac_cv_type_size_t+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17252else
17253 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017254/* confdefs.h. */
17255_ACEOF
17256cat confdefs.h >>conftest.$ac_ext
17257cat >>conftest.$ac_ext <<_ACEOF
17258/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017259$ac_includes_default
17260int
17261main ()
17262{
17263if ((size_t *) 0)
17264 return 0;
17265if (sizeof (size_t))
17266 return 0;
17267 ;
17268 return 0;
17269}
17270_ACEOF
17271rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017273 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017274 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017275 grep -v '^ *+' conftest.er1 >conftest.err
17276 rm -f conftest.er1
17277 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017279 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; } &&
17286 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017288 (eval $ac_try) 2>&5
17289 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017291 (exit $ac_status); }; }; then
17292 ac_cv_type_size_t=yes
17293else
17294 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017295sed 's/^/| /' conftest.$ac_ext >&5
17296
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017297ac_cv_type_size_t=no
17298fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017300fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017301echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017302echo "${ECHO_T}$ac_cv_type_size_t" >&6
17303if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017304
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017305cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017306#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017307_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017308
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017309
17310fi
17311echo "$as_me:$LINENO: checking for ssize_t" >&5
17312echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17313if test "${ac_cv_type_ssize_t+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17315else
17316 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017317/* confdefs.h. */
17318_ACEOF
17319cat confdefs.h >>conftest.$ac_ext
17320cat >>conftest.$ac_ext <<_ACEOF
17321/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017322$ac_includes_default
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017323int
17324main ()
17325{
17326if ((ssize_t *) 0)
17327 return 0;
17328if (sizeof (ssize_t))
17329 return 0;
17330 ;
17331 return 0;
17332}
17333_ACEOF
17334rm -f conftest.$ac_objext
17335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017336 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017337 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017338 grep -v '^ *+' conftest.er1 >conftest.err
17339 rm -f conftest.er1
17340 cat conftest.err >&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17345 (eval $ac_try) 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; } &&
17349 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17351 (eval $ac_try) 2>&5
17352 ac_status=$?
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 ac_cv_type_ssize_t=yes
17356else
17357 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017358sed 's/^/| /' conftest.$ac_ext >&5
17359
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017360ac_cv_type_ssize_t=no
17361fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017363fi
17364echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17365echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17366if test $ac_cv_type_ssize_t = yes; then
17367
17368cat >>confdefs.h <<_ACEOF
17369#define HAVE_SSIZE_T 1
17370_ACEOF
17371
17372
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017373fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017374echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017375echo $ECHO_N "checking for long long... $ECHO_C" >&6
17376if test "${ac_cv_type_long_long+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17378else
17379 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017380/* confdefs.h. */
17381_ACEOF
17382cat confdefs.h >>conftest.$ac_ext
17383cat >>conftest.$ac_ext <<_ACEOF
17384/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017385$ac_includes_default
17386int
17387main ()
17388{
17389if ((long long *) 0)
17390 return 0;
17391if (sizeof (long long))
17392 return 0;
17393 ;
17394 return 0;
17395}
17396_ACEOF
17397rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017399 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017400 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017401 grep -v '^ *+' conftest.er1 >conftest.err
17402 rm -f conftest.er1
17403 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017405 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408 (eval $ac_try) 2>&5
17409 ac_status=$?
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; } &&
17412 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017414 (eval $ac_try) 2>&5
17415 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017417 (exit $ac_status); }; }; then
17418 ac_cv_type_long_long=yes
17419else
17420 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017421sed 's/^/| /' conftest.$ac_ext >&5
17422
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017423ac_cv_type_long_long=no
17424fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017426fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017427echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017428echo "${ECHO_T}$ac_cv_type_long_long" >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017429if test $ac_cv_type_long_long = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017430
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017431cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017432#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017433_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000017434
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017435
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017436fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000017437echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17438echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17439if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17440 echo $ECHO_N "(cached) $ECHO_C" >&6
17441else
17442 cat >conftest.$ac_ext <<_ACEOF
17443/* confdefs.h. */
17444_ACEOF
17445cat confdefs.h >>conftest.$ac_ext
17446cat >>conftest.$ac_ext <<_ACEOF
17447/* end confdefs.h. */
17448$ac_includes_default
17449int
17450main ()
17451{
17452if ((fsblkcnt_t *) 0)
17453 return 0;
17454if (sizeof (fsblkcnt_t))
17455 return 0;
17456 ;
17457 return 0;
17458}
17459_ACEOF
17460rm -f conftest.$ac_objext
17461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17462 (eval $ac_compile) 2>conftest.er1
17463 ac_status=$?
17464 grep -v '^ *+' conftest.er1 >conftest.err
17465 rm -f conftest.er1
17466 cat conftest.err >&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } &&
17469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17471 (eval $ac_try) 2>&5
17472 ac_status=$?
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); }; } &&
17475 { ac_try='test -s conftest.$ac_objext'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; }; then
17481 ac_cv_type_fsblkcnt_t=yes
17482else
17483 echo "$as_me: failed program was:" >&5
17484sed 's/^/| /' conftest.$ac_ext >&5
17485
17486ac_cv_type_fsblkcnt_t=no
17487fi
17488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17489fi
17490echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17491echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17492if test $ac_cv_type_fsblkcnt_t = yes; then
17493
17494cat >>confdefs.h <<_ACEOF
17495#define HAVE_FSBLKCNT_T 1
17496_ACEOF
17497
17498
17499fi
17500echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17501echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17502if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17504else
17505 cat >conftest.$ac_ext <<_ACEOF
17506/* confdefs.h. */
17507_ACEOF
17508cat confdefs.h >>conftest.$ac_ext
17509cat >>conftest.$ac_ext <<_ACEOF
17510/* end confdefs.h. */
17511$ac_includes_default
17512int
17513main ()
17514{
17515if ((fsfilcnt_t *) 0)
17516 return 0;
17517if (sizeof (fsfilcnt_t))
17518 return 0;
17519 ;
17520 return 0;
17521}
17522_ACEOF
17523rm -f conftest.$ac_objext
17524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17525 (eval $ac_compile) 2>conftest.er1
17526 ac_status=$?
17527 grep -v '^ *+' conftest.er1 >conftest.err
17528 rm -f conftest.er1
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; } &&
17538 { ac_try='test -s conftest.$ac_objext'
17539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17540 (eval $ac_try) 2>&5
17541 ac_status=$?
17542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543 (exit $ac_status); }; }; then
17544 ac_cv_type_fsfilcnt_t=yes
17545else
17546 echo "$as_me: failed program was:" >&5
17547sed 's/^/| /' conftest.$ac_ext >&5
17548
17549ac_cv_type_fsfilcnt_t=no
17550fi
17551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17552fi
17553echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17554echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17555if test $ac_cv_type_fsfilcnt_t = yes; then
17556
17557cat >>confdefs.h <<_ACEOF
17558#define HAVE_FSFILCNT_T 1
17559_ACEOF
17560
17561
17562fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017563
Paul Millar10a6c562004-12-07 17:19:54 +000017564echo "$as_me:$LINENO: checking for sigset_t" >&5
17565echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
17566if test "${ac_cv_type_sigset_t+set}" = set; then
17567 echo $ECHO_N "(cached) $ECHO_C" >&6
17568else
17569 cat >conftest.$ac_ext <<_ACEOF
17570/* confdefs.h. */
17571_ACEOF
17572cat confdefs.h >>conftest.$ac_ext
17573cat >>conftest.$ac_ext <<_ACEOF
17574/* end confdefs.h. */
17575#include <signal.h>
17576
17577int
17578main ()
17579{
17580if ((sigset_t *) 0)
17581 return 0;
17582if (sizeof (sigset_t))
17583 return 0;
17584 ;
17585 return 0;
17586}
17587_ACEOF
17588rm -f conftest.$ac_objext
17589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17590 (eval $ac_compile) 2>conftest.er1
17591 ac_status=$?
17592 grep -v '^ *+' conftest.er1 >conftest.err
17593 rm -f conftest.er1
17594 cat conftest.err >&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); } &&
17597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17599 (eval $ac_try) 2>&5
17600 ac_status=$?
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); }; } &&
17603 { ac_try='test -s conftest.$ac_objext'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; }; then
17609 ac_cv_type_sigset_t=yes
17610else
17611 echo "$as_me: failed program was:" >&5
17612sed 's/^/| /' conftest.$ac_ext >&5
17613
17614ac_cv_type_sigset_t=no
17615fi
17616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17617fi
17618echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17619echo "${ECHO_T}$ac_cv_type_sigset_t" >&6
17620if test $ac_cv_type_sigset_t = yes; then
17621
17622cat >>confdefs.h <<_ACEOF
17623#define HAVE_SIGSET_T 1
17624_ACEOF
17625
17626
17627fi
17628
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017629
17630echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017631echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17632if test "${wine_cv_linux_input_h+set}" = set; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017634else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017635 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017636/* confdefs.h. */
17637_ACEOF
17638cat confdefs.h >>conftest.$ac_ext
17639cat >>conftest.$ac_ext <<_ACEOF
17640/* end confdefs.h. */
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017641
17642 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017643
17644int
17645main ()
17646{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017647
17648 int foo = EVIOCGBIT(EV_ABS,42);
17649 int bar = BTN_PINKIE;
17650 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017651
17652 ;
17653 return 0;
17654}
17655_ACEOF
17656rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017658 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017659 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017660 grep -v '^ *+' conftest.er1 >conftest.err
17661 rm -f conftest.er1
17662 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017664 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; } &&
17671 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017673 (eval $ac_try) 2>&5
17674 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017676 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017677 wine_cv_linux_input_h=yes
17678else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017679 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017680sed 's/^/| /' conftest.$ac_ext >&5
17681
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017682wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017683fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017685
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017686fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017687echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017688echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017689 if test "$wine_cv_linux_input_h" = "yes"
17690 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017691
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017692cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017693#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017694_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017695
17696 fi
17697
Paul Millar10a6c562004-12-07 17:19:54 +000017698echo "$as_me:$LINENO: checking for sigaddset" >&5
17699echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6
17700if test "${wine_cv_have_sigaddset+set}" = set; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17702else
17703 cat >conftest.$ac_ext <<_ACEOF
17704/* confdefs.h. */
17705_ACEOF
17706cat confdefs.h >>conftest.$ac_ext
17707cat >>conftest.$ac_ext <<_ACEOF
17708/* end confdefs.h. */
17709#include <signal.h>
17710int
17711main ()
17712{
17713sigset_t set; sigaddset(&set,SIGTERM);
17714 ;
17715 return 0;
17716}
17717_ACEOF
17718rm -f conftest.$ac_objext conftest$ac_exeext
17719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17720 (eval $ac_link) 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
17727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest$ac_exeext'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 wine_cv_have_sigaddset=yes
17740else
17741 echo "$as_me: failed program was:" >&5
17742sed 's/^/| /' conftest.$ac_ext >&5
17743
17744wine_cv_have_sigaddset=no
17745fi
17746rm -f conftest.err conftest.$ac_objext \
17747 conftest$ac_exeext conftest.$ac_ext
17748fi
17749echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17750echo "${ECHO_T}$wine_cv_have_sigaddset" >&6
17751if test "$wine_cv_have_sigaddset" = "yes"
17752then
17753
17754cat >>confdefs.h <<\_ACEOF
17755#define HAVE_SIGADDSET 1
17756_ACEOF
17757
17758fi
17759
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017760
17761echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017762echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17763if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000017765else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017766 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017767/* confdefs.h. */
17768_ACEOF
17769cat confdefs.h >>conftest.$ac_ext
17770cat >>conftest.$ac_ext <<_ACEOF
17771/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000017772
17773#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017774
17775int
17776main ()
17777{
Rein Klazesff7a61f2000-09-24 19:41:57 +000017778
17779 char *name=NULL;
17780 struct hostent he;
17781 struct hostent *result;
17782 char *buf=NULL;
17783 int bufsize=0;
17784 int res,errnr;
17785 char *addr=NULL;
17786 int addrlen=0;
17787 int addrtype=0;
17788 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17789 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017790
17791 ;
17792 return 0;
17793}
17794_ACEOF
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000017795rm -f conftest.$ac_objext conftest$ac_exeext
17796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17797 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017798 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017799 grep -v '^ *+' conftest.er1 >conftest.err
17800 rm -f conftest.er1
17801 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017803 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17807 ac_status=$?
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; } &&
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000017810 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017812 (eval $ac_try) 2>&5
17813 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017815 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000017816 wine_cv_linux_gethostbyname_r_6=yes
17817else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017818 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017819sed 's/^/| /' conftest.$ac_ext >&5
17820
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017821wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000017822
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017823fi
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000017824rm -f conftest.err conftest.$ac_objext \
17825 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017826
17827fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017828echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017829echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000017830 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17831 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017832
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017833cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000017834#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017835_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000017836
17837 fi
17838
Marcus Meissner028e9a11999-08-04 15:07:56 +000017839if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017840then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017841 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017842echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17843if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17844 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017845else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017846 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017847/* confdefs.h. */
17848_ACEOF
17849cat confdefs.h >>conftest.$ac_ext
17850cat >>conftest.$ac_ext <<_ACEOF
17851/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017852
Marcus Meissner028e9a11999-08-04 15:07:56 +000017853 #include <sys/ioctl.h>
17854 #include <linux/joystick.h>
17855
17856 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000017857 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17858 #error "no 2.2 header"
17859 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017860
17861int
17862main ()
17863{
Marcus Meissner028e9a11999-08-04 15:07:56 +000017864/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017865 ;
17866 return 0;
17867}
17868_ACEOF
17869rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017871 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017872 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017873 grep -v '^ *+' conftest.er1 >conftest.err
17874 rm -f conftest.er1
17875 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017877 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880 (eval $ac_try) 2>&5
17881 ac_status=$?
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; } &&
17884 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017886 (eval $ac_try) 2>&5
17887 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017889 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000017890 wine_cv_linux_joystick_22_api=yes
17891else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017892 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017893sed 's/^/| /' conftest.$ac_ext >&5
17894
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017895wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000017896fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000017898
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017899fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017900echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017901echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000017902 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000017903 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017904
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017905cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000017906#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017907_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000017908
17909 fi
17910fi
17911
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017912
Marcus Meissner028e9a11999-08-04 15:07:56 +000017913if test "$ac_cv_header_sys_vfs_h" = "yes"
17914then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017915 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017916echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17917if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000017919else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017920 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017921/* confdefs.h. */
17922_ACEOF
17923cat confdefs.h >>conftest.$ac_ext
17924cat >>conftest.$ac_ext <<_ACEOF
17925/* end confdefs.h. */
Marcus Meissner028e9a11999-08-04 15:07:56 +000017926
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017927 #include <sys/types.h>
17928 #ifdef HAVE_SYS_PARAM_H
17929 # include <sys/param.h>
17930 #endif
17931 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017932
17933int
17934main ()
17935{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017936
17937 struct statfs stfs;
17938
17939 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017940
17941 ;
17942 return 0;
17943}
17944_ACEOF
17945rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017947 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017948 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017949 grep -v '^ *+' conftest.er1 >conftest.err
17950 rm -f conftest.er1
17951 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017953 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; } &&
17960 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017962 (eval $ac_try) 2>&5
17963 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017965 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017966 wine_cv_sys_vfs_has_statfs=yes
17967else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017968 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017969sed 's/^/| /' conftest.$ac_ext >&5
17970
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017971wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017972
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017973fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017975
17976fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017977echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017978echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017979 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
17980 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017981
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017982cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017983#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017984_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017985
17986 fi
17987fi
17988
17989if test "$ac_cv_header_sys_statfs_h" = "yes"
17990then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017991 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017992echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
17993if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017995else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017996 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017997/* confdefs.h. */
17998_ACEOF
17999cat confdefs.h >>conftest.$ac_ext
18000cat >>conftest.$ac_ext <<_ACEOF
18001/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018002
18003 #include <sys/types.h>
18004 #ifdef HAVE_SYS_PARAM_H
18005 # include <sys/param.h>
18006 #endif
18007 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018008
18009int
18010main ()
18011{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018012
18013 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018014
18015 ;
18016 return 0;
18017}
18018_ACEOF
18019rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018021 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018022 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018023 grep -v '^ *+' conftest.er1 >conftest.err
18024 rm -f conftest.er1
18025 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018027 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18031 ac_status=$?
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; } &&
18034 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018036 (eval $ac_try) 2>&5
18037 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018039 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018040 wine_cv_sys_statfs_has_statfs=yes
18041else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018042 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018043sed 's/^/| /' conftest.$ac_ext >&5
18044
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018045wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018046
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018047fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018049
18050fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018051echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018052echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018053 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18054 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018055
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018056cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018057#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018058_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018059
18060 fi
18061fi
18062
18063if test "$ac_cv_header_sys_mount_h" = "yes"
18064then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018065 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018066echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18067if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018069else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018070 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018071/* confdefs.h. */
18072_ACEOF
18073cat confdefs.h >>conftest.$ac_ext
18074cat >>conftest.$ac_ext <<_ACEOF
18075/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018076
18077 #include <sys/types.h>
18078 #ifdef HAVE_SYS_PARAM_H
18079 # include <sys/param.h>
18080 #endif
18081 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018082
18083int
18084main ()
18085{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018086
18087 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018088
18089 ;
18090 return 0;
18091}
18092_ACEOF
18093rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018095 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018096 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018097 grep -v '^ *+' conftest.er1 >conftest.err
18098 rm -f conftest.er1
18099 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018101 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18105 ac_status=$?
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; } &&
18108 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018110 (eval $ac_try) 2>&5
18111 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018113 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018114 wine_cv_sys_mount_has_statfs=yes
18115else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018116 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018117sed 's/^/| /' conftest.$ac_ext >&5
18118
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018119wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018120
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018121fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018123
18124fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018125echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018126echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018127 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18128 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018129
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018130cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018131#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018132_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018133
18134 fi
18135fi
18136
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018137
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018138echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18139echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18140if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018141 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018142else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018143 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018144/* confdefs.h. */
18145_ACEOF
18146cat confdefs.h >>conftest.$ac_ext
18147cat >>conftest.$ac_ext <<_ACEOF
18148/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018149#include <sys/types.h>
18150#ifdef HAVE_SYS_PARAM_H
18151# include <sys/param.h>
18152#endif
18153#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18154# include <sys/mount.h>
18155#else
18156# ifdef STATFS_DEFINED_BY_SYS_VFS
18157# include <sys/vfs.h>
18158# else
18159# ifdef STATFS_DEFINED_BY_SYS_STATFS
18160# include <sys/statfs.h>
18161# endif
18162# endif
18163#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018164
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018165int
18166main ()
18167{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018168static struct statfs ac_aggr;
18169if (ac_aggr.f_bfree)
18170return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018171 ;
18172 return 0;
18173}
18174_ACEOF
18175rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018177 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018178 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018179 grep -v '^ *+' conftest.er1 >conftest.err
18180 rm -f conftest.er1
18181 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018183 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; } &&
18190 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018192 (eval $ac_try) 2>&5
18193 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018195 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018196 ac_cv_member_struct_statfs_f_bfree=yes
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018197else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018198 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018199sed 's/^/| /' conftest.$ac_ext >&5
18200
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018201cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018202/* confdefs.h. */
18203_ACEOF
18204cat confdefs.h >>conftest.$ac_ext
18205cat >>conftest.$ac_ext <<_ACEOF
18206/* end confdefs.h. */
18207#include <sys/types.h>
18208#ifdef HAVE_SYS_PARAM_H
18209# include <sys/param.h>
18210#endif
18211#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18212# include <sys/mount.h>
18213#else
18214# ifdef STATFS_DEFINED_BY_SYS_VFS
18215# include <sys/vfs.h>
18216# else
18217# ifdef STATFS_DEFINED_BY_SYS_STATFS
18218# include <sys/statfs.h>
18219# endif
18220# endif
18221#endif
18222
18223int
18224main ()
18225{
18226static struct statfs ac_aggr;
18227if (sizeof ac_aggr.f_bfree)
18228return 0;
18229 ;
18230 return 0;
18231}
18232_ACEOF
18233rm -f conftest.$ac_objext
18234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018235 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018236 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018237 grep -v '^ *+' conftest.er1 >conftest.err
18238 rm -f conftest.er1
18239 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18244 (eval $ac_try) 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; } &&
18248 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18250 (eval $ac_try) 2>&5
18251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; }; then
18254 ac_cv_member_struct_statfs_f_bfree=yes
18255else
18256 echo "$as_me: failed program was:" >&5
18257sed 's/^/| /' conftest.$ac_ext >&5
18258
18259ac_cv_member_struct_statfs_f_bfree=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018260fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018262fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018264fi
18265echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18266echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18267if test $ac_cv_member_struct_statfs_f_bfree = yes; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018268
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018269cat >>confdefs.h <<_ACEOF
18270#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018271_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018272
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018273
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018274fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018275echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18276echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18277if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018278 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000018279else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018280 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018281/* confdefs.h. */
18282_ACEOF
18283cat confdefs.h >>conftest.$ac_ext
18284cat >>conftest.$ac_ext <<_ACEOF
18285/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018286#include <sys/types.h>
18287#ifdef HAVE_SYS_PARAM_H
18288# include <sys/param.h>
18289#endif
18290#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18291# include <sys/mount.h>
18292#else
18293# ifdef STATFS_DEFINED_BY_SYS_VFS
18294# include <sys/vfs.h>
18295# else
18296# ifdef STATFS_DEFINED_BY_SYS_STATFS
18297# include <sys/statfs.h>
18298# endif
18299# endif
18300#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018301
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018302int
18303main ()
18304{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018305static struct statfs ac_aggr;
18306if (ac_aggr.f_bavail)
18307return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018308 ;
18309 return 0;
18310}
18311_ACEOF
18312rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018314 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018315 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018316 grep -v '^ *+' conftest.er1 >conftest.err
18317 rm -f conftest.er1
18318 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018320 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; } &&
18327 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018329 (eval $ac_try) 2>&5
18330 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018332 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018333 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000018334else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018335 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018336sed 's/^/| /' conftest.$ac_ext >&5
18337
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018338cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018339/* confdefs.h. */
18340_ACEOF
18341cat confdefs.h >>conftest.$ac_ext
18342cat >>conftest.$ac_ext <<_ACEOF
18343/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000018344#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018345#ifdef HAVE_SYS_PARAM_H
18346# include <sys/param.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000018347#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018348#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18349# include <sys/mount.h>
18350#else
18351# ifdef STATFS_DEFINED_BY_SYS_VFS
18352# include <sys/vfs.h>
18353# else
18354# ifdef STATFS_DEFINED_BY_SYS_STATFS
18355# include <sys/statfs.h>
18356# endif
18357# endif
18358#endif
18359
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018360int
18361main ()
18362{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018363static struct statfs ac_aggr;
18364if (sizeof ac_aggr.f_bavail)
18365return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018366 ;
18367 return 0;
18368}
18369_ACEOF
18370rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018372 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018373 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018374 grep -v '^ *+' conftest.er1 >conftest.err
18375 rm -f conftest.er1
18376 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018378 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; } &&
18385 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018387 (eval $ac_try) 2>&5
18388 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018390 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018391 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliard829fe321998-07-26 14:27:39 +000018392else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018393 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018394sed 's/^/| /' conftest.$ac_ext >&5
18395
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018396ac_cv_member_struct_statfs_f_bavail=no
Alexandre Julliard829fe321998-07-26 14:27:39 +000018397fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000018399fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000018401fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018402echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18403echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18404if test $ac_cv_member_struct_statfs_f_bavail = yes; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000018405
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018406cat >>confdefs.h <<_ACEOF
18407#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018408_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000018409
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018410
Patrik Stridvall09da9662001-07-08 22:30:50 +000018411fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000018412echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18413echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18414if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
18416else
18417 cat >conftest.$ac_ext <<_ACEOF
18418/* confdefs.h. */
18419_ACEOF
18420cat confdefs.h >>conftest.$ac_ext
18421cat >>conftest.$ac_ext <<_ACEOF
18422/* end confdefs.h. */
18423#include <sys/types.h>
18424#ifdef HAVE_SYS_PARAM_H
18425# include <sys/param.h>
18426#endif
18427#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18428# include <sys/mount.h>
18429#else
18430# ifdef STATFS_DEFINED_BY_SYS_VFS
18431# include <sys/vfs.h>
18432# else
18433# ifdef STATFS_DEFINED_BY_SYS_STATFS
18434# include <sys/statfs.h>
18435# endif
18436# endif
18437#endif
18438
18439int
18440main ()
18441{
18442static struct statfs ac_aggr;
18443if (ac_aggr.f_frsize)
18444return 0;
18445 ;
18446 return 0;
18447}
18448_ACEOF
18449rm -f conftest.$ac_objext
18450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18451 (eval $ac_compile) 2>conftest.er1
18452 ac_status=$?
18453 grep -v '^ *+' conftest.er1 >conftest.err
18454 rm -f conftest.er1
18455 cat conftest.err >&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } &&
18458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest.$ac_objext'
18465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18466 (eval $ac_try) 2>&5
18467 ac_status=$?
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; }; then
18470 ac_cv_member_struct_statfs_f_frsize=yes
18471else
18472 echo "$as_me: failed program was:" >&5
18473sed 's/^/| /' conftest.$ac_ext >&5
18474
18475cat >conftest.$ac_ext <<_ACEOF
18476/* confdefs.h. */
18477_ACEOF
18478cat confdefs.h >>conftest.$ac_ext
18479cat >>conftest.$ac_ext <<_ACEOF
18480/* end confdefs.h. */
18481#include <sys/types.h>
18482#ifdef HAVE_SYS_PARAM_H
18483# include <sys/param.h>
18484#endif
18485#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18486# include <sys/mount.h>
18487#else
18488# ifdef STATFS_DEFINED_BY_SYS_VFS
18489# include <sys/vfs.h>
18490# else
18491# ifdef STATFS_DEFINED_BY_SYS_STATFS
18492# include <sys/statfs.h>
18493# endif
18494# endif
18495#endif
18496
18497int
18498main ()
18499{
18500static struct statfs ac_aggr;
18501if (sizeof ac_aggr.f_frsize)
18502return 0;
18503 ;
18504 return 0;
18505}
18506_ACEOF
18507rm -f conftest.$ac_objext
18508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18509 (eval $ac_compile) 2>conftest.er1
18510 ac_status=$?
18511 grep -v '^ *+' conftest.er1 >conftest.err
18512 rm -f conftest.er1
18513 cat conftest.err >&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } &&
18516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18519 ac_status=$?
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; } &&
18522 { ac_try='test -s conftest.$ac_objext'
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18528 ac_cv_member_struct_statfs_f_frsize=yes
18529else
18530 echo "$as_me: failed program was:" >&5
18531sed 's/^/| /' conftest.$ac_ext >&5
18532
18533ac_cv_member_struct_statfs_f_frsize=no
18534fi
18535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18536fi
18537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18538fi
18539echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18540echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18541if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18542
18543cat >>confdefs.h <<_ACEOF
18544#define HAVE_STRUCT_STATFS_F_FRSIZE 1
18545_ACEOF
18546
18547
18548fi
18549echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18550echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18551if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18553else
18554 cat >conftest.$ac_ext <<_ACEOF
18555/* confdefs.h. */
18556_ACEOF
18557cat confdefs.h >>conftest.$ac_ext
18558cat >>conftest.$ac_ext <<_ACEOF
18559/* end confdefs.h. */
18560#include <sys/types.h>
18561#ifdef HAVE_SYS_PARAM_H
18562# include <sys/param.h>
18563#endif
18564#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18565# include <sys/mount.h>
18566#else
18567# ifdef STATFS_DEFINED_BY_SYS_VFS
18568# include <sys/vfs.h>
18569# else
18570# ifdef STATFS_DEFINED_BY_SYS_STATFS
18571# include <sys/statfs.h>
18572# endif
18573# endif
18574#endif
18575
18576int
18577main ()
18578{
18579static struct statfs ac_aggr;
18580if (ac_aggr.f_ffree)
18581return 0;
18582 ;
18583 return 0;
18584}
18585_ACEOF
18586rm -f conftest.$ac_objext
18587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18588 (eval $ac_compile) 2>conftest.er1
18589 ac_status=$?
18590 grep -v '^ *+' conftest.er1 >conftest.err
18591 rm -f conftest.er1
18592 cat conftest.err >&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } &&
18595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; } &&
18601 { ac_try='test -s conftest.$ac_objext'
18602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18603 (eval $ac_try) 2>&5
18604 ac_status=$?
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); }; }; then
18607 ac_cv_member_struct_statfs_f_ffree=yes
18608else
18609 echo "$as_me: failed program was:" >&5
18610sed 's/^/| /' conftest.$ac_ext >&5
18611
18612cat >conftest.$ac_ext <<_ACEOF
18613/* confdefs.h. */
18614_ACEOF
18615cat confdefs.h >>conftest.$ac_ext
18616cat >>conftest.$ac_ext <<_ACEOF
18617/* end confdefs.h. */
18618#include <sys/types.h>
18619#ifdef HAVE_SYS_PARAM_H
18620# include <sys/param.h>
18621#endif
18622#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18623# include <sys/mount.h>
18624#else
18625# ifdef STATFS_DEFINED_BY_SYS_VFS
18626# include <sys/vfs.h>
18627# else
18628# ifdef STATFS_DEFINED_BY_SYS_STATFS
18629# include <sys/statfs.h>
18630# endif
18631# endif
18632#endif
18633
18634int
18635main ()
18636{
18637static struct statfs ac_aggr;
18638if (sizeof ac_aggr.f_ffree)
18639return 0;
18640 ;
18641 return 0;
18642}
18643_ACEOF
18644rm -f conftest.$ac_objext
18645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18646 (eval $ac_compile) 2>conftest.er1
18647 ac_status=$?
18648 grep -v '^ *+' conftest.er1 >conftest.err
18649 rm -f conftest.er1
18650 cat conftest.err >&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); } &&
18653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655 (eval $ac_try) 2>&5
18656 ac_status=$?
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; } &&
18659 { ac_try='test -s conftest.$ac_objext'
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 ac_cv_member_struct_statfs_f_ffree=yes
18666else
18667 echo "$as_me: failed program was:" >&5
18668sed 's/^/| /' conftest.$ac_ext >&5
18669
18670ac_cv_member_struct_statfs_f_ffree=no
18671fi
18672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18673fi
18674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18675fi
18676echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18677echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18678if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18679
18680cat >>confdefs.h <<_ACEOF
18681#define HAVE_STRUCT_STATFS_F_FFREE 1
18682_ACEOF
18683
18684
18685fi
18686echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18687echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18688if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18690else
18691 cat >conftest.$ac_ext <<_ACEOF
18692/* confdefs.h. */
18693_ACEOF
18694cat confdefs.h >>conftest.$ac_ext
18695cat >>conftest.$ac_ext <<_ACEOF
18696/* end confdefs.h. */
18697#include <sys/types.h>
18698#ifdef HAVE_SYS_PARAM_H
18699# include <sys/param.h>
18700#endif
18701#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18702# include <sys/mount.h>
18703#else
18704# ifdef STATFS_DEFINED_BY_SYS_VFS
18705# include <sys/vfs.h>
18706# else
18707# ifdef STATFS_DEFINED_BY_SYS_STATFS
18708# include <sys/statfs.h>
18709# endif
18710# endif
18711#endif
18712
18713int
18714main ()
18715{
18716static struct statfs ac_aggr;
18717if (ac_aggr.f_favail)
18718return 0;
18719 ;
18720 return 0;
18721}
18722_ACEOF
18723rm -f conftest.$ac_objext
18724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18725 (eval $ac_compile) 2>conftest.er1
18726 ac_status=$?
18727 grep -v '^ *+' conftest.er1 >conftest.err
18728 rm -f conftest.er1
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); } &&
18732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734 (eval $ac_try) 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; } &&
18738 { ac_try='test -s conftest.$ac_objext'
18739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740 (eval $ac_try) 2>&5
18741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; }; then
18744 ac_cv_member_struct_statfs_f_favail=yes
18745else
18746 echo "$as_me: failed program was:" >&5
18747sed 's/^/| /' conftest.$ac_ext >&5
18748
18749cat >conftest.$ac_ext <<_ACEOF
18750/* confdefs.h. */
18751_ACEOF
18752cat confdefs.h >>conftest.$ac_ext
18753cat >>conftest.$ac_ext <<_ACEOF
18754/* end confdefs.h. */
18755#include <sys/types.h>
18756#ifdef HAVE_SYS_PARAM_H
18757# include <sys/param.h>
18758#endif
18759#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18760# include <sys/mount.h>
18761#else
18762# ifdef STATFS_DEFINED_BY_SYS_VFS
18763# include <sys/vfs.h>
18764# else
18765# ifdef STATFS_DEFINED_BY_SYS_STATFS
18766# include <sys/statfs.h>
18767# endif
18768# endif
18769#endif
18770
18771int
18772main ()
18773{
18774static struct statfs ac_aggr;
18775if (sizeof ac_aggr.f_favail)
18776return 0;
18777 ;
18778 return 0;
18779}
18780_ACEOF
18781rm -f conftest.$ac_objext
18782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18783 (eval $ac_compile) 2>conftest.er1
18784 ac_status=$?
18785 grep -v '^ *+' conftest.er1 >conftest.err
18786 rm -f conftest.er1
18787 cat conftest.err >&5
18788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789 (exit $ac_status); } &&
18790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18792 (eval $ac_try) 2>&5
18793 ac_status=$?
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }; } &&
18796 { ac_try='test -s conftest.$ac_objext'
18797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18798 (eval $ac_try) 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_cv_member_struct_statfs_f_favail=yes
18803else
18804 echo "$as_me: failed program was:" >&5
18805sed 's/^/| /' conftest.$ac_ext >&5
18806
18807ac_cv_member_struct_statfs_f_favail=no
18808fi
18809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18810fi
18811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18812fi
18813echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18814echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18815if test $ac_cv_member_struct_statfs_f_favail = yes; then
18816
18817cat >>confdefs.h <<_ACEOF
18818#define HAVE_STRUCT_STATFS_F_FAVAIL 1
18819_ACEOF
18820
18821
18822fi
Alexandre Julliardb859a682004-03-07 03:16:43 +000018823echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18824echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18825if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18827else
18828 cat >conftest.$ac_ext <<_ACEOF
18829/* confdefs.h. */
18830_ACEOF
18831cat confdefs.h >>conftest.$ac_ext
18832cat >>conftest.$ac_ext <<_ACEOF
18833/* end confdefs.h. */
18834#include <sys/types.h>
18835#ifdef HAVE_SYS_PARAM_H
18836# include <sys/param.h>
18837#endif
18838#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18839# include <sys/mount.h>
18840#else
18841# ifdef STATFS_DEFINED_BY_SYS_VFS
18842# include <sys/vfs.h>
18843# else
18844# ifdef STATFS_DEFINED_BY_SYS_STATFS
18845# include <sys/statfs.h>
18846# endif
18847# endif
18848#endif
18849
18850int
18851main ()
18852{
18853static struct statfs ac_aggr;
18854if (ac_aggr.f_namelen)
18855return 0;
18856 ;
18857 return 0;
18858}
18859_ACEOF
18860rm -f conftest.$ac_objext
18861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18862 (eval $ac_compile) 2>conftest.er1
18863 ac_status=$?
18864 grep -v '^ *+' conftest.er1 >conftest.err
18865 rm -f conftest.er1
18866 cat conftest.err >&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } &&
18869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; } &&
18875 { ac_try='test -s conftest.$ac_objext'
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 ac_cv_member_struct_statfs_f_namelen=yes
18882else
18883 echo "$as_me: failed program was:" >&5
18884sed 's/^/| /' conftest.$ac_ext >&5
18885
18886cat >conftest.$ac_ext <<_ACEOF
18887/* confdefs.h. */
18888_ACEOF
18889cat confdefs.h >>conftest.$ac_ext
18890cat >>conftest.$ac_ext <<_ACEOF
18891/* end confdefs.h. */
18892#include <sys/types.h>
18893#ifdef HAVE_SYS_PARAM_H
18894# include <sys/param.h>
18895#endif
18896#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18897# include <sys/mount.h>
18898#else
18899# ifdef STATFS_DEFINED_BY_SYS_VFS
18900# include <sys/vfs.h>
18901# else
18902# ifdef STATFS_DEFINED_BY_SYS_STATFS
18903# include <sys/statfs.h>
18904# endif
18905# endif
18906#endif
18907
18908int
18909main ()
18910{
18911static struct statfs ac_aggr;
18912if (sizeof ac_aggr.f_namelen)
18913return 0;
18914 ;
18915 return 0;
18916}
18917_ACEOF
18918rm -f conftest.$ac_objext
18919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18920 (eval $ac_compile) 2>conftest.er1
18921 ac_status=$?
18922 grep -v '^ *+' conftest.er1 >conftest.err
18923 rm -f conftest.er1
18924 cat conftest.err >&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } &&
18927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } &&
18933 { ac_try='test -s conftest.$ac_objext'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_cv_member_struct_statfs_f_namelen=yes
18940else
18941 echo "$as_me: failed program was:" >&5
18942sed 's/^/| /' conftest.$ac_ext >&5
18943
18944ac_cv_member_struct_statfs_f_namelen=no
18945fi
18946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18947fi
18948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18949fi
18950echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18951echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18952if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18953
18954cat >>confdefs.h <<_ACEOF
18955#define HAVE_STRUCT_STATFS_F_NAMELEN 1
18956_ACEOF
18957
18958
18959fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000018960
18961
18962echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18963echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
18964if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18966else
18967 cat >conftest.$ac_ext <<_ACEOF
18968/* confdefs.h. */
18969_ACEOF
18970cat confdefs.h >>conftest.$ac_ext
18971cat >>conftest.$ac_ext <<_ACEOF
18972/* end confdefs.h. */
18973#ifdef HAVE_SYS_STATVFS_H
18974#include <sys/statvfs.h>
18975#endif
18976
18977int
18978main ()
18979{
18980static struct statvfs ac_aggr;
18981if (ac_aggr.f_blocks)
18982return 0;
18983 ;
18984 return 0;
18985}
18986_ACEOF
18987rm -f conftest.$ac_objext
18988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18989 (eval $ac_compile) 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } &&
18996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try='test -s conftest.$ac_objext'
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; }; then
19008 ac_cv_member_struct_statvfs_f_blocks=yes
19009else
19010 echo "$as_me: failed program was:" >&5
19011sed 's/^/| /' conftest.$ac_ext >&5
19012
19013cat >conftest.$ac_ext <<_ACEOF
19014/* confdefs.h. */
19015_ACEOF
19016cat confdefs.h >>conftest.$ac_ext
19017cat >>conftest.$ac_ext <<_ACEOF
19018/* end confdefs.h. */
19019#ifdef HAVE_SYS_STATVFS_H
19020#include <sys/statvfs.h>
19021#endif
19022
19023int
19024main ()
19025{
19026static struct statvfs ac_aggr;
19027if (sizeof ac_aggr.f_blocks)
19028return 0;
19029 ;
19030 return 0;
19031}
19032_ACEOF
19033rm -f conftest.$ac_objext
19034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19035 (eval $ac_compile) 2>conftest.er1
19036 ac_status=$?
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; } &&
19048 { ac_try='test -s conftest.$ac_objext'
19049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050 (eval $ac_try) 2>&5
19051 ac_status=$?
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_cv_member_struct_statvfs_f_blocks=yes
19055else
19056 echo "$as_me: failed program was:" >&5
19057sed 's/^/| /' conftest.$ac_ext >&5
19058
19059ac_cv_member_struct_statvfs_f_blocks=no
19060fi
19061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19062fi
19063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19064fi
19065echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19066echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19067if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19068
19069cat >>confdefs.h <<_ACEOF
19070#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19071_ACEOF
19072
19073
19074fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000019075
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019076
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019077echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19078echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19079if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019080 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000019081else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019082 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019083/* confdefs.h. */
19084_ACEOF
19085cat confdefs.h >>conftest.$ac_ext
19086cat >>conftest.$ac_ext <<_ACEOF
19087/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000019088#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000019089#ifdef HAVE_SYS_SOCKET_H
19090# include <sys/socket.h>
19091#endif
19092#ifdef HAVE_SYS_UN_H
19093# include <sys/un.h>
19094#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019095
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019096int
19097main ()
19098{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019099static struct msghdr ac_aggr;
19100if (ac_aggr.msg_accrights)
19101return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019102 ;
19103 return 0;
19104}
19105_ACEOF
19106rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019108 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019109 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019110 grep -v '^ *+' conftest.er1 >conftest.err
19111 rm -f conftest.er1
19112 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019114 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19117 (eval $ac_try) 2>&5
19118 ac_status=$?
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); }; } &&
19121 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019123 (eval $ac_try) 2>&5
19124 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019126 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019127 ac_cv_member_struct_msghdr_msg_accrights=yes
Juergen Lock2d33ab92000-02-13 16:03:29 +000019128else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019129 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019130sed 's/^/| /' conftest.$ac_ext >&5
19131
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019132cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019133/* confdefs.h. */
19134_ACEOF
19135cat confdefs.h >>conftest.$ac_ext
19136cat >>conftest.$ac_ext <<_ACEOF
19137/* end confdefs.h. */
19138#include <sys/types.h>
19139#ifdef HAVE_SYS_SOCKET_H
19140# include <sys/socket.h>
19141#endif
19142#ifdef HAVE_SYS_UN_H
19143# include <sys/un.h>
19144#endif
19145
19146int
19147main ()
19148{
19149static struct msghdr ac_aggr;
19150if (sizeof ac_aggr.msg_accrights)
19151return 0;
19152 ;
19153 return 0;
19154}
19155_ACEOF
19156rm -f conftest.$ac_objext
19157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019158 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019159 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019160 grep -v '^ *+' conftest.er1 >conftest.err
19161 rm -f conftest.er1
19162 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19168 ac_status=$?
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; } &&
19171 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173 (eval $ac_try) 2>&5
19174 ac_status=$?
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; }; then
19177 ac_cv_member_struct_msghdr_msg_accrights=yes
19178else
19179 echo "$as_me: failed program was:" >&5
19180sed 's/^/| /' conftest.$ac_ext >&5
19181
19182ac_cv_member_struct_msghdr_msg_accrights=no
Juergen Lock2d33ab92000-02-13 16:03:29 +000019183fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000019185fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019187fi
19188echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19189echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19190if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000019191
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019192cat >>confdefs.h <<_ACEOF
19193#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019194_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000019195
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019196
19197fi
19198echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19199echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19200if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19201 echo $ECHO_N "(cached) $ECHO_C" >&6
19202else
19203 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019204/* confdefs.h. */
19205_ACEOF
19206cat confdefs.h >>conftest.$ac_ext
19207cat >>conftest.$ac_ext <<_ACEOF
19208/* end confdefs.h. */
19209#include <sys/types.h>
19210#ifdef HAVE_SYS_SOCKET_H
19211# include <sys/socket.h>
19212#endif
19213#ifdef HAVE_SYS_UN_H
19214# include <sys/un.h>
19215#endif
19216
19217int
19218main ()
19219{
19220static struct sockaddr ac_aggr;
19221if (ac_aggr.sa_len)
19222return 0;
19223 ;
19224 return 0;
19225}
19226_ACEOF
19227rm -f conftest.$ac_objext
19228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019229 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019230 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019231 grep -v '^ *+' conftest.er1 >conftest.err
19232 rm -f conftest.er1
19233 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; } &&
19242 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_cv_member_struct_sockaddr_sa_len=yes
19249else
19250 echo "$as_me: failed program was:" >&5
19251sed 's/^/| /' conftest.$ac_ext >&5
19252
19253cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019254/* confdefs.h. */
19255_ACEOF
19256cat confdefs.h >>conftest.$ac_ext
19257cat >>conftest.$ac_ext <<_ACEOF
19258/* end confdefs.h. */
19259#include <sys/types.h>
19260#ifdef HAVE_SYS_SOCKET_H
19261# include <sys/socket.h>
19262#endif
19263#ifdef HAVE_SYS_UN_H
19264# include <sys/un.h>
19265#endif
19266
19267int
19268main ()
19269{
19270static struct sockaddr ac_aggr;
19271if (sizeof ac_aggr.sa_len)
19272return 0;
19273 ;
19274 return 0;
19275}
19276_ACEOF
19277rm -f conftest.$ac_objext
19278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019279 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019280 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019281 grep -v '^ *+' conftest.er1 >conftest.err
19282 rm -f conftest.er1
19283 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19288 (eval $ac_try) 2>&5
19289 ac_status=$?
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); }; } &&
19292 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_member_struct_sockaddr_sa_len=yes
19299else
19300 echo "$as_me: failed program was:" >&5
19301sed 's/^/| /' conftest.$ac_ext >&5
19302
19303ac_cv_member_struct_sockaddr_sa_len=no
19304fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019306fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019308fi
19309echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19310echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19311if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19312
19313cat >>confdefs.h <<_ACEOF
19314#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19315_ACEOF
19316
19317
19318fi
19319echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19320echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19321if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19323else
19324 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019325/* confdefs.h. */
19326_ACEOF
19327cat confdefs.h >>conftest.$ac_ext
19328cat >>conftest.$ac_ext <<_ACEOF
19329/* end confdefs.h. */
19330#include <sys/types.h>
19331#ifdef HAVE_SYS_SOCKET_H
19332# include <sys/socket.h>
19333#endif
19334#ifdef HAVE_SYS_UN_H
19335# include <sys/un.h>
19336#endif
19337
19338int
19339main ()
19340{
19341static struct sockaddr_un ac_aggr;
19342if (ac_aggr.sun_len)
19343return 0;
19344 ;
19345 return 0;
19346}
19347_ACEOF
19348rm -f conftest.$ac_objext
19349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019350 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019351 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19360 ac_status=$?
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; } &&
19363 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; }; then
19369 ac_cv_member_struct_sockaddr_un_sun_len=yes
19370else
19371 echo "$as_me: failed program was:" >&5
19372sed 's/^/| /' conftest.$ac_ext >&5
19373
19374cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019375/* confdefs.h. */
19376_ACEOF
19377cat confdefs.h >>conftest.$ac_ext
19378cat >>conftest.$ac_ext <<_ACEOF
19379/* end confdefs.h. */
19380#include <sys/types.h>
19381#ifdef HAVE_SYS_SOCKET_H
19382# include <sys/socket.h>
19383#endif
19384#ifdef HAVE_SYS_UN_H
19385# include <sys/un.h>
19386#endif
19387
19388int
19389main ()
19390{
19391static struct sockaddr_un ac_aggr;
19392if (sizeof ac_aggr.sun_len)
19393return 0;
19394 ;
19395 return 0;
19396}
19397_ACEOF
19398rm -f conftest.$ac_objext
19399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019400 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019401 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019402 grep -v '^ *+' conftest.er1 >conftest.err
19403 rm -f conftest.er1
19404 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; } &&
19413 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; }; then
19419 ac_cv_member_struct_sockaddr_un_sun_len=yes
19420else
19421 echo "$as_me: failed program was:" >&5
19422sed 's/^/| /' conftest.$ac_ext >&5
19423
19424ac_cv_member_struct_sockaddr_un_sun_len=no
19425fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019427fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019429fi
19430echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19431echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19432if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19433
19434cat >>confdefs.h <<_ACEOF
19435#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19436_ACEOF
19437
19438
Juergen Lock2d33ab92000-02-13 16:03:29 +000019439fi
19440
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019441
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019442echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19443echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19444if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19445 echo $ECHO_N "(cached) $ECHO_C" >&6
19446else
19447 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019448/* confdefs.h. */
19449_ACEOF
19450cat confdefs.h >>conftest.$ac_ext
19451cat >>conftest.$ac_ext <<_ACEOF
19452/* end confdefs.h. */
19453#include <signal.h>
19454
19455int
19456main ()
19457{
19458static siginfo_t ac_aggr;
19459if (ac_aggr.si_fd)
19460return 0;
19461 ;
19462 return 0;
19463}
19464_ACEOF
19465rm -f conftest.$ac_objext
19466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019467 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019468 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019469 grep -v '^ *+' conftest.er1 >conftest.err
19470 rm -f conftest.er1
19471 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19476 (eval $ac_try) 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); }; } &&
19480 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19482 (eval $ac_try) 2>&5
19483 ac_status=$?
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); }; }; then
19486 ac_cv_member_siginfo_t_si_fd=yes
19487else
19488 echo "$as_me: failed program was:" >&5
19489sed 's/^/| /' conftest.$ac_ext >&5
19490
19491cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019492/* confdefs.h. */
19493_ACEOF
19494cat confdefs.h >>conftest.$ac_ext
19495cat >>conftest.$ac_ext <<_ACEOF
19496/* end confdefs.h. */
19497#include <signal.h>
19498
19499int
19500main ()
19501{
19502static siginfo_t ac_aggr;
19503if (sizeof ac_aggr.si_fd)
19504return 0;
19505 ;
19506 return 0;
19507}
19508_ACEOF
19509rm -f conftest.$ac_objext
19510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019511 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019512 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019513 grep -v '^ *+' conftest.er1 >conftest.err
19514 rm -f conftest.er1
19515 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; } &&
19524 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526 (eval $ac_try) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
19530 ac_cv_member_siginfo_t_si_fd=yes
19531else
19532 echo "$as_me: failed program was:" >&5
19533sed 's/^/| /' conftest.$ac_ext >&5
19534
19535ac_cv_member_siginfo_t_si_fd=no
19536fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019538fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019540fi
19541echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19542echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19543if test $ac_cv_member_siginfo_t_si_fd = yes; then
19544
19545cat >>confdefs.h <<_ACEOF
19546#define HAVE_SIGINFO_T_SI_FD 1
19547_ACEOF
19548
19549
19550fi
19551
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019552
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019553echo "$as_me:$LINENO: checking for struct option.name" >&5
19554echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19555if test "${ac_cv_member_struct_option_name+set}" = set; then
19556 echo $ECHO_N "(cached) $ECHO_C" >&6
19557else
19558 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019559/* confdefs.h. */
19560_ACEOF
19561cat confdefs.h >>conftest.$ac_ext
19562cat >>conftest.$ac_ext <<_ACEOF
19563/* end confdefs.h. */
19564#ifdef HAVE_GETOPT_H
19565#include <getopt.h>
19566#endif
19567
19568int
19569main ()
19570{
19571static struct option ac_aggr;
19572if (ac_aggr.name)
19573return 0;
19574 ;
19575 return 0;
19576}
19577_ACEOF
19578rm -f conftest.$ac_objext
19579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019580 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019581 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019582 grep -v '^ *+' conftest.er1 >conftest.err
19583 rm -f conftest.er1
19584 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589 (eval $ac_try) 2>&5
19590 ac_status=$?
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); }; } &&
19593 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595 (eval $ac_try) 2>&5
19596 ac_status=$?
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); }; }; then
19599 ac_cv_member_struct_option_name=yes
19600else
19601 echo "$as_me: failed program was:" >&5
19602sed 's/^/| /' conftest.$ac_ext >&5
19603
19604cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019605/* confdefs.h. */
19606_ACEOF
19607cat confdefs.h >>conftest.$ac_ext
19608cat >>conftest.$ac_ext <<_ACEOF
19609/* end confdefs.h. */
19610#ifdef HAVE_GETOPT_H
19611#include <getopt.h>
19612#endif
19613
19614int
19615main ()
19616{
19617static struct option ac_aggr;
19618if (sizeof ac_aggr.name)
19619return 0;
19620 ;
19621 return 0;
19622}
19623_ACEOF
19624rm -f conftest.$ac_objext
19625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019626 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019627 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019628 grep -v '^ *+' conftest.er1 >conftest.err
19629 rm -f conftest.er1
19630 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19642 ac_status=$?
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; }; then
19645 ac_cv_member_struct_option_name=yes
19646else
19647 echo "$as_me: failed program was:" >&5
19648sed 's/^/| /' conftest.$ac_ext >&5
19649
19650ac_cv_member_struct_option_name=no
19651fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019653fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019655fi
19656echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19657echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19658if test $ac_cv_member_struct_option_name = yes; then
19659
19660cat >>confdefs.h <<_ACEOF
19661#define HAVE_STRUCT_OPTION_NAME 1
19662_ACEOF
19663
19664
19665fi
19666
19667
Pavel Roskind6507192003-10-03 03:28:40 +000019668echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19669echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19670if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19672else
19673 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000019674/* confdefs.h. */
19675_ACEOF
19676cat confdefs.h >>conftest.$ac_ext
19677cat >>conftest.$ac_ext <<_ACEOF
19678/* end confdefs.h. */
19679$ac_includes_default
19680int
19681main ()
19682{
19683static struct stat ac_aggr;
19684if (ac_aggr.st_blocks)
19685return 0;
19686 ;
19687 return 0;
19688}
19689_ACEOF
19690rm -f conftest.$ac_objext
19691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019692 (eval $ac_compile) 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000019693 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019694 grep -v '^ *+' conftest.er1 >conftest.err
19695 rm -f conftest.er1
19696 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000019697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; } &&
19705 { ac_try='test -s conftest.$ac_objext'
Pavel Roskind6507192003-10-03 03:28:40 +000019706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19708 ac_status=$?
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; }; then
19711 ac_cv_member_struct_stat_st_blocks=yes
19712else
19713 echo "$as_me: failed program was:" >&5
19714sed 's/^/| /' conftest.$ac_ext >&5
19715
19716cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000019717/* confdefs.h. */
19718_ACEOF
19719cat confdefs.h >>conftest.$ac_ext
19720cat >>conftest.$ac_ext <<_ACEOF
19721/* end confdefs.h. */
19722$ac_includes_default
19723int
19724main ()
19725{
19726static struct stat ac_aggr;
19727if (sizeof ac_aggr.st_blocks)
19728return 0;
19729 ;
19730 return 0;
19731}
19732_ACEOF
19733rm -f conftest.$ac_objext
19734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019735 (eval $ac_compile) 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000019736 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019737 grep -v '^ *+' conftest.er1 >conftest.err
19738 rm -f conftest.er1
19739 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000019740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; } &&
19748 { ac_try='test -s conftest.$ac_objext'
Pavel Roskind6507192003-10-03 03:28:40 +000019749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19751 ac_status=$?
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; }; then
19754 ac_cv_member_struct_stat_st_blocks=yes
19755else
19756 echo "$as_me: failed program was:" >&5
19757sed 's/^/| /' conftest.$ac_ext >&5
19758
19759ac_cv_member_struct_stat_st_blocks=no
19760fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000019762fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000019764fi
19765echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19766echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19767if test $ac_cv_member_struct_stat_st_blocks = yes; then
19768
19769cat >>confdefs.h <<_ACEOF
19770#define HAVE_STRUCT_STAT_ST_BLOCKS 1
19771_ACEOF
19772
19773
19774fi
19775
19776
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019777
Alexandre Julliardfc01b722002-05-12 03:16:39 +000019778case $host_cpu in
Alexandre Julliard05783b52002-12-11 00:21:55 +000019779 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019780echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000019781if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019782 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000019783else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019784 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019785/* confdefs.h. */
19786_ACEOF
19787cat confdefs.h >>conftest.$ac_ext
19788cat >>conftest.$ac_ext <<_ACEOF
19789/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019790#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019791yes
19792#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019793_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019794if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019795 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000019796 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019797else
Alexandre Julliard05783b52002-12-11 00:21:55 +000019798 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019799fi
19800rm -f conftest*
19801
19802fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019803echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19804echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19805if test $ac_cv_cpp_def___i386__ = yes; then
19806 CFLAGS="$CFLAGS -D__i386__"
19807 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019808fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019809 ;;
19810 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
Steven Edwards69b67862002-12-10 22:48:48 +000019811echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000019812if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000019813 echo $ECHO_N "(cached) $ECHO_C" >&6
19814else
19815 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019816/* confdefs.h. */
19817_ACEOF
19818cat confdefs.h >>conftest.$ac_ext
19819cat >>conftest.$ac_ext <<_ACEOF
19820/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000019821#ifndef __ALPHA__
19822yes
19823#endif
19824_ACEOF
19825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19826 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000019827 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000019828else
Alexandre Julliard05783b52002-12-11 00:21:55 +000019829 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000019830fi
19831rm -f conftest*
19832
19833fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019834echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
19835echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
19836if test $ac_cv_cpp_def___ALPHA__ = yes; then
19837 CFLAGS="$CFLAGS -D__ALPHA__"
19838 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000019839fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019840 ;;
19841 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019842echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000019843if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019844 echo $ECHO_N "(cached) $ECHO_C" >&6
19845else
19846 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019847/* confdefs.h. */
19848_ACEOF
19849cat confdefs.h >>conftest.$ac_ext
19850cat >>conftest.$ac_ext <<_ACEOF
19851/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019852#ifndef __sparc__
19853yes
19854#endif
19855_ACEOF
19856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019857 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000019858 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019859else
Alexandre Julliard05783b52002-12-11 00:21:55 +000019860 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019861fi
19862rm -f conftest*
19863
19864fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019865echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
19866echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
19867if test $ac_cv_cpp_def___sparc__ = yes; then
19868 CFLAGS="$CFLAGS -D__sparc__"
19869 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019870fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019871 ;;
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000019872 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
19873echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
19874if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
19875 echo $ECHO_N "(cached) $ECHO_C" >&6
19876else
19877 cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000019878/* confdefs.h. */
19879_ACEOF
19880cat confdefs.h >>conftest.$ac_ext
19881cat >>conftest.$ac_ext <<_ACEOF
19882/* end confdefs.h. */
19883#ifndef __powerpc__
19884yes
19885#endif
19886_ACEOF
19887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19888 $EGREP "yes" >/dev/null 2>&1; then
19889 ac_cv_cpp_def___powerpc__=yes
19890else
19891 ac_cv_cpp_def___powerpc__=no
19892fi
19893rm -f conftest*
19894
19895fi
19896echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
19897echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
19898if test $ac_cv_cpp_def___powerpc__ = yes; then
19899 CFLAGS="$CFLAGS -D__powerpc__"
19900 LINTFLAGS="$LINTFLAGS -D__powerpc__"
19901fi
19902 ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000019903esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019904
19905case $host_vendor in
Alexandre Julliard05783b52002-12-11 00:21:55 +000019906 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019907echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000019908if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019909 echo $ECHO_N "(cached) $ECHO_C" >&6
19910else
19911 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019912/* confdefs.h. */
19913_ACEOF
19914cat confdefs.h >>conftest.$ac_ext
19915cat >>conftest.$ac_ext <<_ACEOF
19916/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019917#ifndef __sun__
19918yes
19919#endif
19920_ACEOF
19921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019922 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000019923 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019924else
Alexandre Julliard05783b52002-12-11 00:21:55 +000019925 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019926fi
19927rm -f conftest*
19928
19929fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019930echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
19931echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
19932if test $ac_cv_cpp_def___sun__ = yes; then
19933 CFLAGS="$CFLAGS -D__sun__"
19934 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019935fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019936 ;;
19937esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000019938
19939
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019940
19941
19942
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019943 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000019944
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019945 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000019946
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019947 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000019948
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019949 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000019950
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019951 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000019952
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019953 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000019954
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019955 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000019956
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019957 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000019958
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019959 ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019960
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019961 ac_config_commands="$ac_config_commands dlls/user/dde"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019962
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019963 ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019964
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019965 ac_config_commands="$ac_config_commands dlls/wineps/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019966
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019967 ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019968
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019969 ac_config_commands="$ac_config_commands misc"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000019970
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019971 ac_config_commands="$ac_config_commands programs/regedit/tests"
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000019972
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019973 ac_config_commands="$ac_config_commands windows"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000019974
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000019975
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000019976MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019977
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019978
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000019979MAKE_DLL_RULES=dlls/Makedll.rules
19980
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019981
Alexandre Julliardedeee892002-08-09 01:22:40 +000019982MAKE_TEST_RULES=dlls/Maketest.rules
19983
19984
Alexandre Julliard117436e2003-05-01 00:39:29 +000019985MAKE_LIB_RULES=libs/Makelib.rules
19986
19987
Alexandre Julliard626f4252000-11-10 23:35:20 +000019988MAKE_PROG_RULES=programs/Makeprog.rules
19989
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019990
Huw Davies40468462005-01-28 14:13:08 +000019991 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/cryptdll/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/lzexpand/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/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/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/secur32/Makefile dlls/sensapi/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/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/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/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019992
Alexandre Julliard626f4252000-11-10 23:35:20 +000019993
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019994cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019995# This file is a shell script that caches the results of configure
19996# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019997# scripts and configure runs, see configure's option --config-cache.
19998# It is not useful on other systems. If it contains results you don't
19999# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020000#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020001# config.status only pays attention to the cache file if you give it
20002# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020003#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020004# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020005# loading this file, other *unset* `ac_cv_foo' will be assigned the
20006# following values.
20007
20008_ACEOF
20009
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000020010# The following way of writing the cache mishandles newlines in values,
20011# but we know of no workaround that is simple, portable, and efficient.
20012# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020013# Ultrix sh set writes to stderr and can't be redirected directly,
20014# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020015{
20016 (set) 2>&1 |
20017 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20018 *ac_space=\ *)
20019 # `set' does not quote correctly, so add quotes (double-quote
20020 # substitution turns \\\\ into \\, and sed turns \\ into \).
20021 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000020022 "s/'/'\\\\''/g;
20023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020024 ;;
20025 *)
20026 # `set' quotes correctly as required by POSIX, so do not add quotes.
20027 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000020028 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020029 ;;
20030 esac;
20031} |
20032 sed '
20033 t clear
20034 : clear
20035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20036 t end
20037 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20038 : end' >>confcache
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020039if diff $cache_file confcache >/dev/null 2>&1; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020040 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020041 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20042 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020043 else
20044 echo "not updating unwritable cache $cache_file"
20045 fi
20046fi
20047rm -f confcache
20048
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020049test "x$prefix" = xNONE && prefix=$ac_default_prefix
20050# Let make expand exec_prefix.
20051test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20052
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020053# VPATH may cause trouble with some makes, so we remove $(srcdir),
20054# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20055# trailing colons and then remove the whole line if VPATH becomes empty
20056# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020057if test "x$srcdir" = x.; then
Alexandre Julliard875927f2004-01-02 01:55:29 +000020058 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020059s/:*\$(srcdir):*/:/;
20060s/:*\${srcdir}:*/:/;
20061s/:*@srcdir@:*/:/;
Alexandre Julliard875927f2004-01-02 01:55:29 +000020062s/^\([^=]*=[ ]*\):*/\1/;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020063s/:*$//;
Alexandre Julliard875927f2004-01-02 01:55:29 +000020064s/^[^=]*=[ ]*$//;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020065}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020066fi
20067
Alexandre Julliard18f92e71996-07-17 20:02:21 +000020068DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020069
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020070ac_libobjs=
20071ac_ltlibobjs=
20072for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20073 # 1. Remove the extension, and $U if already installed.
20074 ac_i=`echo "$ac_i" |
Alexandre Julliard875927f2004-01-02 01:55:29 +000020075 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020076 # 2. Add them.
20077 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20078 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20079done
20080LIBOBJS=$ac_libobjs
20081
20082LTLIBOBJS=$ac_ltlibobjs
20083
20084
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020085
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020086: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020087ac_clean_files_save=$ac_clean_files
20088ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020089{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020090echo "$as_me: creating $CONFIG_STATUS" >&6;}
20091cat >$CONFIG_STATUS <<_ACEOF
20092#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020093# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020094# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020095# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020096# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020097
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020098debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020099ac_cs_recheck=false
20100ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020101SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020102_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020103
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020104cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020105## --------------------- ##
20106## M4sh Initialization. ##
20107## --------------------- ##
20108
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020109# Be Bourne compatible
20110if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20111 emulate sh
20112 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020113 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20114 # is contrary to our usage. Disable this feature.
20115 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020116elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20117 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000020118fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000020119DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020120
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020121# Support unset when possible.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020122if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020123 as_unset=unset
20124else
20125 as_unset=false
20126fi
20127
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020128
20129# Work around bugs in pre-3.0 UWIN ksh.
20130$as_unset ENV MAIL MAILPATH
20131PS1='$ '
20132PS2='> '
20133PS4='+ '
20134
20135# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020136for as_var in \
20137 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20138 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20139 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020140do
Alexandre Julliard875927f2004-01-02 01:55:29 +000020141 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020142 eval $as_var=C; export $as_var
20143 else
20144 $as_unset $as_var
20145 fi
20146done
20147
20148# Required to use basename.
20149if expr a : '\(a\)' >/dev/null 2>&1; then
20150 as_expr=expr
20151else
20152 as_expr=false
20153fi
20154
20155if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20156 as_basename=basename
20157else
20158 as_basename=false
20159fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020160
20161
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020162# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020163as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020164$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20165 X"$0" : 'X\(//\)$' \| \
20166 X"$0" : 'X\(/\)$' \| \
20167 . : '\(.\)' 2>/dev/null ||
20168echo X/"$0" |
20169 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20170 /^X\/\(\/\/\)$/{ s//\1/; q; }
20171 /^X\/\(\/\).*/{ s//\1/; q; }
20172 s/.*/./; q'`
20173
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020174
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020175# PATH needs CR, and LINENO needs CR and PATH.
20176# Avoid depending upon Character Ranges.
20177as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20178as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20179as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20180as_cr_digits='0123456789'
20181as_cr_alnum=$as_cr_Letters$as_cr_digits
20182
20183# The user is always right.
20184if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020185 echo "#! /bin/sh" >conf$$.sh
20186 echo "exit 0" >>conf$$.sh
20187 chmod +x conf$$.sh
20188 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020189 PATH_SEPARATOR=';'
20190 else
20191 PATH_SEPARATOR=:
20192 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020193 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020194fi
20195
20196
20197 as_lineno_1=$LINENO
20198 as_lineno_2=$LINENO
20199 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20200 test "x$as_lineno_1" != "x$as_lineno_2" &&
20201 test "x$as_lineno_3" = "x$as_lineno_2" || {
20202 # Find who we are. Look in the path if we contain no path at all
20203 # relative or not.
20204 case $0 in
20205 *[\\/]* ) as_myself=$0 ;;
20206 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20207for as_dir in $PATH
20208do
20209 IFS=$as_save_IFS
20210 test -z "$as_dir" && as_dir=.
20211 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20212done
20213
20214 ;;
20215 esac
20216 # We did not find ourselves, most probably we were run as `sh COMMAND'
20217 # in which case we are not to be found in the path.
20218 if test "x$as_myself" = x; then
20219 as_myself=$0
20220 fi
20221 if test ! -f "$as_myself"; then
20222 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20223echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20224 { (exit 1); exit 1; }; }
20225 fi
20226 case $CONFIG_SHELL in
20227 '')
20228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20229for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20230do
20231 IFS=$as_save_IFS
20232 test -z "$as_dir" && as_dir=.
20233 for as_base in sh bash ksh sh5; do
20234 case $as_dir in
20235 /*)
20236 if ("$as_dir/$as_base" -c '
20237 as_lineno_1=$LINENO
20238 as_lineno_2=$LINENO
20239 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20240 test "x$as_lineno_1" != "x$as_lineno_2" &&
20241 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020242 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20243 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020244 CONFIG_SHELL=$as_dir/$as_base
20245 export CONFIG_SHELL
20246 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20247 fi;;
20248 esac
20249 done
20250done
20251;;
20252 esac
20253
20254 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20255 # uniformly replaced by the line number. The first 'sed' inserts a
20256 # line-number line before each line; the second 'sed' does the real
20257 # work. The second script uses 'N' to pair each line-number line
20258 # with the numbered line, and appends trailing '-' during
20259 # substitution so that $LINENO is not a special case at line end.
20260 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20261 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20262 sed '=' <$as_myself |
20263 sed '
20264 N
20265 s,$,-,
20266 : loop
20267 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20268 t loop
20269 s,-$,,
20270 s,^['$as_cr_digits']*\n,,
20271 ' >$as_me.lineno &&
20272 chmod +x $as_me.lineno ||
20273 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20274echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20275 { (exit 1); exit 1; }; }
20276
20277 # Don't try to exec as it changes $[0], causing all sort of problems
20278 # (the dirname of $[0] is not the place where we might find the
20279 # original and so on. Autoconf is especially sensible to this).
20280 . ./$as_me.lineno
20281 # Exit status is that of the last command.
20282 exit
20283}
20284
20285
20286case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20287 *c*,-n*) ECHO_N= ECHO_C='
20288' ECHO_T=' ' ;;
20289 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20290 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20291esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020292
20293if expr a : '\(a\)' >/dev/null 2>&1; then
20294 as_expr=expr
20295else
20296 as_expr=false
20297fi
20298
20299rm -f conf$$ conf$$.exe conf$$.file
20300echo >conf$$.file
20301if ln -s conf$$.file conf$$ 2>/dev/null; then
20302 # We could just check for DJGPP; but this test a) works b) is more generic
20303 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20304 if test -f conf$$.exe; then
20305 # Don't use ln at all; we don't have any links
20306 as_ln_s='cp -p'
20307 else
20308 as_ln_s='ln -s'
20309 fi
20310elif ln conf$$.file conf$$ 2>/dev/null; then
20311 as_ln_s=ln
20312else
20313 as_ln_s='cp -p'
20314fi
20315rm -f conf$$ conf$$.exe conf$$.file
20316
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020317if mkdir -p . 2>/dev/null; then
20318 as_mkdir_p=:
20319else
Alexandre Julliard875927f2004-01-02 01:55:29 +000020320 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020321 as_mkdir_p=false
20322fi
20323
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020324as_executable_p="test -f"
20325
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020326# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020327as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020328
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020329# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020330as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020331
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020332
20333# IFS
20334# We need space, tab and new line, in precisely that order.
20335as_nl='
20336'
20337IFS=" $as_nl"
20338
20339# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020340$as_unset CDPATH
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020341
20342exec 6>&1
20343
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020344# Open the log real soon, to keep \$[0] and so on meaningful, and to
20345# report actual input values of CONFIG_FILES etc. instead of their
20346# values after options handling. Logging --version etc. is OK.
20347exec 5>>config.log
20348{
20349 echo
20350 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20351## Running $as_me. ##
20352_ASBOX
20353} >&5
20354cat >&5 <<_CSEOF
20355
Alexandre Julliard93cd1932005-02-11 13:34:17 +000020356This file was extended by Wine $as_me 20050211, which was
Eric Pouech53fa0d52004-02-05 01:27:38 +000020357generated by GNU Autoconf 2.59. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020358
20359 CONFIG_FILES = $CONFIG_FILES
20360 CONFIG_HEADERS = $CONFIG_HEADERS
20361 CONFIG_LINKS = $CONFIG_LINKS
20362 CONFIG_COMMANDS = $CONFIG_COMMANDS
20363 $ $0 $@
20364
20365_CSEOF
20366echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20367echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020368_ACEOF
20369
20370# Files that config.status was made for.
20371if test -n "$ac_config_files"; then
20372 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20373fi
20374
20375if test -n "$ac_config_headers"; then
20376 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20377fi
20378
20379if test -n "$ac_config_links"; then
20380 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20381fi
20382
20383if test -n "$ac_config_commands"; then
20384 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20385fi
20386
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020387cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020388
20389ac_cs_usage="\
20390\`$as_me' instantiates files from templates according to the
20391current configuration.
20392
20393Usage: $0 [OPTIONS] [FILE]...
20394
20395 -h, --help print this help, then exit
20396 -V, --version print version number, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020397 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020398 -d, --debug don't remove temporary files
20399 --recheck update $as_me by reconfiguring in the same conditions
20400 --file=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000020401 instantiate the configuration file FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020402 --header=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000020403 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020404
20405Configuration files:
20406$config_files
20407
20408Configuration headers:
20409$config_headers
20410
20411Configuration commands:
20412$config_commands
20413
20414Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020415_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000020416
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020417cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020418ac_cs_version="\\
Alexandre Julliard93cd1932005-02-11 13:34:17 +000020419Wine config.status 20050211
Eric Pouech53fa0d52004-02-05 01:27:38 +000020420configured by $0, generated by GNU Autoconf 2.59,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020421 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020422
Alexandre Julliard875927f2004-01-02 01:55:29 +000020423Copyright (C) 2003 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020424This config.status script is free software; the Free Software Foundation
20425gives unlimited permission to copy, distribute and modify it."
20426srcdir=$srcdir
20427INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020428_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020429
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020430cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020431# If no file are specified by the user, then we need to provide default
20432# value. By we need to know if files were specified by the user.
20433ac_need_defaults=:
20434while test $# != 0
20435do
20436 case $1 in
20437 --*=*)
20438 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20439 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020440 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020441 ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020442 -*)
20443 ac_option=$1
20444 ac_optarg=$2
20445 ac_shift=shift
20446 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020447 *) # This is not an option, so the user has probably given explicit
20448 # arguments.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020449 ac_option=$1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020450 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020451 esac
20452
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020453 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020454 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020455_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020456cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020457 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20458 ac_cs_recheck=: ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020459 --version | --vers* | -V )
20460 echo "$ac_cs_version"; exit 0 ;;
20461 --he | --h)
20462 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020463 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020464Try \`$0 --help' for more information." >&5
20465echo "$as_me: error: ambiguous option: $1
20466Try \`$0 --help' for more information." >&2;}
20467 { (exit 1); exit 1; }; };;
20468 --help | --hel | -h )
20469 echo "$ac_cs_usage"; exit 0 ;;
20470 --debug | --d* | -d )
20471 debug=: ;;
20472 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020473 $ac_shift
20474 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020475 ac_need_defaults=false;;
20476 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020477 $ac_shift
20478 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020479 ac_need_defaults=false;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020480 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20481 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20482 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020483
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020484 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020485 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020486Try \`$0 --help' for more information." >&5
20487echo "$as_me: error: unrecognized option: $1
20488Try \`$0 --help' for more information." >&2;}
20489 { (exit 1); exit 1; }; } ;;
20490
20491 *) ac_config_targets="$ac_config_targets $1" ;;
20492
20493 esac
20494 shift
20495done
20496
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020497ac_configure_extra_args=
20498
20499if $ac_cs_silent; then
20500 exec 6>/dev/null
20501 ac_configure_extra_args="$ac_configure_extra_args --silent"
20502fi
20503
20504_ACEOF
20505cat >>$CONFIG_STATUS <<_ACEOF
20506if \$ac_cs_recheck; then
20507 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20508 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20509fi
20510
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020511_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020512
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020513
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020514
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020515
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020516
20517cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020518for ac_config_target in $ac_config_targets
20519do
20520 case "$ac_config_target" in
20521 # Handling of arguments.
20522 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20523 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020524 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliard117436e2003-05-01 00:39:29 +000020525 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020526 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20527 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020528 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20529 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020530 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
Huw Davies20313b82004-09-27 20:39:40 +000020531 "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
Robert Reif97199822005-01-20 20:03:13 +000020532 "dlls/advpack/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
Christian Costa76b77872004-03-09 01:29:56 +000020533 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
Aric Stewart4bd374f2004-07-06 21:01:18 +000020534 "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020535 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20536 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
Patrik Stridvalld1447fa2002-11-19 00:47:12 +000020537 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000020538 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
Sami Nopanen9063cef2004-03-15 20:26:42 +000020539 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
Mike McCormackb107b922003-10-31 03:38:07 +000020540 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000020541 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020542 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
Uwe Bonnes2c4fd422003-05-15 23:58:48 +000020543 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020544 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20545 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20546 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
Ulrich Czekallac173f6a2005-01-24 19:07:16 +000020547 "dlls/cryptdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
Dmitry Timoshkov5a23a002003-01-02 19:34:14 +000020548 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
Sylvain Petreolle3a99d8b2002-06-25 23:23:03 +000020549 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
Alexandre Julliardaa1bdc42003-07-01 01:11:13 +000020550 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
Enrico Horneaae7052003-01-24 01:08:15 +000020551 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
Ivan Leo Murray-Smith8f14eb02004-05-18 00:54:12 +000020552 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
Raphael Junqueirae31ae922002-12-17 01:15:15 +000020553 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
Christian Costa7590fe52004-06-03 00:03:23 +000020554 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
Eric Pouech800864a2004-04-05 22:21:27 +000020555 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020556 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20557 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
Sami Aariof22a4722003-11-18 00:12:00 +000020558 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020559 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20560 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
Ove Kaavend2d08f02002-06-14 00:39:44 +000020561 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020562 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20563 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20564 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20565 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20566 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20567 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20568 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
Rok Mandeljc2d04be72003-03-21 00:42:38 +000020569 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020570 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020571 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20572 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
Raphael Junqueira5f3f2142004-04-07 20:39:00 +000020573 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020574 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020575 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
Francois Gougetd523a452002-12-05 19:19:41 +000020576 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
Rok Mandeljc0382ea12004-01-20 00:21:40 +000020577 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
Raphael Junqueira033ae922004-04-16 00:26:14 +000020578 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
Robert Reifcc02d952004-03-09 23:25:57 +000020579 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20580 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020581 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020582 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
Patrik Stridvall928ecb42002-10-02 19:58:27 +000020583 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020584 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
Jacek Cabanef799c42003-12-02 04:11:09 +000020585 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
Krzysztof Foltman9bca6902004-04-22 03:45:00 +000020586 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
Alexandre Julliard0a106bf2004-01-15 04:56:18 +000020587 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020588 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020589 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020590 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20591 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
Juan Lang38fa5ad2003-05-13 03:32:20 +000020592 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
Juan Lange6f491a2004-01-07 01:08:55 +000020593 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
Alexandre Julliard5f6e3c82004-08-24 21:00:15 +000020594 "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020595 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020596 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020597 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
Evan G. Parryd23f5ef2004-11-21 16:05:14 +000020598 "dlls/lzexpand/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020599 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
Jon Griffiths4ec0d3b2004-04-23 23:30:00 +000020600 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
Alexandre Julliard94a9d332004-08-04 18:33:06 +000020601 "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20602 "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020603 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20604 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020605 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20606 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000020607 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000020608 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000020609 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Eric Pouechb706b232002-06-04 17:53:46 +000020610 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
Robert Reif00cd2b22004-05-03 20:17:43 +000020611 "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
Hans Leidekker51647572004-09-22 04:08:38 +000020612 "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
Hans Leidekker081b2502004-10-07 19:12:41 +000020613 "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020614 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
Mike McCormackaa1c2a32003-09-08 19:32:14 +000020615 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
Mike McCormack6386edc2003-08-13 01:27:48 +000020616 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
Mike McCormack23b291a2005-01-05 13:26:34 +000020617 "dlls/msi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020618 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000020619 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020620 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
Alexandre Julliard7ba8fba2004-02-27 21:51:12 +000020621 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020622 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
Uwe Bonnesa768fa32002-10-30 23:49:03 +000020623 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020624 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
Mike McCormackd0779462004-01-12 22:12:27 +000020625 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
Adam Gundy19a15132003-04-04 19:37:57 +000020626 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
Patrik Stridvall5c4420f2004-05-18 01:05:36 +000020627 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
Mike McCormack4cc64c82004-01-23 05:00:37 +000020628 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020629 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
André Johansen2123c132003-08-02 00:52:02 +000020630 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020631 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
Andriy Palamarchukb812c902002-09-11 02:35:17 +000020632 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
Ulrich Czekalla9655a5f2003-12-30 22:19:30 +000020633 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020634 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
Jon Griffiths1da29712002-08-15 22:08:40 +000020635 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020636 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20637 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
Mike McCormack06b80462004-08-11 00:17:52 +000020638 "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
Eric Pouech5caccaf2003-06-23 03:43:00 +000020639 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020640 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020641 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020642 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20643 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20644 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20645 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20646 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20647 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
Stefan Leichter0d4fff42004-06-15 20:23:47 +000020648 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020649 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20650 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
Christian Costae3a288f2004-08-16 21:14:28 +000020651 "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020652 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20653 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20654 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
Greg Turnerac89cc22002-10-07 21:54:07 +000020655 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
Mike McCormackb6de3042004-02-13 20:47:07 +000020656 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
Michael Jungb4b0c242004-07-30 00:06:54 +000020657 "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
Michael Jung64dce8a2004-11-04 21:15:32 +000020658 "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
20659 "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
Juan Lang3ed89c32004-03-02 04:57:35 +000020660 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
Steven Edwards160e6472005-01-28 11:41:23 +000020661 "dlls/sensapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020662 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20663 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20664 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20665 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
Andriy Palamarchuk5b5bea02002-08-27 01:34:33 +000020666 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020667 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20668 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020669 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000020670 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Huw Davies40468462005-01-28 14:13:08 +000020671 "dlls/stdole32.tlb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020672 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
Francois Gougeta8963892004-08-19 19:31:20 +000020673 "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020674 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20675 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000020676 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliard46321f42003-11-27 01:10:26 +000020677 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020678 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20679 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
Patrik Stridvall9398d9c2002-11-12 01:13:10 +000020680 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020681 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020682 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020683 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
Kevin Koltzau0af4fb92003-10-04 03:48:11 +000020684 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020685 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
Sami Aario78f12242004-04-07 19:41:21 +000020686 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020687 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
Stefan Leichter09733db2004-04-05 22:54:03 +000020688 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
Alexandre Julliard6c8147b2004-02-21 04:13:56 +000020689 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
Juan Lange9ed2f32004-03-01 23:35:25 +000020690 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020691 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20692 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20693 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020694 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20695 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020696 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020697 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20698 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20699 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020700 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020701 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20702 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20703 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20704 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20705 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20706 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20707 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20708 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
Francois Gouget4ce28372002-11-04 23:47:49 +000020709 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020710 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Eric Pouecha120ce02002-06-28 17:40:16 +000020711 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000020712 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000020713 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
Chris Morgan4691b182002-12-13 02:26:18 +000020714 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020715 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020716 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20717 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20718 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020719 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020720 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
Stefan Leichter88b11062003-01-15 00:50:48 +000020721 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
Patrik Stridvall5caddc72002-12-17 01:49:16 +000020722 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020723 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20724 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20725 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
Ulrich Czekalla04f63462005-01-24 19:42:02 +000020726 "dlls/wtsapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020727 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20728 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Huw Davies00acb5f2004-08-17 22:33:14 +000020729 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020730 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
Alexandre Julliard6a9fe362003-03-19 22:09:16 +000020731 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20732 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000020733 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
Alexandre Julliard2d1c7902003-03-22 20:40:48 +000020734 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
Alexandre Julliarde1a9b102003-05-01 03:16:21 +000020735 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
Alexandre Julliard357c7402003-11-06 01:17:56 +000020736 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020737 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20738 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20739 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20740 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20741 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000020742 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Vincent Béron34966892004-07-19 19:44:07 +000020743 "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020744 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020745 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000020746 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000020747 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardd77294a2002-12-02 21:17:04 +000020748 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
Alberto Massari15e8e0a2002-11-15 01:41:20 +000020749 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
Dan Kegelba02ae42003-01-21 20:14:36 +000020750 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
Eric Pouechd6b348f2004-03-23 01:19:54 +000020751 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020752 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20753 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20754 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
Shachar Shemesh175d0592003-01-04 02:52:05 +000020755 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
Chris Morgand888d362004-01-06 20:49:58 +000020756 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
Dimitrie O. Paun82ce2cc2003-03-31 19:41:55 +000020757 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020758 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
Alexandre Julliardf264bd32002-09-13 17:54:27 +000020759 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
Alexandre Julliard65a42162002-06-04 21:29:40 +000020760 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
Mike McCormack88090b42003-05-21 18:50:53 +000020761 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020762 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000020763 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliard9f71bd92003-12-04 02:01:39 +000020764 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
Alexandre Julliardfedc4112003-04-27 00:47:58 +000020765 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020766 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20767 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020768 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20769 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000020770 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020771 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20772 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20773 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
Alexandre Julliard280661c2003-09-11 21:27:58 +000020774 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020775 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20776 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020777 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20778 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20779 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20780 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20781 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20782 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000020783 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20784 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020785 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20786 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20787 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20788 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20789 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020790 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000020791 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020792 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020793 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020794 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020795echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20796 { (exit 1); exit 1; }; };;
20797 esac
20798done
20799
20800# If the user did not use the arguments to specify the items to instantiate,
20801# then the envvar interface is used. Set only those that are not.
20802# We use the long form for the default assignment because of an extremely
20803# bizarre bug on SunOS 4.1.3.
20804if $ac_need_defaults; then
20805 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20806 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20807 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20808fi
20809
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020810# Have a temporary directory for convenience. Make it in the build tree
20811# simply because there is no reason to put it here, and in addition,
20812# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020813# Create a temporary directory, and hook for its removal unless debugging.
20814$debug ||
20815{
20816 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20817 trap '{ (exit 1); exit 1; }' 1 2 13 15
20818}
20819
20820# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020821
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020822{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020823 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020824 test -n "$tmp" && test -d "$tmp"
20825} ||
20826{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020827 tmp=./confstat$$-$RANDOM
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020828 (umask 077 && mkdir $tmp)
20829} ||
20830{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020831 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020832 { (exit 1); exit 1; }
20833}
20834
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020835_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020836
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020837cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020838
20839#
20840# CONFIG_FILES section.
20841#
20842
20843# No need to generate the scripts if there are no CONFIG_FILES.
20844# This happens for instance when ./config.status config.h
20845if test -n "\$CONFIG_FILES"; then
20846 # Protect against being on the right side of a sed subst in config.status.
20847 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20848 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20849s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020850s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20851s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20852s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20853s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20854s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20855s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020856s,@exec_prefix@,$exec_prefix,;t t
20857s,@prefix@,$prefix,;t t
20858s,@program_transform_name@,$program_transform_name,;t t
20859s,@bindir@,$bindir,;t t
20860s,@sbindir@,$sbindir,;t t
20861s,@libexecdir@,$libexecdir,;t t
20862s,@datadir@,$datadir,;t t
20863s,@sysconfdir@,$sysconfdir,;t t
20864s,@sharedstatedir@,$sharedstatedir,;t t
20865s,@localstatedir@,$localstatedir,;t t
20866s,@libdir@,$libdir,;t t
20867s,@includedir@,$includedir,;t t
20868s,@oldincludedir@,$oldincludedir,;t t
20869s,@infodir@,$infodir,;t t
20870s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020871s,@build_alias@,$build_alias,;t t
20872s,@host_alias@,$host_alias,;t t
20873s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020874s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020875s,@ECHO_C@,$ECHO_C,;t t
20876s,@ECHO_N@,$ECHO_N,;t t
20877s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020878s,@LIBS@,$LIBS,;t t
Alexandre Julliardc728efc2002-10-02 02:34:09 +000020879s,@WIN16_FILES@,$WIN16_FILES,;t t
20880s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
Vincent Béron1f504142004-10-19 23:06:11 +000020881s,@DLLDEFS@,$DLLDEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020882s,@build@,$build,;t t
20883s,@build_cpu@,$build_cpu,;t t
20884s,@build_vendor@,$build_vendor,;t t
20885s,@build_os@,$build_os,;t t
20886s,@host@,$host,;t t
20887s,@host_cpu@,$host_cpu,;t t
20888s,@host_vendor@,$host_vendor,;t t
20889s,@host_os@,$host_os,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020890s,@SET_MAKE@,$SET_MAKE,;t t
20891s,@CC@,$CC,;t t
20892s,@CFLAGS@,$CFLAGS,;t t
20893s,@LDFLAGS@,$LDFLAGS,;t t
20894s,@CPPFLAGS@,$CPPFLAGS,;t t
20895s,@ac_ct_CC@,$ac_ct_CC,;t t
20896s,@EXEEXT@,$EXEEXT,;t t
20897s,@OBJEXT@,$OBJEXT,;t t
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020898s,@CXX@,$CXX,;t t
20899s,@CXXFLAGS@,$CXXFLAGS,;t t
20900s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Alexandre Julliarda631ef62004-03-03 20:30:46 +000020901s,@CPPBIN@,$CPPBIN,;t t
20902s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000020903s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliarda631ef62004-03-03 20:30:46 +000020904s,@CPP@,$CPP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020905s,@X_CFLAGS@,$X_CFLAGS,;t t
20906s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20907s,@X_LIBS@,$X_LIBS,;t t
20908s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020909s,@LEX@,$LEX,;t t
20910s,@LEXLIB@,$LEXLIB,;t t
20911s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020912s,@XLEX@,$XLEX,;t t
Mike McCormackc068f672004-03-16 03:11:39 +000020913s,@BISON@,$BISON,;t t
Marcus Meissner1d4db782003-01-09 00:46:54 +000020914s,@AS@,$AS,;t t
20915s,@ac_ct_AS@,$ac_ct_AS,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000020916s,@LD@,$LD,;t t
20917s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000020918s,@AR@,$AR,;t t
20919s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020920s,@RANLIB@,$RANLIB,;t t
20921s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000020922s,@STRIP@,$STRIP,;t t
20923s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20924s,@WINDRES@,$WINDRES,;t t
20925s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020926s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000020927s,@LN@,$LN,;t t
Alexandre Julliardc6264912004-08-16 20:09:37 +000020928s,@EGREP@,$EGREP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020929s,@LDCONFIG@,$LDCONFIG,;t t
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020930s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20931s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20932s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020933s,@LINT@,$LINT,;t t
20934s,@LINTFLAGS@,$LINTFLAGS,;t t
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000020935s,@DB2HTML@,$DB2HTML,;t t
20936s,@DB2PDF@,$DB2PDF,;t t
20937s,@DB2PS@,$DB2PS,;t t
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +000020938s,@DB2TXT@,$DB2TXT,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000020939s,@FONTFORGE@,$FONTFORGE,;t t
Alexandre Julliardf45325e2003-11-06 23:05:41 +000020940s,@LIBPTHREAD@,$LIBPTHREAD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020941s,@XLIB@,$XLIB,;t t
20942s,@XFILES@,$XFILES,;t t
20943s,@OPENGLFILES@,$OPENGLFILES,;t t
20944s,@GLU32FILES@,$GLU32FILES,;t t
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000020945s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
Jacek Cabanef799c42003-12-02 04:11:09 +000020946s,@GLUT_LIBS@,$GLUT_LIBS,;t t
20947s,@GLUT32FILES@,$GLUT32FILES,;t t
Francois Gouget6f670b12002-10-10 17:54:27 +000020948s,@NASLIBS@,$NASLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020949s,@CURSESLIBS@,$CURSESLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000020950s,@sane_devel@,$sane_devel,;t t
20951s,@SANELIBS@,$SANELIBS,;t t
20952s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliard4ee82902003-06-20 21:38:10 +000020953s,@ICULIBS@,$ICULIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020954s,@ft_devel@,$ft_devel,;t t
20955s,@ft_devel2@,$ft_devel2,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000020956s,@FREETYPELIBS@,$FREETYPELIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020957s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000020958s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000020959s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
20960s,@ARTSLIBS@,$ARTSLIBS,;t t
20961s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000020962s,@ALSALIBS@,$ALSALIBS,;t t
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000020963s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
Alexandre Julliardfc094232003-04-14 21:46:41 +000020964s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000020965s,@DLLEXT@,$DLLEXT,;t t
20966s,@DLLFLAGS@,$DLLFLAGS,;t t
20967s,@DLLIBS@,$DLLIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000020968s,@LDSHARED@,$LDSHARED,;t t
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020969s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
Alexandre Julliardada5e652002-12-12 22:03:14 +000020970s,@LIBEXT@,$LIBEXT,;t t
20971s,@IMPLIBEXT@,$IMPLIBEXT,;t t
20972s,@DLLTOOL@,$DLLTOOL,;t t
20973s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020974s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000020975s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliard4d52d372003-03-24 19:33:20 +000020976s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
Emmanuel Maillard46718f82004-07-22 19:48:41 +000020977s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
Emmanuel Maillard2300ce62004-08-19 01:20:45 +000020978s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
20979s,@IOKITLIB@,$IOKITLIB,;t t
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000020980s,@CROSSTEST@,$CROSSTEST,;t t
20981s,@CROSSCC@,$CROSSCC,;t t
Alexandre Julliard21ee3292003-04-21 22:52:31 +000020982s,@CROSSWINDRES@,$CROSSWINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020983s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000020984s,@CRTLIBS@,$CRTLIBS,;t t
Steven Edwardsc91ae452004-09-03 18:57:19 +000020985s,@SOCKETLIBS@,$SOCKETLIBS,;t t
Alexandre Julliard546839f2003-11-11 00:48:21 +000020986s,@WINE_BINARIES@,$WINE_BINARIES,;t t
20987s,@MAIN_BINARY@,$MAIN_BINARY,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000020988s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020989s,@ALLOCA@,$ALLOCA,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020990s,@LIBOBJS@,$LIBOBJS,;t t
20991s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020992/@MAKE_RULES@/r $MAKE_RULES
20993s,@MAKE_RULES@,,;t t
20994/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
20995s,@MAKE_DLL_RULES@,,;t t
Alexandre Julliardedeee892002-08-09 01:22:40 +000020996/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
20997s,@MAKE_TEST_RULES@,,;t t
Alexandre Julliard117436e2003-05-01 00:39:29 +000020998/@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
20999s,@MAKE_LIB_RULES@,,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021000/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21001s,@MAKE_PROG_RULES@,,;t t
21002CEOF
21003
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021004_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021005
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021006 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021007 # Split the substitutions into bite-sized pieces for seds with
21008 # small command number limits, like on Digital OSF/1 and HP-UX.
21009 ac_max_sed_lines=48
21010 ac_sed_frag=1 # Number of current file.
21011 ac_beg=1 # First line for current file.
21012 ac_end=$ac_max_sed_lines # Line after last line for current file.
21013 ac_more_lines=:
21014 ac_sed_cmds=
21015 while $ac_more_lines; do
21016 if test $ac_beg -gt 1; then
21017 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21018 else
21019 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21020 fi
21021 if test ! -s $tmp/subs.frag; then
21022 ac_more_lines=false
21023 else
21024 # The purpose of the label and of the branching condition is to
21025 # speed up the sed processing (if there are no `@' at all, there
21026 # is no need to browse any of the substitutions).
21027 # These are the two extra sed commands mentioned above.
21028 (echo ':t
21029 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21030 if test -z "$ac_sed_cmds"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +000021031 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021032 else
Alexandre Julliard875927f2004-01-02 01:55:29 +000021033 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021034 fi
21035 ac_sed_frag=`expr $ac_sed_frag + 1`
21036 ac_beg=$ac_end
21037 ac_end=`expr $ac_end + $ac_max_sed_lines`
21038 fi
21039 done
21040 if test -z "$ac_sed_cmds"; then
21041 ac_sed_cmds=cat
21042 fi
21043fi # test -n "$CONFIG_FILES"
21044
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021045_ACEOF
21046cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021047for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21048 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21049 case $ac_file in
21050 - | *:- | *:-:* ) # input from stdin
Alexandre Julliard875927f2004-01-02 01:55:29 +000021051 cat >$tmp/stdin
21052 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21053 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021054 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021055 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021056 * ) ac_file_in=$ac_file.in ;;
21057 esac
21058
21059 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021060 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21061$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021062 X"$ac_file" : 'X\(//\)[^/]' \| \
21063 X"$ac_file" : 'X\(//\)$' \| \
21064 X"$ac_file" : 'X\(/\)' \| \
21065 . : '\(.\)' 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021066echo X"$ac_file" |
21067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21068 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21069 /^X\(\/\/\)$/{ s//\1/; q; }
21070 /^X\(\/\).*/{ s//\1/; q; }
21071 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021072 { if $as_mkdir_p; then
21073 mkdir -p "$ac_dir"
21074 else
21075 as_dir="$ac_dir"
21076 as_dirs=
21077 while test ! -d "$as_dir"; do
21078 as_dirs="$as_dir $as_dirs"
21079 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21080$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021081 X"$as_dir" : 'X\(//\)[^/]' \| \
21082 X"$as_dir" : 'X\(//\)$' \| \
21083 X"$as_dir" : 'X\(/\)' \| \
21084 . : '\(.\)' 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021085echo X"$as_dir" |
21086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21087 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21088 /^X\(\/\/\)$/{ s//\1/; q; }
21089 /^X\(\/\).*/{ s//\1/; q; }
21090 s/.*/./; q'`
21091 done
21092 test ! -n "$as_dirs" || mkdir $as_dirs
21093 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21094echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21095 { (exit 1); exit 1; }; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021096
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021097 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021098
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021099if test "$ac_dir" != .; then
21100 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21101 # A "../" for each directory in $ac_dir_suffix.
21102 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21103else
21104 ac_dir_suffix= ac_top_builddir=
21105fi
21106
21107case $srcdir in
21108 .) # No --srcdir option. We are building in place.
21109 ac_srcdir=.
21110 if test -z "$ac_top_builddir"; then
21111 ac_top_srcdir=.
21112 else
21113 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21114 fi ;;
21115 [\\/]* | ?:[\\/]* ) # Absolute path.
21116 ac_srcdir=$srcdir$ac_dir_suffix;
21117 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021118 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021119 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21120 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21121esac
Alexandre Julliard875927f2004-01-02 01:55:29 +000021122
21123# Do not use `cd foo && pwd` to compute absolute paths, because
21124# the directories may not exist.
21125case `pwd` in
21126.) ac_abs_builddir="$ac_dir";;
21127*)
21128 case "$ac_dir" in
21129 .) ac_abs_builddir=`pwd`;;
21130 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21131 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21132 esac;;
21133esac
21134case $ac_abs_builddir in
21135.) ac_abs_top_builddir=${ac_top_builddir}.;;
21136*)
21137 case ${ac_top_builddir}. in
21138 .) ac_abs_top_builddir=$ac_abs_builddir;;
21139 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21140 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21141 esac;;
21142esac
21143case $ac_abs_builddir in
21144.) ac_abs_srcdir=$ac_srcdir;;
21145*)
21146 case $ac_srcdir in
21147 .) ac_abs_srcdir=$ac_abs_builddir;;
21148 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21149 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21150 esac;;
21151esac
21152case $ac_abs_builddir in
21153.) ac_abs_top_srcdir=$ac_top_srcdir;;
21154*)
21155 case $ac_top_srcdir in
21156 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21157 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21158 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21159 esac;;
21160esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021161
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021162
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021163 case $INSTALL in
21164 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021165 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000021166 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000021167
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021168 # Let's still pretend it is `configure' which instantiates (i.e., don't
21169 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021170 # /* config.h. Generated by config.status. */
21171 if test x"$ac_file" = x-; then
21172 configure_input=
21173 else
21174 configure_input="$ac_file. "
21175 fi
21176 configure_input=$configure_input"Generated from `echo $ac_file_in |
Alexandre Julliard875927f2004-01-02 01:55:29 +000021177 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000021178
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021179 # First look for the input files in the build tree, otherwise in the
21180 # src tree.
21181 ac_file_inputs=`IFS=:
21182 for f in $ac_file_in; do
21183 case $f in
21184 -) echo $tmp/stdin ;;
21185 [\\/$]*)
Alexandre Julliard875927f2004-01-02 01:55:29 +000021186 # Absolute (can't be DOS-style, as IFS=:)
21187 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021188echo "$as_me: error: cannot find input file: $f" >&2;}
21189 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021190 echo "$f";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021191 *) # Relative
Alexandre Julliard875927f2004-01-02 01:55:29 +000021192 if test -f "$f"; then
21193 # Build tree
21194 echo "$f"
21195 elif test -f "$srcdir/$f"; then
21196 # Source tree
21197 echo "$srcdir/$f"
21198 else
21199 # /dev/null tree
21200 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021201echo "$as_me: error: cannot find input file: $f" >&2;}
21202 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021203 fi;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021204 esac
21205 done` || { (exit 1); exit 1; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021206
21207 if test x"$ac_file" != x-; then
21208 { echo "$as_me:$LINENO: creating $ac_file" >&5
21209echo "$as_me: creating $ac_file" >&6;}
21210 rm -f "$ac_file"
21211 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021212_ACEOF
21213cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021214 sed "$ac_vpsub
21215$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021216_ACEOF
21217cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021218:t
21219/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21220s,@configure_input@,$configure_input,;t t
21221s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021222s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021223s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021224s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21225s,@builddir@,$ac_builddir,;t t
21226s,@abs_builddir@,$ac_abs_builddir,;t t
21227s,@top_builddir@,$ac_top_builddir,;t t
21228s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021229s,@INSTALL@,$ac_INSTALL,;t t
21230" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21231 rm -f $tmp/stdin
21232 if test x"$ac_file" != x-; then
21233 mv $tmp/out $ac_file
21234 else
21235 cat $tmp/out
21236 rm -f $tmp/out
21237 fi
21238
21239done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021240_ACEOF
21241cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021242
21243#
21244# CONFIG_HEADER section.
21245#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021246
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021247# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21248# NAME is the cpp macro being defined and VALUE is the value it is being given.
21249#
21250# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021251ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21252ac_dB='[ ].*$,\1#\2'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021253ac_dC=' '
21254ac_dD=',;t'
21255# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Alexandre Julliard875927f2004-01-02 01:55:29 +000021256ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021257ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021258ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021259ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021260
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021261for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000021262 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021263 case $ac_file in
21264 - | *:- | *:-:* ) # input from stdin
Alexandre Julliard875927f2004-01-02 01:55:29 +000021265 cat >$tmp/stdin
21266 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021268 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021269 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021270 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021271 esac
21272
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021273 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021274echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021275
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021276 # First look for the input files in the build tree, otherwise in the
21277 # src tree.
21278 ac_file_inputs=`IFS=:
21279 for f in $ac_file_in; do
21280 case $f in
21281 -) echo $tmp/stdin ;;
21282 [\\/$]*)
Alexandre Julliard875927f2004-01-02 01:55:29 +000021283 # Absolute (can't be DOS-style, as IFS=:)
21284 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021285echo "$as_me: error: cannot find input file: $f" >&2;}
21286 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021287 # Do quote $f, to prevent DOS paths from being IFS'd.
21288 echo "$f";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021289 *) # Relative
Alexandre Julliard875927f2004-01-02 01:55:29 +000021290 if test -f "$f"; then
21291 # Build tree
21292 echo "$f"
21293 elif test -f "$srcdir/$f"; then
21294 # Source tree
21295 echo "$srcdir/$f"
21296 else
21297 # /dev/null tree
21298 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021299echo "$as_me: error: cannot find input file: $f" >&2;}
21300 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021301 fi;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021302 esac
21303 done` || { (exit 1); exit 1; }
21304 # Remove the trailing spaces.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021305 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021306
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021307_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021308
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021309# Transform confdefs.h into two sed scripts, `conftest.defines' and
21310# `conftest.undefs', that substitutes the proper values into
21311# config.h.in to produce config.h. The first handles `#define'
21312# templates, and the second `#undef' templates.
21313# And first: Protect against being on the right side of a sed subst in
21314# config.status. Protect against being in an unquoted here document
21315# in config.status.
21316rm -f conftest.defines conftest.undefs
21317# Using a here document instead of a string reduces the quoting nightmare.
21318# Putting comments in sed scripts is not portable.
21319#
21320# `end' is used to avoid that the second main sed command (meant for
21321# 0-ary CPP macros) applies to n-ary macro definitions.
21322# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021323cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021324s/[\\&,]/\\&/g
21325s,[\\$`],\\&,g
21326t clear
21327: clear
Alexandre Julliard875927f2004-01-02 01:55:29 +000021328s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021329t end
Alexandre Julliard875927f2004-01-02 01:55:29 +000021330s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021331: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021332_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021333# If some macros were called several times there might be several times
21334# the same #defines, which is useless. Nevertheless, we may not want to
21335# sort them, since we want the *last* AC-DEFINE to be honored.
21336uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21337sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21338rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021339
21340# This sed command replaces #undef with comments. This is necessary, for
21341# example, in the case of _POSIX_SOURCE, which is predefined and required
21342# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021343cat >>conftest.undefs <<\_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000021344s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021345_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021346
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021347# Break up conftest.defines because some shells have a limit on the size
21348# of here documents, and old seds have small limits too (100 cmds).
21349echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Alexandre Julliard875927f2004-01-02 01:55:29 +000021350echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021351echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21352echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021353rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021354while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021355do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021356 # Write a limited-size here document to $tmp/defines.sed.
21357 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21358 # Speed up: don't consider the non `#define' lines.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021359 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021360 # Work around the forget-to-reset-the-flag bug.
21361 echo 't clr' >>$CONFIG_STATUS
21362 echo ': clr' >>$CONFIG_STATUS
21363 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021364 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021365 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21366 rm -f $tmp/in
21367 mv $tmp/out $tmp/in
21368' >>$CONFIG_STATUS
21369 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21370 rm -f conftest.defines
21371 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021372done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021373rm -f conftest.defines
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021374echo ' fi # grep' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021375echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021376
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021377# Break up conftest.undefs because some shells have a limit on the size
21378# of here documents, and old seds have small limits too (100 cmds).
21379echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21380rm -f conftest.tail
21381while grep . conftest.undefs >/dev/null
21382do
21383 # Write a limited-size here document to $tmp/undefs.sed.
21384 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21385 # Speed up: don't consider the non `#undef'
Alexandre Julliard875927f2004-01-02 01:55:29 +000021386 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021387 # Work around the forget-to-reset-the-flag bug.
21388 echo 't clr' >>$CONFIG_STATUS
21389 echo ': clr' >>$CONFIG_STATUS
21390 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21391 echo 'CEOF
21392 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21393 rm -f $tmp/in
21394 mv $tmp/out $tmp/in
21395' >>$CONFIG_STATUS
21396 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21397 rm -f conftest.undefs
21398 mv conftest.tail conftest.undefs
21399done
21400rm -f conftest.undefs
21401
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021402cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021403 # Let's still pretend it is `configure' which instantiates (i.e., don't
21404 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021405 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021406 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021407 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021408 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021409 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021410 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021411 cat $tmp/in >>$tmp/config.h
21412 rm -f $tmp/in
21413 if test x"$ac_file" != x-; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021414 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021415 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021416echo "$as_me: $ac_file is unchanged" >&6;}
21417 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021418 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21419$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021420 X"$ac_file" : 'X\(//\)[^/]' \| \
21421 X"$ac_file" : 'X\(//\)$' \| \
21422 X"$ac_file" : 'X\(/\)' \| \
21423 . : '\(.\)' 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021424echo X"$ac_file" |
21425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21426 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21427 /^X\(\/\/\)$/{ s//\1/; q; }
21428 /^X\(\/\).*/{ s//\1/; q; }
21429 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021430 { if $as_mkdir_p; then
21431 mkdir -p "$ac_dir"
21432 else
21433 as_dir="$ac_dir"
21434 as_dirs=
21435 while test ! -d "$as_dir"; do
21436 as_dirs="$as_dir $as_dirs"
21437 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21438$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021439 X"$as_dir" : 'X\(//\)[^/]' \| \
21440 X"$as_dir" : 'X\(//\)$' \| \
21441 X"$as_dir" : 'X\(/\)' \| \
21442 . : '\(.\)' 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021443echo X"$as_dir" |
21444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21445 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21446 /^X\(\/\/\)$/{ s//\1/; q; }
21447 /^X\(\/\).*/{ s//\1/; q; }
21448 s/.*/./; q'`
21449 done
21450 test ! -n "$as_dirs" || mkdir $as_dirs
21451 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21452echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21453 { (exit 1); exit 1; }; }; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021454
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021455 rm -f $ac_file
21456 mv $tmp/config.h $ac_file
21457 fi
21458 else
21459 cat $tmp/config.h
21460 rm -f $tmp/config.h
21461 fi
21462done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021463_ACEOF
21464cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021465
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021466#
21467# CONFIG_COMMANDS section.
21468#
21469for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21470 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21471 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021472 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21473$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021474 X"$ac_dest" : 'X\(//\)[^/]' \| \
21475 X"$ac_dest" : 'X\(//\)$' \| \
21476 X"$ac_dest" : 'X\(/\)' \| \
21477 . : '\(.\)' 2>/dev/null ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021478echo X"$ac_dest" |
21479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21480 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21481 /^X\(\/\/\)$/{ s//\1/; q; }
21482 /^X\(\/\).*/{ s//\1/; q; }
21483 s/.*/./; q'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021484 { if $as_mkdir_p; then
21485 mkdir -p "$ac_dir"
21486 else
21487 as_dir="$ac_dir"
21488 as_dirs=
21489 while test ! -d "$as_dir"; do
21490 as_dirs="$as_dir $as_dirs"
21491 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21492$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21493 X"$as_dir" : 'X\(//\)[^/]' \| \
21494 X"$as_dir" : 'X\(//\)$' \| \
21495 X"$as_dir" : 'X\(/\)' \| \
21496 . : '\(.\)' 2>/dev/null ||
21497echo X"$as_dir" |
21498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21499 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21500 /^X\(\/\/\)$/{ s//\1/; q; }
21501 /^X\(\/\).*/{ s//\1/; q; }
21502 s/.*/./; q'`
21503 done
21504 test ! -n "$as_dirs" || mkdir $as_dirs
21505 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21506echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21507 { (exit 1); exit 1; }; }; }
21508
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021509 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000021510
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021511if test "$ac_dir" != .; then
21512 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21513 # A "../" for each directory in $ac_dir_suffix.
21514 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021515else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021516 ac_dir_suffix= ac_top_builddir=
21517fi
21518
21519case $srcdir in
21520 .) # No --srcdir option. We are building in place.
21521 ac_srcdir=.
21522 if test -z "$ac_top_builddir"; then
21523 ac_top_srcdir=.
21524 else
21525 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21526 fi ;;
21527 [\\/]* | ?:[\\/]* ) # Absolute path.
21528 ac_srcdir=$srcdir$ac_dir_suffix;
21529 ac_top_srcdir=$srcdir ;;
21530 *) # Relative path.
21531 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21532 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21533esac
Alexandre Julliard875927f2004-01-02 01:55:29 +000021534
21535# Do not use `cd foo && pwd` to compute absolute paths, because
21536# the directories may not exist.
21537case `pwd` in
21538.) ac_abs_builddir="$ac_dir";;
21539*)
21540 case "$ac_dir" in
21541 .) ac_abs_builddir=`pwd`;;
21542 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21543 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21544 esac;;
21545esac
21546case $ac_abs_builddir in
21547.) ac_abs_top_builddir=${ac_top_builddir}.;;
21548*)
21549 case ${ac_top_builddir}. in
21550 .) ac_abs_top_builddir=$ac_abs_builddir;;
21551 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21552 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21553 esac;;
21554esac
21555case $ac_abs_builddir in
21556.) ac_abs_srcdir=$ac_srcdir;;
21557*)
21558 case $ac_srcdir in
21559 .) ac_abs_srcdir=$ac_abs_builddir;;
21560 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21561 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21562 esac;;
21563esac
21564case $ac_abs_builddir in
21565.) ac_abs_top_srcdir=$ac_top_srcdir;;
21566*)
21567 case $ac_top_srcdir in
21568 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21569 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21570 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21571 esac;;
21572esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021573
21574
21575 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21576echo "$as_me: executing $ac_dest commands" >&6;}
21577 case $ac_dest in
21578 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21579echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21580 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21581echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21582 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21583echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21584 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21585echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21586 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21587echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21588 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21589echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021590 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21591echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21592 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21593echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021594 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21595echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021596 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21597echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21598 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21599echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021600 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21601echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21602 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21603echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000021604 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21605echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000021606 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21607echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000021608 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21609echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021610 esac
21611done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021612_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021613
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021614cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000021615
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021616{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021617_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021618chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021619ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021620
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021621
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021622# configure is writing to config.log, and then calls config.status.
21623# config.status does its own redirection, appending to config.log.
21624# Unfortunately, on DOS this fails, as config.log is still kept open
21625# by configure, so config.status won't be able to write to it; its
21626# output is simply discarded. So we exec the FD to /dev/null,
21627# effectively closing config.log, so it can be properly (re)opened and
21628# appended to by config.status. When coming back to configure, we
21629# need to make the FD available again.
21630if test "$no_create" != yes; then
21631 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021632 ac_config_status_args=
21633 test "$silent" = yes &&
21634 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021635 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021636 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021637 exec 5>>config.log
21638 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21639 # would make configure fail if this is the last instruction.
21640 $ac_cs_success || { (exit 1); exit 1; }
21641fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021642
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021643
Ove Kaaven8b4431f1999-01-23 13:59:11 +000021644if test "$have_x" = "no"
21645then
21646 echo
21647 echo "*** Warning: X development files not found. Wine will be built without"
21648 echo "*** X support, which currently does not work, and would probably not be"
21649 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000021650 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000021651fi
21652
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000021653if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000021654then
21655 echo
21656 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000021657 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21658fi
21659
Ian Pilcher563598d2001-05-16 20:56:05 +000021660if test "$wine_cv_msg_freetype" = "yes"
21661then
21662 echo
21663 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021664 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21665 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21666 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000021667fi
21668
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021669echo
Vincent Béron5606d102004-08-19 00:03:45 +000021670echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021671echo
21672