blob: f6bbde77b311b08ea20d4ee726fd0c78a65c2983 [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 Julliard8087fca2004-09-14 22:11:36 +00003# Generated by GNU Autoconf 2.59 for Wine 20040914.
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 Julliard8087fca2004-09-14 22:11:36 +0000272PACKAGE_VERSION='20040914'
273PACKAGE_STRING='Wine 20040914'
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
Hans Leidekker51647572004-09-22 04:08:38 +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 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 LCMSLIBS CAPI4LINUXLIBS 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 Julliard8087fca2004-09-14 22:11:36 +0000791\`configure' configures Wine 20040914 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 Julliard8087fca2004-09-14 22:11:36 +0000856 short | recursive ) echo "Configuration of Wine 20040914:";;
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 Julliardf5818d22002-02-14 19:47:29 +0000866
867Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Eric Pouech53fa0d52004-02-05 01:27:38 +0000870 --without-opengl do not use OpenGL
871 --without-curses do not use curses
872 --with-wine-tools=<dir> use Wine tools from directory <dir>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000873 --with-x use the X Window System
874
875Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +0000876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +0000882 CXX C++ compiler command
883 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +0000884 CPP C preprocessor
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000885
886Use these variables to override the choices made by `configure' or to help
887it to find libraries and programs with nonstandard names/locations.
888
Alexandre Julliard875927f2004-01-02 01:55:29 +0000889Report bugs to <wine-devel@winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000890_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000891fi
892
893if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000899
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000900if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904else
905 ac_dir_suffix= ac_top_builddir=
906fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000907
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000908case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922esac
Alexandre Julliard875927f2004-01-02 01:55:29 +0000923
924# Do not use `cd foo && pwd` to compute absolute paths, because
925# the directories may not exist.
926case `pwd` in
927.) ac_abs_builddir="$ac_dir";;
928*)
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934esac
935case $ac_abs_builddir in
936.) ac_abs_top_builddir=${ac_top_builddir}.;;
937*)
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_srcdir=$ac_srcdir;;
946*)
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_top_srcdir=$ac_top_srcdir;;
955*)
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000962
963 cd $ac_dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000964 # Check for guested configure; otherwise get Cygnus style configure.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000965 if test -f $ac_srcdir/configure.gnu; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000966 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000969 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
Alexandre Julliard875927f2004-01-02 01:55:29 +0000972 test -f $ac_srcdir/configure.in; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000973 echo
974 $ac_configure --help
975 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000977 fi
Alexandre Julliardccc75702003-09-19 04:36:54 +0000978 cd "$ac_popdir"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000979 done
980fi
981
982test -n "$ac_init_help" && exit 0
983if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000984 cat <<\_ACEOF
Alexandre Julliard8087fca2004-09-14 22:11:36 +0000985Wine configure 20040914
Eric Pouech53fa0d52004-02-05 01:27:38 +0000986generated by GNU Autoconf 2.59
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000987
Alexandre Julliard875927f2004-01-02 01:55:29 +0000988Copyright (C) 2003 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000989This configure script is free software; the Free Software Foundation
990gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000991_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000992 exit 0
993fi
994exec 5>config.log
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000995cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000996This file contains any messages produced by compilers while
997running configure, to aid debugging if configure makes a mistake.
998
Alexandre Julliard8087fca2004-09-14 22:11:36 +0000999It was created by Wine $as_me 20040914, which was
Eric Pouech53fa0d52004-02-05 01:27:38 +00001000generated by GNU Autoconf 2.59. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001001
1002 $ $0 $@
1003
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001004_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001005{
1006cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001007## --------- ##
1008## Platform. ##
1009## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001010
1011hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016
1017/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1019
1020/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001028_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001029
1030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031for as_dir in $PATH
1032do
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036done
1037
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001038} >&5
1039
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001040cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001041
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001042
1043## ----------- ##
1044## Core tests. ##
1045## ----------- ##
1046
1047_ACEOF
1048
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001049
1050# Keep a trace of the command line.
1051# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001052# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001053# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001054# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001055ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001056ac_configure_args0=
1057ac_configure_args1=
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001058ac_sep=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001059ac_must_keep_next=false
1060for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001061do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001062 for ac_arg
1063 do
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074 2)
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001077 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001078 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00001079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1087 ;;
1088 -* ) ac_must_keep_next=true ;;
1089 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001090 fi
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
1094 ;;
1095 esac
1096 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001097done
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001098$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099$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 +00001100
1101# When interrupted or exit'd, cleanup temporary files, and complete
1102# config.log. We remove comments because anyway the quotes in there
1103# would cause problems or look ugly.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001104# WARNING: Be sure not to use single quotes in there, as some shells,
1105# such as our DU 5.0 friend, will then `close' the trap.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001106trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001108 {
1109 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001110
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001111 cat <<\_ASBOX
1112## ---------------- ##
1113## Cache variables. ##
1114## ---------------- ##
1115_ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001118{
1119 (set) 2>&1 |
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
1122 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +00001123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001125 ;;
1126 *)
1127 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +00001128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001129 ;;
1130 esac;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001131}
1132 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001133
1134 cat <<\_ASBOX
1135## ----------------- ##
1136## Output variables. ##
1137## ----------------- ##
1138_ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1141 do
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1146
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
1149## ------------- ##
1150## Output files. ##
1151## ------------- ##
1152_ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1155 do
1156 eval ac_val=$`echo $ac_var`
Alexandre Julliard875927f2004-01-02 01:55:29 +00001157 echo "$ac_var='"'"'$ac_val'"'"'"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001158 done | sort
1159 echo
1160 fi
1161
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164## ----------- ##
1165## confdefs.h. ##
1166## ----------- ##
1167_ASBOX
1168 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001169 sed "/^$/d" confdefs.h | sort
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001170 echo
1171 fi
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +00001176 rm -f core *.core &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001178 exit $exit_status
1179 ' 0
1180for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182done
1183ac_signal=0
1184
1185# confdefs.h avoids OS command line length limits that DEFS can exceed.
1186rm -rf conftest* confdefs.h
1187# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188echo >confdefs.h
1189
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001190# Predefined preprocessor variables.
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_NAME "$PACKAGE_NAME"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_VERSION "$PACKAGE_VERSION"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_STRING "$PACKAGE_STRING"
1209_ACEOF
1210
1211
1212cat >>confdefs.h <<_ACEOF
1213#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214_ACEOF
1215
1216
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001217# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001218# Prefer explicitly selected file to automatically selected ones.
1219if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1224 fi
1225fi
1226for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001229echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001230 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001231 . "$ac_site_file"
1232 fi
1233done
1234
1235if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001240echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1244 esac
1245 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001246else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001248echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1250fi
1251
1252# Check that the precious variables saved in the cache have kept the same
1253# value.
1254ac_cache_corrupted=false
1255for ac_var in `(set) 2>&1 |
Alexandre Julliard875927f2004-01-02 01:55:29 +00001256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1262 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001263 { 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 +00001264echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001268echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1271 *)
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001274echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001276echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001278echo "$as_me: current value: $ac_new_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001279 ac_cache_corrupted=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001280 fi;;
1281 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001282 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001292 esac
1293 fi
1294done
1295if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001297echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001299echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001301fi
1302
1303ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001304ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001308
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001334
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001335
1336 ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001337
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001338ac_aux_dir=
1339for ac_dir in tools $srcdir/tools; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001352 fi
1353done
1354if test -z "$ac_aux_dir"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001356echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1357 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001358fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001359ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Howard Abrams13277481999-07-10 13:16:29 +00001362
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001363
1364
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001365# Check whether --enable-win16 or --disable-win16 was given.
1366if test "${enable_win16+set}" = set; then
1367 enableval="$enable_win16"
1368
1369fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001370# Check whether --enable-debug or --disable-debug was given.
1371if test "${enable_debug+set}" = set; then
1372 enableval="$enable_debug"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001373
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001374fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001375# Check whether --enable-trace or --disable-trace was given.
1376if test "${enable_trace+set}" = set; then
1377 enableval="$enable_trace"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001378
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001379fi;
Alexandre Julliardb8074992002-11-21 21:51:24 +00001380
1381
1382# Check whether --with-opengl or --without-opengl was given.
1383if test "${with_opengl+set}" = set; then
1384 withval="$with_opengl"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001385
1386fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001387
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001388# Check whether --with-curses or --without-curses was given.
1389if test "${with_curses+set}" = set; then
1390 withval="$with_curses"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001391
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001392fi;
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001393
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001394# Check whether --with-wine-tools or --without-wine-tools was given.
1395if test "${with_wine_tools+set}" = set; then
1396 withval="$with_wine_tools"
1397
1398fi;
1399
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001400WIN16_FILES="\$(WIN16_FILES)"
1401
1402WIN16_INSTALL="\$(WIN16_INSTALL)"
1403
1404if test "x$enable_win16" = "xno"
1405then
1406 WIN16_FILES=""
1407 WIN16_INSTALL=""
1408fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001409if test "x$enable_debug" = "xno"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001410then
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001411
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001412cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001413#define NO_DEBUG_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001414_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001415
1416fi
1417if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001418then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001419
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001420cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001421#define NO_TRACE_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001422_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001423
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001424fi
1425
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001426
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001427# Make sure we can run config.sub.
1428$ac_config_sub sun4 >/dev/null 2>&1 ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001429 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001430echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1431 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001432
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001433echo "$as_me:$LINENO: checking build system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001434echo $ECHO_N "checking build system type... $ECHO_C" >&6
1435if test "${ac_cv_build+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001437else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001438 ac_cv_build_alias=$build_alias
1439test -z "$ac_cv_build_alias" &&
1440 ac_cv_build_alias=`$ac_config_guess`
1441test -z "$ac_cv_build_alias" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001442 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001443echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1444 { (exit 1); exit 1; }; }
1445ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001446 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1447echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001448 { (exit 1); exit 1; }; }
1449
1450fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001451echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001452echo "${ECHO_T}$ac_cv_build" >&6
1453build=$ac_cv_build
1454build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001458
1459echo "$as_me:$LINENO: checking host system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001460echo $ECHO_N "checking host system type... $ECHO_C" >&6
1461if test "${ac_cv_host+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1463else
1464 ac_cv_host_alias=$host_alias
1465test -z "$ac_cv_host_alias" &&
1466 ac_cv_host_alias=$ac_cv_build_alias
1467ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001468 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001469echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1470 { (exit 1); exit 1; }; }
1471
1472fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001473echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001474echo "${ECHO_T}$ac_cv_host" >&6
1475host=$ac_cv_host
1476host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1477host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1478host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1479
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001480
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001481echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1482echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Alexandre Julliard875927f2004-01-02 01:55:29 +00001483set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001484if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001487 cat >conftest.make <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001488all:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001489 @echo 'ac_maketemp="$(MAKE)"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001490_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001491# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001492eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001493if test -n "$ac_maketemp"; then
1494 eval ac_cv_prog_make_${ac_make}_set=yes
1495else
1496 eval ac_cv_prog_make_${ac_make}_set=no
1497fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001498rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001499fi
1500if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001501 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001502echo "${ECHO_T}yes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001503 SET_MAKE=
1504else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001505 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001506echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001507 SET_MAKE="MAKE=${MAKE-make}"
1508fi
1509
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001510ac_ext=c
1511ac_cpp='$CPP $CPPFLAGS'
1512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1517set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001518echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001522else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527for as_dir in $PATH
1528do
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1536 fi
1537done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001538done
1539
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001540fi
1541fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001542CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001543if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001544 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001545echo "${ECHO_T}$CC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001546else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001547 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001548echo "${ECHO_T}no" >&6
1549fi
1550
1551fi
1552if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "gcc", so it can be a program name with args.
1555set dummy gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001556echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565for as_dir in $PATH
1566do
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="gcc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1574 fi
1575done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001576done
1577
1578fi
1579fi
1580ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001583echo "${ECHO_T}$ac_ct_CC" >&6
1584else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001585 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001586echo "${ECHO_T}no" >&6
1587fi
1588
1589 CC=$ac_ct_CC
1590else
1591 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001592fi
1593
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001594if test -z "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001595 if test -n "$ac_tool_prefix"; then
1596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1597set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001598echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001602else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_CC="${ac_tool_prefix}cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1616 fi
1617done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001618done
1619
1620fi
1621fi
1622CC=$ac_cv_prog_CC
1623if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001624 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001625echo "${ECHO_T}$CC" >&6
1626else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001627 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001628echo "${ECHO_T}no" >&6
1629fi
1630
1631fi
1632if test -z "$ac_cv_prog_CC"; then
1633 ac_ct_CC=$CC
1634 # Extract the first word of "cc", so it can be a program name with args.
1635set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001636echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 if test -n "$ac_ct_CC"; then
1642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH
1646do
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_ac_ct_CC="cc"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
1654 fi
1655done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001656done
1657
1658fi
1659fi
1660ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001663echo "${ECHO_T}$ac_ct_CC" >&6
1664else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001665 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001666echo "${ECHO_T}no" >&6
1667fi
1668
1669 CC=$ac_ct_CC
1670else
1671 CC="$ac_cv_prog_CC"
1672fi
1673
1674fi
1675if test -z "$CC"; then
1676 # Extract the first word of "cc", so it can be a program name with args.
1677set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001678echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680if test "${ac_cv_prog_CC+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682else
1683 if test -n "$CC"; then
1684 ac_cv_prog_CC="$CC" # Let the user override the test.
1685else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001686 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688for as_dir in $PATH
1689do
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1695 ac_prog_rejected=yes
1696 continue
1697 fi
1698 ac_cv_prog_CC="cc"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1701 fi
1702done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001703done
1704
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001705if test $ac_prog_rejected = yes; then
1706 # We found a bogon in the path, so make sure we never use it.
1707 set dummy $ac_cv_prog_CC
1708 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001709 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001710 # We chose a different compiler from the bogus one.
1711 # However, it has the same basename, so the bogon will be chosen
1712 # first if we set CC to just the basename; use the full file name.
1713 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001715 fi
1716fi
1717fi
1718fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001719CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001720if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001721 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001722echo "${ECHO_T}$CC" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001723else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001724 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001725echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001726fi
1727
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001728fi
1729if test -z "$CC"; then
1730 if test -n "$ac_tool_prefix"; then
1731 for ac_prog in cl
1732 do
1733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1734set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001735echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737if test "${ac_cv_prog_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001739else
1740 if test -n "$CC"; then
1741 ac_cv_prog_CC="$CC" # Let the user override the test.
1742else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744for as_dir in $PATH
1745do
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1753 fi
1754done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001755done
1756
Eric Pouech18ad24a2000-01-16 22:16:33 +00001757fi
1758fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001759CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00001760if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001761 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001762echo "${ECHO_T}$CC" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001763else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001764 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001765echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001766fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001767
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001768 test -n "$CC" && break
1769 done
1770fi
1771if test -z "$CC"; then
1772 ac_ct_CC=$CC
1773 for ac_prog in cl
1774do
1775 # Extract the first word of "$ac_prog", so it can be a program name with args.
1776set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001777echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786for as_dir in $PATH
1787do
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC="$ac_prog"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 break 2
1795 fi
1796done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001797done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001798
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001799fi
1800fi
1801ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001804echo "${ECHO_T}$ac_ct_CC" >&6
1805else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001806 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001807echo "${ECHO_T}no" >&6
1808fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001809
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001810 test -n "$ac_ct_CC" && break
1811done
Eric Pouech18ad24a2000-01-16 22:16:33 +00001812
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001813 CC=$ac_ct_CC
1814fi
1815
1816fi
1817
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001818
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001819test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1820See \`config.log' for more details." >&5
1821echo "$as_me: error: no acceptable C compiler found in \$PATH
1822See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001823 { (exit 1); exit 1; }; }
1824
1825# Provide some information about the compiler.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001826echo "$as_me:$LINENO:" \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001827 "checking for C compiler version" >&5
1828ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001829{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001830 (eval $ac_compiler --version </dev/null >&5) 2>&5
1831 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001833 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001834{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001835 (eval $ac_compiler -v </dev/null >&5) 2>&5
1836 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001838 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001839{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001840 (eval $ac_compiler -V </dev/null >&5) 2>&5
1841 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001843 (exit $ac_status); }
1844
1845cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001846/* confdefs.h. */
1847_ACEOF
1848cat confdefs.h >>conftest.$ac_ext
1849cat >>conftest.$ac_ext <<_ACEOF
1850/* end confdefs.h. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00001851
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001852int
1853main ()
1854{
1855
1856 ;
1857 return 0;
1858}
1859_ACEOF
1860ac_clean_files_save=$ac_clean_files
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001861ac_clean_files="$ac_clean_files a.out a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001862# Try to create an executable without -o first, disregard a.out.
1863# It will help us diagnose broken compilers, and finding out an intuition
1864# of exeext.
Alexandre Julliard875927f2004-01-02 01:55:29 +00001865echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1866echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001867ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001868if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001869 (eval $ac_link_default) 2>&5
1870 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001872 (exit $ac_status); }; then
1873 # Find the output, starting from the most likely. This scheme is
1874# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1875# resort.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001876
1877# Be careful to initialize this variable, since it used to be cached.
1878# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1879ac_cv_exeext=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001880# b.out is created by i960 compilers.
1881for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1882do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001883 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001884 case $ac_file in
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001886 ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001887 conftest.$ac_ext )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001888 # This is the source file.
1889 ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001890 [ab].out )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001891 # We found the default executable, but exeext='' is most
1892 # certainly right.
1893 break;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001894 *.* )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001895 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 # FIXME: I believe we export ac_cv_exeext for Libtool,
1897 # but it would be cool to find out if it's true. Does anybody
1898 # maintain Libtool? --akim.
1899 export ac_cv_exeext
1900 break;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001901 * )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001902 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001903 esac
1904done
1905else
1906 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001907sed 's/^/| /' conftest.$ac_ext >&5
1908
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001909{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001910See \`config.log' for more details." >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001911echo "$as_me: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001912See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001913 { (exit 77); exit 77; }; }
1914fi
1915
1916ac_exeext=$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001917echo "$as_me:$LINENO: result: $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001918echo "${ECHO_T}$ac_file" >&6
1919
1920# Check the compiler produces executables we can run. If not, either
1921# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001922echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001923echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1924# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1925# If not cross compiling, check that we can run a simple program.
1926if test "$cross_compiling" != yes; then
1927 if { ac_try='./$ac_file'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001929 (eval $ac_try) 2>&5
1930 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001932 (exit $ac_status); }; }; then
1933 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001934 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001935 if test "$cross_compiling" = maybe; then
1936 cross_compiling=yes
1937 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001938 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001939If you meant to cross compile, use \`--host'.
1940See \`config.log' for more details." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001941echo "$as_me: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001942If you meant to cross compile, use \`--host'.
1943See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001944 { (exit 1); exit 1; }; }
1945 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001946 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001947fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001948echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001949echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001950
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001951rm -f a.out a.exe conftest$ac_cv_exeext b.out
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001952ac_clean_files=$ac_clean_files_save
1953# Check the compiler produces executables we can run. If not, either
1954# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001955echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001956echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001957echo "$as_me:$LINENO: result: $cross_compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001958echo "${ECHO_T}$cross_compiling" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001959
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001960echo "$as_me:$LINENO: checking for suffix of executables" >&5
1961echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001963 (eval $ac_link) 2>&5
1964 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001966 (exit $ac_status); }; then
1967 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1968# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1969# work properly (i.e., refer to `conftest.exe'), while it won't with
1970# `rm'.
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001971for ac_file in conftest.exe conftest conftest.*; do
1972 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001973 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Alexandre Julliard875927f2004-01-02 01:55:29 +00001976 export ac_cv_exeext
1977 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001978 * ) break;;
1979 esac
1980done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001981else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001982 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1983See \`config.log' for more details." >&5
1984echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1985See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001986 { (exit 1); exit 1; }; }
1987fi
1988
1989rm -f conftest$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001990echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001991echo "${ECHO_T}$ac_cv_exeext" >&6
1992
1993rm -f conftest.$ac_ext
1994EXEEXT=$ac_cv_exeext
1995ac_exeext=$EXEEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001996echo "$as_me:$LINENO: checking for suffix of object files" >&5
1997echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001998if test "${ac_cv_objext+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000else
2001 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002002/* confdefs.h. */
2003_ACEOF
2004cat confdefs.h >>conftest.$ac_ext
2005cat >>conftest.$ac_ext <<_ACEOF
2006/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002007
2008int
2009main ()
2010{
2011
2012 ;
2013 return 0;
2014}
2015_ACEOF
2016rm -f conftest.o conftest.obj
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002018 (eval $ac_compile) 2>&5
2019 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002021 (exit $ac_status); }; then
2022 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2023 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2026 break;;
2027 esac
2028done
2029else
2030 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002031sed 's/^/| /' conftest.$ac_ext >&5
2032
2033{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2034See \`config.log' for more details." >&5
2035echo "$as_me: error: cannot compute suffix of object files: cannot compile
2036See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002037 { (exit 1); exit 1; }; }
2038fi
2039
2040rm -f conftest.$ac_cv_objext conftest.$ac_ext
2041fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002042echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002043echo "${ECHO_T}$ac_cv_objext" >&6
2044OBJEXT=$ac_cv_objext
2045ac_objext=$OBJEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002046echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002047echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2048if test "${ac_cv_c_compiler_gnu+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
2051 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002052/* confdefs.h. */
2053_ACEOF
2054cat confdefs.h >>conftest.$ac_ext
2055cat >>conftest.$ac_ext <<_ACEOF
2056/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002057
2058int
2059main ()
2060{
2061#ifndef __GNUC__
2062 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002063#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002064
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002065 ;
2066 return 0;
2067}
2068_ACEOF
2069rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002071 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002072 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002073 grep -v '^ *+' conftest.er1 >conftest.err
2074 rm -f conftest.er1
2075 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002077 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 (eval $ac_try) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; } &&
2084 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002086 (eval $ac_try) 2>&5
2087 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002089 (exit $ac_status); }; }; then
2090 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00002091else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002092 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002093sed 's/^/| /' conftest.$ac_ext >&5
2094
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002095ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00002096fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002098ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00002099
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002100fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002101echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002102echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2103GCC=`test $ac_compiler_gnu = yes && echo yes`
2104ac_test_CFLAGS=${CFLAGS+set}
2105ac_save_CFLAGS=$CFLAGS
2106CFLAGS="-g"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002107echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002108echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2109if test "${ac_cv_prog_cc_g+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002111else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002112 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002113/* confdefs.h. */
2114_ACEOF
2115cat confdefs.h >>conftest.$ac_ext
2116cat >>conftest.$ac_ext <<_ACEOF
2117/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002118
2119int
2120main ()
2121{
2122
2123 ;
2124 return 0;
2125}
2126_ACEOF
2127rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002129 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002130 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002131 grep -v '^ *+' conftest.er1 >conftest.err
2132 rm -f conftest.er1
2133 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002135 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138 (eval $ac_try) 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; } &&
2142 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002144 (eval $ac_try) 2>&5
2145 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002147 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002148 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002149else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002150 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002151sed 's/^/| /' conftest.$ac_ext >&5
2152
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002153ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002154fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002156fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002157echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002158echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00002159if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002160 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002161elif test $ac_cv_prog_cc_g = yes; then
2162 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002163 CFLAGS="-g -O2"
2164 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002165 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002166 fi
2167else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002168 if test "$GCC" = yes; then
2169 CFLAGS="-O2"
2170 else
2171 CFLAGS=
2172 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002173fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002174echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2175echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2176if test "${ac_cv_prog_cc_stdc+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
2179 ac_cv_prog_cc_stdc=no
2180ac_save_CC=$CC
2181cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002182/* confdefs.h. */
2183_ACEOF
2184cat confdefs.h >>conftest.$ac_ext
2185cat >>conftest.$ac_ext <<_ACEOF
2186/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002187#include <stdarg.h>
2188#include <stdio.h>
2189#include <sys/types.h>
2190#include <sys/stat.h>
2191/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2192struct buf { int x; };
2193FILE * (*rcsopen) (struct buf *, struct stat *, int);
2194static char *e (p, i)
2195 char **p;
2196 int i;
2197{
2198 return p[i];
2199}
2200static char *f (char * (*g) (char **, int), char **p, ...)
2201{
2202 char *s;
2203 va_list v;
2204 va_start (v,p);
2205 s = g (p, va_arg (v,int));
2206 va_end (v);
2207 return s;
2208}
Alexandre Julliard875927f2004-01-02 01:55:29 +00002209
2210/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2211 function prototypes and stuff, but not '\xHH' hex character constants.
2212 These don't provoke an error unfortunately, instead are silently treated
2213 as 'x'. The following induces an error, until -std1 is added to get
2214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2215 array size at least. It's necessary to write '\x00'==0 to get something
2216 that's true only with -std1. */
2217int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2218
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002219int test (int i, double x);
2220struct s1 {int (*f) (int a);};
2221struct s2 {int (*f) (double a);};
2222int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2223int argc;
2224char **argv;
2225int
2226main ()
2227{
2228return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2229 ;
2230 return 0;
2231}
2232_ACEOF
2233# Don't try gcc -ansi; that turns off useful extensions and
2234# breaks some systems' header files.
2235# AIX -qlanglvl=ansi
2236# Ultrix and OSF/1 -std1
2237# HP-UX 10.20 and later -Ae
2238# HP-UX older versions -Aa -D_HPUX_SOURCE
2239# SVR4 -Xc -D__EXTENSIONS__
2240for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2241do
2242 CC="$ac_save_CC $ac_arg"
2243 rm -f conftest.$ac_objext
2244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002245 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002246 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002247 grep -v '^ *+' conftest.er1 >conftest.err
2248 rm -f conftest.er1
2249 cat conftest.err >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 (eval $ac_try) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; } &&
2258 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2264 ac_cv_prog_cc_stdc=$ac_arg
2265break
2266else
2267 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002268sed 's/^/| /' conftest.$ac_ext >&5
2269
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002270fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002271rm -f conftest.err conftest.$ac_objext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002272done
2273rm -f conftest.$ac_ext conftest.$ac_objext
2274CC=$ac_save_CC
2275
2276fi
2277
2278case "x$ac_cv_prog_cc_stdc" in
2279 x|xno)
2280 echo "$as_me:$LINENO: result: none needed" >&5
2281echo "${ECHO_T}none needed" >&6 ;;
2282 *)
2283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2284echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2285 CC="$CC $ac_cv_prog_cc_stdc" ;;
2286esac
2287
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002288# Some people use a C++ compiler to compile C. Since we use `exit',
2289# in C++ we need to declare it. In case someone uses the same compiler
2290# for both compiling C and C++ we need to have the C++ compiler decide
2291# the declaration of exit, since it's the most demanding environment.
2292cat >conftest.$ac_ext <<_ACEOF
2293#ifndef __cplusplus
2294 choke me
2295#endif
2296_ACEOF
2297rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002299 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002300 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002301 grep -v '^ *+' conftest.er1 >conftest.err
2302 rm -f conftest.er1
2303 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002305 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002314 (eval $ac_try) 2>&5
2315 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002317 (exit $ac_status); }; }; then
2318 for ac_declaration in \
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002319 '' \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002320 'extern "C" void std::exit (int) throw (); using std::exit;' \
2321 'extern "C" void std::exit (int); using std::exit;' \
2322 'extern "C" void exit (int) throw ();' \
2323 'extern "C" void exit (int);' \
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002324 'void exit (int);'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002325do
2326 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002327/* confdefs.h. */
2328_ACEOF
2329cat confdefs.h >>conftest.$ac_ext
2330cat >>conftest.$ac_ext <<_ACEOF
2331/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002332$ac_declaration
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002333#include <stdlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002334int
2335main ()
2336{
2337exit (42);
2338 ;
2339 return 0;
2340}
2341_ACEOF
2342rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002344 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002345 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002350 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002359 (eval $ac_try) 2>&5
2360 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002362 (exit $ac_status); }; }; then
2363 :
2364else
2365 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002366sed 's/^/| /' conftest.$ac_ext >&5
2367
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002368continue
2369fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002371 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002372/* confdefs.h. */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002377$ac_declaration
2378int
2379main ()
2380{
2381exit (42);
2382 ;
2383 return 0;
2384}
2385_ACEOF
2386rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002388 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002389 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002394 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002403 (eval $ac_try) 2>&5
2404 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002406 (exit $ac_status); }; }; then
2407 break
2408else
2409 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002410sed 's/^/| /' conftest.$ac_ext >&5
2411
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002412fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002414done
2415rm -f conftest*
2416if test -n "$ac_declaration"; then
2417 echo '#ifdef __cplusplus' >>confdefs.h
2418 echo $ac_declaration >>confdefs.h
2419 echo '#endif' >>confdefs.h
2420fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002421
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002422else
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 +00002428ac_ext=c
2429ac_cpp='$CPP $CPPFLAGS'
2430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002434ac_ext=cc
2435ac_cpp='$CXXCPP $CPPFLAGS'
2436ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2439if test -n "$ac_tool_prefix"; then
2440 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2441 do
2442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444echo "$as_me:$LINENO: checking for $ac_word" >&5
2445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446if test "${ac_cv_prog_CXX+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448else
2449 if test -n "$CXX"; then
2450 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2451else
2452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453for as_dir in $PATH
2454do
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2462 fi
2463done
2464done
2465
2466fi
2467fi
2468CXX=$ac_cv_prog_CXX
2469if test -n "$CXX"; then
2470 echo "$as_me:$LINENO: result: $CXX" >&5
2471echo "${ECHO_T}$CXX" >&6
2472else
2473 echo "$as_me:$LINENO: result: no" >&5
2474echo "${ECHO_T}no" >&6
2475fi
2476
2477 test -n "$CXX" && break
2478 done
2479fi
2480if test -z "$CXX"; then
2481 ac_ct_CXX=$CXX
2482 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2483do
2484 # Extract the first word of "$ac_prog", so it can be a program name with args.
2485set dummy $ac_prog; ac_word=$2
2486echo "$as_me:$LINENO: checking for $ac_word" >&5
2487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491 if test -n "$ac_ct_CXX"; then
2492 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_ac_ct_CXX="$ac_prog"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2504 fi
2505done
2506done
2507
2508fi
2509fi
2510ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2511if test -n "$ac_ct_CXX"; then
2512 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2513echo "${ECHO_T}$ac_ct_CXX" >&6
2514else
2515 echo "$as_me:$LINENO: result: no" >&5
2516echo "${ECHO_T}no" >&6
2517fi
2518
2519 test -n "$ac_ct_CXX" && break
2520done
2521test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2522
2523 CXX=$ac_ct_CXX
2524fi
2525
2526
2527# Provide some information about the compiler.
2528echo "$as_me:$LINENO:" \
2529 "checking for C++ compiler version" >&5
2530ac_compiler=`set X $ac_compile; echo $2`
2531{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2532 (eval $ac_compiler --version </dev/null >&5) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2536{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2537 (eval $ac_compiler -v </dev/null >&5) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2541{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2542 (eval $ac_compiler -V </dev/null >&5) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }
2546
2547echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2548echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2549if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551else
2552 cat >conftest.$ac_ext <<_ACEOF
2553/* confdefs.h. */
2554_ACEOF
2555cat confdefs.h >>conftest.$ac_ext
2556cat >>conftest.$ac_ext <<_ACEOF
2557/* end confdefs.h. */
2558
2559int
2560main ()
2561{
2562#ifndef __GNUC__
2563 choke me
2564#endif
2565
2566 ;
2567 return 0;
2568}
2569_ACEOF
2570rm -f conftest.$ac_objext
2571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_compiler_gnu=yes
2592else
2593 echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596ac_compiler_gnu=no
2597fi
2598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2600
2601fi
2602echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2603echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2604GXX=`test $ac_compiler_gnu = yes && echo yes`
2605ac_test_CXXFLAGS=${CXXFLAGS+set}
2606ac_save_CXXFLAGS=$CXXFLAGS
2607CXXFLAGS="-g"
2608echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2609echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2610if test "${ac_cv_prog_cxx_g+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612else
2613 cat >conftest.$ac_ext <<_ACEOF
2614/* confdefs.h. */
2615_ACEOF
2616cat confdefs.h >>conftest.$ac_ext
2617cat >>conftest.$ac_ext <<_ACEOF
2618/* end confdefs.h. */
2619
2620int
2621main ()
2622{
2623
2624 ;
2625 return 0;
2626}
2627_ACEOF
2628rm -f conftest.$ac_objext
2629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>conftest.er1
2631 ac_status=$?
2632 grep -v '^ *+' conftest.er1 >conftest.err
2633 rm -f conftest.er1
2634 cat conftest.err >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_cv_prog_cxx_g=yes
2650else
2651 echo "$as_me: failed program was:" >&5
2652sed 's/^/| /' conftest.$ac_ext >&5
2653
2654ac_cv_prog_cxx_g=no
2655fi
2656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2657fi
2658echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2659echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2660if test "$ac_test_CXXFLAGS" = set; then
2661 CXXFLAGS=$ac_save_CXXFLAGS
2662elif test $ac_cv_prog_cxx_g = yes; then
2663 if test "$GXX" = yes; then
2664 CXXFLAGS="-g -O2"
2665 else
2666 CXXFLAGS="-g"
2667 fi
2668else
2669 if test "$GXX" = yes; then
2670 CXXFLAGS="-O2"
2671 else
2672 CXXFLAGS=
2673 fi
2674fi
2675for ac_declaration in \
2676 '' \
2677 'extern "C" void std::exit (int) throw (); using std::exit;' \
2678 'extern "C" void std::exit (int); using std::exit;' \
2679 'extern "C" void exit (int) throw ();' \
2680 'extern "C" void exit (int);' \
2681 'void exit (int);'
2682do
2683 cat >conftest.$ac_ext <<_ACEOF
2684/* confdefs.h. */
2685_ACEOF
2686cat confdefs.h >>conftest.$ac_ext
2687cat >>conftest.$ac_ext <<_ACEOF
2688/* end confdefs.h. */
2689$ac_declaration
2690#include <stdlib.h>
2691int
2692main ()
2693{
2694exit (42);
2695 ;
2696 return 0;
2697}
2698_ACEOF
2699rm -f conftest.$ac_objext
2700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701 (eval $ac_compile) 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 :
2721else
2722 echo "$as_me: failed program was:" >&5
2723sed 's/^/| /' conftest.$ac_ext >&5
2724
2725continue
2726fi
2727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 cat >conftest.$ac_ext <<_ACEOF
2729/* confdefs.h. */
2730_ACEOF
2731cat confdefs.h >>conftest.$ac_ext
2732cat >>conftest.$ac_ext <<_ACEOF
2733/* end confdefs.h. */
2734$ac_declaration
2735int
2736main ()
2737{
2738exit (42);
2739 ;
2740 return 0;
2741}
2742_ACEOF
2743rm -f conftest.$ac_objext
2744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745 (eval $ac_compile) 2>conftest.er1
2746 ac_status=$?
2747 grep -v '^ *+' conftest.er1 >conftest.err
2748 rm -f conftest.er1
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } &&
2752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2764 break
2765else
2766 echo "$as_me: failed program was:" >&5
2767sed 's/^/| /' conftest.$ac_ext >&5
2768
2769fi
2770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771done
2772rm -f conftest*
2773if test -n "$ac_declaration"; then
2774 echo '#ifdef __cplusplus' >>confdefs.h
2775 echo $ac_declaration >>confdefs.h
2776 echo '#endif' >>confdefs.h
2777fi
2778
2779ac_ext=c
2780ac_cpp='$CPP $CPPFLAGS'
2781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002785if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2787set dummy ${ac_tool_prefix}cpp; ac_word=$2
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002788echo "$as_me:$LINENO: checking for $ac_word" >&5
2789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002790if test "${ac_cv_prog_CPPBIN+set}" = set; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002793 if test -n "$CPPBIN"; then
2794 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002795else
2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797for as_dir in $PATH
2798do
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002803 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807done
2808done
2809
2810fi
2811fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002812CPPBIN=$ac_cv_prog_CPPBIN
2813if test -n "$CPPBIN"; then
2814 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2815echo "${ECHO_T}$CPPBIN" >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002816else
2817 echo "$as_me:$LINENO: result: no" >&5
2818echo "${ECHO_T}no" >&6
2819fi
2820
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002821fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002822if test -z "$ac_cv_prog_CPPBIN"; then
2823 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002824 # Extract the first word of "cpp", so it can be a program name with args.
2825set dummy cpp; ac_word=$2
2826echo "$as_me:$LINENO: checking for $ac_word" >&5
2827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002828if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002831 if test -n "$ac_ct_CPPBIN"; then
2832 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002841 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845done
2846done
2847
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002848 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002849fi
2850fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002851ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2852if test -n "$ac_ct_CPPBIN"; then
2853 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2854echo "${ECHO_T}$ac_ct_CPPBIN" >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002855else
2856 echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6
2858fi
2859
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002860 CPPBIN=$ac_ct_CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002861else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002862 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002863fi
2864
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002865
2866echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2867echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2868if test "${wine_cv_toolsdir+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870else
2871 if test -z "$with_wine_tools"; then
2872 if test "$cross_compiling" = "yes"; then
2873 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2874echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2875 { (exit 1); exit 1; }; }
2876 else
2877 wine_cv_toolsdir="\$(TOPOBJDIR)"
2878 fi
2879 elif test -d "$with_wine_tools/tools/winebuild"; then
2880 case $with_wine_tools in
2881 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2882 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2883 esac
2884 else
2885 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2886echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2887 { (exit 1); exit 1; }; }
2888 fi
2889fi
2890echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2891echo "${ECHO_T}$wine_cv_toolsdir" >&6
2892TOOLSDIR=$wine_cv_toolsdir
2893
2894
2895
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002896ac_ext=c
2897ac_cpp='$CPP $CPPFLAGS'
2898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002901echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002902echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002903# On Suns, sometimes $CPP names a directory.
2904if test -n "$CPP" && test -d "$CPP"; then
2905 CPP=
2906fi
2907if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002908 if test "${ac_cv_prog_CPP+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002910else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002911 # Double quotes because CPP needs to be expanded
2912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2913 do
2914 ac_preproc_ok=false
2915for ac_c_preproc_warn_flag in '' yes
2916do
2917 # Use a header file that comes with gcc, so configuring glibc
2918 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920 # <limits.h> exists even on freestanding compilers.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002921 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002922 # not just through cpp. "Syntax error" is here to catch this case.
2923 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002924/* confdefs.h. */
2925_ACEOF
2926cat confdefs.h >>conftest.$ac_ext
2927cat >>conftest.$ac_ext <<_ACEOF
2928/* end confdefs.h. */
2929#ifdef __STDC__
2930# include <limits.h>
2931#else
2932# include <assert.h>
2933#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00002934 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002935_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002936if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002939 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002940 rm -f conftest.er1
2941 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002943 (exit $ac_status); } >/dev/null; then
2944 if test -s conftest.err; then
2945 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00002946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002947 else
2948 ac_cpp_err=
2949 fi
2950else
2951 ac_cpp_err=yes
2952fi
2953if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002954 :
2955else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002956 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002957sed 's/^/| /' conftest.$ac_ext >&5
2958
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002959 # Broken: fails on valid input.
2960continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002961fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002962rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002963
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002964 # OK, works on sane cases. Now check whether non-existent headers
2965 # can be detected and how.
2966 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002967/* confdefs.h. */
2968_ACEOF
2969cat confdefs.h >>conftest.$ac_ext
2970cat >>conftest.$ac_ext <<_ACEOF
2971/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002972#include <ac_nonexistent.h>
2973_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002977 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002978 rm -f conftest.er1
2979 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002981 (exit $ac_status); } >/dev/null; then
2982 if test -s conftest.err; then
2983 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00002984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002985 else
2986 ac_cpp_err=
2987 fi
2988else
2989 ac_cpp_err=yes
2990fi
2991if test -z "$ac_cpp_err"; then
2992 # Broken: success on invalid input.
2993continue
2994else
2995 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002996sed 's/^/| /' conftest.$ac_ext >&5
2997
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002998 # Passes both tests.
2999ac_preproc_ok=:
3000break
3001fi
3002rm -f conftest.err conftest.$ac_ext
3003
3004done
3005# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006rm -f conftest.err conftest.$ac_ext
3007if $ac_preproc_ok; then
3008 break
3009fi
3010
3011 done
3012 ac_cv_prog_CPP=$CPP
3013
3014fi
3015 CPP=$ac_cv_prog_CPP
3016else
3017 ac_cv_prog_CPP=$CPP
3018fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003019echo "$as_me:$LINENO: result: $CPP" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003020echo "${ECHO_T}$CPP" >&6
3021ac_preproc_ok=false
3022for ac_c_preproc_warn_flag in '' yes
3023do
3024 # Use a header file that comes with gcc, so configuring glibc
3025 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027 # <limits.h> exists even on freestanding compilers.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003028 # On the NeXT, cc -E runs the code through the compiler's parser,
3029 # not just through cpp. "Syntax error" is here to catch this case.
3030 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003031/* confdefs.h. */
3032_ACEOF
3033cat confdefs.h >>conftest.$ac_ext
3034cat >>conftest.$ac_ext <<_ACEOF
3035/* end confdefs.h. */
3036#ifdef __STDC__
3037# include <limits.h>
3038#else
3039# include <assert.h>
3040#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003041 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003042_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003043if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003046 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003047 rm -f conftest.er1
3048 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003050 (exit $ac_status); } >/dev/null; then
3051 if test -s conftest.err; then
3052 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003054 else
3055 ac_cpp_err=
3056 fi
3057else
3058 ac_cpp_err=yes
3059fi
3060if test -z "$ac_cpp_err"; then
3061 :
3062else
3063 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003064sed 's/^/| /' conftest.$ac_ext >&5
3065
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003066 # Broken: fails on valid input.
3067continue
3068fi
3069rm -f conftest.err conftest.$ac_ext
3070
3071 # OK, works on sane cases. Now check whether non-existent headers
3072 # can be detected and how.
3073 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003074/* confdefs.h. */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003079#include <ac_nonexistent.h>
3080_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003081if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003084 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003085 rm -f conftest.er1
3086 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003088 (exit $ac_status); } >/dev/null; then
3089 if test -s conftest.err; then
3090 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003092 else
3093 ac_cpp_err=
3094 fi
3095else
3096 ac_cpp_err=yes
3097fi
3098if test -z "$ac_cpp_err"; then
3099 # Broken: success on invalid input.
3100continue
3101else
3102 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003103sed 's/^/| /' conftest.$ac_ext >&5
3104
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003105 # Passes both tests.
3106ac_preproc_ok=:
3107break
3108fi
3109rm -f conftest.err conftest.$ac_ext
3110
3111done
3112# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113rm -f conftest.err conftest.$ac_ext
3114if $ac_preproc_ok; then
3115 :
3116else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003117 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118See \`config.log' for more details." >&5
3119echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003121 { (exit 1); exit 1; }; }
3122fi
3123
3124ac_ext=c
3125ac_cpp='$CPP $CPPFLAGS'
3126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003130
Eric Pouech800864a2004-04-05 22:21:27 +00003131
3132if test "x$ac_path_x_has_been_run" != xyes; then
3133 echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003134echo $ECHO_N "checking for X... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003135
Eric Pouech800864a2004-04-05 22:21:27 +00003136ac_path_x_has_been_run=yes
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003137
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003138# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003139if test "${with_x+set}" = set; then
3140 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003141
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003142fi;
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003143# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003144if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003145 # The user explicitly disabled X.
3146 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003147else
3148 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003149 # Both variables are already set.
3150 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003151 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003152 if test "${ac_cv_have_x+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003154else
3155 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003156ac_x_includes=no ac_x_libraries=no
3157rm -fr conftest.dir
3158if mkdir conftest.dir; then
3159 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003160 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003161 cat >Imakefile <<'_ACEOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003162acfindx:
3163 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003164_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003165 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003167 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003168 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3169 for ac_extension in a so sl; do
3170 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003171 test -f $ac_im_libdir/libX11.$ac_extension; then
3172 ac_im_usrlibdir=$ac_im_libdir; break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003173 fi
3174 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003175 # Screen out bogus values from the imake configuration. They are
3176 # bogus both because they are the default anyway, and because
3177 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003178 case $ac_im_incroot in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003179 /usr/include) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003180 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003181 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003182 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003183 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003184 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003185 esac
3186 fi
3187 cd ..
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003188 rm -fr conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003189fi
3190
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003191# Standard set of common directories for X headers.
3192# Check X11 before X11Rn because it is often a symlink to the current release.
3193ac_x_header_dirs='
3194/usr/X11/include
3195/usr/X11R6/include
3196/usr/X11R5/include
3197/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003198
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003199/usr/include/X11
3200/usr/include/X11R6
3201/usr/include/X11R5
3202/usr/include/X11R4
3203
3204/usr/local/X11/include
3205/usr/local/X11R6/include
3206/usr/local/X11R5/include
3207/usr/local/X11R4/include
3208
3209/usr/local/include/X11
3210/usr/local/include/X11R6
3211/usr/local/include/X11R5
3212/usr/local/include/X11R4
3213
3214/usr/X386/include
3215/usr/x386/include
3216/usr/XFree86/include/X11
3217
3218/usr/include
3219/usr/local/include
3220/usr/unsupported/include
3221/usr/athena/include
3222/usr/local/x11r5/include
3223/usr/lpp/Xamples/include
3224
3225/usr/openwin/include
3226/usr/openwin/share/include'
3227
3228if test "$ac_x_includes" = no; then
Eric Pouech800864a2004-04-05 22:21:27 +00003229 # Guess where to find include files, by looking for a specified header file.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003230 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003231 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003232/* confdefs.h. */
3233_ACEOF
3234cat confdefs.h >>conftest.$ac_ext
3235cat >>conftest.$ac_ext <<_ACEOF
3236/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003237#include <X11/Intrinsic.h>
3238_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003242 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003243 rm -f conftest.er1
3244 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003250 else
3251 ac_cpp_err=
3252 fi
3253else
3254 ac_cpp_err=yes
3255fi
3256if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003257 # We can compile using X headers with no special include directory.
3258ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003259else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003260 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003261sed 's/^/| /' conftest.$ac_ext >&5
3262
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003263 for ac_dir in $ac_x_header_dirs; do
3264 if test -r "$ac_dir/X11/Intrinsic.h"; then
3265 ac_x_includes=$ac_dir
3266 break
3267 fi
3268done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003269fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003270rm -f conftest.err conftest.$ac_ext
3271fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003272
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003273if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003274 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003275 # See if we find them without any special options.
3276 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003277 ac_save_LIBS=$LIBS
3278 LIBS="-lXt $LIBS"
3279 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003280/* confdefs.h. */
3281_ACEOF
3282cat confdefs.h >>conftest.$ac_ext
3283cat >>conftest.$ac_ext <<_ACEOF
3284/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003285#include <X11/Intrinsic.h>
3286int
3287main ()
3288{
3289XtMalloc (0)
3290 ;
3291 return 0;
3292}
3293_ACEOF
3294rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003296 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003297 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003302 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 (eval $ac_try) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003311 (eval $ac_try) 2>&5
3312 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003314 (exit $ac_status); }; }; then
3315 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003316# We can link X programs with no special library path.
3317ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003318else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003319 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003320sed 's/^/| /' conftest.$ac_ext >&5
3321
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003322LIBS=$ac_save_LIBS
3323for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003324do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003325 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003326 for ac_extension in a so sl; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003327 if test -r $ac_dir/libXt.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003328 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003329 break 2
3330 fi
3331 done
3332done
3333fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003334rm -f conftest.err conftest.$ac_objext \
3335 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003336fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003337
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003338if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003339 # Didn't find X anywhere. Cache the known absence of X.
3340 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003341else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003342 # Record where we found X for the cache.
3343 ac_cv_have_x="have_x=yes \
Alexandre Julliard875927f2004-01-02 01:55:29 +00003344 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003345fi
3346fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003347
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003348 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003349 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003350fi # $with_x != no
3351
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003352if test "$have_x" != yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003353 echo "$as_me:$LINENO: result: $have_x" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003354echo "${ECHO_T}$have_x" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003355 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003356else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003357 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003358 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3359 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003360 # Update the cache value to reflect the command line values.
3361 ac_cv_have_x="have_x=yes \
3362 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Eric Pouech800864a2004-04-05 22:21:27 +00003363 # It might be that x_includes is empty (headers are found in the
3364 # standard search path. Then output the corresponding message
3365 ac_out_x_includes=$x_includes
3366 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3367 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3368echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003369fi
3370
Eric Pouech800864a2004-04-05 22:21:27 +00003371fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003372if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003373 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003374
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003375cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003376#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003377_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003378
3379 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003380else
3381 if test -n "$x_includes"; then
3382 X_CFLAGS="$X_CFLAGS -I$x_includes"
3383 fi
3384
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003385 # It would also be nice to do this for all -L options, not just this one.
3386 if test -n "$x_libraries"; then
3387 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003388 # For Solaris; some versions of Sun CC require a space after -R and
3389 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003390 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003391 "SunOS 5"*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003392 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003393echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3394 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3395 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003396/* confdefs.h. */
3397_ACEOF
3398cat confdefs.h >>conftest.$ac_ext
3399cat >>conftest.$ac_ext <<_ACEOF
3400/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003401
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003402int
3403main ()
3404{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003405
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003406 ;
3407 return 0;
3408}
3409_ACEOF
3410rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003412 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003413 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003418 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003427 (eval $ac_try) 2>&5
3428 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003430 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003431 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003432else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003433 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003434sed 's/^/| /' conftest.$ac_ext >&5
3435
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003436ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003437fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003438rm -f conftest.err conftest.$ac_objext \
3439 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003440 if test $ac_R_nospace = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003441 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003442echo "${ECHO_T}no" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003443 X_LIBS="$X_LIBS -R$x_libraries"
3444 else
3445 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003446 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003447/* confdefs.h. */
3448_ACEOF
3449cat confdefs.h >>conftest.$ac_ext
3450cat >>conftest.$ac_ext <<_ACEOF
3451/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003452
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003453int
3454main ()
3455{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003456
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003457 ;
3458 return 0;
3459}
3460_ACEOF
3461rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003463 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003464 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003469 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; } &&
3476 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003478 (eval $ac_try) 2>&5
3479 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003481 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003482 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003483else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003484 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003485sed 's/^/| /' conftest.$ac_ext >&5
3486
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003487ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003488fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003489rm -f conftest.err conftest.$ac_objext \
3490 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003491 if test $ac_R_space = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003492 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003493echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003494 X_LIBS="$X_LIBS -R $x_libraries"
3495 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003496 echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003497echo "${ECHO_T}neither works" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003498 fi
3499 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003500 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003501 esac
3502 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003503
3504 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003505 # Do this before checking for the system-independent R6 libraries
3506 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003507
3508 if test "$ISC" = yes; then
3509 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3510 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003511 # Martyn Johnson says this is needed for Ultrix, if the X
3512 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003513 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003514 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3515 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003516/* confdefs.h. */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
3520/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003521
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003522/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003523#ifdef __cplusplus
3524extern "C"
3525#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003526/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003527 builtin and then its argument prototype would still apply. */
3528char XOpenDisplay ();
3529int
3530main ()
3531{
3532XOpenDisplay ();
3533 ;
3534 return 0;
3535}
3536_ACEOF
3537rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003539 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003540 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003545 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003554 (eval $ac_try) 2>&5
3555 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003557 (exit $ac_status); }; }; then
3558 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003559else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003560 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003561sed 's/^/| /' conftest.$ac_ext >&5
3562
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003563echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003564echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3565if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567else
3568 ac_check_lib_save_LIBS=$LIBS
3569LIBS="-ldnet $LIBS"
3570cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003571/* confdefs.h. */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003576
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003577/* Override any gcc2 internal prototype to avoid an error. */
3578#ifdef __cplusplus
3579extern "C"
3580#endif
3581/* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3583char dnet_ntoa ();
3584int
3585main ()
3586{
3587dnet_ntoa ();
3588 ;
3589 return 0;
3590}
3591_ACEOF
3592rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003594 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003595 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003600 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 (eval $ac_try) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; } &&
3607 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003609 (eval $ac_try) 2>&5
3610 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003612 (exit $ac_status); }; }; then
3613 ac_cv_lib_dnet_dnet_ntoa=yes
3614else
3615 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003616sed 's/^/| /' conftest.$ac_ext >&5
3617
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003618ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003619fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003620rm -f conftest.err conftest.$ac_objext \
3621 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003622LIBS=$ac_check_lib_save_LIBS
3623fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003624echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003625echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3626if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003627 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003628fi
3629
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003630 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003631 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003632echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3633if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003635else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003636 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003637LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003638cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003639/* confdefs.h. */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003644
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003645/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003646#ifdef __cplusplus
3647extern "C"
3648#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003649/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003650 builtin and then its argument prototype would still apply. */
3651char dnet_ntoa ();
3652int
3653main ()
3654{
3655dnet_ntoa ();
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003662 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003663 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003668 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003677 (eval $ac_try) 2>&5
3678 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003680 (exit $ac_status); }; }; then
3681 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003682else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003683 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003684sed 's/^/| /' conftest.$ac_ext >&5
3685
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003686ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003687fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003688rm -f conftest.err conftest.$ac_objext \
3689 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003690LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003691fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003692echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003693echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3694if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003695 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003696fi
3697
3698 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003699fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003700rm -f conftest.err conftest.$ac_objext \
3701 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003702 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003703
3704 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3705 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003706 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003707 # needs -lnsl.
3708 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003709 # on Irix 5.2, according to T.E. Dickey.
3710 # The functions gethostbyname, getservbyname, and inet_addr are
3711 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003712 echo "$as_me:$LINENO: checking for gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003713echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3714if test "${ac_cv_func_gethostbyname+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003716else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003717 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003718/* confdefs.h. */
3719_ACEOF
3720cat confdefs.h >>conftest.$ac_ext
3721cat >>conftest.$ac_ext <<_ACEOF
3722/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003723/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3725#define gethostbyname innocuous_gethostbyname
3726
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003727/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003728 which can conflict with char gethostbyname (); below.
3729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3730 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003731
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003732#ifdef __STDC__
3733# include <limits.h>
3734#else
3735# include <assert.h>
3736#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003737
3738#undef gethostbyname
3739
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003740/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003741#ifdef __cplusplus
3742extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003743{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003744#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003745/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003746 builtin and then its argument prototype would still apply. */
3747char gethostbyname ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003748/* The GNU C library defines this for functions which it implements
3749 to always fail with ENOSYS. Some functions are actually named
3750 something starting with __ and the normal name is an alias. */
3751#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3752choke me
3753#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003754char (*f) () = gethostbyname;
3755#endif
3756#ifdef __cplusplus
3757}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003758#endif
3759
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003760int
3761main ()
3762{
3763return f != gethostbyname;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003764 ;
3765 return 0;
3766}
3767_ACEOF
3768rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003770 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003771 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003772 grep -v '^ *+' conftest.er1 >conftest.err
3773 rm -f conftest.er1
3774 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003776 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003785 (eval $ac_try) 2>&5
3786 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003788 (exit $ac_status); }; }; then
3789 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003790else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003791 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003792sed 's/^/| /' conftest.$ac_ext >&5
3793
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003794ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003795fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003796rm -f conftest.err conftest.$ac_objext \
3797 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003798fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003799echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003800echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003801
3802 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003803 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003804echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3805if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003807else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003808 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003809LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003810cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003811/* confdefs.h. */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003816
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003817/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003818#ifdef __cplusplus
3819extern "C"
3820#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003821/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003822 builtin and then its argument prototype would still apply. */
3823char gethostbyname ();
3824int
3825main ()
3826{
3827gethostbyname ();
3828 ;
3829 return 0;
3830}
3831_ACEOF
3832rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003834 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003835 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003840 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; } &&
3847 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003849 (eval $ac_try) 2>&5
3850 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003852 (exit $ac_status); }; }; then
3853 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003854else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003855 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003856sed 's/^/| /' conftest.$ac_ext >&5
3857
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003858ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003859fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003860rm -f conftest.err conftest.$ac_objext \
3861 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003862LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003863fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003864echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003865echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3866if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003868fi
3869
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003870 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00003871 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003872echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3873if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876 ac_check_lib_save_LIBS=$LIBS
3877LIBS="-lbsd $LIBS"
3878cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003879/* confdefs.h. */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
3883/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003884
3885/* Override any gcc2 internal prototype to avoid an error. */
3886#ifdef __cplusplus
3887extern "C"
3888#endif
3889/* We use char because int might match the return type of a gcc2
3890 builtin and then its argument prototype would still apply. */
3891char gethostbyname ();
3892int
3893main ()
3894{
3895gethostbyname ();
3896 ;
3897 return 0;
3898}
3899_ACEOF
3900rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003902 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003903 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003908 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 (eval $ac_try) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; } &&
3915 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003917 (eval $ac_try) 2>&5
3918 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003920 (exit $ac_status); }; }; then
3921 ac_cv_lib_bsd_gethostbyname=yes
3922else
3923 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003924sed 's/^/| /' conftest.$ac_ext >&5
3925
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003926ac_cv_lib_bsd_gethostbyname=no
3927fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003928rm -f conftest.err conftest.$ac_objext \
3929 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003930LIBS=$ac_check_lib_save_LIBS
3931fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003932echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003933echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3934if test $ac_cv_lib_bsd_gethostbyname = yes; then
3935 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3936fi
3937
3938 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003939 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003940
3941 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003942 # socket/setsockopt and other routines are undefined under SCO ODT
3943 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003944 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003945 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003946 # must be given before -lnsl if both are needed. We assume that
3947 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003948 echo "$as_me:$LINENO: checking for connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003949echo $ECHO_N "checking for connect... $ECHO_C" >&6
3950if test "${ac_cv_func_connect+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003952else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003953 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003954/* confdefs.h. */
3955_ACEOF
3956cat confdefs.h >>conftest.$ac_ext
3957cat >>conftest.$ac_ext <<_ACEOF
3958/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003959/* Define connect to an innocuous variant, in case <limits.h> declares connect.
3960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3961#define connect innocuous_connect
3962
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003963/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003964 which can conflict with char connect (); below.
3965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003967
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003968#ifdef __STDC__
3969# include <limits.h>
3970#else
3971# include <assert.h>
3972#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003973
3974#undef connect
3975
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003976/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003977#ifdef __cplusplus
3978extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003979{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003980#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003981/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003982 builtin and then its argument prototype would still apply. */
3983char connect ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003984/* The GNU C library defines this for functions which it implements
3985 to always fail with ENOSYS. Some functions are actually named
3986 something starting with __ and the normal name is an alias. */
3987#if defined (__stub_connect) || defined (__stub___connect)
3988choke me
3989#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003990char (*f) () = connect;
3991#endif
3992#ifdef __cplusplus
3993}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003994#endif
3995
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003996int
3997main ()
3998{
3999return f != connect;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004000 ;
4001 return 0;
4002}
4003_ACEOF
4004rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004006 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004007 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004012 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004021 (eval $ac_try) 2>&5
4022 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004024 (exit $ac_status); }; }; then
4025 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004026else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004027 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004028sed 's/^/| /' conftest.$ac_ext >&5
4029
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004030ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004031fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004032rm -f conftest.err conftest.$ac_objext \
4033 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004034fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004035echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004036echo "${ECHO_T}$ac_cv_func_connect" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004037
4038 if test $ac_cv_func_connect = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004039 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004040echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4041if test "${ac_cv_lib_socket_connect+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004043else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004044 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004045LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004046cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004047/* confdefs.h. */
4048_ACEOF
4049cat confdefs.h >>conftest.$ac_ext
4050cat >>conftest.$ac_ext <<_ACEOF
4051/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004052
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004053/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004054#ifdef __cplusplus
4055extern "C"
4056#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004057/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004058 builtin and then its argument prototype would still apply. */
4059char connect ();
4060int
4061main ()
4062{
4063connect ();
4064 ;
4065 return 0;
4066}
4067_ACEOF
4068rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004070 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004071 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004076 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004085 (eval $ac_try) 2>&5
4086 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004088 (exit $ac_status); }; }; then
4089 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004090else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004091 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004092sed 's/^/| /' conftest.$ac_ext >&5
4093
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004094ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004095fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004096rm -f conftest.err conftest.$ac_objext \
4097 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004098LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004099fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004100echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004101echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4102if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004103 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004104fi
4105
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004106 fi
4107
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004108 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004109 echo "$as_me:$LINENO: checking for remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004110echo $ECHO_N "checking for remove... $ECHO_C" >&6
4111if test "${ac_cv_func_remove+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004113else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004114 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004115/* confdefs.h. */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
4119/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004120/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4122#define remove innocuous_remove
4123
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004124/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004125 which can conflict with char remove (); below.
4126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004128
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004129#ifdef __STDC__
4130# include <limits.h>
4131#else
4132# include <assert.h>
4133#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004134
4135#undef remove
4136
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004137/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004138#ifdef __cplusplus
4139extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004140{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004141#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004142/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004143 builtin and then its argument prototype would still apply. */
4144char remove ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004145/* The GNU C library defines this for functions which it implements
4146 to always fail with ENOSYS. Some functions are actually named
4147 something starting with __ and the normal name is an alias. */
4148#if defined (__stub_remove) || defined (__stub___remove)
4149choke me
4150#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004151char (*f) () = remove;
4152#endif
4153#ifdef __cplusplus
4154}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004155#endif
4156
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004157int
4158main ()
4159{
4160return f != remove;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004161 ;
4162 return 0;
4163}
4164_ACEOF
4165rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004167 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004168 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004173 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; } &&
4180 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004182 (eval $ac_try) 2>&5
4183 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004185 (exit $ac_status); }; }; then
4186 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004187else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004188 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004189sed 's/^/| /' conftest.$ac_ext >&5
4190
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004191ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004192fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004193rm -f conftest.err conftest.$ac_objext \
4194 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004195fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004196echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004197echo "${ECHO_T}$ac_cv_func_remove" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004198
4199 if test $ac_cv_func_remove = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004200 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004201echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4202if test "${ac_cv_lib_posix_remove+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004204else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004205 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004206LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004207cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004208/* confdefs.h. */
4209_ACEOF
4210cat confdefs.h >>conftest.$ac_ext
4211cat >>conftest.$ac_ext <<_ACEOF
4212/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004213
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004214/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004215#ifdef __cplusplus
4216extern "C"
4217#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004218/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004219 builtin and then its argument prototype would still apply. */
4220char remove ();
4221int
4222main ()
4223{
4224remove ();
4225 ;
4226 return 0;
4227}
4228_ACEOF
4229rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004231 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004232 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004237 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; } &&
4244 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004246 (eval $ac_try) 2>&5
4247 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004249 (exit $ac_status); }; }; then
4250 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004251else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004252 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004253sed 's/^/| /' conftest.$ac_ext >&5
4254
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004255ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004256fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004257rm -f conftest.err conftest.$ac_objext \
4258 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004259LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004260fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004261echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004262echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4263if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004265fi
4266
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004267 fi
4268
4269 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004270 echo "$as_me:$LINENO: checking for shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004271echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4272if test "${ac_cv_func_shmat+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004274else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004275 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004276/* confdefs.h. */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004281/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4283#define shmat innocuous_shmat
4284
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004285/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004286 which can conflict with char shmat (); below.
4287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004289
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004290#ifdef __STDC__
4291# include <limits.h>
4292#else
4293# include <assert.h>
4294#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004295
4296#undef shmat
4297
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004298/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004299#ifdef __cplusplus
4300extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004301{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004302#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004303/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004304 builtin and then its argument prototype would still apply. */
4305char shmat ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004306/* The GNU C library defines this for functions which it implements
4307 to always fail with ENOSYS. Some functions are actually named
4308 something starting with __ and the normal name is an alias. */
4309#if defined (__stub_shmat) || defined (__stub___shmat)
4310choke me
4311#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004312char (*f) () = shmat;
4313#endif
4314#ifdef __cplusplus
4315}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004316#endif
4317
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004318int
4319main ()
4320{
4321return f != shmat;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004322 ;
4323 return 0;
4324}
4325_ACEOF
4326rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004328 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004329 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004334 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004343 (eval $ac_try) 2>&5
4344 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004346 (exit $ac_status); }; }; then
4347 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004348else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004349 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004350sed 's/^/| /' conftest.$ac_ext >&5
4351
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004352ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004353fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004354rm -f conftest.err conftest.$ac_objext \
4355 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004356fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004357echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004358echo "${ECHO_T}$ac_cv_func_shmat" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004359
4360 if test $ac_cv_func_shmat = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004361 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004362echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4363if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004365else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004366 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004367LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004368cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004369/* confdefs.h. */
4370_ACEOF
4371cat confdefs.h >>conftest.$ac_ext
4372cat >>conftest.$ac_ext <<_ACEOF
4373/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004374
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004375/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004376#ifdef __cplusplus
4377extern "C"
4378#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004379/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004380 builtin and then its argument prototype would still apply. */
4381char shmat ();
4382int
4383main ()
4384{
4385shmat ();
4386 ;
4387 return 0;
4388}
4389_ACEOF
4390rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004392 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004393 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004398 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 (eval $ac_try) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; } &&
4405 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004407 (eval $ac_try) 2>&5
4408 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004410 (exit $ac_status); }; }; then
4411 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004412else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004413 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004414sed 's/^/| /' conftest.$ac_ext >&5
4415
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004416ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004417fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004418rm -f conftest.err conftest.$ac_objext \
4419 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004420LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004421fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004422echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004423echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4424if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004426fi
4427
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004428 fi
4429 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004430
4431 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004432 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004433 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4434 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4435 # check for ICE first), but we must link in the order -lSM -lICE or
4436 # we get undefined symbols. So assume we have SM if we have ICE.
4437 # These have to be linked with before -lX11, unlike the other
4438 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004439 # John Interrante, Karl Berry
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004440 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004441echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4442if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004444else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004445 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00004446LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004447cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004448/* confdefs.h. */
4449_ACEOF
4450cat confdefs.h >>conftest.$ac_ext
4451cat >>conftest.$ac_ext <<_ACEOF
4452/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004453
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004454/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004455#ifdef __cplusplus
4456extern "C"
4457#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004458/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004459 builtin and then its argument prototype would still apply. */
4460char IceConnectionNumber ();
4461int
4462main ()
4463{
4464IceConnectionNumber ();
4465 ;
4466 return 0;
4467}
4468_ACEOF
4469rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004471 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004472 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004477 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004486 (eval $ac_try) 2>&5
4487 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004489 (exit $ac_status); }; }; then
4490 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004491else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004492 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004493sed 's/^/| /' conftest.$ac_ext >&5
4494
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004495ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004496fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004497rm -f conftest.err conftest.$ac_objext \
4498 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004499LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004500fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004501echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004502echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4503if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004504 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004505fi
4506
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004507 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004508
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004509fi
4510
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004511for ac_prog in flex lex
4512do
4513 # Extract the first word of "$ac_prog", so it can be a program name with args.
4514set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004515echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517if test "${ac_cv_prog_LEX+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004519else
4520 if test -n "$LEX"; then
4521 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4522else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530 ac_cv_prog_LEX="$ac_prog"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4533 fi
4534done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004535done
4536
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004537fi
4538fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004539LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004540if test -n "$LEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004541 echo "$as_me:$LINENO: result: $LEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004542echo "${ECHO_T}$LEX" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004543else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004544 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004545echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004546fi
4547
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004548 test -n "$LEX" && break
4549done
4550test -n "$LEX" || LEX=":"
4551
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004552if test -z "$LEXLIB"
4553then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004554 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004555echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4556if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004558else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004559 ac_check_lib_save_LIBS=$LIBS
4560LIBS="-lfl $LIBS"
4561cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004562/* confdefs.h. */
4563_ACEOF
4564cat confdefs.h >>conftest.$ac_ext
4565cat >>conftest.$ac_ext <<_ACEOF
4566/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004567
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004568/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004569#ifdef __cplusplus
4570extern "C"
4571#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004572/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004573 builtin and then its argument prototype would still apply. */
4574char yywrap ();
4575int
4576main ()
4577{
4578yywrap ();
4579 ;
4580 return 0;
4581}
4582_ACEOF
4583rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004585 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004586 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004591 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004600 (eval $ac_try) 2>&5
4601 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004603 (exit $ac_status); }; }; then
4604 ac_cv_lib_fl_yywrap=yes
4605else
4606 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004607sed 's/^/| /' conftest.$ac_ext >&5
4608
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004609ac_cv_lib_fl_yywrap=no
4610fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004611rm -f conftest.err conftest.$ac_objext \
4612 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004613LIBS=$ac_check_lib_save_LIBS
4614fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004615echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004616echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4617if test $ac_cv_lib_fl_yywrap = yes; then
4618 LEXLIB="-lfl"
4619else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004620 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004621echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4622if test "${ac_cv_lib_l_yywrap+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624else
4625 ac_check_lib_save_LIBS=$LIBS
4626LIBS="-ll $LIBS"
4627cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004628/* confdefs.h. */
4629_ACEOF
4630cat confdefs.h >>conftest.$ac_ext
4631cat >>conftest.$ac_ext <<_ACEOF
4632/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004633
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004634/* Override any gcc2 internal prototype to avoid an error. */
4635#ifdef __cplusplus
4636extern "C"
4637#endif
4638/* We use char because int might match the return type of a gcc2
4639 builtin and then its argument prototype would still apply. */
4640char yywrap ();
4641int
4642main ()
4643{
4644yywrap ();
4645 ;
4646 return 0;
4647}
4648_ACEOF
4649rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004651 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004652 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004653 grep -v '^ *+' conftest.er1 >conftest.err
4654 rm -f conftest.er1
4655 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004657 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; } &&
4664 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004666 (eval $ac_try) 2>&5
4667 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004669 (exit $ac_status); }; }; then
4670 ac_cv_lib_l_yywrap=yes
4671else
4672 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004673sed 's/^/| /' conftest.$ac_ext >&5
4674
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004675ac_cv_lib_l_yywrap=no
4676fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004677rm -f conftest.err conftest.$ac_objext \
4678 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004679LIBS=$ac_check_lib_save_LIBS
4680fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004681echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004682echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4683if test $ac_cv_lib_l_yywrap = yes; then
4684 LEXLIB="-ll"
4685fi
4686
4687fi
4688
4689fi
4690
4691if test "x$LEX" != "x:"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004692 echo "$as_me:$LINENO: checking lex output file root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004693echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4694if test "${ac_cv_prog_lex_root+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696else
4697 # The minimal lex program is just a single line: %%. But some broken lexes
4698# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004699cat >conftest.l <<_ACEOF
4700%%
4701%%
4702_ACEOF
4703{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4704 (eval $LEX conftest.l) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004708if test -f lex.yy.c; then
4709 ac_cv_prog_lex_root=lex.yy
4710elif test -f lexyy.c; then
4711 ac_cv_prog_lex_root=lexyy
4712else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004713 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004714echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4715 { (exit 1); exit 1; }; }
4716fi
4717fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004718echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004719echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004720rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004721LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4722
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004723echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004724echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4725if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4727else
4728 # POSIX says lex can declare yytext either as a pointer or an array; the
4729# default is implementation-dependent. Figure out which it is, since
4730# not all implementations provide the %pointer and %array declarations.
4731ac_cv_prog_lex_yytext_pointer=no
4732echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4733ac_save_LIBS=$LIBS
4734LIBS="$LIBS $LEXLIB"
4735cat >conftest.$ac_ext <<_ACEOF
4736`cat $LEX_OUTPUT_ROOT.c`
4737_ACEOF
4738rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004740 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004741 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004746 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004755 (eval $ac_try) 2>&5
4756 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004758 (exit $ac_status); }; }; then
4759 ac_cv_prog_lex_yytext_pointer=yes
4760else
4761 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004762sed 's/^/| /' conftest.$ac_ext >&5
4763
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004764fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004765rm -f conftest.err conftest.$ac_objext \
4766 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004767LIBS=$ac_save_LIBS
4768rm -f "${LEX_OUTPUT_ROOT}.c"
4769
4770fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004771echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004772echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4773if test $ac_cv_prog_lex_yytext_pointer = yes; then
4774
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004775cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004776#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004777_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004778
4779fi
4780
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004781fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004782
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004783for ac_prog in $LEX flex lex
4784do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004785 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004786set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004787echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789if test "${ac_cv_prog_XLEX+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004791else
4792 if test -n "$XLEX"; then
4793 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4794else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796for as_dir in $PATH
4797do
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802 ac_cv_prog_XLEX="$ac_prog"
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4805 fi
4806done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004807done
4808
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004809fi
4810fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004811XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004812if test -n "$XLEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004813 echo "$as_me:$LINENO: result: $XLEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004814echo "${ECHO_T}$XLEX" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004815else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004816 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004817echo "${ECHO_T}no" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004818fi
4819
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004820 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004821done
4822test -n "$XLEX" || XLEX="none"
4823
4824if test "$XLEX" = "none"
4825then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004826 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004827echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4828 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004829fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004830
Mike McCormackc068f672004-03-16 03:11:39 +00004831for ac_prog in bison
4832do
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834set dummy $ac_prog; ac_word=$2
4835echo "$as_me:$LINENO: checking for $ac_word" >&5
4836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4837if test "${ac_cv_prog_BISON+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839else
4840 if test -n "$BISON"; then
4841 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4842else
4843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844for as_dir in $PATH
4845do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_BISON="$ac_prog"
4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4853 fi
4854done
4855done
4856
4857fi
4858fi
4859BISON=$ac_cv_prog_BISON
4860if test -n "$BISON"; then
4861 echo "$as_me:$LINENO: result: $BISON" >&5
4862echo "${ECHO_T}$BISON" >&6
4863else
4864 echo "$as_me:$LINENO: result: no" >&5
4865echo "${ECHO_T}no" >&6
4866fi
4867
4868 test -n "$BISON" && break
4869done
4870test -n "$BISON" || BISON="none"
4871
4872if test "$BISON" = "none"
4873then
4874 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4875echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4876 { (exit 1); exit 1; }; }
4877fi
4878
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004879if test -n "$ac_tool_prefix"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004880 for ac_prog in gas as
4881 do
4882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Marcus Meissner1d4db782003-01-09 00:46:54 +00004884echo "$as_me:$LINENO: checking for $ac_word" >&5
4885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886if test "${ac_cv_prog_AS+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888else
4889 if test -n "$AS"; then
4890 ac_cv_prog_AS="$AS" # Let the user override the test.
4891else
4892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893for as_dir in $PATH
4894do
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004899 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00004900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4902 fi
4903done
4904done
4905
4906fi
4907fi
4908AS=$ac_cv_prog_AS
4909if test -n "$AS"; then
4910 echo "$as_me:$LINENO: result: $AS" >&5
4911echo "${ECHO_T}$AS" >&6
4912else
4913 echo "$as_me:$LINENO: result: no" >&5
4914echo "${ECHO_T}no" >&6
4915fi
4916
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004917 test -n "$AS" && break
4918 done
Marcus Meissner1d4db782003-01-09 00:46:54 +00004919fi
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004920if test -z "$AS"; then
Marcus Meissner1d4db782003-01-09 00:46:54 +00004921 ac_ct_AS=$AS
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004922 for ac_prog in gas as
4923do
4924 # Extract the first word of "$ac_prog", so it can be a program name with args.
4925set dummy $ac_prog; ac_word=$2
Marcus Meissner1d4db782003-01-09 00:46:54 +00004926echo "$as_me:$LINENO: checking for $ac_word" >&5
4927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4928if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930else
4931 if test -n "$ac_ct_AS"; then
4932 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4933else
4934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH
4936do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004941 ac_cv_prog_ac_ct_AS="$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00004942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4944 fi
4945done
4946done
4947
Marcus Meissner1d4db782003-01-09 00:46:54 +00004948fi
4949fi
4950ac_ct_AS=$ac_cv_prog_ac_ct_AS
4951if test -n "$ac_ct_AS"; then
4952 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4953echo "${ECHO_T}$ac_ct_AS" >&6
4954else
4955 echo "$as_me:$LINENO: result: no" >&5
4956echo "${ECHO_T}no" >&6
4957fi
4958
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004959 test -n "$ac_ct_AS" && break
4960done
4961test -n "$ac_ct_AS" || ac_ct_AS="as"
4962
Marcus Meissner1d4db782003-01-09 00:46:54 +00004963 AS=$ac_ct_AS
Marcus Meissner1d4db782003-01-09 00:46:54 +00004964fi
4965
4966if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00004967 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4968set dummy ${ac_tool_prefix}ld; ac_word=$2
4969echo "$as_me:$LINENO: checking for $ac_word" >&5
4970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971if test "${ac_cv_prog_LD+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974 if test -n "$LD"; then
4975 ac_cv_prog_LD="$LD" # Let the user override the test.
4976else
4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_LD="${ac_tool_prefix}ld"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988done
4989done
4990
4991fi
4992fi
4993LD=$ac_cv_prog_LD
4994if test -n "$LD"; then
4995 echo "$as_me:$LINENO: result: $LD" >&5
4996echo "${ECHO_T}$LD" >&6
4997else
4998 echo "$as_me:$LINENO: result: no" >&5
4999echo "${ECHO_T}no" >&6
5000fi
5001
5002fi
5003if test -z "$ac_cv_prog_LD"; then
5004 ac_ct_LD=$LD
5005 # Extract the first word of "ld", so it can be a program name with args.
5006set dummy ld; ac_word=$2
5007echo "$as_me:$LINENO: checking for $ac_word" >&5
5008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012 if test -n "$ac_ct_LD"; then
5013 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5014else
5015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016for as_dir in $PATH
5017do
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022 ac_cv_prog_ac_ct_LD="ld"
5023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5025 fi
5026done
5027done
5028
5029 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5030fi
5031fi
5032ac_ct_LD=$ac_cv_prog_ac_ct_LD
5033if test -n "$ac_ct_LD"; then
5034 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5035echo "${ECHO_T}$ac_ct_LD" >&6
5036else
5037 echo "$as_me:$LINENO: result: no" >&5
5038echo "${ECHO_T}no" >&6
5039fi
5040
5041 LD=$ac_ct_LD
5042else
5043 LD="$ac_cv_prog_LD"
5044fi
5045
5046if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005047 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5048set dummy ${ac_tool_prefix}ar; ac_word=$2
5049echo "$as_me:$LINENO: checking for $ac_word" >&5
5050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5051if test "${ac_cv_prog_AR+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053else
5054 if test -n "$AR"; then
5055 ac_cv_prog_AR="$AR" # Let the user override the test.
5056else
5057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058for as_dir in $PATH
5059do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_AR="${ac_tool_prefix}ar"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068done
5069done
5070
5071fi
5072fi
5073AR=$ac_cv_prog_AR
5074if test -n "$AR"; then
5075 echo "$as_me:$LINENO: result: $AR" >&5
5076echo "${ECHO_T}$AR" >&6
5077else
5078 echo "$as_me:$LINENO: result: no" >&5
5079echo "${ECHO_T}no" >&6
5080fi
5081
5082fi
5083if test -z "$ac_cv_prog_AR"; then
5084 ac_ct_AR=$AR
5085 # Extract the first word of "ar", so it can be a program name with args.
5086set dummy ar; ac_word=$2
5087echo "$as_me:$LINENO: checking for $ac_word" >&5
5088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5089if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091else
5092 if test -n "$ac_ct_AR"; then
5093 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5094else
5095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096for as_dir in $PATH
5097do
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_ac_ct_AR="ar"
5103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5105 fi
5106done
5107done
5108
5109 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5110fi
5111fi
5112ac_ct_AR=$ac_cv_prog_ac_ct_AR
5113if test -n "$ac_ct_AR"; then
5114 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5115echo "${ECHO_T}$ac_ct_AR" >&6
5116else
5117 echo "$as_me:$LINENO: result: no" >&5
5118echo "${ECHO_T}no" >&6
5119fi
5120
5121 AR=$ac_ct_AR
5122else
5123 AR="$ac_cv_prog_AR"
5124fi
5125
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005126if test -n "$ac_tool_prefix"; then
5127 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5128set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005129echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5131if test "${ac_cv_prog_RANLIB+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005133else
5134 if test -n "$RANLIB"; then
5135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5136else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138for as_dir in $PATH
5139do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5147 fi
5148done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005149done
5150
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005151fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005152fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005153RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005154if test -n "$RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005155 echo "$as_me:$LINENO: result: $RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005156echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005157else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005158 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005159echo "${ECHO_T}no" >&6
5160fi
5161
5162fi
5163if test -z "$ac_cv_prog_RANLIB"; then
5164 ac_ct_RANLIB=$RANLIB
5165 # Extract the first word of "ranlib", so it can be a program name with args.
5166set dummy ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005167echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171else
5172 if test -n "$ac_ct_RANLIB"; then
5173 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5174else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176for as_dir in $PATH
5177do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182 ac_cv_prog_ac_ct_RANLIB="ranlib"
5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5185 fi
5186done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005187done
5188
5189 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5190fi
5191fi
5192ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5193if test -n "$ac_ct_RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005194 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005195echo "${ECHO_T}$ac_ct_RANLIB" >&6
5196else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005197 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005198echo "${ECHO_T}no" >&6
5199fi
5200
5201 RANLIB=$ac_ct_RANLIB
5202else
5203 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005204fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005205
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005206if test -n "$ac_tool_prefix"; then
5207 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5208set dummy ${ac_tool_prefix}strip; ac_word=$2
5209echo "$as_me:$LINENO: checking for $ac_word" >&5
5210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211if test "${ac_cv_prog_STRIP+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214 if test -n "$STRIP"; then
5215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5216else
5217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218for as_dir in $PATH
5219do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5227 fi
5228done
5229done
5230
5231fi
5232fi
5233STRIP=$ac_cv_prog_STRIP
5234if test -n "$STRIP"; then
5235 echo "$as_me:$LINENO: result: $STRIP" >&5
5236echo "${ECHO_T}$STRIP" >&6
5237else
5238 echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6
5240fi
5241
5242fi
5243if test -z "$ac_cv_prog_STRIP"; then
5244 ac_ct_STRIP=$STRIP
5245 # Extract the first word of "strip", so it can be a program name with args.
5246set dummy strip; ac_word=$2
5247echo "$as_me:$LINENO: checking for $ac_word" >&5
5248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5249if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251else
5252 if test -n "$ac_ct_STRIP"; then
5253 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5254else
5255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256for as_dir in $PATH
5257do
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262 ac_cv_prog_ac_ct_STRIP="strip"
5263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5265 fi
5266done
5267done
5268
5269 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5270fi
5271fi
5272ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5273if test -n "$ac_ct_STRIP"; then
5274 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5275echo "${ECHO_T}$ac_ct_STRIP" >&6
5276else
5277 echo "$as_me:$LINENO: result: no" >&5
5278echo "${ECHO_T}no" >&6
5279fi
5280
5281 STRIP=$ac_ct_STRIP
5282else
5283 STRIP="$ac_cv_prog_STRIP"
5284fi
5285
5286if test -n "$ac_tool_prefix"; then
5287 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5288set dummy ${ac_tool_prefix}windres; ac_word=$2
5289echo "$as_me:$LINENO: checking for $ac_word" >&5
5290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5291if test "${ac_cv_prog_WINDRES+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293else
5294 if test -n "$WINDRES"; then
5295 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5296else
5297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298for as_dir in $PATH
5299do
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5307 fi
5308done
5309done
5310
5311fi
5312fi
5313WINDRES=$ac_cv_prog_WINDRES
5314if test -n "$WINDRES"; then
5315 echo "$as_me:$LINENO: result: $WINDRES" >&5
5316echo "${ECHO_T}$WINDRES" >&6
5317else
5318 echo "$as_me:$LINENO: result: no" >&5
5319echo "${ECHO_T}no" >&6
5320fi
5321
5322fi
5323if test -z "$ac_cv_prog_WINDRES"; then
5324 ac_ct_WINDRES=$WINDRES
5325 # Extract the first word of "windres", so it can be a program name with args.
5326set dummy windres; ac_word=$2
5327echo "$as_me:$LINENO: checking for $ac_word" >&5
5328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5329if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331else
5332 if test -n "$ac_ct_WINDRES"; then
5333 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5334else
5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_ac_ct_WINDRES="windres"
5343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5345 fi
5346done
5347done
5348
5349 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5350fi
5351fi
5352ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5353if test -n "$ac_ct_WINDRES"; then
5354 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5355echo "${ECHO_T}$ac_ct_WINDRES" >&6
5356else
5357 echo "$as_me:$LINENO: result: no" >&5
5358echo "${ECHO_T}no" >&6
5359fi
5360
5361 WINDRES=$ac_ct_WINDRES
5362else
5363 WINDRES="$ac_cv_prog_WINDRES"
5364fi
5365
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005366echo "$as_me:$LINENO: checking whether ln -s works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005367echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5368LN_S=$as_ln_s
5369if test "$LN_S" = "ln -s"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005370 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005371echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00005372else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005373 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005374echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00005375fi
5376
Alexandre Julliarddf234a92002-05-22 02:10:39 +00005377echo "$as_me:$LINENO: checking whether ln works" >&5
5378echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5379rm -f conf$$ conf$$.file
5380echo >conf$$.file
5381if ln conf$$.file conf$$ 2>/dev/null; then
5382 LN=ln
5383
5384 echo "$as_me:$LINENO: result: yes" >&5
5385echo "${ECHO_T}yes" >&6
5386else
5387 LN="cp -p"
5388
5389 echo "$as_me:$LINENO: result: no, using $LN" >&5
5390echo "${ECHO_T}no, using $LN" >&6
5391fi
5392rm -f conf$$ conf$$.file
Alexandre Julliardc6264912004-08-16 20:09:37 +00005393echo "$as_me:$LINENO: checking for egrep" >&5
5394echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5395if test "${ac_cv_prog_egrep+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397else
5398 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5399 then ac_cv_prog_egrep='grep -E'
5400 else ac_cv_prog_egrep='egrep'
5401 fi
5402fi
5403echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5404echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5405 EGREP=$ac_cv_prog_egrep
5406
5407
James Juranffe6b761999-06-12 08:21:57 +00005408# Extract the first word of "ldconfig", so it can be a program name with args.
5409set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005410echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5412if test "${ac_cv_path_LDCONFIG+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00005414else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005415 case $LDCONFIG in
5416 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00005417 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5418 ;;
5419 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00005421for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005422do
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5430 fi
5431done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005432done
5433
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005434 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00005435 ;;
5436esac
5437fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005438LDCONFIG=$ac_cv_path_LDCONFIG
5439
James Juranffe6b761999-06-12 08:21:57 +00005440if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005441 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005442echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00005443else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005444 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005445echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00005446fi
5447
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005448# Find a good install program. We prefer a C program (faster),
5449# so one script is as good as another. But avoid the broken or
5450# incompatible versions:
5451# SysV /etc/install, /usr/sbin/install
5452# SunOS /usr/etc/install
5453# IRIX /sbin/install
5454# AIX /bin/install
5455# AmigaOS /C/install, which installs bootblocks on floppy discs
5456# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5457# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5458# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00005459# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005460# ./install, which can be erroneously created by make from ./install.sh.
5461echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5462echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5463if test -z "$INSTALL"; then
5464if test "${ac_cv_path_install+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466else
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 # Account for people who put trailing slashes in PATH elements.
5473case $as_dir/ in
5474 ./ | .// | /cC/* | \
5475 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005476 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005477 /usr/ucb/* ) ;;
5478 *)
5479 # OSF1 and SCO ODT 3.0 have their own names for install.
5480 # Don't use installbsd from OSF since it installs stuff as root
5481 # by default.
5482 for ac_prog in ginstall scoinst install; do
5483 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliard875927f2004-01-02 01:55:29 +00005484 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5485 if test $ac_prog = install &&
5486 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5487 # AIX install. It has an incompatible calling convention.
5488 :
5489 elif test $ac_prog = install &&
5490 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5491 # program-specific install script used by HP pwplus--don't use.
5492 :
5493 else
5494 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5495 break 3
5496 fi
5497 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005498 done
5499 done
5500 ;;
5501esac
5502done
5503
5504
5505fi
5506 if test "${ac_cv_path_install+set}" = set; then
5507 INSTALL=$ac_cv_path_install
5508 else
5509 # As a last resort, use the slow shell script. We don't cache a
5510 # path for INSTALL within a source directory, because that will
5511 # break other packages using the cache if that directory is
5512 # removed, or if the path is relative.
5513 INSTALL=$ac_install_sh
5514 fi
5515fi
5516echo "$as_me:$LINENO: result: $INSTALL" >&5
5517echo "${ECHO_T}$INSTALL" >&6
5518
5519# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5520# It thinks the first close brace ends the variable substitution.
5521test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5522
5523test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5524
5525test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5526
5527case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00005528 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005529 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5530esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005531
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005532for ac_prog in lclint lint
5533do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005534 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005535set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005536echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538if test "${ac_cv_prog_LINT+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005540else
5541 if test -n "$LINT"; then
5542 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5543else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_LINT="$ac_prog"
5552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005556done
5557
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005558fi
5559fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005560LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005561if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005562 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005563echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005564else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005565 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005566echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005567fi
5568
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005569 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005570done
5571
5572if test "$LINT" = "lint"
5573then
5574 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5575 fi
5576
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005577
5578
Vincent BĂ©ron1d8cb6e2002-11-23 01:20:02 +00005579for ac_prog in docbook2html db2html
5580do
5581 # Extract the first word of "$ac_prog", so it can be a program name with args.
5582set dummy $ac_prog; ac_word=$2
5583echo "$as_me:$LINENO: checking for $ac_word" >&5
5584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5585if test "${ac_cv_prog_DB2HTML+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5587else
5588 if test -n "$DB2HTML"; then
5589 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5590else
5591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592for as_dir in $PATH
5593do
5594 IFS=$as_save_IFS
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598 ac_cv_prog_DB2HTML="$ac_prog"
5599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5600 break 2
5601 fi
5602done
5603done
5604
5605fi
5606fi
5607DB2HTML=$ac_cv_prog_DB2HTML
5608if test -n "$DB2HTML"; then
5609 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5610echo "${ECHO_T}$DB2HTML" >&6
5611else
5612 echo "$as_me:$LINENO: result: no" >&5
5613echo "${ECHO_T}no" >&6
5614fi
5615
5616 test -n "$DB2HTML" && break
5617done
5618test -n "$DB2HTML" || DB2HTML="false"
5619
Vincent BĂ©ron1d8cb6e2002-11-23 01:20:02 +00005620for ac_prog in docbook2pdf db2pdf
5621do
5622 # Extract the first word of "$ac_prog", so it can be a program name with args.
5623set dummy $ac_prog; ac_word=$2
5624echo "$as_me:$LINENO: checking for $ac_word" >&5
5625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5626if test "${ac_cv_prog_DB2PDF+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
5628else
5629 if test -n "$DB2PDF"; then
5630 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5631else
5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633for as_dir in $PATH
5634do
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639 ac_cv_prog_DB2PDF="$ac_prog"
5640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 break 2
5642 fi
5643done
5644done
5645
5646fi
5647fi
5648DB2PDF=$ac_cv_prog_DB2PDF
5649if test -n "$DB2PDF"; then
5650 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5651echo "${ECHO_T}$DB2PDF" >&6
5652else
5653 echo "$as_me:$LINENO: result: no" >&5
5654echo "${ECHO_T}no" >&6
5655fi
5656
5657 test -n "$DB2PDF" && break
5658done
5659test -n "$DB2PDF" || DB2PDF="false"
5660
Vincent BĂ©ron1d8cb6e2002-11-23 01:20:02 +00005661for ac_prog in docbook2ps db2ps
5662do
5663 # Extract the first word of "$ac_prog", so it can be a program name with args.
5664set dummy $ac_prog; ac_word=$2
5665echo "$as_me:$LINENO: checking for $ac_word" >&5
5666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5667if test "${ac_cv_prog_DB2PS+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
5670 if test -n "$DB2PS"; then
5671 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5672else
5673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674for as_dir in $PATH
5675do
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_prog_DB2PS="$ac_prog"
5681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5683 fi
5684done
5685done
5686
5687fi
5688fi
5689DB2PS=$ac_cv_prog_DB2PS
5690if test -n "$DB2PS"; then
5691 echo "$as_me:$LINENO: result: $DB2PS" >&5
5692echo "${ECHO_T}$DB2PS" >&6
5693else
5694 echo "$as_me:$LINENO: result: no" >&5
5695echo "${ECHO_T}no" >&6
5696fi
5697
5698 test -n "$DB2PS" && break
5699done
5700test -n "$DB2PS" || DB2PS="false"
5701
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005702for ac_prog in docbook2txt db2txt
5703do
5704 # Extract the first word of "$ac_prog", so it can be a program name with args.
5705set dummy $ac_prog; ac_word=$2
5706echo "$as_me:$LINENO: checking for $ac_word" >&5
5707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708if test "${ac_cv_prog_DB2TXT+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710else
5711 if test -n "$DB2TXT"; then
5712 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5713else
5714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715for as_dir in $PATH
5716do
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_DB2TXT="$ac_prog"
5722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 2
5724 fi
5725done
5726done
5727
5728fi
5729fi
5730DB2TXT=$ac_cv_prog_DB2TXT
5731if test -n "$DB2TXT"; then
5732 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5733echo "${ECHO_T}$DB2TXT" >&6
5734else
5735 echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6
5737fi
5738
5739 test -n "$DB2TXT" && break
5740done
5741test -n "$DB2TXT" || DB2TXT="false"
5742
Huw Davies00acb5f2004-08-17 22:33:14 +00005743for ac_prog in fontforge
5744do
5745 # Extract the first word of "$ac_prog", so it can be a program name with args.
5746set dummy $ac_prog; ac_word=$2
5747echo "$as_me:$LINENO: checking for $ac_word" >&5
5748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5749if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5751else
5752 if test -n "$FONTFORGE"; then
5753 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5754else
5755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756for as_dir in $PATH
5757do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762 ac_cv_prog_FONTFORGE="$ac_prog"
5763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766done
5767done
5768
5769fi
5770fi
5771FONTFORGE=$ac_cv_prog_FONTFORGE
5772if test -n "$FONTFORGE"; then
5773 echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5774echo "${ECHO_T}$FONTFORGE" >&6
5775else
5776 echo "$as_me:$LINENO: result: no" >&5
5777echo "${ECHO_T}no" >&6
5778fi
5779
5780 test -n "$FONTFORGE" && break
5781done
5782test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005783
5784
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005785
5786
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005787echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005788echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5789if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005791else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005792 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005793LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005794cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005795/* confdefs.h. */
5796_ACEOF
5797cat confdefs.h >>conftest.$ac_ext
5798cat >>conftest.$ac_ext <<_ACEOF
5799/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005800
Alexandre Julliard59730ae1996-03-24 16:20:51 +00005801/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005802#ifdef __cplusplus
5803extern "C"
5804#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005805/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005806 builtin and then its argument prototype would still apply. */
5807char i386_set_ldt ();
5808int
5809main ()
5810{
5811i386_set_ldt ();
5812 ;
5813 return 0;
5814}
5815_ACEOF
5816rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005818 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005819 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005820 grep -v '^ *+' conftest.er1 >conftest.err
5821 rm -f conftest.er1
5822 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005824 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005833 (eval $ac_try) 2>&5
5834 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005836 (exit $ac_status); }; }; then
5837 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005838else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005839 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005840sed 's/^/| /' conftest.$ac_ext >&5
5841
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005842ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005843fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005844rm -f conftest.err conftest.$ac_objext \
5845 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005846LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005847fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005848echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005849echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5850if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005851 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005852#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005853_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005854
5855 LIBS="-li386 $LIBS"
5856
Alexandre Julliard02e90081998-01-04 17:49:09 +00005857fi
5858
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005859
5860echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005861echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5862if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005864else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005865 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005866LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005867cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005868/* confdefs.h. */
5869_ACEOF
5870cat confdefs.h >>conftest.$ac_ext
5871cat >>conftest.$ac_ext <<_ACEOF
5872/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005873
Todd Vierlingecc76691998-12-15 17:49:02 +00005874/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005875#ifdef __cplusplus
5876extern "C"
5877#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00005878/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005879 builtin and then its argument prototype would still apply. */
5880char _oss_ioctl ();
5881int
5882main ()
5883{
5884_oss_ioctl ();
5885 ;
5886 return 0;
5887}
5888_ACEOF
5889rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005891 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005892 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005893 grep -v '^ *+' conftest.er1 >conftest.err
5894 rm -f conftest.er1
5895 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005897 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5900 (eval $ac_try) 2>&5
5901 ac_status=$?
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }; } &&
5904 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005906 (eval $ac_try) 2>&5
5907 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005909 (exit $ac_status); }; }; then
5910 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005911else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005912 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005913sed 's/^/| /' conftest.$ac_ext >&5
5914
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005915ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005916fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005917rm -f conftest.err conftest.$ac_objext \
5918 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005919LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005920fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005921echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005922echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5923if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005924 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005925#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005926_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005927
5928 LIBS="-lossaudio $LIBS"
5929
Todd Vierlingecc76691998-12-15 17:49:02 +00005930fi
5931
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005932
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005933for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00005934do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005936echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5938if eval "test \"\${$as_ac_var+set}\" = set"; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005940else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005941 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005942/* confdefs.h. */
5943_ACEOF
5944cat confdefs.h >>conftest.$ac_ext
5945cat >>conftest.$ac_ext <<_ACEOF
5946/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005947/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5949#define $ac_func innocuous_$ac_func
5950
Patrik Stridvallea584721998-11-01 16:22:07 +00005951/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005952 which can conflict with char $ac_func (); below.
5953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5954 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005955
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005956#ifdef __STDC__
5957# include <limits.h>
5958#else
5959# include <assert.h>
5960#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00005961
5962#undef $ac_func
5963
Patrik Stridvallea584721998-11-01 16:22:07 +00005964/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005965#ifdef __cplusplus
5966extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005967{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005968#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005969/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005970 builtin and then its argument prototype would still apply. */
5971char $ac_func ();
Patrik Stridvallea584721998-11-01 16:22:07 +00005972/* The GNU C library defines this for functions which it implements
5973 to always fail with ENOSYS. Some functions are actually named
5974 something starting with __ and the normal name is an alias. */
5975#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5976choke me
5977#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005978char (*f) () = $ac_func;
5979#endif
5980#ifdef __cplusplus
5981}
Patrik Stridvallea584721998-11-01 16:22:07 +00005982#endif
5983
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005984int
5985main ()
5986{
5987return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005988 ;
5989 return 0;
5990}
5991_ACEOF
5992rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005994 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005995 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006000 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; } &&
6007 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006009 (eval $ac_try) 2>&5
6010 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006012 (exit $ac_status); }; }; then
6013 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006014else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006015 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006016sed 's/^/| /' conftest.$ac_ext >&5
6017
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006018eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006019fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006020rm -f conftest.err conftest.$ac_objext \
6021 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006022fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006024echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6025if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006026 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006028_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006029
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006030else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006031
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006032echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006033echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
6034if test "${ac_cv_lib_w_iswalnum+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006036else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006037 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006038LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006039cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006040/* confdefs.h. */
6041_ACEOF
6042cat confdefs.h >>conftest.$ac_ext
6043cat >>conftest.$ac_ext <<_ACEOF
6044/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006045
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006046/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006047#ifdef __cplusplus
6048extern "C"
6049#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006050/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006051 builtin and then its argument prototype would still apply. */
6052char iswalnum ();
6053int
6054main ()
6055{
6056iswalnum ();
6057 ;
6058 return 0;
6059}
6060_ACEOF
6061rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006063 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006064 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006069 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072 (eval $ac_try) 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; } &&
6076 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006078 (eval $ac_try) 2>&5
6079 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006081 (exit $ac_status); }; }; then
6082 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006083else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006084 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006085sed 's/^/| /' conftest.$ac_ext >&5
6086
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006087ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006088fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006089rm -f conftest.err conftest.$ac_objext \
6090 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006091LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006092fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006093echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006094echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6095if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006096 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006097#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006098_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006099
6100 LIBS="-lw $LIBS"
6101
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006102fi
6103
6104fi
6105done
6106
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006107
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006108for ac_func in gethostbyname
6109do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006110as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006111echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006112echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6113if eval "test \"\${$as_ac_var+set}\" = set"; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006115else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006116 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006117/* confdefs.h. */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6124#define $ac_func innocuous_$ac_func
6125
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006126/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006127 which can conflict with char $ac_func (); below.
6128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6129 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006130
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006131#ifdef __STDC__
6132# include <limits.h>
6133#else
6134# include <assert.h>
6135#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006136
6137#undef $ac_func
6138
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006139/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006140#ifdef __cplusplus
6141extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006142{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006143#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006144/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006145 builtin and then its argument prototype would still apply. */
6146char $ac_func ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006147/* The GNU C library defines this for functions which it implements
6148 to always fail with ENOSYS. Some functions are actually named
6149 something starting with __ and the normal name is an alias. */
6150#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6151choke me
6152#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006153char (*f) () = $ac_func;
6154#endif
6155#ifdef __cplusplus
6156}
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006157#endif
6158
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006159int
6160main ()
6161{
6162return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006163 ;
6164 return 0;
6165}
6166_ACEOF
6167rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006169 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006170 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006171 grep -v '^ *+' conftest.er1 >conftest.err
6172 rm -f conftest.er1
6173 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006175 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; } &&
6182 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006184 (eval $ac_try) 2>&5
6185 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006187 (exit $ac_status); }; }; then
6188 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00006189else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006190 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006191sed 's/^/| /' conftest.$ac_ext >&5
6192
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006193eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00006194fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006195rm -f conftest.err conftest.$ac_objext \
6196 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00006197fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006199echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6200if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006201 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006203_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00006204
Patrik Stridvallea584721998-11-01 16:22:07 +00006205else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006206
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006207echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006208echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6209if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00006211else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006212 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006213LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006214cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006215/* confdefs.h. */
6216_ACEOF
6217cat confdefs.h >>conftest.$ac_ext
6218cat >>conftest.$ac_ext <<_ACEOF
6219/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006220
Patrik Stridvallea584721998-11-01 16:22:07 +00006221/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006222#ifdef __cplusplus
6223extern "C"
6224#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00006225/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006226 builtin and then its argument prototype would still apply. */
6227char gethostbyname ();
6228int
6229main ()
6230{
6231gethostbyname ();
6232 ;
6233 return 0;
6234}
6235_ACEOF
6236rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006238 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006239 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006244 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } &&
6251 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006253 (eval $ac_try) 2>&5
6254 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006256 (exit $ac_status); }; }; then
6257 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00006258else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006259 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006260sed 's/^/| /' conftest.$ac_ext >&5
6261
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006262ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00006263fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006264rm -f conftest.err conftest.$ac_objext \
6265 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006266LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00006267fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006268echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006269echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6270if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006271 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006272#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006273_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00006274
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006275 LIBS="-lnsl $LIBS"
6276
Ron Recorde977d6c1999-09-05 12:32:05 +00006277fi
6278
Patrik Stridvallea584721998-11-01 16:22:07 +00006279fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00006280done
6281
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006282
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006283for ac_func in connect
6284do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006285as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006286echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006287echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6288if eval "test \"\${$as_ac_var+set}\" = set"; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006290else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006291 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006292/* confdefs.h. */
6293_ACEOF
6294cat confdefs.h >>conftest.$ac_ext
6295cat >>conftest.$ac_ext <<_ACEOF
6296/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006297/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6299#define $ac_func innocuous_$ac_func
6300
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006301/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006302 which can conflict with char $ac_func (); below.
6303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6304 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006305
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006306#ifdef __STDC__
6307# include <limits.h>
6308#else
6309# include <assert.h>
6310#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006311
6312#undef $ac_func
6313
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006314/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006315#ifdef __cplusplus
6316extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006317{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006318#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006319/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006320 builtin and then its argument prototype would still apply. */
6321char $ac_func ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006322/* The GNU C library defines this for functions which it implements
6323 to always fail with ENOSYS. Some functions are actually named
6324 something starting with __ and the normal name is an alias. */
6325#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6326choke me
6327#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006328char (*f) () = $ac_func;
6329#endif
6330#ifdef __cplusplus
6331}
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006332#endif
6333
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006334int
6335main ()
6336{
6337return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006338 ;
6339 return 0;
6340}
6341_ACEOF
6342rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006344 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006345 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006350 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 (eval $ac_try) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006359 (eval $ac_try) 2>&5
6360 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006362 (exit $ac_status); }; }; then
6363 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006364else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006365 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006366sed 's/^/| /' conftest.$ac_ext >&5
6367
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006368eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006369fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006370rm -f conftest.err conftest.$ac_objext \
6371 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006372fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006374echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6375if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006376 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006378_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006379
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006380else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006381
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006382echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006383echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6384if test "${ac_cv_lib_socket_connect+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006386else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006387 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006388LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006389cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006390/* confdefs.h. */
6391_ACEOF
6392cat confdefs.h >>conftest.$ac_ext
6393cat >>conftest.$ac_ext <<_ACEOF
6394/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006395
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006396/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006397#ifdef __cplusplus
6398extern "C"
6399#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006400/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006401 builtin and then its argument prototype would still apply. */
6402char connect ();
6403int
6404main ()
6405{
6406connect ();
6407 ;
6408 return 0;
6409}
6410_ACEOF
6411rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006413 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006414 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006415 grep -v '^ *+' conftest.er1 >conftest.err
6416 rm -f conftest.er1
6417 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006419 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; } &&
6426 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006428 (eval $ac_try) 2>&5
6429 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006431 (exit $ac_status); }; }; then
6432 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006433else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006434 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006435sed 's/^/| /' conftest.$ac_ext >&5
6436
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006437ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006438fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006439rm -f conftest.err conftest.$ac_objext \
6440 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006441LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006442fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006443echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006444echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6445if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006446 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006447#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006448_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006449
6450 LIBS="-lsocket $LIBS"
6451
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006452fi
6453
6454fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00006455done
6456
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006457
Alexandre Julliardc5552742002-04-03 20:24:44 +00006458for ac_func in inet_aton
6459do
6460as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006461echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6463if eval "test \"\${$as_ac_var+set}\" = set"; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465else
6466 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006467/* confdefs.h. */
6468_ACEOF
6469cat confdefs.h >>conftest.$ac_ext
6470cat >>conftest.$ac_ext <<_ACEOF
6471/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006472/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6474#define $ac_func innocuous_$ac_func
6475
Alexandre Julliardc5552742002-04-03 20:24:44 +00006476/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006477 which can conflict with char $ac_func (); below.
6478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6479 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006480
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006481#ifdef __STDC__
6482# include <limits.h>
6483#else
6484# include <assert.h>
6485#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006486
6487#undef $ac_func
6488
Alexandre Julliardc5552742002-04-03 20:24:44 +00006489/* Override any gcc2 internal prototype to avoid an error. */
6490#ifdef __cplusplus
6491extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006492{
Alexandre Julliardc5552742002-04-03 20:24:44 +00006493#endif
6494/* We use char because int might match the return type of a gcc2
6495 builtin and then its argument prototype would still apply. */
6496char $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00006497/* The GNU C library defines this for functions which it implements
6498 to always fail with ENOSYS. Some functions are actually named
6499 something starting with __ and the normal name is an alias. */
6500#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6501choke me
6502#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006503char (*f) () = $ac_func;
6504#endif
6505#ifdef __cplusplus
6506}
Alexandre Julliardc5552742002-04-03 20:24:44 +00006507#endif
6508
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006509int
6510main ()
6511{
6512return f != $ac_func;
Alexandre Julliardc5552742002-04-03 20:24:44 +00006513 ;
6514 return 0;
6515}
6516_ACEOF
6517rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006519 (eval $ac_link) 2>conftest.er1
Alexandre Julliardc5552742002-04-03 20:24:44 +00006520 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006521 grep -v '^ *+' conftest.er1 >conftest.err
6522 rm -f conftest.er1
6523 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006525 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 (eval $ac_try) 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; } &&
6532 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006534 (eval $ac_try) 2>&5
6535 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006537 (exit $ac_status); }; }; then
6538 eval "$as_ac_var=yes"
6539else
6540 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006541sed 's/^/| /' conftest.$ac_ext >&5
6542
Alexandre Julliardc5552742002-04-03 20:24:44 +00006543eval "$as_ac_var=no"
6544fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006545rm -f conftest.err conftest.$ac_objext \
6546 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc5552742002-04-03 20:24:44 +00006547fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006549echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6550if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006551 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00006552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006553_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00006554
6555else
6556
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006557echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006558echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6559if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562 ac_check_lib_save_LIBS=$LIBS
6563LIBS="-lresolv $LIBS"
6564cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006565/* confdefs.h. */
6566_ACEOF
6567cat confdefs.h >>conftest.$ac_ext
6568cat >>conftest.$ac_ext <<_ACEOF
6569/* end confdefs.h. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00006570
6571/* Override any gcc2 internal prototype to avoid an error. */
6572#ifdef __cplusplus
6573extern "C"
6574#endif
6575/* We use char because int might match the return type of a gcc2
6576 builtin and then its argument prototype would still apply. */
6577char inet_aton ();
6578int
6579main ()
6580{
6581inet_aton ();
6582 ;
6583 return 0;
6584}
6585_ACEOF
6586rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006588 (eval $ac_link) 2>conftest.er1
Francois Gouget3b943bc2002-04-01 21:05:15 +00006589 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006590 grep -v '^ *+' conftest.er1 >conftest.err
6591 rm -f conftest.er1
6592 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006594 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6597 (eval $ac_try) 2>&5
6598 ac_status=$?
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; } &&
6601 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006603 (eval $ac_try) 2>&5
6604 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006606 (exit $ac_status); }; }; then
6607 ac_cv_lib_resolv_inet_aton=yes
6608else
6609 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006610sed 's/^/| /' conftest.$ac_ext >&5
6611
Francois Gouget3b943bc2002-04-01 21:05:15 +00006612ac_cv_lib_resolv_inet_aton=no
6613fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006614rm -f conftest.err conftest.$ac_objext \
6615 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3b943bc2002-04-01 21:05:15 +00006616LIBS=$ac_check_lib_save_LIBS
6617fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006618echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006619echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6620if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006621 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00006622#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006623_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00006624
6625 LIBS="-lresolv $LIBS"
6626
6627fi
6628
Alexandre Julliardc5552742002-04-03 20:24:44 +00006629fi
6630done
6631
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006632
6633echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006634echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6635if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006637else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006638 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006639LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006640cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006641/* confdefs.h. */
6642_ACEOF
6643cat confdefs.h >>conftest.$ac_ext
6644cat >>conftest.$ac_ext <<_ACEOF
6645/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006646
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006647/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006648#ifdef __cplusplus
6649extern "C"
6650#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006651/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006652 builtin and then its argument prototype would still apply. */
6653char _xpg4_setrunelocale ();
6654int
6655main ()
6656{
6657_xpg4_setrunelocale ();
6658 ;
6659 return 0;
6660}
6661_ACEOF
6662rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006664 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006665 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006666 grep -v '^ *+' conftest.er1 >conftest.err
6667 rm -f conftest.er1
6668 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006670 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 (eval $ac_try) 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; } &&
6677 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006679 (eval $ac_try) 2>&5
6680 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006682 (exit $ac_status); }; }; then
6683 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006684else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006685 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006686sed 's/^/| /' conftest.$ac_ext >&5
6687
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006688ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006689fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006690rm -f conftest.err conftest.$ac_objext \
6691 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006692LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006693fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006694echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006695echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6696if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006697 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006698#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006699_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006700
6701 LIBS="-lxpg4 $LIBS"
6702
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006703fi
6704
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006705
6706echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6707echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6708if test "${ac_cv_lib_poll_poll+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711 ac_check_lib_save_LIBS=$LIBS
6712LIBS="-lpoll $LIBS"
6713cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006714/* confdefs.h. */
6715_ACEOF
6716cat confdefs.h >>conftest.$ac_ext
6717cat >>conftest.$ac_ext <<_ACEOF
6718/* end confdefs.h. */
6719
6720/* Override any gcc2 internal prototype to avoid an error. */
6721#ifdef __cplusplus
6722extern "C"
6723#endif
6724/* We use char because int might match the return type of a gcc2
6725 builtin and then its argument prototype would still apply. */
6726char poll ();
6727int
6728main ()
6729{
6730poll ();
6731 ;
6732 return 0;
6733}
6734_ACEOF
6735rm -f conftest.$ac_objext conftest$ac_exeext
6736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006737 (eval $ac_link) 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006738 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746 (eval $ac_try) 2>&5
6747 ac_status=$?
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; } &&
6750 { ac_try='test -s conftest$ac_exeext'
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752 (eval $ac_try) 2>&5
6753 ac_status=$?
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; }; then
6756 ac_cv_lib_poll_poll=yes
6757else
6758 echo "$as_me: failed program was:" >&5
6759sed 's/^/| /' conftest.$ac_ext >&5
6760
6761ac_cv_lib_poll_poll=no
6762fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006763rm -f conftest.err conftest.$ac_objext \
6764 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006765LIBS=$ac_check_lib_save_LIBS
6766fi
6767echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6768echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6769if test $ac_cv_lib_poll_poll = yes; then
6770 cat >>confdefs.h <<_ACEOF
6771#define HAVE_LIBPOLL 1
6772_ACEOF
6773
6774 LIBS="-lpoll $LIBS"
6775
6776fi
6777
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00006778
6779echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6780echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6781if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783else
6784 ac_check_lib_save_LIBS=$LIBS
6785LIBS="-lresolv $LIBS"
6786cat >conftest.$ac_ext <<_ACEOF
6787/* confdefs.h. */
6788_ACEOF
6789cat confdefs.h >>conftest.$ac_ext
6790cat >>conftest.$ac_ext <<_ACEOF
6791/* end confdefs.h. */
6792
6793/* Override any gcc2 internal prototype to avoid an error. */
6794#ifdef __cplusplus
6795extern "C"
6796#endif
6797/* We use char because int might match the return type of a gcc2
6798 builtin and then its argument prototype would still apply. */
6799char res_9_init ();
6800int
6801main ()
6802{
6803res_9_init ();
6804 ;
6805 return 0;
6806}
6807_ACEOF
6808rm -f conftest.$ac_objext conftest$ac_exeext
6809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6810 (eval $ac_link) 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } &&
6817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 (eval $ac_try) 2>&5
6820 ac_status=$?
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); }; } &&
6823 { ac_try='test -s conftest$ac_exeext'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 (eval $ac_try) 2>&5
6826 ac_status=$?
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; }; then
6829 ac_cv_lib_resolv_res_9_init=yes
6830else
6831 echo "$as_me: failed program was:" >&5
6832sed 's/^/| /' conftest.$ac_ext >&5
6833
6834ac_cv_lib_resolv_res_9_init=no
6835fi
6836rm -f conftest.err conftest.$ac_objext \
6837 conftest$ac_exeext conftest.$ac_ext
6838LIBS=$ac_check_lib_save_LIBS
6839fi
6840echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6841echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6842if test $ac_cv_lib_resolv_res_9_init = yes; then
6843 cat >>confdefs.h <<_ACEOF
6844#define HAVE_LIBRESOLV 1
6845_ACEOF
6846
6847 LIBS="-lresolv $LIBS"
6848
6849fi
6850
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006851echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6852echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6853if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006854 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006855else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006856 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006857LIBS="-lpthread $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006858cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006859/* confdefs.h. */
6860_ACEOF
6861cat confdefs.h >>conftest.$ac_ext
6862cat >>conftest.$ac_ext <<_ACEOF
6863/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006864
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006865/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006866#ifdef __cplusplus
6867extern "C"
6868#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006869/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006870 builtin and then its argument prototype would still apply. */
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006871char pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006872int
6873main ()
6874{
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006875pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006876 ;
6877 return 0;
6878}
6879_ACEOF
6880rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006882 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006883 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006888 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891 (eval $ac_try) 2>&5
6892 ac_status=$?
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; } &&
6895 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006897 (eval $ac_try) 2>&5
6898 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006900 (exit $ac_status); }; }; then
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006901 ac_cv_lib_pthread_pthread_create=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006902else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006903 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006904sed 's/^/| /' conftest.$ac_ext >&5
6905
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006906ac_cv_lib_pthread_pthread_create=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006907fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006908rm -f conftest.err conftest.$ac_objext \
6909 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006910LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006911fi
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006912echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6913echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6914if test $ac_cv_lib_pthread_pthread_create = yes; then
6915 LIBPTHREAD="-lpthread"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006916
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006917fi
6918
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006919
Alexandre Julliard562089b2001-12-31 22:28:35 +00006920
Huw Daviese82dfab2004-08-04 19:10:26 +00006921
6922XFILES=""
6923
6924OPENGLFILES=""
6925
6926GLU32FILES=""
6927
6928OPENGL_LIBS=""
6929if test "$have_x" = "yes"
6930then
6931 XLIB="-lXext -lX11"
6932 ac_save_CPPFLAGS="$CPPFLAGS"
6933 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6934
Alexandre Julliardc6264912004-08-16 20:09:37 +00006935 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006936echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6937if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006938 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00006939else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006940 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006941/* confdefs.h. */
6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006946#include <stdlib.h>
6947#include <stdarg.h>
6948#include <string.h>
6949#include <float.h>
6950
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006951int
6952main ()
6953{
6954
6955 ;
6956 return 0;
6957}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006958_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006959rm -f conftest.$ac_objext
6960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006961 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006962 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006963 grep -v '^ *+' conftest.er1 >conftest.err
6964 rm -f conftest.er1
6965 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006967 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 (eval $ac_try) 2>&5
6971 ac_status=$?
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; } &&
6974 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 (eval $ac_try) 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006980 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006981else
6982 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006983sed 's/^/| /' conftest.$ac_ext >&5
6984
6985ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00006986fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006988
6989if test $ac_cv_header_stdc = yes; then
6990 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6991 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006992/* confdefs.h. */
6993_ACEOF
6994cat confdefs.h >>conftest.$ac_ext
6995cat >>conftest.$ac_ext <<_ACEOF
6996/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006997#include <string.h>
6998
6999_ACEOF
7000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007001 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007002 :
7003else
7004 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00007005fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007006rm -f conftest*
7007
7008fi
7009
7010if test $ac_cv_header_stdc = yes; then
7011 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7012 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007013/* confdefs.h. */
7014_ACEOF
7015cat confdefs.h >>conftest.$ac_ext
7016cat >>conftest.$ac_ext <<_ACEOF
7017/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007018#include <stdlib.h>
7019
7020_ACEOF
7021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007022 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007023 :
7024else
7025 ac_cv_header_stdc=no
7026fi
7027rm -f conftest*
7028
7029fi
7030
7031if test $ac_cv_header_stdc = yes; then
7032 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7033 if test "$cross_compiling" = yes; then
7034 :
7035else
7036 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007037/* confdefs.h. */
7038_ACEOF
7039cat confdefs.h >>conftest.$ac_ext
7040cat >>conftest.$ac_ext <<_ACEOF
7041/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007042#include <ctype.h>
7043#if ((' ' & 0x0FF) == 0x020)
7044# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7045# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7046#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007047# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007048 (('a' <= (c) && (c) <= 'i') \
7049 || ('j' <= (c) && (c) <= 'r') \
7050 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007051# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7052#endif
7053
7054#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7055int
7056main ()
7057{
7058 int i;
7059 for (i = 0; i < 256; i++)
7060 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00007061 || toupper (i) != TOUPPER (i))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007062 exit(2);
7063 exit (0);
7064}
7065_ACEOF
7066rm -f conftest$ac_exeext
7067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7068 (eval $ac_link) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5
7074 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then
7077 :
7078else
7079 echo "$as_me: program exited with status $ac_status" >&5
7080echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007081sed 's/^/| /' conftest.$ac_ext >&5
7082
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007083( exit $ac_status )
7084ac_cv_header_stdc=no
7085fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +00007086rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007087fi
7088fi
7089fi
7090echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7091echo "${ECHO_T}$ac_cv_header_stdc" >&6
7092if test $ac_cv_header_stdc = yes; then
7093
7094cat >>confdefs.h <<\_ACEOF
7095#define STDC_HEADERS 1
7096_ACEOF
7097
7098fi
7099
7100# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007111 inttypes.h stdint.h unistd.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007112do
7113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7114echo "$as_me:$LINENO: checking for $ac_header" >&5
7115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7116if eval "test \"\${$as_ac_Header+set}\" = set"; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007120/* confdefs.h. */
7121_ACEOF
7122cat confdefs.h >>conftest.$ac_ext
7123cat >>conftest.$ac_ext <<_ACEOF
7124/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007125$ac_includes_default
7126
7127#include <$ac_header>
7128_ACEOF
7129rm -f conftest.$ac_objext
7130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007131 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007132 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007133 grep -v '^ *+' conftest.er1 >conftest.err
7134 rm -f conftest.er1
7135 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 (eval $ac_try) 2>&5
7141 ac_status=$?
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); }; } &&
7144 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 (eval $ac_try) 2>&5
7147 ac_status=$?
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 eval "$as_ac_Header=yes"
7151else
7152 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007153sed 's/^/| /' conftest.$ac_ext >&5
7154
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007155eval "$as_ac_Header=no"
7156fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007158fi
7159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007160echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7161if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007162 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007164_ACEOF
7165
7166fi
7167
7168done
7169
7170
7171
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007172for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007173do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007175if eval "test \"\${$as_ac_Header+set}\" = set"; then
7176 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007177echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7178if eval "test \"\${$as_ac_Header+set}\" = set"; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007180fi
7181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007183else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007184 # Is the header compilable?
7185echo "$as_me:$LINENO: checking $ac_header usability" >&5
7186echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7187cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007188/* confdefs.h. */
7189_ACEOF
7190cat confdefs.h >>conftest.$ac_ext
7191cat >>conftest.$ac_ext <<_ACEOF
7192/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007193$ac_includes_default
7194#include <$ac_header>
7195_ACEOF
7196rm -f conftest.$ac_objext
7197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007198 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007199 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207 (eval $ac_try) 2>&5
7208 ac_status=$?
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; } &&
7211 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 (eval $ac_try) 2>&5
7214 ac_status=$?
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }; }; then
7217 ac_header_compiler=yes
7218else
7219 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007220sed 's/^/| /' conftest.$ac_ext >&5
7221
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007222ac_header_compiler=no
7223fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007225echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7226echo "${ECHO_T}$ac_header_compiler" >&6
7227
7228# Is the header present?
7229echo "$as_me:$LINENO: checking $ac_header presence" >&5
7230echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7231cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007232/* confdefs.h. */
7233_ACEOF
7234cat confdefs.h >>conftest.$ac_ext
7235cat >>conftest.$ac_ext <<_ACEOF
7236/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007237#include <$ac_header>
7238_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7241 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007242 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007243 rm -f conftest.er1
7244 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007246 (exit $ac_status); } >/dev/null; then
7247 if test -s conftest.err; then
7248 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00007249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007250 else
7251 ac_cpp_err=
7252 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007253else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007254 ac_cpp_err=yes
7255fi
7256if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007257 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007258else
7259 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007260sed 's/^/| /' conftest.$ac_ext >&5
7261
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007262 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007263fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007264rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007265echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7266echo "${ECHO_T}$ac_header_preproc" >&6
7267
7268# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7270 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7275 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007276 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00007277 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7285echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007290 (
7291 cat <<\_ASBOX
7292## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00007293## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007294## ------------------------------------ ##
7295_ASBOX
7296 ) |
7297 sed "s/^/$as_me: WARNING: /" >&2
7298 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007299esac
7300echo "$as_me:$LINENO: checking for $ac_header" >&5
7301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7302if eval "test \"\${$as_ac_Header+set}\" = set"; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
Alexandre Julliard875927f2004-01-02 01:55:29 +00007305 eval "$as_ac_Header=\$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007306fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007309
7310fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007311if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007312 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007313#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007314_ACEOF
7315
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007316
Alexandre Julliard255b4862003-10-15 04:09:55 +00007317
7318
7319
7320
7321
7322
7323
7324
Aric Stewart2eebf3c2004-01-09 00:03:00 +00007325
Alexandre Julliard255b4862003-10-15 04:09:55 +00007326for ac_header in X11/XKBlib.h \
7327 X11/Xutil.h \
7328 X11/extensions/shape.h \
Aric Stewart2eebf3c2004-01-09 00:03:00 +00007329 X11/extensions/XInput.h \
Alexandre Julliard255b4862003-10-15 04:09:55 +00007330 X11/extensions/XShm.h \
7331 X11/extensions/Xrandr.h \
7332 X11/extensions/Xrender.h \
7333 X11/extensions/Xvlib.h \
7334 X11/extensions/xf86dga.h \
7335 X11/extensions/xf86vmode.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007336do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007338echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7340if eval "test \"\${$as_ac_Header+set}\" = set"; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007342else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007343 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007344/* confdefs.h. */
7345_ACEOF
7346cat confdefs.h >>conftest.$ac_ext
7347cat >>conftest.$ac_ext <<_ACEOF
7348/* end confdefs.h. */
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007349#include <X11/Xlib.h>
Alexandre Julliard255b4862003-10-15 04:09:55 +00007350 #ifdef HAVE_X11_XUTIL_H
7351 # include <X11/Xutil.h>
7352 #endif
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007353
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007354#include <$ac_header>
7355_ACEOF
7356rm -f conftest.$ac_objext
7357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007358 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007359 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7367 (eval $ac_try) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; } &&
7371 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373 (eval $ac_try) 2>&5
7374 ac_status=$?
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007377 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007378else
7379 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007380sed 's/^/| /' conftest.$ac_ext >&5
7381
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007382eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007383fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007385fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7388if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007389 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007391_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00007392
7393fi
7394
7395done
7396
7397
7398 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7399 then
7400 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007401echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7402if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007404else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007405 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00007406LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007407cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007408/* confdefs.h. */
7409_ACEOF
7410cat confdefs.h >>conftest.$ac_ext
7411cat >>conftest.$ac_ext <<_ACEOF
7412/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007413
Patrik Stridvall24110281999-02-04 10:09:54 +00007414/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007415#ifdef __cplusplus
7416extern "C"
7417#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007418/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007419 builtin and then its argument prototype would still apply. */
7420char XkbQueryExtension ();
7421int
7422main ()
7423{
7424XkbQueryExtension ();
7425 ;
7426 return 0;
7427}
7428_ACEOF
7429rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007431 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007432 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007433 grep -v '^ *+' conftest.er1 >conftest.err
7434 rm -f conftest.er1
7435 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007437 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 (eval $ac_try) 2>&5
7441 ac_status=$?
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; } &&
7444 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007446 (eval $ac_try) 2>&5
7447 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007449 (exit $ac_status); }; }; then
7450 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007451else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007452 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007453sed 's/^/| /' conftest.$ac_ext >&5
7454
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007455ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007456fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007457rm -f conftest.err conftest.$ac_objext \
7458 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007459LIBS=$ac_check_lib_save_LIBS
7460fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007461echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007462echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7463if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007464
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007465cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007466#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007467_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007468
Patrik Stridvall24110281999-02-04 10:09:54 +00007469fi
7470
Alexandre Julliard255b4862003-10-15 04:09:55 +00007471 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007472
Alexandre Julliard255b4862003-10-15 04:09:55 +00007473 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7474 then
7475 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007476echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7477if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00007479else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007480 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00007481LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007482cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007483/* confdefs.h. */
7484_ACEOF
7485cat confdefs.h >>conftest.$ac_ext
7486cat >>conftest.$ac_ext <<_ACEOF
7487/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007488
Francois Jacques5b6879c2000-07-28 23:04:54 +00007489/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007490#ifdef __cplusplus
7491extern "C"
7492#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00007493/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007494 builtin and then its argument prototype would still apply. */
7495char XShmQueryExtension ();
7496int
7497main ()
7498{
7499XShmQueryExtension ();
7500 ;
7501 return 0;
7502}
7503_ACEOF
7504rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007506 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007507 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007512 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 (eval $ac_try) 2>&5
7516 ac_status=$?
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; } &&
7519 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007521 (eval $ac_try) 2>&5
7522 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007524 (exit $ac_status); }; }; then
7525 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00007526else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007527 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007528sed 's/^/| /' conftest.$ac_ext >&5
7529
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007530ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00007531fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007532rm -f conftest.err conftest.$ac_objext \
7533 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007534LIBS=$ac_check_lib_save_LIBS
7535fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007536echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007537echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7538if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00007539
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007540cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007541#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007542_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00007543
Francois Jacques5b6879c2000-07-28 23:04:54 +00007544fi
7545
Alexandre Julliard255b4862003-10-15 04:09:55 +00007546 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007547
Alexandre Julliard255b4862003-10-15 04:09:55 +00007548 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7549 then
7550 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007551echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7552if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00007554else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007555 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00007556LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007557cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007558/* confdefs.h. */
7559_ACEOF
7560cat confdefs.h >>conftest.$ac_ext
7561cat >>conftest.$ac_ext <<_ACEOF
7562/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007563
Ove Kaavenc90fb252001-01-02 22:39:14 +00007564/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007565#ifdef __cplusplus
7566extern "C"
7567#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00007568/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007569 builtin and then its argument prototype would still apply. */
7570char XShapeQueryExtension ();
7571int
7572main ()
7573{
7574XShapeQueryExtension ();
7575 ;
7576 return 0;
7577}
7578_ACEOF
7579rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007581 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007582 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007583 grep -v '^ *+' conftest.er1 >conftest.err
7584 rm -f conftest.er1
7585 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007587 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 (eval $ac_try) 2>&5
7591 ac_status=$?
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); }; } &&
7594 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007596 (eval $ac_try) 2>&5
7597 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007599 (exit $ac_status); }; }; then
7600 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00007601else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007602 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007603sed 's/^/| /' conftest.$ac_ext >&5
7604
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007605ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00007606fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007607rm -f conftest.err conftest.$ac_objext \
7608 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007609LIBS=$ac_check_lib_save_LIBS
7610fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007611echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007612echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7613if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00007614
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007615cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007616#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007617_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007618
Ove Kaavenc90fb252001-01-02 22:39:14 +00007619fi
7620
Alexandre Julliard255b4862003-10-15 04:09:55 +00007621 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007622
Alexandre Julliard255b4862003-10-15 04:09:55 +00007623 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7624 then
7625 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007626echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7627if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007629else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007630 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00007631LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007632cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007633/* confdefs.h. */
7634_ACEOF
7635cat confdefs.h >>conftest.$ac_ext
7636cat >>conftest.$ac_ext <<_ACEOF
7637/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007638
Patrik Stridvall24110281999-02-04 10:09:54 +00007639/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007640#ifdef __cplusplus
7641extern "C"
7642#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007643/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007644 builtin and then its argument prototype would still apply. */
7645char XDGAQueryExtension ();
7646int
7647main ()
7648{
7649XDGAQueryExtension ();
7650 ;
7651 return 0;
7652}
7653_ACEOF
7654rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007656 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007657 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007662 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; } &&
7669 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007671 (eval $ac_try) 2>&5
7672 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007674 (exit $ac_status); }; }; then
7675 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007676else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007677 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007678sed 's/^/| /' conftest.$ac_ext >&5
7679
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007680ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007681fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007682rm -f conftest.err conftest.$ac_objext \
7683 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007684LIBS=$ac_check_lib_save_LIBS
7685fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007686echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007687echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7688if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007689
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007690cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007691#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007692_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007693
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007694 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007695
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007696else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007697 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007698echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7699if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007701else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007702 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007703LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7704 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007705cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007706/* confdefs.h. */
7707_ACEOF
7708cat confdefs.h >>conftest.$ac_ext
7709cat >>conftest.$ac_ext <<_ACEOF
7710/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007711
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007712/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007713#ifdef __cplusplus
7714extern "C"
7715#endif
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007716/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007717 builtin and then its argument prototype would still apply. */
7718char XF86DGAQueryExtension ();
7719int
7720main ()
7721{
7722XF86DGAQueryExtension ();
7723 ;
7724 return 0;
7725}
7726_ACEOF
7727rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007729 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007730 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007735 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; } &&
7742 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007744 (eval $ac_try) 2>&5
7745 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007747 (exit $ac_status); }; }; then
7748 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007749else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007750 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007751sed 's/^/| /' conftest.$ac_ext >&5
7752
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007753ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007754fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007755rm -f conftest.err conftest.$ac_objext \
7756 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007757LIBS=$ac_check_lib_save_LIBS
7758fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007759echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007760echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7761if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007762
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007763cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007764#define HAVE_LIBXXF86DGA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007765_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007766
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007767 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007768
Patrik Stridvall24110281999-02-04 10:09:54 +00007769fi
7770
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007771
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007772fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007773
Alexandre Julliard255b4862003-10-15 04:09:55 +00007774 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007775
Alexandre Julliard255b4862003-10-15 04:09:55 +00007776 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7777 then
7778 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007779echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7780if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007782else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007783 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00007784LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007785cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007786/* confdefs.h. */
7787_ACEOF
7788cat confdefs.h >>conftest.$ac_ext
7789cat >>conftest.$ac_ext <<_ACEOF
7790/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007791
Patrik Stridvall24110281999-02-04 10:09:54 +00007792/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007793#ifdef __cplusplus
7794extern "C"
7795#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007796/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007797 builtin and then its argument prototype would still apply. */
7798char XF86VidModeQueryExtension ();
7799int
7800main ()
7801{
7802XF86VidModeQueryExtension ();
7803 ;
7804 return 0;
7805}
7806_ACEOF
7807rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007809 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007810 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007811 grep -v '^ *+' conftest.er1 >conftest.err
7812 rm -f conftest.er1
7813 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007815 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818 (eval $ac_try) 2>&5
7819 ac_status=$?
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; } &&
7822 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007824 (eval $ac_try) 2>&5
7825 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007827 (exit $ac_status); }; }; then
7828 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007829else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007830 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007831sed 's/^/| /' conftest.$ac_ext >&5
7832
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007833ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007834fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007835rm -f conftest.err conftest.$ac_objext \
7836 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007837LIBS=$ac_check_lib_save_LIBS
7838fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007839echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007840echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7841if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007842
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007843cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007844#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007845_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007846
7847 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007848
Patrik Stridvall24110281999-02-04 10:09:54 +00007849fi
7850
Alexandre Julliard255b4862003-10-15 04:09:55 +00007851 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007852
Alexandre Julliard255b4862003-10-15 04:09:55 +00007853 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7854 then
Mike McCormackc7c9f932004-04-07 03:57:35 +00007855 cat >conftest.$ac_ext <<_ACEOF
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007856/* confdefs.h. */
7857_ACEOF
7858cat confdefs.h >>conftest.$ac_ext
7859cat >>conftest.$ac_ext <<_ACEOF
7860/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00007861#include <X11/Xlib.h>
7862#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007863int
7864main ()
7865{
Mike McCormackc7c9f932004-04-07 03:57:35 +00007866static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007867 ;
7868 return 0;
7869}
7870_ACEOF
Mike McCormackc7c9f932004-04-07 03:57:35 +00007871rm -f conftest.$ac_objext
7872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7873 (eval $ac_compile) 2>conftest.er1
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007874 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 (eval $ac_try) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
Mike McCormackc7c9f932004-04-07 03:57:35 +00007886 { ac_try='test -s conftest.$ac_objext'
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007892
7893cat >>confdefs.h <<\_ACEOF
7894#define HAVE_LIBXRANDR 1
7895_ACEOF
7896
Mike McCormackc7c9f932004-04-07 03:57:35 +00007897else
7898 echo "$as_me: failed program was:" >&5
7899sed 's/^/| /' conftest.$ac_ext >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007900
7901fi
Mike McCormackc7c9f932004-04-07 03:57:35 +00007902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00007903 fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007904
Alexandre Julliard255b4862003-10-15 04:09:55 +00007905 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
7906 then
7907 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007908echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7909if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007911else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007912 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00007913LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007914cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007915/* confdefs.h. */
7916_ACEOF
7917cat confdefs.h >>conftest.$ac_ext
7918cat >>conftest.$ac_ext <<_ACEOF
7919/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007920
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007921/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007922#ifdef __cplusplus
7923extern "C"
7924#endif
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007925/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007926 builtin and then its argument prototype would still apply. */
7927char XvShmCreateImage ();
7928int
7929main ()
7930{
7931XvShmCreateImage ();
7932 ;
7933 return 0;
7934}
7935_ACEOF
7936rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007938 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007939 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007944 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 (eval $ac_try) 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007953 (eval $ac_try) 2>&5
7954 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007956 (exit $ac_status); }; }; then
7957 ac_cv_lib_Xv_XvShmCreateImage=yes
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007958else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007959 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007960sed 's/^/| /' conftest.$ac_ext >&5
7961
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007962ac_cv_lib_Xv_XvShmCreateImage=no
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007963fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007964rm -f conftest.err conftest.$ac_objext \
7965 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007966LIBS=$ac_check_lib_save_LIBS
7967fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007968echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007969echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7970if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007971
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007972cat >>confdefs.h <<\_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007973#define HAVE_XVIDEO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007974_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007975
7976 X_PRE_LIBS="$X_PRE_LIBS -lXv"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007977
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007978fi
7979
Alexandre Julliard255b4862003-10-15 04:09:55 +00007980 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007981
7982
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007983fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007984
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007985done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007986
Alexandre Julliardb8074992002-11-21 21:51:24 +00007987 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007988 then
Francois Gouget42dcd972002-01-29 17:52:28 +00007989 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007990 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007991 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007992This prevents linking to OpenGL. Delete the file and restart configure." >&5
7993echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7994This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7995 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007996 fi
7997
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007998
7999
8000for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008001do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008002as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008003if eval "test \"\${$as_ac_Header+set}\" = set"; then
8004 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008005echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8006if eval "test \"\${$as_ac_Header+set}\" = set"; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008008fi
8009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008011else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008012 # Is the header compilable?
8013echo "$as_me:$LINENO: checking $ac_header usability" >&5
8014echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8015cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008016/* confdefs.h. */
8017_ACEOF
8018cat confdefs.h >>conftest.$ac_ext
8019cat >>conftest.$ac_ext <<_ACEOF
8020/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008021$ac_includes_default
8022#include <$ac_header>
8023_ACEOF
8024rm -f conftest.$ac_objext
8025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008026 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008027 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 (eval $ac_try) 2>&5
8036 ac_status=$?
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; } &&
8039 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 (eval $ac_try) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; }; then
8045 ac_header_compiler=yes
8046else
8047 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008048sed 's/^/| /' conftest.$ac_ext >&5
8049
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008050ac_header_compiler=no
8051fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008053echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8054echo "${ECHO_T}$ac_header_compiler" >&6
8055
8056# Is the header present?
8057echo "$as_me:$LINENO: checking $ac_header presence" >&5
8058echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8059cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008060/* confdefs.h. */
8061_ACEOF
8062cat confdefs.h >>conftest.$ac_ext
8063cat >>conftest.$ac_ext <<_ACEOF
8064/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008065#include <$ac_header>
8066_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8069 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008070 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008071 rm -f conftest.er1
8072 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008074 (exit $ac_status); } >/dev/null; then
8075 if test -s conftest.err; then
8076 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00008077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008078 else
8079 ac_cpp_err=
8080 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008081else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008082 ac_cpp_err=yes
8083fi
8084if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008085 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008086else
8087 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008088sed 's/^/| /' conftest.$ac_ext >&5
8089
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008090 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008091fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008092rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008093echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8094echo "${ECHO_T}$ac_header_preproc" >&6
8095
8096# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8098 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8102echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8103 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008104 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00008105 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8113echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8117echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008118 (
8119 cat <<\_ASBOX
8120## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00008121## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008122## ------------------------------------ ##
8123_ASBOX
8124 ) |
8125 sed "s/^/$as_me: WARNING: /" >&2
8126 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008127esac
8128echo "$as_me:$LINENO: checking for $ac_header" >&5
8129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8130if eval "test \"\${$as_ac_Header+set}\" = set"; then
8131 echo $ECHO_N "(cached) $ECHO_C" >&6
8132else
Alexandre Julliard875927f2004-01-02 01:55:29 +00008133 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00008134fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008137
Patrik Stridvall24110281999-02-04 10:09:54 +00008138fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008139if test `eval echo '${'$as_ac_Header'}'` = yes; then
8140 cat >>confdefs.h <<_ACEOF
8141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8142_ACEOF
8143
8144fi
8145
Patrik Stridvall24110281999-02-04 10:09:54 +00008146done
8147
Marcus Meissner22a969b2000-08-08 20:46:50 +00008148 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008149 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008150
8151for ac_header in GL/glext.h
8152do
8153as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8154echo "$as_me:$LINENO: checking for $ac_header" >&5
8155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8156if eval "test \"\${$as_ac_Header+set}\" = set"; then
8157 echo $ECHO_N "(cached) $ECHO_C" >&6
8158else
8159 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008160/* confdefs.h. */
8161_ACEOF
8162cat confdefs.h >>conftest.$ac_ext
8163cat >>conftest.$ac_ext <<_ACEOF
8164/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008165#include <GL/glx.h>
8166
8167#include <$ac_header>
8168_ACEOF
8169rm -f conftest.$ac_objext
8170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008171 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008172 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 (eval $ac_try) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; } &&
8184 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 eval "$as_ac_Header=yes"
8191else
8192 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008193sed 's/^/| /' conftest.$ac_ext >&5
8194
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008195eval "$as_ac_Header=no"
8196fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008198fi
8199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8201if test `eval echo '${'$as_ac_Header'}'` = yes; then
8202 cat >>confdefs.h <<_ACEOF
8203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8204_ACEOF
8205
8206fi
8207
8208done
8209
8210 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008211echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8212if test "${wine_cv_opengl_version_OK+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008214else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008215 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008216/* confdefs.h. */
8217_ACEOF
8218cat confdefs.h >>conftest.$ac_ext
8219cat >>conftest.$ac_ext <<_ACEOF
8220/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008221#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008222int
8223main ()
8224{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008225GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008226 ;
8227 return 0;
8228}
8229_ACEOF
8230rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008232 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008233 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008234 grep -v '^ *+' conftest.er1 >conftest.err
8235 rm -f conftest.er1
8236 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008238 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 (eval $ac_try) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; } &&
8245 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008247 (eval $ac_try) 2>&5
8248 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008250 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008251 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008252else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008253 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008254sed 's/^/| /' conftest.$ac_ext >&5
8255
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008256wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008257
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008258fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00008260
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008261fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008262echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008263echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8264
Alexandre Julliardb8074992002-11-21 21:51:24 +00008265 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008266 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008267 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008268echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8269if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008271else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008272 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00008273LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008274cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008275/* confdefs.h. */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008280
Patrik Stridvall24110281999-02-04 10:09:54 +00008281/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008282#ifdef __cplusplus
8283extern "C"
8284#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00008285/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008286 builtin and then its argument prototype would still apply. */
8287char glXCreateContext ();
8288int
8289main ()
8290{
8291glXCreateContext ();
8292 ;
8293 return 0;
8294}
8295_ACEOF
8296rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008298 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008299 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008300 grep -v '^ *+' conftest.er1 >conftest.err
8301 rm -f conftest.er1
8302 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008304 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 (eval $ac_try) 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; } &&
8311 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008313 (eval $ac_try) 2>&5
8314 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008316 (exit $ac_status); }; }; then
8317 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008318else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008319 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008320sed 's/^/| /' conftest.$ac_ext >&5
8321
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008322ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008323fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008324rm -f conftest.err conftest.$ac_objext \
8325 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008326LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008327fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008328echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008329echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8330if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008331 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00008332
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008333fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008334
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008335
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008336 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008337 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008338 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008339
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008340cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008341#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008342_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008343
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008344
8345 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008346echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8347if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008349else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008350 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008351LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008352cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008353/* confdefs.h. */
8354_ACEOF
8355cat confdefs.h >>conftest.$ac_ext
8356cat >>conftest.$ac_ext <<_ACEOF
8357/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008358
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008359/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008360#ifdef __cplusplus
8361extern "C"
8362#endif
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008363/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008364 builtin and then its argument prototype would still apply. */
8365char glXGetProcAddressARB ();
8366int
8367main ()
8368{
8369glXGetProcAddressARB ();
8370 ;
8371 return 0;
8372}
8373_ACEOF
8374rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008376 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008377 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008378 grep -v '^ *+' conftest.er1 >conftest.err
8379 rm -f conftest.er1
8380 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008382 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 (eval $ac_try) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; } &&
8389 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008391 (eval $ac_try) 2>&5
8392 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008394 (exit $ac_status); }; }; then
8395 ac_cv_lib_GL_glXGetProcAddressARB=yes
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008396else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008397 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008398sed 's/^/| /' conftest.$ac_ext >&5
8399
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008400ac_cv_lib_GL_glXGetProcAddressARB=no
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008401fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008402rm -f conftest.err conftest.$ac_objext \
8403 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008404LIBS=$ac_check_lib_save_LIBS
8405fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008406echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008407echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8408if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008409
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008410cat >>confdefs.h <<\_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008411#define HAVE_GLX_GETPROCADDRESS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008412_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008413
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008414fi
8415
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008416
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008417 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008418 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008419 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008420echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8421if test "${wine_cv_extension_prototypes+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer1434d872000-07-23 14:23:31 +00008423else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008424 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008425/* confdefs.h. */
8426_ACEOF
8427cat confdefs.h >>conftest.$ac_ext
8428cat >>conftest.$ac_ext <<_ACEOF
8429/* end confdefs.h. */
Lionel Ulmer1434d872000-07-23 14:23:31 +00008430#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008431 #ifdef HAVE_GL_GLEXT_H
8432 # include <GL/glext.h>
8433 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008434
8435int
8436main ()
8437{
Lionel Ulmer1434d872000-07-23 14:23:31 +00008438PFNGLCOLORTABLEEXTPROC test_proc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008439 ;
8440 return 0;
8441}
8442_ACEOF
8443rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008445 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008446 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008451 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 (eval $ac_try) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008460 (eval $ac_try) 2>&5
8461 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008463 (exit $ac_status); }; }; then
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008464 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00008465else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008466 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008467sed 's/^/| /' conftest.$ac_ext >&5
8468
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008469wine_cv_extension_prototypes="no"
Lionel Ulmer1434d872000-07-23 14:23:31 +00008470
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008471fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008473
8474fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008475echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008476echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008477 if test "$wine_cv_extension_prototypes" = "yes"
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008478 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008479
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008480cat >>confdefs.h <<\_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008481#define HAVE_GLEXT_PROTOTYPES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008482_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008483
8484 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008485 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00008486
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008487 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008488 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008489echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8490if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008492else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008493 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008494LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008495 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008496cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008497/* confdefs.h. */
8498_ACEOF
8499cat confdefs.h >>conftest.$ac_ext
8500cat >>conftest.$ac_ext <<_ACEOF
8501/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008502
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008503/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008504#ifdef __cplusplus
8505extern "C"
8506#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008507/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008508 builtin and then its argument prototype would still apply. */
8509char gluLookAt ();
8510int
8511main ()
8512{
8513gluLookAt ();
8514 ;
8515 return 0;
8516}
8517_ACEOF
8518rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008520 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008521 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008526 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8529 (eval $ac_try) 2>&5
8530 ac_status=$?
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008535 (eval $ac_try) 2>&5
8536 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008538 (exit $ac_status); }; }; then
8539 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008540else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008541 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008542sed 's/^/| /' conftest.$ac_ext >&5
8543
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008544ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008545fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008546rm -f conftest.err conftest.$ac_objext \
8547 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008548LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008549fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008550echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008551echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8552if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008553 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008554 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008555
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008556fi
8557
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008558 fi
Jacek Cabanef799c42003-12-02 04:11:09 +00008559
8560 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8561echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8562if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8564else
8565 ac_check_lib_save_LIBS=$LIBS
Jacek Caban5e69f112003-12-03 20:26:43 +00008566LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
Jacek Cabanef799c42003-12-02 04:11:09 +00008567cat >conftest.$ac_ext <<_ACEOF
Jacek Cabanef799c42003-12-02 04:11:09 +00008568/* confdefs.h. */
8569_ACEOF
8570cat confdefs.h >>conftest.$ac_ext
8571cat >>conftest.$ac_ext <<_ACEOF
8572/* end confdefs.h. */
8573
8574/* Override any gcc2 internal prototype to avoid an error. */
8575#ifdef __cplusplus
8576extern "C"
8577#endif
8578/* We use char because int might match the return type of a gcc2
8579 builtin and then its argument prototype would still apply. */
8580char glutMainLoop ();
8581int
8582main ()
8583{
8584glutMainLoop ();
8585 ;
8586 return 0;
8587}
8588_ACEOF
8589rm -f conftest.$ac_objext conftest$ac_exeext
8590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008591 (eval $ac_link) 2>conftest.er1
Jacek Cabanef799c42003-12-02 04:11:09 +00008592 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008593 grep -v '^ *+' conftest.er1 >conftest.err
8594 rm -f conftest.er1
8595 cat conftest.err >&5
Jacek Cabanef799c42003-12-02 04:11:09 +00008596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 (eval $ac_try) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; } &&
8604 { ac_try='test -s conftest$ac_exeext'
Jacek Cabanef799c42003-12-02 04:11:09 +00008605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8606 (eval $ac_try) 2>&5
8607 ac_status=$?
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); }; }; then
8610 ac_cv_lib_glut_glutMainLoop=yes
8611else
8612 echo "$as_me: failed program was:" >&5
8613sed 's/^/| /' conftest.$ac_ext >&5
8614
8615ac_cv_lib_glut_glutMainLoop=no
8616fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008617rm -f conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
Jacek Cabanef799c42003-12-02 04:11:09 +00008619LIBS=$ac_check_lib_save_LIBS
8620fi
8621echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8622echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8623if test $ac_cv_lib_glut_glutMainLoop = yes; then
Jacek Caban5e69f112003-12-03 20:26:43 +00008624 GLUT_LIBS="-lglut -lXmu -lXi"
Jacek Cabanef799c42003-12-02 04:11:09 +00008625
8626 GLUT32FILES='$(GLUT32FILES)'
8627
8628fi
8629
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008630 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008631 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008632
Francois Gouget6f670b12002-10-10 17:54:27 +00008633 NASLIBS=""
8634
8635
8636for ac_header in audio/audiolib.h
8637do
8638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8639if eval "test \"\${$as_ac_Header+set}\" = set"; then
8640 echo "$as_me:$LINENO: checking for $ac_header" >&5
8641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8642if eval "test \"\${$as_ac_Header+set}\" = set"; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644fi
8645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8647else
8648 # Is the header compilable?
8649echo "$as_me:$LINENO: checking $ac_header usability" >&5
8650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8651cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008652/* confdefs.h. */
8653_ACEOF
8654cat confdefs.h >>conftest.$ac_ext
8655cat >>conftest.$ac_ext <<_ACEOF
8656/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008657$ac_includes_default
8658#include <$ac_header>
8659_ACEOF
8660rm -f conftest.$ac_objext
8661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008662 (eval $ac_compile) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00008663 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008664 grep -v '^ *+' conftest.er1 >conftest.err
8665 rm -f conftest.er1
8666 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00008667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 (eval $ac_try) 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; } &&
8675 { ac_try='test -s conftest.$ac_objext'
Francois Gouget6f670b12002-10-10 17:54:27 +00008676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 (eval $ac_try) 2>&5
8678 ac_status=$?
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 ac_header_compiler=yes
8682else
8683 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008684sed 's/^/| /' conftest.$ac_ext >&5
8685
Francois Gouget6f670b12002-10-10 17:54:27 +00008686ac_header_compiler=no
8687fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8690echo "${ECHO_T}$ac_header_compiler" >&6
8691
8692# Is the header present?
8693echo "$as_me:$LINENO: checking $ac_header presence" >&5
8694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8695cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008696/* confdefs.h. */
8697_ACEOF
8698cat confdefs.h >>conftest.$ac_ext
8699cat >>conftest.$ac_ext <<_ACEOF
8700/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008701#include <$ac_header>
8702_ACEOF
8703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } >/dev/null; then
8711 if test -s conftest.err; then
8712 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00008713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Francois Gouget6f670b12002-10-10 17:54:27 +00008714 else
8715 ac_cpp_err=
8716 fi
8717else
8718 ac_cpp_err=yes
8719fi
8720if test -z "$ac_cpp_err"; then
8721 ac_header_preproc=yes
8722else
8723 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008724sed 's/^/| /' conftest.$ac_ext >&5
8725
Francois Gouget6f670b12002-10-10 17:54:27 +00008726 ac_header_preproc=no
8727fi
8728rm -f conftest.err conftest.$ac_ext
8729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8730echo "${ECHO_T}$ac_header_preproc" >&6
8731
8732# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8734 yes:no: )
Francois Gouget6f670b12002-10-10 17:54:27 +00008735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8739 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008740 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00008741 no:yes:* )
Francois Gouget6f670b12002-10-10 17:54:27 +00008742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Francois Gouget6f670b12002-10-10 17:54:27 +00008750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008754 (
8755 cat <<\_ASBOX
8756## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00008757## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008758## ------------------------------------ ##
8759_ASBOX
8760 ) |
8761 sed "s/^/$as_me: WARNING: /" >&2
8762 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00008763esac
8764echo "$as_me:$LINENO: checking for $ac_header" >&5
8765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8766if eval "test \"\${$as_ac_Header+set}\" = set"; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8768else
Alexandre Julliard875927f2004-01-02 01:55:29 +00008769 eval "$as_ac_Header=\$ac_header_preproc"
Francois Gouget6f670b12002-10-10 17:54:27 +00008770fi
8771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8773
8774fi
8775if test `eval echo '${'$as_ac_Header'}'` = yes; then
8776 cat >>confdefs.h <<_ACEOF
8777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8778_ACEOF
8779
8780for ac_header in audio/soundlib.h
8781do
8782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8783echo "$as_me:$LINENO: checking for $ac_header" >&5
8784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8785if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786 echo $ECHO_N "(cached) $ECHO_C" >&6
8787else
8788 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008789/* confdefs.h. */
8790_ACEOF
8791cat confdefs.h >>conftest.$ac_ext
8792cat >>conftest.$ac_ext <<_ACEOF
8793/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008794#include <audio/audiolib.h>
8795
8796#include <$ac_header>
8797_ACEOF
8798rm -f conftest.$ac_objext
8799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008800 (eval $ac_compile) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00008801 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00008805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8809 (eval $ac_try) 2>&5
8810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; } &&
8813 { ac_try='test -s conftest.$ac_objext'
Francois Gouget6f670b12002-10-10 17:54:27 +00008814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8815 (eval $ac_try) 2>&5
8816 ac_status=$?
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); }; }; then
8819 eval "$as_ac_Header=yes"
8820else
8821 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008822sed 's/^/| /' conftest.$ac_ext >&5
8823
Francois Gouget6f670b12002-10-10 17:54:27 +00008824eval "$as_ac_Header=no"
8825fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008827fi
8828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8830if test `eval echo '${'$as_ac_Header'}'` = yes; then
8831 cat >>confdefs.h <<_ACEOF
8832#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8833_ACEOF
8834
8835fi
8836
8837done
8838
8839 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8840echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8841if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8843else
8844 ac_check_lib_save_LIBS=$LIBS
8845LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8846cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008847/* confdefs.h. */
8848_ACEOF
8849cat confdefs.h >>conftest.$ac_ext
8850cat >>conftest.$ac_ext <<_ACEOF
8851/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008852
8853/* Override any gcc2 internal prototype to avoid an error. */
8854#ifdef __cplusplus
8855extern "C"
8856#endif
8857/* We use char because int might match the return type of a gcc2
8858 builtin and then its argument prototype would still apply. */
8859char AuCreateFlow ();
8860int
8861main ()
8862{
8863AuCreateFlow ();
8864 ;
8865 return 0;
8866}
8867_ACEOF
8868rm -f conftest.$ac_objext conftest$ac_exeext
8869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008870 (eval $ac_link) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00008871 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00008875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 (eval $ac_try) 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest$ac_exeext'
Francois Gouget6f670b12002-10-10 17:54:27 +00008884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 ac_cv_lib_audio_AuCreateFlow=yes
8890else
8891 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008892sed 's/^/| /' conftest.$ac_ext >&5
8893
Francois Gouget6f670b12002-10-10 17:54:27 +00008894ac_cv_lib_audio_AuCreateFlow=no
8895fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008896rm -f conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008898LIBS=$ac_check_lib_save_LIBS
8899fi
8900echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8901echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8902if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8903
8904cat >>confdefs.h <<\_ACEOF
8905#define HAVE_NAS 1
8906_ACEOF
8907
8908 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8909fi
8910
8911fi
8912
8913done
8914
8915
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008916 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00008917 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00008918else
8919 XLIB=""
8920 X_CFLAGS=""
8921 X_LIBS=""
8922fi
Alexandre Julliard902da691995-11-05 14:39:02 +00008923
Alexandre Julliard48957682001-12-26 23:08:31 +00008924CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008925if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00008926then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008927
8928for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008929do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008930as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008931if eval "test \"\${$as_ac_Header+set}\" = set"; then
8932 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8934if eval "test \"\${$as_ac_Header+set}\" = set"; then
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008936fi
8937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008939else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008940 # Is the header compilable?
8941echo "$as_me:$LINENO: checking $ac_header usability" >&5
8942echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8943cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008944/* confdefs.h. */
8945_ACEOF
8946cat confdefs.h >>conftest.$ac_ext
8947cat >>conftest.$ac_ext <<_ACEOF
8948/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008949$ac_includes_default
8950#include <$ac_header>
8951_ACEOF
8952rm -f conftest.$ac_objext
8953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008954 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008955 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008956 grep -v '^ *+' conftest.er1 >conftest.err
8957 rm -f conftest.er1
8958 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 (eval $ac_try) 2>&5
8964 ac_status=$?
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; } &&
8967 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969 (eval $ac_try) 2>&5
8970 ac_status=$?
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; }; then
8973 ac_header_compiler=yes
8974else
8975 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008976sed 's/^/| /' conftest.$ac_ext >&5
8977
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008978ac_header_compiler=no
8979fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008981echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8982echo "${ECHO_T}$ac_header_compiler" >&6
8983
8984# Is the header present?
8985echo "$as_me:$LINENO: checking $ac_header presence" >&5
8986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8987cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008988/* confdefs.h. */
8989_ACEOF
8990cat confdefs.h >>conftest.$ac_ext
8991cat >>conftest.$ac_ext <<_ACEOF
8992/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008993#include <$ac_header>
8994_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8997 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008998 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008999 rm -f conftest.er1
9000 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009002 (exit $ac_status); } >/dev/null; then
9003 if test -s conftest.err; then
9004 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009006 else
9007 ac_cpp_err=
9008 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009009else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009010 ac_cpp_err=yes
9011fi
9012if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009013 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009014else
9015 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009016sed 's/^/| /' conftest.$ac_ext >&5
9017
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009018 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009019fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009020rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009021echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9022echo "${ECHO_T}$ac_header_preproc" >&6
9023
9024# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9026 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9031 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009032 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009033 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9041echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009046 (
9047 cat <<\_ASBOX
9048## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009049## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009050## ------------------------------------ ##
9051_ASBOX
9052 ) |
9053 sed "s/^/$as_me: WARNING: /" >&2
9054 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009055esac
9056echo "$as_me:$LINENO: checking for $ac_header" >&5
9057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9058if eval "test \"\${$as_ac_Header+set}\" = set"; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9060else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009061 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00009062fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009065
9066fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009067if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009068 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009070_ACEOF
9071 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009072echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9073if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009075else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009076 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009077LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009078cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009079/* confdefs.h. */
9080_ACEOF
9081cat confdefs.h >>conftest.$ac_ext
9082cat >>conftest.$ac_ext <<_ACEOF
9083/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009084
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009085/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009086#ifdef __cplusplus
9087extern "C"
9088#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009089/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009090 builtin and then its argument prototype would still apply. */
9091char waddch ();
9092int
9093main ()
9094{
9095waddch ();
9096 ;
9097 return 0;
9098}
9099_ACEOF
9100rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009102 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009103 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009104 grep -v '^ *+' conftest.er1 >conftest.err
9105 rm -f conftest.er1
9106 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009108 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 (eval $ac_try) 2>&5
9112 ac_status=$?
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; } &&
9115 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009117 (eval $ac_try) 2>&5
9118 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009120 (exit $ac_status); }; }; then
9121 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009122else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009123 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009124sed 's/^/| /' conftest.$ac_ext >&5
9125
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009126ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009127fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009128rm -f conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009130LIBS=$ac_check_lib_save_LIBS
9131fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009132echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009133echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9134if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009135
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009136cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00009137#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009138_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009139
Alexandre Julliard48957682001-12-26 23:08:31 +00009140 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00009141else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009142
9143for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00009144do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009145as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009146if eval "test \"\${$as_ac_Header+set}\" = set"; then
9147 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9149if eval "test \"\${$as_ac_Header+set}\" = set"; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009151fi
9152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009154else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009155 # Is the header compilable?
9156echo "$as_me:$LINENO: checking $ac_header usability" >&5
9157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9158cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009159/* confdefs.h. */
9160_ACEOF
9161cat confdefs.h >>conftest.$ac_ext
9162cat >>conftest.$ac_ext <<_ACEOF
9163/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009164$ac_includes_default
9165#include <$ac_header>
9166_ACEOF
9167rm -f conftest.$ac_objext
9168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009169 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009170 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; } &&
9182 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; }; then
9188 ac_header_compiler=yes
9189else
9190 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009191sed 's/^/| /' conftest.$ac_ext >&5
9192
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009193ac_header_compiler=no
9194fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009196echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9197echo "${ECHO_T}$ac_header_compiler" >&6
9198
9199# Is the header present?
9200echo "$as_me:$LINENO: checking $ac_header presence" >&5
9201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9202cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009203/* confdefs.h. */
9204_ACEOF
9205cat confdefs.h >>conftest.$ac_ext
9206cat >>conftest.$ac_ext <<_ACEOF
9207/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009208#include <$ac_header>
9209_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9212 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009213 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009214 rm -f conftest.er1
9215 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009217 (exit $ac_status); } >/dev/null; then
9218 if test -s conftest.err; then
9219 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009221 else
9222 ac_cpp_err=
9223 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009224else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009225 ac_cpp_err=yes
9226fi
9227if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009228 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009229else
9230 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009231sed 's/^/| /' conftest.$ac_ext >&5
9232
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009233 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009234fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009235rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009236echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9237echo "${ECHO_T}$ac_header_preproc" >&6
9238
9239# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9241 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9243echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9245echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9246 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009247 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009248 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9250echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9252echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9254echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9256echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009258echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9260echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009261 (
9262 cat <<\_ASBOX
9263## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009264## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009265## ------------------------------------ ##
9266_ASBOX
9267 ) |
9268 sed "s/^/$as_me: WARNING: /" >&2
9269 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009270esac
9271echo "$as_me:$LINENO: checking for $ac_header" >&5
9272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9273if eval "test \"\${$as_ac_Header+set}\" = set"; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9275else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009276 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00009277fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009279echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009280
9281fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009282if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009283 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009284#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009285_ACEOF
9286 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009287echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9288if test "${ac_cv_lib_curses_waddch+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009290else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009291 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009292LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009293cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009294/* confdefs.h. */
9295_ACEOF
9296cat confdefs.h >>conftest.$ac_ext
9297cat >>conftest.$ac_ext <<_ACEOF
9298/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009299
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009300/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009301#ifdef __cplusplus
9302extern "C"
9303#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009304/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009305 builtin and then its argument prototype would still apply. */
9306char waddch ();
9307int
9308main ()
9309{
9310waddch ();
9311 ;
9312 return 0;
9313}
9314_ACEOF
9315rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009317 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009318 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009319 grep -v '^ *+' conftest.er1 >conftest.err
9320 rm -f conftest.er1
9321 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009323 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 (eval $ac_try) 2>&5
9327 ac_status=$?
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; } &&
9330 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009332 (eval $ac_try) 2>&5
9333 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009335 (exit $ac_status); }; }; then
9336 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009337else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009338 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009339sed 's/^/| /' conftest.$ac_ext >&5
9340
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009341ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009342fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009343rm -f conftest.err conftest.$ac_objext \
9344 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009345LIBS=$ac_check_lib_save_LIBS
9346fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009347echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009348echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9349if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009350
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009351cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00009352#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009353_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009354
Alexandre Julliard48957682001-12-26 23:08:31 +00009355 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009356fi
9357
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009358fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009359
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009360done
9361
9362fi
Alexandre Julliard48957682001-12-26 23:08:31 +00009363
Alexandre Julliard48957682001-12-26 23:08:31 +00009364fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009365
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009366done
9367
Alexandre Julliard48957682001-12-26 23:08:31 +00009368 saved_libs="$LIBS"
9369 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009370
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009371
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009372for ac_func in getbkgd resizeterm
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009373do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009374as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009375echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009376echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9377if eval "test \"\${$as_ac_var+set}\" = set"; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard638f1691999-01-17 16:32:32 +00009379else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009380 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009381/* confdefs.h. */
9382_ACEOF
9383cat confdefs.h >>conftest.$ac_ext
9384cat >>conftest.$ac_ext <<_ACEOF
9385/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00009386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9388#define $ac_func innocuous_$ac_func
9389
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009390/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009391 which can conflict with char $ac_func (); below.
9392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9393 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00009394
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009395#ifdef __STDC__
9396# include <limits.h>
9397#else
9398# include <assert.h>
9399#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00009400
9401#undef $ac_func
9402
Alexandre Julliard638f1691999-01-17 16:32:32 +00009403/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009404#ifdef __cplusplus
9405extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009406{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009407#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00009408/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009409 builtin and then its argument prototype would still apply. */
9410char $ac_func ();
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009411/* The GNU C library defines this for functions which it implements
9412 to always fail with ENOSYS. Some functions are actually named
9413 something starting with __ and the normal name is an alias. */
9414#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9415choke me
9416#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009417char (*f) () = $ac_func;
9418#endif
9419#ifdef __cplusplus
9420}
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009421#endif
9422
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009423int
9424main ()
9425{
9426return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009427 ;
9428 return 0;
9429}
9430_ACEOF
9431rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009433 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009434 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009435 grep -v '^ *+' conftest.er1 >conftest.err
9436 rm -f conftest.er1
9437 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009439 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; } &&
9446 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009448 (eval $ac_try) 2>&5
9449 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009451 (exit $ac_status); }; }; then
9452 eval "$as_ac_var=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00009453else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009454 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009455sed 's/^/| /' conftest.$ac_ext >&5
9456
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009457eval "$as_ac_var=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00009458fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009459rm -f conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard638f1691999-01-17 16:32:32 +00009461fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009463echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9464if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009465 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009466#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009467_ACEOF
Alexandre Julliard638f1691999-01-17 16:32:32 +00009468
Alexandre Julliard638f1691999-01-17 16:32:32 +00009469fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009470done
Alexandre Julliard638f1691999-01-17 16:32:32 +00009471
Alexandre Julliard48957682001-12-26 23:08:31 +00009472 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009473fi
9474
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009475
Shi Quan He6b0720f2002-03-21 02:58:39 +00009476# Extract the first word of "sane-config", so it can be a program name with args.
9477set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009478echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9480if test "${ac_cv_prog_sane_devel+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9482else
9483 if test -n "$sane_devel"; then
9484 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9485else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9487for as_dir in $PATH
9488do
9489 IFS=$as_save_IFS
9490 test -z "$as_dir" && as_dir=.
9491 for ac_exec_ext in '' $ac_executable_extensions; do
9492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9493 ac_cv_prog_sane_devel="sane-config"
9494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9495 break 2
9496 fi
9497done
Shi Quan He6b0720f2002-03-21 02:58:39 +00009498done
9499
9500 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9501fi
9502fi
9503sane_devel=$ac_cv_prog_sane_devel
9504if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009505 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009506echo "${ECHO_T}$sane_devel" >&6
9507else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009508 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009509echo "${ECHO_T}no" >&6
9510fi
9511
9512if test "$sane_devel" = "no"
9513then
9514 SANELIBS=""
9515 SANEINCL=""
9516else
9517 SANELIBS="`$sane_devel --libs`"
9518 SANEINCL="`$sane_devel --cflags`"
9519 ac_save_CPPFLAGS="$CPPFLAGS"
9520 ac_save_LIBS="$LIBS"
9521 CPPFLAGS="$CPPFLAGS $SANEINCL"
9522 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009523 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9524 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009525echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9526if test "${ac_cv_header_sane_sane_h+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009528fi
9529echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9530echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009531else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009532 # Is the header compilable?
9533echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9534echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9535cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009536/* confdefs.h. */
9537_ACEOF
9538cat confdefs.h >>conftest.$ac_ext
9539cat >>conftest.$ac_ext <<_ACEOF
9540/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009541$ac_includes_default
9542#include <sane/sane.h>
9543_ACEOF
9544rm -f conftest.$ac_objext
9545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009546 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009547 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 (eval $ac_try) 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; } &&
9559 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 (eval $ac_try) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9565 ac_header_compiler=yes
9566else
9567 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009568sed 's/^/| /' conftest.$ac_ext >&5
9569
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009570ac_header_compiler=no
9571fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9574echo "${ECHO_T}$ac_header_compiler" >&6
9575
9576# Is the header present?
9577echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9578echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9579cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009580/* confdefs.h. */
9581_ACEOF
9582cat confdefs.h >>conftest.$ac_ext
9583cat >>conftest.$ac_ext <<_ACEOF
9584/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009585#include <sane/sane.h>
9586_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9589 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009590 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +00009591 rm -f conftest.er1
9592 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009594 (exit $ac_status); } >/dev/null; then
9595 if test -s conftest.err; then
9596 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Shi Quan He6b0720f2002-03-21 02:58:39 +00009598 else
9599 ac_cpp_err=
9600 fi
9601else
9602 ac_cpp_err=yes
9603fi
9604if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009605 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +00009606else
9607 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009608sed 's/^/| /' conftest.$ac_ext >&5
9609
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009610 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +00009611fi
9612rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9614echo "${ECHO_T}$ac_header_preproc" >&6
9615
9616# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9618 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009619 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9620echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009621 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9622echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9623 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009624 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009625 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009626 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9627echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009628 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9629echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9631echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
9633echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009634 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009635echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009636 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9637echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009638 (
9639 cat <<\_ASBOX
9640## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009641## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009642## ------------------------------------ ##
9643_ASBOX
9644 ) |
9645 sed "s/^/$as_me: WARNING: /" >&2
9646 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009647esac
9648echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9649echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9650if test "${ac_cv_header_sane_sane_h+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9652else
9653 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +00009654fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009655echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009656echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009657
9658fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009659if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009660 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009661echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9662if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9664else
9665 ac_check_lib_save_LIBS=$LIBS
9666LIBS="-lsane $LIBS"
9667cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009668/* confdefs.h. */
9669_ACEOF
9670cat confdefs.h >>conftest.$ac_ext
9671cat >>conftest.$ac_ext <<_ACEOF
9672/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009673
9674/* Override any gcc2 internal prototype to avoid an error. */
9675#ifdef __cplusplus
9676extern "C"
9677#endif
9678/* We use char because int might match the return type of a gcc2
9679 builtin and then its argument prototype would still apply. */
9680char sane_open ();
9681int
9682main ()
9683{
9684sane_open ();
9685 ;
9686 return 0;
9687}
9688_ACEOF
9689rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009691 (eval $ac_link) 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +00009692 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009697 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 (eval $ac_try) 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; } &&
9704 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009706 (eval $ac_try) 2>&5
9707 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009709 (exit $ac_status); }; }; then
9710 ac_cv_lib_sane_sane_open=yes
9711else
9712 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009713sed 's/^/| /' conftest.$ac_ext >&5
9714
Shi Quan He6b0720f2002-03-21 02:58:39 +00009715ac_cv_lib_sane_sane_open=no
9716fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009717rm -f conftest.err conftest.$ac_objext \
9718 conftest$ac_exeext conftest.$ac_ext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009719LIBS=$ac_check_lib_save_LIBS
9720fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009721echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009722echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9723if test $ac_cv_lib_sane_sane_open = yes; then
9724
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009725cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009726#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009727_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009728
9729else
9730 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +00009731 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009732fi
9733
Alexandre Julliard96328b32002-03-31 19:23:41 +00009734else
9735 SANELIBS=""
9736 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009737fi
9738
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009739
Shi Quan He6b0720f2002-03-21 02:58:39 +00009740 LIBS="$ac_save_LIBS"
9741 CPPFLAGS="$ac_save_CPPFLAGS"
9742fi
9743
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009744
9745
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009746
9747for ac_header in unicode/ubidi.h
9748do
9749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9750if eval "test \"\${$as_ac_Header+set}\" = set"; then
9751 echo "$as_me:$LINENO: checking for $ac_header" >&5
9752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9753if eval "test \"\${$as_ac_Header+set}\" = set"; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9755fi
9756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9757echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9758else
9759 # Is the header compilable?
9760echo "$as_me:$LINENO: checking $ac_header usability" >&5
9761echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9762cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009763/* confdefs.h. */
9764_ACEOF
9765cat confdefs.h >>conftest.$ac_ext
9766cat >>conftest.$ac_ext <<_ACEOF
9767/* end confdefs.h. */
9768$ac_includes_default
9769#include <$ac_header>
9770_ACEOF
9771rm -f conftest.$ac_objext
9772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009773 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009774 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009775 grep -v '^ *+' conftest.er1 >conftest.err
9776 rm -f conftest.er1
9777 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 (eval $ac_try) 2>&5
9783 ac_status=$?
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); }; } &&
9786 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788 (eval $ac_try) 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792 ac_header_compiler=yes
9793else
9794 echo "$as_me: failed program was:" >&5
9795sed 's/^/| /' conftest.$ac_ext >&5
9796
9797ac_header_compiler=no
9798fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009800echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9801echo "${ECHO_T}$ac_header_compiler" >&6
9802
9803# Is the header present?
9804echo "$as_me:$LINENO: checking $ac_header presence" >&5
9805echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9806cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009807/* confdefs.h. */
9808_ACEOF
9809cat confdefs.h >>conftest.$ac_ext
9810cat >>conftest.$ac_ext <<_ACEOF
9811/* end confdefs.h. */
9812#include <$ac_header>
9813_ACEOF
9814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9816 ac_status=$?
9817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } >/dev/null; then
9822 if test -s conftest.err; then
9823 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009825 else
9826 ac_cpp_err=
9827 fi
9828else
9829 ac_cpp_err=yes
9830fi
9831if test -z "$ac_cpp_err"; then
9832 ac_header_preproc=yes
9833else
9834 echo "$as_me: failed program was:" >&5
9835sed 's/^/| /' conftest.$ac_ext >&5
9836
9837 ac_header_preproc=no
9838fi
9839rm -f conftest.err conftest.$ac_ext
9840echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9841echo "${ECHO_T}$ac_header_preproc" >&6
9842
9843# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9845 yes:no: )
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9847echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9849echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9850 ac_header_preproc=yes
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009851 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009852 no:yes:* )
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9854echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9856echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9858echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9860echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9862echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9864echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009865 (
9866 cat <<\_ASBOX
9867## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009868## Report this to wine-devel@winehq.org ##
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009869## ------------------------------------ ##
9870_ASBOX
9871 ) |
9872 sed "s/^/$as_me: WARNING: /" >&2
9873 ;;
9874esac
9875echo "$as_me:$LINENO: checking for $ac_header" >&5
9876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9877if eval "test \"\${$as_ac_Header+set}\" = set"; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009880 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009881fi
9882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9884
9885fi
9886if test `eval echo '${'$as_ac_Header'}'` = yes; then
9887 cat >>confdefs.h <<_ACEOF
9888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9889_ACEOF
9890
9891fi
9892
9893done
9894
9895if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9896then
Marcus Meissnerbc624582004-01-18 22:15:46 +00009897 saved_libs="$LIBS"
9898 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
Shachar Shemesh9f2627e2004-04-06 20:13:21 +00009899 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
9900 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
9901 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
9902echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +00009903 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9904 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009905/* confdefs.h. */
9906_ACEOF
9907cat confdefs.h >>conftest.$ac_ext
9908cat >>conftest.$ac_ext <<_ACEOF
9909/* end confdefs.h. */
9910#include <unicode/ubidi.h>
9911int
9912main ()
9913{
9914ubidi_open()
9915 ;
9916 return 0;
9917}
9918_ACEOF
9919rm -f conftest.$ac_objext conftest$ac_exeext
9920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009921 (eval $ac_link) 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009922 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 (eval $ac_try) 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; } &&
9934 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 (eval $ac_try) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009940
9941cat >>confdefs.h <<\_ACEOF
9942#define HAVE_ICU 1
9943_ACEOF
9944
Marcus Meissnerbc624582004-01-18 22:15:46 +00009945 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009946
Shachar Shemesh9f2627e2004-04-06 20:13:21 +00009947 echo "$as_me:$LINENO: result: yes" >&5
9948echo "${ECHO_T}yes" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +00009949else
9950 echo "$as_me: failed program was:" >&5
9951sed 's/^/| /' conftest.$ac_ext >&5
9952
Shachar Shemesh9f2627e2004-04-06 20:13:21 +00009953echo "$as_me:$LINENO: result: no" >&5
9954echo "${ECHO_T}no" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +00009955fi
9956rm -f conftest.err conftest.$ac_objext \
9957 conftest$ac_exeext conftest.$ac_ext
9958 LIBS="$saved_libs"
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009959fi
9960
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009961echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009962echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9963if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009965else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009966 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00009967LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009968cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009969/* confdefs.h. */
9970_ACEOF
9971cat confdefs.h >>conftest.$ac_ext
9972cat >>conftest.$ac_ext <<_ACEOF
9973/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009974
Ian Pilcher563598d2001-05-16 20:56:05 +00009975/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009976#ifdef __cplusplus
9977extern "C"
9978#endif
Ian Pilcher563598d2001-05-16 20:56:05 +00009979/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009980 builtin and then its argument prototype would still apply. */
9981char FT_Init_FreeType ();
9982int
9983main ()
9984{
9985FT_Init_FreeType ();
9986 ;
9987 return 0;
9988}
9989_ACEOF
9990rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009992 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009993 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009994 grep -v '^ *+' conftest.er1 >conftest.err
9995 rm -f conftest.er1
9996 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009998 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10000 { (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); }; } &&
10005 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010007 (eval $ac_try) 2>&5
10008 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010010 (exit $ac_status); }; }; then
10011 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010012else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010013 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010014sed 's/^/| /' conftest.$ac_ext >&5
10015
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010016ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010017fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010018rm -f conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010020LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010021fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010022echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010023echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10024if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +000010025 ft_lib=yes
10026else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010027 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010028fi
10029
10030if test "$ft_lib" = "no"
10031then
Huw Davies00acb5f2004-08-17 22:33:14 +000010032 FREETYPELIBS=""
Ian Pilcher563598d2001-05-16 20:56:05 +000010033 FREETYPEINCL=""
10034 wine_cv_msg_freetype=no
10035else
10036 # Extract the first word of "freetype-config", so it can be a program name with args.
10037set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010038echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10040if test "${ac_cv_prog_ft_devel+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010042else
10043 if test -n "$ft_devel"; then
10044 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10045else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047for as_dir in $PATH
10048do
10049 IFS=$as_save_IFS
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10053 ac_cv_prog_ft_devel="freetype-config"
10054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10055 break 2
10056 fi
10057done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010058done
10059
Ian Pilcher563598d2001-05-16 20:56:05 +000010060 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10061fi
10062fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010063ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +000010064if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010065 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010066echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010067else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010068 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010069echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010070fi
10071
10072 if test "$ft_devel" = "no"
10073 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010074 # Extract the first word of "freetype2-config", so it can be a program name with args.
10075set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010076echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10078if test "${ac_cv_prog_ft_devel2+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010080else
10081 if test -n "$ft_devel2"; then
10082 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10083else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085for as_dir in $PATH
10086do
10087 IFS=$as_save_IFS
10088 test -z "$as_dir" && as_dir=.
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10091 ac_cv_prog_ft_devel2="freetype2-config"
10092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10093 break 2
10094 fi
10095done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010096done
10097
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010098 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10099fi
10100fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010101ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010102if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010103 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010104echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010105else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010106 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010107echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010108fi
10109
10110 if test "$ft_devel2" = "freetype2-config"
10111 then
10112 ft_devel=$ft_devel2
10113 fi
10114 fi
10115 if test "$ft_devel" = "no"
10116 then
Huw Davies00acb5f2004-08-17 22:33:14 +000010117 FREETYPELIBS=""
Ian Pilcher563598d2001-05-16 20:56:05 +000010118 FREETYPEINCL=""
10119 wine_cv_msg_freetype=yes
10120 else
Huw Davies00acb5f2004-08-17 22:33:14 +000010121 FREETYPELIBS=`$ft_devel --libs`
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010122 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +000010123 ac_save_CPPFLAGS="$CPPFLAGS"
10124 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010125
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010126
10127
10128
10129
10130
10131
10132
Rein Klazese617a9c2003-11-19 02:18:13 +000010133
Huw Daviesc2217182004-06-16 20:06:26 +000010134
Rein Klazese617a9c2003-11-19 02:18:13 +000010135for ac_header in ft2build.h \
10136 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010137 freetype/ftglyph.h \
10138 freetype/tttables.h \
10139 freetype/ftnames.h \
10140 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010141 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010142 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010143 freetype/ftwinfnt.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010144 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +000010145do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Rein Klazes9c269172003-11-20 04:17:33 +000010147echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10149if eval "test \"\${$as_ac_Header+set}\" = set"; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010151else
Rein Klazes9c269172003-11-20 04:17:33 +000010152 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010153/* confdefs.h. */
10154_ACEOF
10155cat confdefs.h >>conftest.$ac_ext
10156cat >>conftest.$ac_ext <<_ACEOF
10157/* end confdefs.h. */
Rein Klazes9c269172003-11-20 04:17:33 +000010158#if HAVE_FT2BUILD_H
10159 #include <ft2build.h>
10160 #endif
10161
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010162#include <$ac_header>
10163_ACEOF
10164rm -f conftest.$ac_objext
10165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010166 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010167 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; } &&
10179 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10182 ac_status=$?
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; }; then
Rein Klazes9c269172003-11-20 04:17:33 +000010185 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010186else
10187 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010188sed 's/^/| /' conftest.$ac_ext >&5
10189
Rein Klazes9c269172003-11-20 04:17:33 +000010190eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010191fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010193fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010196if test `eval echo '${'$as_ac_Header'}'` = yes; then
10197 cat >>confdefs.h <<_ACEOF
10198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10199_ACEOF
10200
10201fi
10202
Ian Pilcher40432fe2001-06-06 21:05:23 +000010203done
10204
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010205 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010206/* confdefs.h. */
10207_ACEOF
10208cat confdefs.h >>conftest.$ac_ext
10209cat >>conftest.$ac_ext <<_ACEOF
10210/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010211#include <ft2build.h>
10212 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010213_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10216 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010217 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010218 rm -f conftest.er1
10219 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010221 (exit $ac_status); } >/dev/null; then
10222 if test -s conftest.err; then
10223 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010225 else
10226 ac_cpp_err=
10227 fi
10228else
10229 ac_cpp_err=yes
10230fi
10231if test -z "$ac_cpp_err"; then
10232
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010233cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000010234#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010235_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000010236
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010237 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010238else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010239 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010240sed 's/^/| /' conftest.$ac_ext >&5
10241
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010242 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010243fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010244rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +000010245 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010246 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010247 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010248
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010249cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010250#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010251_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010252
10253 wine_cv_msg_freetype=no
10254 else
Huw Davies00acb5f2004-08-17 22:33:14 +000010255 FREETYPELIBS=""
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010256 FREETYPEINCL=""
10257 wine_cv_msg_freetype=yes
10258 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010259 fi
10260fi
10261
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010262
Huw Davies00acb5f2004-08-17 22:33:14 +000010263
10264if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10265then
10266 FONTSSUBDIRS="fonts"
10267
10268fi
10269
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010270echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010271echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10272if test "${ac_cv_c_ppdev+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010274else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010275 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010276/* confdefs.h. */
10277_ACEOF
10278cat confdefs.h >>conftest.$ac_ext
10279cat >>conftest.$ac_ext <<_ACEOF
10280/* end confdefs.h. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010281#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010282int
10283main ()
10284{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010285ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010286 ;
10287 return 0;
10288}
10289_ACEOF
10290rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010292 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010293 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010294 grep -v '^ *+' conftest.er1 >conftest.err
10295 rm -f conftest.er1
10296 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010298 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; } &&
10305 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010307 (eval $ac_try) 2>&5
10308 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010310 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010311 ac_cv_c_ppdev="yes"
10312else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010313 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010314sed 's/^/| /' conftest.$ac_ext >&5
10315
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010316ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010317fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010319
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010320fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010321echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010322echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010323if test "$ac_cv_c_ppdev" = "yes"
10324then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010325
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010326cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010327#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010328_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010329
10330fi
10331
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010332echo "$as_me:$LINENO: checking for va_copy" >&5
10333echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10334if test "${ac_cv_c_va_copy+set}" = set; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
10336else
10337 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010338/* confdefs.h. */
10339_ACEOF
10340cat confdefs.h >>conftest.$ac_ext
10341cat >>conftest.$ac_ext <<_ACEOF
10342/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010343#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010344int
10345main ()
10346{
10347va_list ap1, ap2;
10348 va_copy(ap1,ap2);
10349
10350 ;
10351 return 0;
10352}
10353_ACEOF
10354rm -f conftest.$ac_objext conftest$ac_exeext
10355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010356 (eval $ac_link) 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010357 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010358 grep -v '^ *+' conftest.er1 >conftest.err
10359 rm -f conftest.er1
10360 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; } &&
10369 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371 (eval $ac_try) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); }; }; then
10375 ac_cv_c_va_copy="yes"
10376else
10377 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010378sed 's/^/| /' conftest.$ac_ext >&5
10379
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010380ac_cv_c_va_copy="no"
10381fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010382rm -f conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010384
10385fi
10386echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10387echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10388if test "$ac_cv_c_va_copy" = "yes"
10389then
10390
10391cat >>confdefs.h <<\_ACEOF
10392#define HAVE_VA_COPY 1
10393_ACEOF
10394
10395fi
10396echo "$as_me:$LINENO: checking for __va_copy" >&5
10397echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10398if test "${ac_cv_c___va_copy+set}" = set; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10400else
10401 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010402/* confdefs.h. */
10403_ACEOF
10404cat confdefs.h >>conftest.$ac_ext
10405cat >>conftest.$ac_ext <<_ACEOF
10406/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010407#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010408int
10409main ()
10410{
10411va_list ap1, ap2;
10412 __va_copy(ap1,ap2);
10413
10414 ;
10415 return 0;
10416}
10417_ACEOF
10418rm -f conftest.$ac_objext conftest$ac_exeext
10419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010420 (eval $ac_link) 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010421 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010422 grep -v '^ *+' conftest.er1 >conftest.err
10423 rm -f conftest.er1
10424 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429 (eval $ac_try) 2>&5
10430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; } &&
10433 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; }; then
10439 ac_cv_c___va_copy="yes"
10440else
10441 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010442sed 's/^/| /' conftest.$ac_ext >&5
10443
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010444ac_cv_c___va_copy="no"
10445fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010446rm -f conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010448
10449fi
10450echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10451echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10452if test "$ac_cv_c___va_copy" = "yes"
10453then
10454
10455cat >>confdefs.h <<\_ACEOF
10456#define HAVE___VA_COPY 1
10457_ACEOF
10458
10459fi
10460
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010461echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10462echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10463if test "${ac_cv_c_sigsetjmp+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10465else
10466 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010467/* confdefs.h. */
10468_ACEOF
10469cat confdefs.h >>conftest.$ac_ext
10470cat >>conftest.$ac_ext <<_ACEOF
10471/* end confdefs.h. */
10472#include <setjmp.h>
10473int
10474main ()
10475{
10476sigjmp_buf buf;
10477 sigsetjmp( buf, 1 );
10478 siglongjmp( buf, 1 );
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
Alexandre Julliardb2d937d2003-11-12 03:16:00 +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
Alexandre Julliardb2d937d2003-11-12 03:16:00 +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'
Alexandre Julliardb2d937d2003-11-12 03:16:00 +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_sigsetjmp="yes"
10505else
10506 echo "$as_me: failed program was:" >&5
10507sed 's/^/| /' conftest.$ac_ext >&5
10508
10509ac_cv_c_sigsetjmp="no"
10510fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010511rm -f conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010513
10514fi
10515echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10516echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10517if test "$ac_cv_c_sigsetjmp" = "yes"
10518then
10519
10520cat >>confdefs.h <<\_ACEOF
10521#define HAVE_SIGSETJMP 1
10522_ACEOF
10523
10524fi
10525
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010526echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10527echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10528if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10530else
10531 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010532/* confdefs.h. */
10533_ACEOF
10534cat confdefs.h >>conftest.$ac_ext
10535cat >>conftest.$ac_ext <<_ACEOF
10536/* end confdefs.h. */
10537#define _GNU_SOURCE
10538#include <pthread.h>
10539
10540int
10541main ()
10542{
10543if ((pthread_rwlock_t *) 0)
10544 return 0;
10545if (sizeof (pthread_rwlock_t))
10546 return 0;
10547 ;
10548 return 0;
10549}
10550_ACEOF
10551rm -f conftest.$ac_objext
10552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010553 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010554 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010555 grep -v '^ *+' conftest.er1 >conftest.err
10556 rm -f conftest.er1
10557 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; } &&
10566 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 ac_cv_type_pthread_rwlock_t=yes
10573else
10574 echo "$as_me: failed program was:" >&5
10575sed 's/^/| /' conftest.$ac_ext >&5
10576
10577ac_cv_type_pthread_rwlock_t=no
10578fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010580fi
10581echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10582echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10583if test $ac_cv_type_pthread_rwlock_t = yes; then
10584
10585cat >>confdefs.h <<_ACEOF
10586#define HAVE_PTHREAD_RWLOCK_T 1
10587_ACEOF
10588
10589
10590fi
10591echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10592echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10593if test "${ac_cv_type_pthread_rwlockattr_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_rwlockattr_t *) 0)
10609 return 0;
10610if (sizeof (pthread_rwlockattr_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_rwlockattr_t=yes
10638else
10639 echo "$as_me: failed program was:" >&5
10640sed 's/^/| /' conftest.$ac_ext >&5
10641
10642ac_cv_type_pthread_rwlockattr_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_rwlockattr_t" >&5
10647echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10648if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10649
10650cat >>confdefs.h <<_ACEOF
10651#define HAVE_PTHREAD_RWLOCKATTR_T 1
10652_ACEOF
10653
10654
10655fi
10656
10657
Alexandre Julliard821ab862003-11-12 22:44:56 +000010658ac_save_LIBS="$LIBS"
10659LIBS="$LIBS $LIBPTHREAD"
10660
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010661
10662
10663for ac_func in \
10664 pthread_getattr_np \
10665 pthread_get_stackaddr_np \
10666 pthread_get_stacksize_np \
10667
Alexandre Julliard821ab862003-11-12 22:44:56 +000010668do
10669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10670echo "$as_me:$LINENO: checking for $ac_func" >&5
10671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10672if eval "test \"\${$as_ac_var+set}\" = set"; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674else
10675 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard821ab862003-11-12 22:44:56 +000010676/* confdefs.h. */
10677_ACEOF
10678cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000010681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10683#define $ac_func innocuous_$ac_func
10684
Alexandre Julliard821ab862003-11-12 22:44:56 +000010685/* System header to define __stub macros and hopefully few prototypes,
10686 which can conflict with char $ac_func (); below.
10687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10688 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000010689
Alexandre Julliard821ab862003-11-12 22:44:56 +000010690#ifdef __STDC__
10691# include <limits.h>
10692#else
10693# include <assert.h>
10694#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000010695
10696#undef $ac_func
10697
Alexandre Julliard821ab862003-11-12 22:44:56 +000010698/* Override any gcc2 internal prototype to avoid an error. */
10699#ifdef __cplusplus
10700extern "C"
10701{
10702#endif
10703/* We use char because int might match the return type of a gcc2
10704 builtin and then its argument prototype would still apply. */
10705char $ac_func ();
10706/* The GNU C library defines this for functions which it implements
10707 to always fail with ENOSYS. Some functions are actually named
10708 something starting with __ and the normal name is an alias. */
10709#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10710choke me
10711#else
10712char (*f) () = $ac_func;
10713#endif
10714#ifdef __cplusplus
10715}
10716#endif
10717
10718int
10719main ()
10720{
10721return f != $ac_func;
10722 ;
10723 return 0;
10724}
10725_ACEOF
10726rm -f conftest.$ac_objext conftest$ac_exeext
10727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010728 (eval $ac_link) 2>conftest.er1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010729 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010730 grep -v '^ *+' conftest.er1 >conftest.err
10731 rm -f conftest.er1
10732 cat conftest.err >&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000010733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; } &&
10741 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard821ab862003-11-12 22:44:56 +000010742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5
10744 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; }; then
10747 eval "$as_ac_var=yes"
10748else
10749 echo "$as_me: failed program was:" >&5
10750sed 's/^/| /' conftest.$ac_ext >&5
10751
10752eval "$as_ac_var=no"
10753fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010754rm -f conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard821ab862003-11-12 22:44:56 +000010756fi
10757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10758echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10759if test `eval echo '${'$as_ac_var'}'` = yes; then
10760 cat >>confdefs.h <<_ACEOF
10761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10762_ACEOF
10763
10764fi
10765done
10766
10767LIBS="$ac_save_LIBS"
10768
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010769
10770
10771
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010772for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010773do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010775if eval "test \"\${$as_ac_Header+set}\" = set"; then
10776 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10778if eval "test \"\${$as_ac_Header+set}\" = set"; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010780fi
10781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010783else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010784 # Is the header compilable?
10785echo "$as_me:$LINENO: checking $ac_header usability" >&5
10786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10787cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010788/* confdefs.h. */
10789_ACEOF
10790cat confdefs.h >>conftest.$ac_ext
10791cat >>conftest.$ac_ext <<_ACEOF
10792/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010793$ac_includes_default
10794#include <$ac_header>
10795_ACEOF
10796rm -f conftest.$ac_objext
10797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010798 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010799 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010800 grep -v '^ *+' conftest.er1 >conftest.err
10801 rm -f conftest.er1
10802 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807 (eval $ac_try) 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813 (eval $ac_try) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; }; then
10817 ac_header_compiler=yes
10818else
10819 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010820sed 's/^/| /' conftest.$ac_ext >&5
10821
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010822ac_header_compiler=no
10823fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010825echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10826echo "${ECHO_T}$ac_header_compiler" >&6
10827
10828# Is the header present?
10829echo "$as_me:$LINENO: checking $ac_header presence" >&5
10830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10831cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010832/* confdefs.h. */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
10836/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010837#include <$ac_header>
10838_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10841 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010842 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010843 rm -f conftest.er1
10844 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010846 (exit $ac_status); } >/dev/null; then
10847 if test -s conftest.err; then
10848 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010850 else
10851 ac_cpp_err=
10852 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010853else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010854 ac_cpp_err=yes
10855fi
10856if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010857 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010858else
10859 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010860sed 's/^/| /' conftest.$ac_ext >&5
10861
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010862 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010863fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010864rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10866echo "${ECHO_T}$ac_header_preproc" >&6
10867
10868# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10870 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10874echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10875 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010876 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000010877 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10883echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10885echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10889echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010890 (
10891 cat <<\_ASBOX
10892## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000010893## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010894## ------------------------------------ ##
10895_ASBOX
10896 ) |
10897 sed "s/^/$as_me: WARNING: /" >&2
10898 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010899esac
10900echo "$as_me:$LINENO: checking for $ac_header" >&5
10901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10902if eval "test \"\${$as_ac_Header+set}\" = set"; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904else
Alexandre Julliard875927f2004-01-02 01:55:29 +000010905 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010906fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010909
10910fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010911if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010912 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010914_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +000010915 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010916fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010917
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010918done
10919
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010920
10921echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010922echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10923if test "${ac_cv_c_opensoundsystem+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010925else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010926 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010927/* confdefs.h. */
10928_ACEOF
10929cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF
10931/* end confdefs.h. */
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010932
Todd Vierlingecc76691998-12-15 17:49:02 +000010933 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010934 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +000010935 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010936 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +000010937 #elif defined(HAVE_SOUNDCARD_H)
10938 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010939 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010940
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010941int
10942main ()
10943{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010944
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010945
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000010946/* check for one of the Open Sound System specific SNDCTL_ defines */
10947#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010948#error No open sound system
10949#endif
10950
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010951 ;
10952 return 0;
10953}
10954_ACEOF
10955rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010957 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010958 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010959 grep -v '^ *+' conftest.er1 >conftest.err
10960 rm -f conftest.er1
10961 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010963 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010972 (eval $ac_try) 2>&5
10973 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010975 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010976 ac_cv_c_opensoundsystem="yes"
10977else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010978 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010979sed 's/^/| /' conftest.$ac_ext >&5
10980
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010981ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010982fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010984fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010985echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010986echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010987
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010988if test "$ac_cv_c_opensoundsystem" = "yes"
10989then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010990
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010991cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010992#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010993_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010994
10995fi
10996
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010997echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010998echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10999if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000011001else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011002 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011003/* confdefs.h. */
11004_ACEOF
11005cat confdefs.h >>conftest.$ac_ext
11006cat >>conftest.$ac_ext <<_ACEOF
11007/* end confdefs.h. */
Eric Pouech338d3b21999-05-22 18:52:21 +000011008
11009 #if defined(HAVE_SYS_SOUNDCARD_H)
11010 #include <sys/soundcard.h>
11011 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11012 #include <machine/soundcard.h>
11013 #elif defined(HAVE_SOUNDCARD_H)
11014 #include <soundcard.h>
11015 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +000011016
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011017int
11018main ()
11019{
Eric Pouech338d3b21999-05-22 18:52:21 +000011020
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011021
Eric Pouech338d3b21999-05-22 18:52:21 +000011022/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11023#if !defined(SNDCTL_SEQ_SYNC)
11024#error No open sound system MIDI interface
11025#endif
11026
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011027 ;
11028 return 0;
11029}
11030_ACEOF
11031rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011033 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011034 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011035 grep -v '^ *+' conftest.er1 >conftest.err
11036 rm -f conftest.er1
11037 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011039 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; } &&
11046 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011048 (eval $ac_try) 2>&5
11049 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011051 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +000011052 ac_cv_c_opensoundsystem_midi="yes"
11053else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011054 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011055sed 's/^/| /' conftest.$ac_ext >&5
11056
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011057ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +000011058fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +000011060fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011061echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011062echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000011063
11064if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11065then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011066
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011067cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000011068#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011069_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000011070
11071fi
11072
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011073# Extract the first word of "artsc-config", so it can be a program name with args.
11074set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011075echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11077if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11079else
11080 case $ARTSCCONFIG in
11081 [\\/]* | ?:[\\/]*)
11082 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11083 ;;
11084 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086for as_dir in $PATH
11087do
11088 IFS=$as_save_IFS
11089 test -z "$as_dir" && as_dir=.
11090 for ac_exec_ext in '' $ac_executable_extensions; do
11091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11092 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11094 break 2
11095 fi
11096done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011097done
11098
11099 ;;
11100esac
11101fi
11102ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11103
11104if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011105 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011106echo "${ECHO_T}$ARTSCCONFIG" >&6
11107else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011108 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011109echo "${ECHO_T}no" >&6
11110fi
11111
Marcus Meissnerbc624582004-01-18 22:15:46 +000011112if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11113then
Alexandre Julliardb3b12cf2004-02-24 01:24:20 +000011114 ARTSC_CFLAGS=""
11115 for i in `$ARTSCCONFIG --cflags`
11116 do
11117 case "$i" in
11118 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11119 esac
11120 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000011121 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11122 save_CFLAGS="$CFLAGS"
11123 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11124 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011125/* confdefs.h. */
11126_ACEOF
11127cat confdefs.h >>conftest.$ac_ext
11128cat >>conftest.$ac_ext <<_ACEOF
11129/* end confdefs.h. */
Marcus Meissnerbc624582004-01-18 22:15:46 +000011130#include <artsc.h>
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011131int
11132main ()
11133{
Marcus Meissnerbc624582004-01-18 22:15:46 +000011134arts_stream_t stream;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011135 ;
11136 return 0;
11137}
11138_ACEOF
11139rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011141 (eval $ac_compile) 2>conftest.er1
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011142 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011143 grep -v '^ *+' conftest.er1 >conftest.err
11144 rm -f conftest.er1
11145 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011147 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; } &&
11154 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011156 (eval $ac_try) 2>&5
11157 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011159 (exit $ac_status); }; }; then
Marcus Meissnerbc624582004-01-18 22:15:46 +000011160 ARTSLIBS=$ARTSC_LIBS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011161
Marcus Meissnerbc624582004-01-18 22:15:46 +000011162 ARTSINCL=$ARTSC_CFLAGS
11163
11164
11165cat >>confdefs.h <<\_ACEOF
11166#define HAVE_ARTS 1
11167_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011168
11169else
11170 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011171sed 's/^/| /' conftest.$ac_ext >&5
11172
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011173fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissnerbc624582004-01-18 22:15:46 +000011175 CFLAGS="$save_CFLAGS"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011176fi
11177
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011178ALSALIBS=""
11179
11180
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011181
11182for ac_header in alsa/asoundlib.h sys/asoundlib.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011183do
11184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11185if eval "test \"\${$as_ac_Header+set}\" = set"; then
11186 echo "$as_me:$LINENO: checking for $ac_header" >&5
11187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11188if eval "test \"\${$as_ac_Header+set}\" = set"; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190fi
11191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11193else
11194 # Is the header compilable?
11195echo "$as_me:$LINENO: checking $ac_header usability" >&5
11196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11197cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011198/* confdefs.h. */
11199_ACEOF
11200cat confdefs.h >>conftest.$ac_ext
11201cat >>conftest.$ac_ext <<_ACEOF
11202/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011203$ac_includes_default
11204#include <$ac_header>
11205_ACEOF
11206rm -f conftest.$ac_objext
11207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011208 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011209 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217 (eval $ac_try) 2>&5
11218 ac_status=$?
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); }; } &&
11221 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11223 (eval $ac_try) 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; }; then
11227 ac_header_compiler=yes
11228else
11229 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011230sed 's/^/| /' conftest.$ac_ext >&5
11231
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011232ac_header_compiler=no
11233fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011235echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11236echo "${ECHO_T}$ac_header_compiler" >&6
11237
11238# Is the header present?
11239echo "$as_me:$LINENO: checking $ac_header presence" >&5
11240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11241cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011242/* confdefs.h. */
11243_ACEOF
11244cat confdefs.h >>conftest.$ac_ext
11245cat >>conftest.$ac_ext <<_ACEOF
11246/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011247#include <$ac_header>
11248_ACEOF
11249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11250 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11251 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011252 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011253 rm -f conftest.er1
11254 cat conftest.err >&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } >/dev/null; then
11257 if test -s conftest.err; then
11258 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011259 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011260 else
11261 ac_cpp_err=
11262 fi
11263else
11264 ac_cpp_err=yes
11265fi
11266if test -z "$ac_cpp_err"; then
11267 ac_header_preproc=yes
11268else
11269 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011270sed 's/^/| /' conftest.$ac_ext >&5
11271
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011272 ac_header_preproc=no
11273fi
11274rm -f conftest.err conftest.$ac_ext
11275echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11276echo "${ECHO_T}$ac_header_preproc" >&6
11277
11278# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11280 yes:no: )
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11282echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11284echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11285 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011286 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011287 no:yes:* )
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11293echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11295echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11299echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011300 (
11301 cat <<\_ASBOX
11302## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011303## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011304## ------------------------------------ ##
11305_ASBOX
11306 ) |
11307 sed "s/^/$as_me: WARNING: /" >&2
11308 ;;
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011309esac
11310echo "$as_me:$LINENO: checking for $ac_header" >&5
11311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11312if eval "test \"\${$as_ac_Header+set}\" = set"; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011315 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011316fi
11317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11318echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11319
11320fi
11321if test `eval echo '${'$as_ac_Header'}'` = yes; then
11322 cat >>confdefs.h <<_ACEOF
11323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11324_ACEOF
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011325 break
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011326fi
11327
11328done
11329
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011330if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011331then
11332 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11333echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11334if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11336else
11337 ac_check_lib_save_LIBS=$LIBS
11338LIBS="-lasound $LIBS"
11339cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011340/* confdefs.h. */
11341_ACEOF
11342cat confdefs.h >>conftest.$ac_ext
11343cat >>conftest.$ac_ext <<_ACEOF
11344/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011345
11346/* Override any gcc2 internal prototype to avoid an error. */
11347#ifdef __cplusplus
11348extern "C"
11349#endif
11350/* We use char because int might match the return type of a gcc2
11351 builtin and then its argument prototype would still apply. */
11352char snd_pcm_open ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011353int
11354main ()
11355{
11356snd_pcm_open ();
11357 ;
11358 return 0;
11359}
11360_ACEOF
11361rm -f conftest.$ac_objext conftest$ac_exeext
11362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011363 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011364 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; } &&
11376 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 ac_cv_lib_asound_snd_pcm_open=yes
11383else
11384 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011385sed 's/^/| /' conftest.$ac_ext >&5
11386
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011387ac_cv_lib_asound_snd_pcm_open=no
11388fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011389rm -f conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011391LIBS=$ac_check_lib_save_LIBS
11392fi
11393echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11394echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11395if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11396
11397cat >>confdefs.h <<\_ACEOF
11398#define HAVE_ALSA 1
11399_ACEOF
11400
11401 ALSALIBS="-lasound"
11402fi
11403
11404fi
11405
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011406
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011407AUDIOIOLIBS=""
11408
11409
11410for ac_header in libaudioio.h
11411do
11412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11413if eval "test \"\${$as_ac_Header+set}\" = set"; then
11414 echo "$as_me:$LINENO: checking for $ac_header" >&5
11415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11416if eval "test \"\${$as_ac_Header+set}\" = set"; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11418fi
11419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11421else
11422 # Is the header compilable?
11423echo "$as_me:$LINENO: checking $ac_header usability" >&5
11424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11425cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011426/* confdefs.h. */
11427_ACEOF
11428cat confdefs.h >>conftest.$ac_ext
11429cat >>conftest.$ac_ext <<_ACEOF
11430/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011431$ac_includes_default
11432#include <$ac_header>
11433_ACEOF
11434rm -f conftest.$ac_objext
11435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011436 (eval $ac_compile) 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011437 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011438 grep -v '^ *+' conftest.er1 >conftest.err
11439 rm -f conftest.er1
11440 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11445 (eval $ac_try) 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest.$ac_objext'
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11451 (eval $ac_try) 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
11455 ac_header_compiler=yes
11456else
11457 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011458sed 's/^/| /' conftest.$ac_ext >&5
11459
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011460ac_header_compiler=no
11461fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011463echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11464echo "${ECHO_T}$ac_header_compiler" >&6
11465
11466# Is the header present?
11467echo "$as_me:$LINENO: checking $ac_header presence" >&5
11468echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11469cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011470/* confdefs.h. */
11471_ACEOF
11472cat confdefs.h >>conftest.$ac_ext
11473cat >>conftest.$ac_ext <<_ACEOF
11474/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011475#include <$ac_header>
11476_ACEOF
11477if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11478 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11479 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011480 grep -v '^ *+' conftest.er1 >conftest.err
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011481 rm -f conftest.er1
11482 cat conftest.err >&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } >/dev/null; then
11485 if test -s conftest.err; then
11486 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011488 else
11489 ac_cpp_err=
11490 fi
11491else
11492 ac_cpp_err=yes
11493fi
11494if test -z "$ac_cpp_err"; then
11495 ac_header_preproc=yes
11496else
11497 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011498sed 's/^/| /' conftest.$ac_ext >&5
11499
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011500 ac_header_preproc=no
11501fi
11502rm -f conftest.err conftest.$ac_ext
11503echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11504echo "${ECHO_T}$ac_header_preproc" >&6
11505
11506# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11508 yes:no: )
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11510echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11512echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11513 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011514 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011515 no:yes:* )
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11519echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11521echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11523echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11527echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011528 (
11529 cat <<\_ASBOX
11530## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011531## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011532## ------------------------------------ ##
11533_ASBOX
11534 ) |
11535 sed "s/^/$as_me: WARNING: /" >&2
11536 ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011537esac
11538echo "$as_me:$LINENO: checking for $ac_header" >&5
11539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11540if eval "test \"\${$as_ac_Header+set}\" = set"; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011543 eval "$as_ac_Header=\$ac_header_preproc"
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011544fi
11545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11546echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11547
11548fi
11549if test `eval echo '${'$as_ac_Header'}'` = yes; then
11550 cat >>confdefs.h <<_ACEOF
11551#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11552_ACEOF
11553 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11554echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11555if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557else
11558 ac_check_lib_save_LIBS=$LIBS
11559LIBS="-laudioio $LIBS"
11560cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011561/* confdefs.h. */
11562_ACEOF
11563cat confdefs.h >>conftest.$ac_ext
11564cat >>conftest.$ac_ext <<_ACEOF
11565/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011566
11567/* Override any gcc2 internal prototype to avoid an error. */
11568#ifdef __cplusplus
11569extern "C"
11570#endif
11571/* We use char because int might match the return type of a gcc2
11572 builtin and then its argument prototype would still apply. */
11573char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011574int
11575main ()
11576{
11577AudioIOGetVersion ();
11578 ;
11579 return 0;
11580}
11581_ACEOF
11582rm -f conftest.$ac_objext conftest$ac_exeext
11583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011584 (eval $ac_link) 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011585 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011586 grep -v '^ *+' conftest.er1 >conftest.err
11587 rm -f conftest.er1
11588 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; } &&
11597 { ac_try='test -s conftest$ac_exeext'
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 ac_cv_lib_audioio_AudioIOGetVersion=yes
11604else
11605 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011606sed 's/^/| /' conftest.$ac_ext >&5
11607
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011608ac_cv_lib_audioio_AudioIOGetVersion=no
11609fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011610rm -f conftest.err conftest.$ac_objext \
11611 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011612LIBS=$ac_check_lib_save_LIBS
11613fi
11614echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11615echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11616if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11617 AUDIOIOLIBS="-laudioio"
11618
11619cat >>confdefs.h <<\_ACEOF
11620#define HAVE_LIBAUDIOIO 1
11621_ACEOF
11622
11623fi
11624
11625fi
11626
11627done
11628
11629
11630
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011631
Hans Leidekker51647572004-09-22 04:08:38 +000011632for ac_header in lcms.h
11633do
11634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11635if eval "test \"\${$as_ac_Header+set}\" = set"; then
11636 echo "$as_me:$LINENO: checking for $ac_header" >&5
11637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11638if eval "test \"\${$as_ac_Header+set}\" = set"; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640fi
11641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11643else
11644 # Is the header compilable?
11645echo "$as_me:$LINENO: checking $ac_header usability" >&5
11646echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11647cat >conftest.$ac_ext <<_ACEOF
11648/* confdefs.h. */
11649_ACEOF
11650cat confdefs.h >>conftest.$ac_ext
11651cat >>conftest.$ac_ext <<_ACEOF
11652/* end confdefs.h. */
11653$ac_includes_default
11654#include <$ac_header>
11655_ACEOF
11656rm -f conftest.$ac_objext
11657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11658 (eval $ac_compile) 2>conftest.er1
11659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; } &&
11671 { ac_try='test -s conftest.$ac_objext'
11672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; }; then
11677 ac_header_compiler=yes
11678else
11679 echo "$as_me: failed program was:" >&5
11680sed 's/^/| /' conftest.$ac_ext >&5
11681
11682ac_header_compiler=no
11683fi
11684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11685echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11686echo "${ECHO_T}$ac_header_compiler" >&6
11687
11688# Is the header present?
11689echo "$as_me:$LINENO: checking $ac_header presence" >&5
11690echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11691cat >conftest.$ac_ext <<_ACEOF
11692/* confdefs.h. */
11693_ACEOF
11694cat confdefs.h >>conftest.$ac_ext
11695cat >>conftest.$ac_ext <<_ACEOF
11696/* end confdefs.h. */
11697#include <$ac_header>
11698_ACEOF
11699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } >/dev/null; then
11707 if test -s conftest.err; then
11708 ac_cpp_err=$ac_c_preproc_warn_flag
11709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11710 else
11711 ac_cpp_err=
11712 fi
11713else
11714 ac_cpp_err=yes
11715fi
11716if test -z "$ac_cpp_err"; then
11717 ac_header_preproc=yes
11718else
11719 echo "$as_me: failed program was:" >&5
11720sed 's/^/| /' conftest.$ac_ext >&5
11721
11722 ac_header_preproc=no
11723fi
11724rm -f conftest.err conftest.$ac_ext
11725echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11726echo "${ECHO_T}$ac_header_preproc" >&6
11727
11728# So? What about this header?
11729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11730 yes:no: )
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11735 ac_header_preproc=yes
11736 ;;
11737 no:yes:* )
11738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11750 (
11751 cat <<\_ASBOX
11752## ------------------------------------ ##
11753## Report this to wine-devel@winehq.org ##
11754## ------------------------------------ ##
11755_ASBOX
11756 ) |
11757 sed "s/^/$as_me: WARNING: /" >&2
11758 ;;
11759esac
11760echo "$as_me:$LINENO: checking for $ac_header" >&5
11761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11762if eval "test \"\${$as_ac_Header+set}\" = set"; then
11763 echo $ECHO_N "(cached) $ECHO_C" >&6
11764else
11765 eval "$as_ac_Header=\$ac_header_preproc"
11766fi
11767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11769
11770fi
11771if test `eval echo '${'$as_ac_Header'}'` = yes; then
11772 cat >>confdefs.h <<_ACEOF
11773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11774_ACEOF
11775 echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
11776echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6
11777if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11779else
11780 ac_check_lib_save_LIBS=$LIBS
11781LIBS="-llcms $LIBS"
11782cat >conftest.$ac_ext <<_ACEOF
11783/* confdefs.h. */
11784_ACEOF
11785cat confdefs.h >>conftest.$ac_ext
11786cat >>conftest.$ac_ext <<_ACEOF
11787/* end confdefs.h. */
11788
11789/* Override any gcc2 internal prototype to avoid an error. */
11790#ifdef __cplusplus
11791extern "C"
11792#endif
11793/* We use char because int might match the return type of a gcc2
11794 builtin and then its argument prototype would still apply. */
11795char cmsOpenProfileFromFile ();
11796int
11797main ()
11798{
11799cmsOpenProfileFromFile ();
11800 ;
11801 return 0;
11802}
11803_ACEOF
11804rm -f conftest.$ac_objext conftest$ac_exeext
11805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806 (eval $ac_link) 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
11813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; } &&
11819 { ac_try='test -s conftest$ac_exeext'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
11826else
11827 echo "$as_me: failed program was:" >&5
11828sed 's/^/| /' conftest.$ac_ext >&5
11829
11830ac_cv_lib_lcms_cmsOpenProfileFromFile=no
11831fi
11832rm -f conftest.err conftest.$ac_objext \
11833 conftest$ac_exeext conftest.$ac_ext
11834LIBS=$ac_check_lib_save_LIBS
11835fi
11836echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
11837echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6
11838if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
11839
11840cat >>confdefs.h <<\_ACEOF
11841#define HAVE_LCMS 1
11842_ACEOF
11843
11844 LCMSLIBS="-llcms"
11845
11846
11847fi
11848
11849
11850fi
11851
11852done
11853
11854
11855
11856
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011857for ac_header in capi20.h
11858do
11859as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11860if eval "test \"\${$as_ac_Header+set}\" = set"; then
11861 echo "$as_me:$LINENO: checking for $ac_header" >&5
11862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11863if eval "test \"\${$as_ac_Header+set}\" = set"; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11865fi
11866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11868else
11869 # Is the header compilable?
11870echo "$as_me:$LINENO: checking $ac_header usability" >&5
11871echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11872cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011873/* confdefs.h. */
11874_ACEOF
11875cat confdefs.h >>conftest.$ac_ext
11876cat >>conftest.$ac_ext <<_ACEOF
11877/* end confdefs.h. */
11878$ac_includes_default
11879#include <$ac_header>
11880_ACEOF
11881rm -f conftest.$ac_objext
11882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011883 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011884 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011885 grep -v '^ *+' conftest.er1 >conftest.err
11886 rm -f conftest.er1
11887 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; } &&
11896 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11899 ac_status=$?
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; }; then
11902 ac_header_compiler=yes
11903else
11904 echo "$as_me: failed program was:" >&5
11905sed 's/^/| /' conftest.$ac_ext >&5
11906
11907ac_header_compiler=no
11908fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011910echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11911echo "${ECHO_T}$ac_header_compiler" >&6
11912
11913# Is the header present?
11914echo "$as_me:$LINENO: checking $ac_header presence" >&5
11915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11916cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011917/* confdefs.h. */
11918_ACEOF
11919cat confdefs.h >>conftest.$ac_ext
11920cat >>conftest.$ac_ext <<_ACEOF
11921/* end confdefs.h. */
11922#include <$ac_header>
11923_ACEOF
11924if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } >/dev/null; then
11932 if test -s conftest.err; then
11933 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011935 else
11936 ac_cpp_err=
11937 fi
11938else
11939 ac_cpp_err=yes
11940fi
11941if test -z "$ac_cpp_err"; then
11942 ac_header_preproc=yes
11943else
11944 echo "$as_me: failed program was:" >&5
11945sed 's/^/| /' conftest.$ac_ext >&5
11946
11947 ac_header_preproc=no
11948fi
11949rm -f conftest.err conftest.$ac_ext
11950echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11951echo "${ECHO_T}$ac_header_preproc" >&6
11952
11953# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011954case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11955 yes:no: )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11957echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11959echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11960 ac_header_preproc=yes
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011961 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011962 no:yes:* )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11964echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11966echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11967 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11968echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11970echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11972echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011973 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11974echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011975 (
11976 cat <<\_ASBOX
11977## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011978## Report this to wine-devel@winehq.org ##
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011979## ------------------------------------ ##
11980_ASBOX
11981 ) |
11982 sed "s/^/$as_me: WARNING: /" >&2
11983 ;;
11984esac
11985echo "$as_me:$LINENO: checking for $ac_header" >&5
11986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11987if eval "test \"\${$as_ac_Header+set}\" = set"; then
11988 echo $ECHO_N "(cached) $ECHO_C" >&6
11989else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011990 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011991fi
11992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11993echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11994
11995fi
11996if test `eval echo '${'$as_ac_Header'}'` = yes; then
11997 cat >>confdefs.h <<_ACEOF
11998#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11999_ACEOF
12000
12001
12002for ac_header in linux/capi.h
12003do
12004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12005if eval "test \"\${$as_ac_Header+set}\" = set"; then
12006 echo "$as_me:$LINENO: checking for $ac_header" >&5
12007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12008if eval "test \"\${$as_ac_Header+set}\" = set"; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010fi
12011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12013else
12014 # Is the header compilable?
12015echo "$as_me:$LINENO: checking $ac_header usability" >&5
12016echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12017cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012018/* confdefs.h. */
12019_ACEOF
12020cat confdefs.h >>conftest.$ac_ext
12021cat >>conftest.$ac_ext <<_ACEOF
12022/* end confdefs.h. */
12023$ac_includes_default
12024#include <$ac_header>
12025_ACEOF
12026rm -f conftest.$ac_objext
12027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012028 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012029 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012030 grep -v '^ *+' conftest.er1 >conftest.err
12031 rm -f conftest.er1
12032 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; } &&
12041 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_header_compiler=yes
12048else
12049 echo "$as_me: failed program was:" >&5
12050sed 's/^/| /' conftest.$ac_ext >&5
12051
12052ac_header_compiler=no
12053fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012055echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12056echo "${ECHO_T}$ac_header_compiler" >&6
12057
12058# Is the header present?
12059echo "$as_me:$LINENO: checking $ac_header presence" >&5
12060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12061cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012062/* confdefs.h. */
12063_ACEOF
12064cat confdefs.h >>conftest.$ac_ext
12065cat >>conftest.$ac_ext <<_ACEOF
12066/* end confdefs.h. */
12067#include <$ac_header>
12068_ACEOF
12069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12071 ac_status=$?
12072 grep -v '^ *+' conftest.er1 >conftest.err
12073 rm -f conftest.er1
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } >/dev/null; then
12077 if test -s conftest.err; then
12078 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000012079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012080 else
12081 ac_cpp_err=
12082 fi
12083else
12084 ac_cpp_err=yes
12085fi
12086if test -z "$ac_cpp_err"; then
12087 ac_header_preproc=yes
12088else
12089 echo "$as_me: failed program was:" >&5
12090sed 's/^/| /' conftest.$ac_ext >&5
12091
12092 ac_header_preproc=no
12093fi
12094rm -f conftest.err conftest.$ac_ext
12095echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12096echo "${ECHO_T}$ac_header_preproc" >&6
12097
12098# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12100 yes:no: )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12105 ac_header_preproc=yes
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012106 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000012107 no:yes:* )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012120 (
12121 cat <<\_ASBOX
12122## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000012123## Report this to wine-devel@winehq.org ##
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012124## ------------------------------------ ##
12125_ASBOX
12126 ) |
12127 sed "s/^/$as_me: WARNING: /" >&2
12128 ;;
12129esac
12130echo "$as_me:$LINENO: checking for $ac_header" >&5
12131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12132if eval "test \"\${$as_ac_Header+set}\" = set"; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12134else
Alexandre Julliard875927f2004-01-02 01:55:29 +000012135 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012136fi
12137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12139
12140fi
12141if test `eval echo '${'$as_ac_Header'}'` = yes; then
12142 cat >>confdefs.h <<_ACEOF
12143#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12144_ACEOF
12145
12146 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12147echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12148if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12150else
12151 ac_check_lib_save_LIBS=$LIBS
12152LIBS="-lcapi20 $LIBS"
12153cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012154/* confdefs.h. */
12155_ACEOF
12156cat confdefs.h >>conftest.$ac_ext
12157cat >>conftest.$ac_ext <<_ACEOF
12158/* end confdefs.h. */
12159
12160/* Override any gcc2 internal prototype to avoid an error. */
12161#ifdef __cplusplus
12162extern "C"
12163#endif
12164/* We use char because int might match the return type of a gcc2
12165 builtin and then its argument prototype would still apply. */
12166char capi20_register ();
12167int
12168main ()
12169{
12170capi20_register ();
12171 ;
12172 return 0;
12173}
12174_ACEOF
12175rm -f conftest.$ac_objext conftest$ac_exeext
12176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012177 (eval $ac_link) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012178 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; } &&
12190 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; }; then
12196 ac_cv_lib_capi20_capi20_register=yes
12197else
12198 echo "$as_me: failed program was:" >&5
12199sed 's/^/| /' conftest.$ac_ext >&5
12200
12201ac_cv_lib_capi20_capi20_register=no
12202fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012203rm -f conftest.err conftest.$ac_objext \
12204 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012205LIBS=$ac_check_lib_save_LIBS
12206fi
12207echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12208echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12209if test $ac_cv_lib_capi20_capi20_register = yes; then
12210
12211
12212cat >>confdefs.h <<\_ACEOF
12213#define HAVE_CAPI4LINUX 1
12214_ACEOF
12215
12216 CAPI4LINUXLIBS="-lcapi20"
12217
12218
12219fi
12220
12221
12222fi
12223
12224done
12225
12226
12227fi
12228
12229done
12230
12231
12232
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012233echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012234echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12235if test "${ac_cv_mmap64_works+set}" = set; then
12236 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012237else
12238 if test "$cross_compiling" = yes; then
12239 ac_cv_mmap64_works="no"
12240else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012241 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012242/* confdefs.h. */
12243_ACEOF
12244cat confdefs.h >>conftest.$ac_ext
12245cat >>conftest.$ac_ext <<_ACEOF
12246/* end confdefs.h. */
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012247
12248 #define _FILE_OFFSET_BITS 64
12249 #include <stdio.h>
12250 #include <unistd.h>
12251 #include <fcntl.h>
12252 #include <sys/mman.h>
12253 #include <errno.h>
12254
12255 int main(int argc,char **argv) {
12256 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12257 if (fd == -1) exit(1);
12258
12259 unlink("conftest.map");
12260
12261 write(fd,"test",4);
12262
12263 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12264 (errno == EINVAL)
12265 ) {
12266 exit(1);
12267 }
12268 close(fd);
12269 fprintf(stderr,"success!\n");
12270 exit(0);
12271 }
12272
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012273
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012274_ACEOF
12275rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012277 (eval $ac_link) 2>&5
12278 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012282 (eval $ac_try) 2>&5
12283 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012285 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012286 ac_cv_mmap64_works="yes"
12287else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012288 echo "$as_me: program exited with status $ac_status" >&5
12289echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012290sed 's/^/| /' conftest.$ac_ext >&5
12291
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012292( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012293ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012294fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012295rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012296fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012297fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012298echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012299echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012300
12301if test "$ac_cv_mmap64_works" = "yes"
12302then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012303
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012304cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012305#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012306_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012307
12308fi
12309
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012310
Alexandre Julliardfc094232003-04-14 21:46:41 +000012311EXTRACFLAGS=""
12312
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012313if test "x${GCC}" = "xyes"
12314then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000012315 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000012316
12317 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012318echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12319if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012321else
12322 if test "$cross_compiling" = yes; then
12323 ac_cv_c_gcc_strength_bug="yes"
12324else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012325 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012326/* confdefs.h. */
12327_ACEOF
12328cat confdefs.h >>conftest.$ac_ext
12329cat >>conftest.$ac_ext <<_ACEOF
12330/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012331
Eric Pouech5aee80f2000-11-11 00:31:39 +000012332int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012333int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012334 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012335 unsigned int B = 3;
12336 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012337 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000012338 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12339 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012340
Eric Pouech5aee80f2000-11-11 00:31:39 +000012341 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012342}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012343_ACEOF
12344rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012346 (eval $ac_link) 2>&5
12347 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012351 (eval $ac_try) 2>&5
12352 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012354 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012355 ac_cv_c_gcc_strength_bug="no"
12356else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012357 echo "$as_me: program exited with status $ac_status" >&5
12358echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012359sed 's/^/| /' conftest.$ac_ext >&5
12360
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012361( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012362ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012363fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012364rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012365fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012366fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012367echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012368echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012369 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12370 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012371 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012372 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012373
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000012374 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12375echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12376if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12378else
12379 ac_wine_try_cflags_saved=$CFLAGS
12380CFLAGS="$CFLAGS -fshort-wchar"
12381cat >conftest.$ac_ext <<_ACEOF
12382/* confdefs.h. */
12383_ACEOF
12384cat confdefs.h >>conftest.$ac_ext
12385cat >>conftest.$ac_ext <<_ACEOF
12386/* end confdefs.h. */
12387
12388int
12389main ()
12390{
12391
12392 ;
12393 return 0;
12394}
12395_ACEOF
12396rm -f conftest.$ac_objext conftest$ac_exeext
12397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12398 (eval $ac_link) 2>conftest.er1
12399 ac_status=$?
12400 grep -v '^ *+' conftest.er1 >conftest.err
12401 rm -f conftest.er1
12402 cat conftest.err >&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); } &&
12405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
12411 { ac_try='test -s conftest$ac_exeext'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12417 ac_cv_c_gcc_fshort_wchar="yes"
12418else
12419 echo "$as_me: failed program was:" >&5
12420sed 's/^/| /' conftest.$ac_ext >&5
12421
12422ac_cv_c_gcc_fshort_wchar="no"
12423fi
12424rm -f conftest.err conftest.$ac_objext \
12425 conftest$ac_exeext conftest.$ac_ext
12426CFLAGS=$ac_wine_try_cflags_saved
12427fi
12428echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12429echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12430 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12431 then
12432
12433cat >>confdefs.h <<\_ACEOF
12434#define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12435_ACEOF
12436
12437 fi
12438
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012439 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012440echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12441if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012443else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012444 ac_wine_try_cflags_saved=$CFLAGS
12445CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12446cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012447/* confdefs.h. */
12448_ACEOF
12449cat confdefs.h >>conftest.$ac_ext
12450cat >>conftest.$ac_ext <<_ACEOF
12451/* end confdefs.h. */
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012452
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012453int
12454main ()
12455{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012456
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012457 ;
12458 return 0;
12459}
12460_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012461rm -f conftest.$ac_objext conftest$ac_exeext
12462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012463 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012464 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012465 grep -v '^ *+' conftest.er1 >conftest.err
12466 rm -f conftest.er1
12467 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012469 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12473 ac_status=$?
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); }; } &&
12476 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012478 (eval $ac_try) 2>&5
12479 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012481 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012482 ac_cv_c_gcc_stack_boundary="yes"
12483else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012484 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012485sed 's/^/| /' conftest.$ac_ext >&5
12486
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012487ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012488fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012489rm -f conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012491CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012492fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012493echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012494echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012495 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12496 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012497 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012498 fi
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012499
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012500 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12501echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12502if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12504else
12505 ac_wine_try_cflags_saved=$CFLAGS
12506CFLAGS="$CFLAGS -fno-strict-aliasing"
12507cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012508/* confdefs.h. */
12509_ACEOF
12510cat confdefs.h >>conftest.$ac_ext
12511cat >>conftest.$ac_ext <<_ACEOF
12512/* end confdefs.h. */
12513
12514int
12515main ()
12516{
12517
12518 ;
12519 return 0;
12520}
12521_ACEOF
12522rm -f conftest.$ac_objext conftest$ac_exeext
12523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012524 (eval $ac_link) 2>conftest.er1
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012525 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12534 ac_status=$?
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012538 { (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); }; }; then
12543 ac_cv_c_gcc_no_strict_aliasing="yes"
12544else
12545 echo "$as_me: failed program was:" >&5
12546sed 's/^/| /' conftest.$ac_ext >&5
12547
12548ac_cv_c_gcc_no_strict_aliasing="no"
12549fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012550rm -f conftest.err conftest.$ac_objext \
12551 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012552CFLAGS=$ac_wine_try_cflags_saved
12553fi
12554echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12555echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12556 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12557 then
12558 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12559 fi
12560
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012561 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12562echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12563if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12565else
12566 ac_wine_try_cflags_saved=$CFLAGS
12567CFLAGS="$CFLAGS -gstabs+"
12568cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012569/* confdefs.h. */
12570_ACEOF
12571cat confdefs.h >>conftest.$ac_ext
12572cat >>conftest.$ac_ext <<_ACEOF
12573/* end confdefs.h. */
12574
12575int
12576main ()
12577{
12578
12579 ;
12580 return 0;
12581}
12582_ACEOF
12583rm -f conftest.$ac_objext conftest$ac_exeext
12584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012585 (eval $ac_link) 2>conftest.er1
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012586 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12595 ac_status=$?
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; } &&
12598 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012599 { (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); }; }; then
12604 ac_cv_c_gcc_gstabs="yes"
12605else
12606 echo "$as_me: failed program was:" >&5
12607sed 's/^/| /' conftest.$ac_ext >&5
12608
12609ac_cv_c_gcc_gstabs="no"
12610fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012611rm -f conftest.err conftest.$ac_objext \
12612 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012613CFLAGS=$ac_wine_try_cflags_saved
12614fi
12615echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12616echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12617 if test "$ac_cv_c_gcc_gstabs" = "yes"
12618 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012619 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012620 fi
Mike McCormackc509bc42003-02-25 04:01:58 +000012621
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012622 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012623 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12624 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12625echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12626if test "${ac_cv_c_string_h_warnings+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12628else
12629 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackc509bc42003-02-25 04:01:58 +000012630/* confdefs.h. */
12631_ACEOF
12632cat confdefs.h >>conftest.$ac_ext
12633cat >>conftest.$ac_ext <<_ACEOF
12634/* end confdefs.h. */
12635#include <string.h>
12636int
12637main ()
12638{
12639
12640 ;
12641 return 0;
12642}
12643_ACEOF
12644rm -f conftest.$ac_objext
12645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012646 (eval $ac_compile) 2>conftest.er1
Mike McCormackc509bc42003-02-25 04:01:58 +000012647 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012648 grep -v '^ *+' conftest.er1 >conftest.err
12649 rm -f conftest.er1
12650 cat conftest.err >&5
Mike McCormackc509bc42003-02-25 04:01:58 +000012651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; } &&
12659 { ac_try='test -s conftest.$ac_objext'
Mike McCormackc509bc42003-02-25 04:01:58 +000012660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12661 (eval $ac_try) 2>&5
12662 ac_status=$?
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); }; }; then
12665 ac_cv_c_string_h_warnings=no
12666else
12667 echo "$as_me: failed program was:" >&5
12668sed 's/^/| /' conftest.$ac_ext >&5
12669
12670ac_cv_c_string_h_warnings=yes
12671fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012673fi
12674echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12675echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012676 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012677 if test "$ac_cv_c_string_h_warnings" = "no"
12678 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012679 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000012680 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012681fi
12682
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012683
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012684echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12685echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12686if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012687 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012688else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012689 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012695void 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 +000012696
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012697int
12698main ()
12699{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012700
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012701 ;
12702 return 0;
12703}
12704_ACEOF
12705rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012707 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012708 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012709 grep -v '^ *+' conftest.er1 >conftest.err
12710 rm -f conftest.er1
12711 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012713 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; } &&
12720 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012722 (eval $ac_try) 2>&5
12723 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012725 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012726 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012727else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012728 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012729sed 's/^/| /' conftest.$ac_ext >&5
12730
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012731cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012732/* confdefs.h. */
12733_ACEOF
12734cat confdefs.h >>conftest.$ac_ext
12735cat >>conftest.$ac_ext <<_ACEOF
12736/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012737void 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 +000012738
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012739int
12740main ()
12741{
12742
12743 ;
12744 return 0;
12745}
12746_ACEOF
12747rm -f conftest.$ac_objext conftest$ac_exeext
12748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012749 (eval $ac_link) 2>conftest.er1
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012750 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012751 grep -v '^ *+' conftest.er1 >conftest.err
12752 rm -f conftest.er1
12753 cat conftest.err >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try='test -s conftest$ac_exeext'
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764 (eval $ac_try) 2>&5
12765 ac_status=$?
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012768 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012769else
12770 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012771sed 's/^/| /' conftest.$ac_ext >&5
12772
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012773cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012774/* confdefs.h. */
12775_ACEOF
12776cat confdefs.h >>conftest.$ac_ext
12777cat >>conftest.$ac_ext <<_ACEOF
12778/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012779void 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 +000012780
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012781int
12782main ()
12783{
12784
12785 ;
12786 return 0;
12787}
12788_ACEOF
12789rm -f conftest.$ac_objext conftest$ac_exeext
12790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012791 (eval $ac_link) 2>conftest.er1
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012792 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12810 ac_cv_asm_func_def=".type 2"
12811else
12812 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012813sed 's/^/| /' conftest.$ac_ext >&5
12814
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012815ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012816fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012817rm -f conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012819fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012820rm -f conftest.err conftest.$ac_objext \
12821 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012822fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012823rm -f conftest.err conftest.$ac_objext \
12824 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012825fi
12826echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12827echo "${ECHO_T}$ac_cv_asm_func_def" >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012828
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012829
12830
12831case "$ac_cv_asm_func_def" in
12832 ".def")
12833 cat >>confdefs.h <<\_ACEOF
12834#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012835_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012836 ;;
12837 ".type @function")
12838 cat >>confdefs.h <<\_ACEOF
12839#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12840_ACEOF
12841 ;;
12842 ".type 2")
12843 cat >>confdefs.h <<\_ACEOF
12844#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12845_ACEOF
12846 ;;
12847 *)
12848 cat >>confdefs.h <<\_ACEOF
12849#define __ASM_FUNC(name) ""
12850_ACEOF
12851 ;;
12852esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012853
12854
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012855echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012856echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12857if test "${ac_cv_c_extern_prefix+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012859else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012860 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012861/* confdefs.h. */
12862_ACEOF
12863cat confdefs.h >>conftest.$ac_ext
12864cat >>conftest.$ac_ext <<_ACEOF
12865/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012866void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012867extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012868int
12869main ()
12870{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012871if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012872 ;
12873 return 0;
12874}
12875_ACEOF
12876rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012878 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012879 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012880 grep -v '^ *+' conftest.er1 >conftest.err
12881 rm -f conftest.er1
12882 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012884 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887 (eval $ac_try) 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012893 (eval $ac_try) 2>&5
12894 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012896 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012897 ac_cv_c_extern_prefix="yes"
12898else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012899 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012900sed 's/^/| /' conftest.$ac_ext >&5
12901
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012902ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012903fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012904rm -f conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012906fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012907echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012908echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012909
12910
12911
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012912if test "$ac_cv_c_extern_prefix" = "yes"
12913then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012914 cat >>confdefs.h <<\_ACEOF
12915#define __ASM_NAME(name) "_" name
12916_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012917
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012918else
12919 cat >>confdefs.h <<\_ACEOF
12920#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012921_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012922
12923fi
12924
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012925
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012926echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
12927echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012928if test "${ac_cv_c_asm_string+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012930else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012931 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012932/* confdefs.h. */
12933_ACEOF
12934cat confdefs.h >>conftest.$ac_ext
12935cat >>conftest.$ac_ext <<_ACEOF
12936/* end confdefs.h. */
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012937void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012938
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012939int
12940main ()
12941{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012942
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012943 ;
12944 return 0;
12945}
12946_ACEOF
12947rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012949 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012950 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012951 grep -v '^ *+' conftest.er1 >conftest.err
12952 rm -f conftest.er1
12953 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012955 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; } &&
12962 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012964 (eval $ac_try) 2>&5
12965 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012967 (exit $ac_status); }; }; then
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012968 ac_cv_c_asm_string=".string"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012969else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012970 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012971sed 's/^/| /' conftest.$ac_ext >&5
12972
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012973cat >conftest.$ac_ext <<_ACEOF
12974/* confdefs.h. */
12975_ACEOF
12976cat confdefs.h >>conftest.$ac_ext
12977cat >>conftest.$ac_ext <<_ACEOF
12978/* end confdefs.h. */
12979void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
12980
12981int
12982main ()
12983{
12984
12985 ;
12986 return 0;
12987}
12988_ACEOF
12989rm -f conftest.$ac_objext conftest$ac_exeext
12990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991 (eval $ac_link) 2>conftest.er1
12992 ac_status=$?
12993 grep -v '^ *+' conftest.er1 >conftest.err
12994 rm -f conftest.er1
12995 cat conftest.err >&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
12998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; } &&
13004 { ac_try='test -s conftest$ac_exeext'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13010 ac_cv_c_asm_string=".asciz"
13011else
13012 echo "$as_me: failed program was:" >&5
13013sed 's/^/| /' conftest.$ac_ext >&5
13014
13015cat >conftest.$ac_ext <<_ACEOF
13016/* confdefs.h. */
13017_ACEOF
13018cat confdefs.h >>conftest.$ac_ext
13019cat >>conftest.$ac_ext <<_ACEOF
13020/* end confdefs.h. */
13021void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
13022
13023int
13024main ()
13025{
13026
13027 ;
13028 return 0;
13029}
13030_ACEOF
13031rm -f conftest.$ac_objext conftest$ac_exeext
13032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13033 (eval $ac_link) 2>conftest.er1
13034 ac_status=$?
13035 grep -v '^ *+' conftest.er1 >conftest.err
13036 rm -f conftest.er1
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
13040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13042 (eval $ac_try) 2>&5
13043 ac_status=$?
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); }; } &&
13046 { ac_try='test -s conftest$ac_exeext'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; }; then
13052 ac_cv_c_asm_string=".ascii"
13053else
13054 echo "$as_me: failed program was:" >&5
13055sed 's/^/| /' conftest.$ac_ext >&5
13056
13057{ { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
13058echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
13059 { (exit 1); exit 1; }; }
13060fi
13061rm -f conftest.err conftest.$ac_objext \
13062 conftest$ac_exeext conftest.$ac_ext
13063fi
13064rm -f conftest.err conftest.$ac_objext \
13065 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000013066fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013067rm -f conftest.err conftest.$ac_objext \
13068 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000013069fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013070echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013071echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013072
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013073
13074cat >>confdefs.h <<_ACEOF
13075#define __ASM_STRING "$ac_cv_c_asm_string"
Christian Costaf814cf82003-03-23 00:18:26 +000013076_ACEOF
13077
Christian Costaf814cf82003-03-23 00:18:26 +000013078
13079
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013080echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
13081echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
Christian Costaf814cf82003-03-23 00:18:26 +000013082if test "${ac_cv_c_asm_short+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13084else
13085 cat >conftest.$ac_ext <<_ACEOF
Christian Costaf814cf82003-03-23 00:18:26 +000013086/* confdefs.h. */
13087_ACEOF
13088cat confdefs.h >>conftest.$ac_ext
13089cat >>conftest.$ac_ext <<_ACEOF
13090/* end confdefs.h. */
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013091void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
Christian Costaf814cf82003-03-23 00:18:26 +000013092
13093int
13094main ()
13095{
13096
13097 ;
13098 return 0;
13099}
13100_ACEOF
13101rm -f conftest.$ac_objext conftest$ac_exeext
13102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013103 (eval $ac_link) 2>conftest.er1
Christian Costaf814cf82003-03-23 00:18:26 +000013104 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013105 grep -v '^ *+' conftest.er1 >conftest.err
13106 rm -f conftest.er1
13107 cat conftest.err >&5
Christian Costaf814cf82003-03-23 00:18:26 +000013108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try='test -s conftest$ac_exeext'
Christian Costaf814cf82003-03-23 00:18:26 +000013117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013122 ac_cv_c_asm_short=".short"
Christian Costaf814cf82003-03-23 00:18:26 +000013123else
13124 echo "$as_me: failed program was:" >&5
13125sed 's/^/| /' conftest.$ac_ext >&5
13126
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013127cat >conftest.$ac_ext <<_ACEOF
13128/* confdefs.h. */
13129_ACEOF
13130cat confdefs.h >>conftest.$ac_ext
13131cat >>conftest.$ac_ext <<_ACEOF
13132/* end confdefs.h. */
13133void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13134
13135int
13136main ()
13137{
13138
13139 ;
13140 return 0;
13141}
13142_ACEOF
13143rm -f conftest.$ac_objext conftest$ac_exeext
13144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13145 (eval $ac_link) 2>conftest.er1
13146 ac_status=$?
13147 grep -v '^ *+' conftest.er1 >conftest.err
13148 rm -f conftest.er1
13149 cat conftest.err >&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; } &&
13158 { ac_try='test -s conftest$ac_exeext'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13164 ac_cv_c_asm_short=".half"
13165else
13166 echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169{ { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13170echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13171 { (exit 1); exit 1; }; }
13172fi
13173rm -f conftest.err conftest.$ac_objext \
13174 conftest$ac_exeext conftest.$ac_ext
Christian Costaf814cf82003-03-23 00:18:26 +000013175fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013176rm -f conftest.err conftest.$ac_objext \
13177 conftest$ac_exeext conftest.$ac_ext
Christian Costaf814cf82003-03-23 00:18:26 +000013178fi
13179echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13180echo "${ECHO_T}$ac_cv_c_asm_short" >&6
Christian Costaf814cf82003-03-23 00:18:26 +000013181
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013182
13183cat >>confdefs.h <<_ACEOF
13184#define __ASM_SHORT "$ac_cv_c_asm_short"
Christian Costaf814cf82003-03-23 00:18:26 +000013185_ACEOF
13186
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000013187
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013188
Pierre d'Herbemont68467db2004-06-18 19:36:26 +000013189echo "$as_me:$LINENO: checking for .size in assembler" >&5
13190echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
13191if test "${ac_cv_c_asm_size+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13193else
13194 cat >conftest.$ac_ext <<_ACEOF
13195/* confdefs.h. */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
13199/* end confdefs.h. */
13200void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
13201
13202int
13203main ()
13204{
13205
13206 ;
13207 return 0;
13208}
13209_ACEOF
13210rm -f conftest.$ac_objext conftest$ac_exeext
13211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13212 (eval $ac_link) 2>conftest.er1
13213 ac_status=$?
13214 grep -v '^ *+' conftest.er1 >conftest.err
13215 rm -f conftest.er1
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } &&
13219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13221 (eval $ac_try) 2>&5
13222 ac_status=$?
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); }; } &&
13225 { ac_try='test -s conftest$ac_exeext'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13228 ac_status=$?
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
13231 ac_cv_c_asm_size="yes"
13232else
13233 echo "$as_me: failed program was:" >&5
13234sed 's/^/| /' conftest.$ac_ext >&5
13235
13236ac_cv_c_asm_size="no"
13237fi
13238rm -f conftest.err conftest.$ac_objext \
13239 conftest$ac_exeext conftest.$ac_ext
13240fi
13241echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13242echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13243
13244if test "$ac_cv_c_asm_size" = "yes"
13245then
13246
13247cat >>confdefs.h <<\_ACEOF
13248#define HAVE_ASM_DOT_SIZE 1
13249_ACEOF
13250
13251fi
13252
13253
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013254DLLEXT=""
13255
Alexandre Julliardfc094232003-04-14 21:46:41 +000013256DLLFLAGS="-D_REENTRANT"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013257
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013258DLLIBS=""
13259
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013260LDSHARED=""
13261
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013262LDDLLFLAGS=""
Alexandre Julliard6ac34ac2003-10-11 01:05:18 +000013263
Alexandre Julliardada5e652002-12-12 22:03:14 +000013264LIBEXT="so"
13265
13266IMPLIBEXT="def"
13267
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013268
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013269case $host_os in
13270 cygwin*|mingw32*)
13271 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000013272 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13273set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13274echo "$as_me:$LINENO: checking for $ac_word" >&5
13275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13276if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13278else
13279 if test -n "$DLLTOOL"; then
13280 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13281else
13282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283for as_dir in $PATH
13284do
13285 IFS=$as_save_IFS
13286 test -z "$as_dir" && as_dir=.
13287 for ac_exec_ext in '' $ac_executable_extensions; do
13288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13289 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 break 2
13292 fi
13293done
13294done
13295
13296fi
13297fi
13298DLLTOOL=$ac_cv_prog_DLLTOOL
13299if test -n "$DLLTOOL"; then
13300 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13301echo "${ECHO_T}$DLLTOOL" >&6
13302else
13303 echo "$as_me:$LINENO: result: no" >&5
13304echo "${ECHO_T}no" >&6
13305fi
13306
13307fi
13308if test -z "$ac_cv_prog_DLLTOOL"; then
13309 ac_ct_DLLTOOL=$DLLTOOL
13310 # Extract the first word of "dlltool", so it can be a program name with args.
13311set dummy dlltool; ac_word=$2
13312echo "$as_me:$LINENO: checking for $ac_word" >&5
13313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13314if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13316else
13317 if test -n "$ac_ct_DLLTOOL"; then
13318 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13319else
13320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321for as_dir in $PATH
13322do
13323 IFS=$as_save_IFS
13324 test -z "$as_dir" && as_dir=.
13325 for ac_exec_ext in '' $ac_executable_extensions; do
13326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13327 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13329 break 2
13330 fi
13331done
13332done
13333
13334 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13335fi
13336fi
13337ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13338if test -n "$ac_ct_DLLTOOL"; then
13339 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13340echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13341else
13342 echo "$as_me:$LINENO: result: no" >&5
13343echo "${ECHO_T}no" >&6
13344fi
13345
13346 DLLTOOL=$ac_ct_DLLTOOL
13347else
13348 DLLTOOL="$ac_cv_prog_DLLTOOL"
13349fi
13350
13351 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013352 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13353set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +000013354echo "$as_me:$LINENO: checking for $ac_word" >&5
13355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13356if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13358else
13359 if test -n "$DLLWRAP"; then
13360 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13361else
13362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13363for as_dir in $PATH
13364do
13365 IFS=$as_save_IFS
13366 test -z "$as_dir" && as_dir=.
13367 for ac_exec_ext in '' $ac_executable_extensions; do
13368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013369 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000013370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13371 break 2
13372 fi
13373done
13374done
13375
Alexandre Julliard466ae142002-05-07 18:33:47 +000013376fi
13377fi
13378DLLWRAP=$ac_cv_prog_DLLWRAP
13379if test -n "$DLLWRAP"; then
13380 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13381echo "${ECHO_T}$DLLWRAP" >&6
13382else
13383 echo "$as_me:$LINENO: result: no" >&5
13384echo "${ECHO_T}no" >&6
13385fi
13386
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013387fi
13388if test -z "$ac_cv_prog_DLLWRAP"; then
13389 ac_ct_DLLWRAP=$DLLWRAP
13390 # Extract the first word of "dllwrap", so it can be a program name with args.
13391set dummy dllwrap; ac_word=$2
13392echo "$as_me:$LINENO: checking for $ac_word" >&5
13393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13394if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13396else
13397 if test -n "$ac_ct_DLLWRAP"; then
13398 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13399else
13400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401for as_dir in $PATH
13402do
13403 IFS=$as_save_IFS
13404 test -z "$as_dir" && as_dir=.
13405 for ac_exec_ext in '' $ac_executable_extensions; do
13406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13407 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13409 break 2
13410 fi
13411done
13412done
13413
13414 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13415fi
13416fi
13417ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13418if test -n "$ac_ct_DLLWRAP"; then
13419 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13420echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13421else
13422 echo "$as_me:$LINENO: result: no" >&5
13423echo "${ECHO_T}no" >&6
13424fi
13425
13426 DLLWRAP=$ac_ct_DLLWRAP
13427else
13428 DLLWRAP="$ac_cv_prog_DLLWRAP"
13429fi
13430
13431 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013432 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013433 else
13434 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013435 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000013436 IMPLIBEXT="a"
Alexandre Julliard56a4a762004-08-12 03:27:50 +000013437 WIN16_FILES=""
13438 WIN16_INSTALL=""
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013439 ;;
13440 *)
13441
13442for ac_header in dlfcn.h
13443do
13444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13445if eval "test \"\${$as_ac_Header+set}\" = set"; then
13446 echo "$as_me:$LINENO: checking for $ac_header" >&5
13447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13448if eval "test \"\${$as_ac_Header+set}\" = set"; then
13449 echo $ECHO_N "(cached) $ECHO_C" >&6
13450fi
13451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13453else
13454 # Is the header compilable?
13455echo "$as_me:$LINENO: checking $ac_header usability" >&5
13456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13457cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013458/* confdefs.h. */
13459_ACEOF
13460cat confdefs.h >>conftest.$ac_ext
13461cat >>conftest.$ac_ext <<_ACEOF
13462/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013463$ac_includes_default
13464#include <$ac_header>
13465_ACEOF
13466rm -f conftest.$ac_objext
13467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013468 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013469 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013470 grep -v '^ *+' conftest.er1 >conftest.err
13471 rm -f conftest.er1
13472 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; } &&
13481 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13483 (eval $ac_try) 2>&5
13484 ac_status=$?
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); }; }; then
13487 ac_header_compiler=yes
13488else
13489 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013490sed 's/^/| /' conftest.$ac_ext >&5
13491
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013492ac_header_compiler=no
13493fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013495echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13496echo "${ECHO_T}$ac_header_compiler" >&6
13497
13498# Is the header present?
13499echo "$as_me:$LINENO: checking $ac_header presence" >&5
13500echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13501cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013502/* confdefs.h. */
13503_ACEOF
13504cat confdefs.h >>conftest.$ac_ext
13505cat >>conftest.$ac_ext <<_ACEOF
13506/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013507#include <$ac_header>
13508_ACEOF
13509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13511 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013512 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013513 rm -f conftest.er1
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } >/dev/null; then
13517 if test -s conftest.err; then
13518 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000013519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013520 else
13521 ac_cpp_err=
13522 fi
13523else
13524 ac_cpp_err=yes
13525fi
13526if test -z "$ac_cpp_err"; then
13527 ac_header_preproc=yes
13528else
13529 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013530sed 's/^/| /' conftest.$ac_ext >&5
13531
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013532 ac_header_preproc=no
13533fi
13534rm -f conftest.err conftest.$ac_ext
13535echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13536echo "${ECHO_T}$ac_header_preproc" >&6
13537
13538# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013539case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13540 yes:no: )
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13542echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13544echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13545 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013546 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000013547 no:yes:* )
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13549echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13551echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13553echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13555echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013557echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13559echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013560 (
13561 cat <<\_ASBOX
13562## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000013563## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013564## ------------------------------------ ##
13565_ASBOX
13566 ) |
13567 sed "s/^/$as_me: WARNING: /" >&2
13568 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013569esac
13570echo "$as_me:$LINENO: checking for $ac_header" >&5
13571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13572if eval "test \"\${$as_ac_Header+set}\" = set"; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13574else
Alexandre Julliard875927f2004-01-02 01:55:29 +000013575 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013576fi
13577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13579
13580fi
13581if test `eval echo '${'$as_ac_Header'}'` = yes; then
13582 cat >>confdefs.h <<_ACEOF
13583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13584_ACEOF
13585
13586for ac_func in dlopen
13587do
13588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13589echo "$as_me:$LINENO: checking for $ac_func" >&5
13590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13591if eval "test \"\${$as_ac_var+set}\" = set"; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13593else
13594 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013595/* confdefs.h. */
13596_ACEOF
13597cat confdefs.h >>conftest.$ac_ext
13598cat >>conftest.$ac_ext <<_ACEOF
13599/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013600/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13602#define $ac_func innocuous_$ac_func
13603
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013604/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013605 which can conflict with char $ac_func (); below.
13606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13607 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013608
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013609#ifdef __STDC__
13610# include <limits.h>
13611#else
13612# include <assert.h>
13613#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000013614
13615#undef $ac_func
13616
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013617/* Override any gcc2 internal prototype to avoid an error. */
13618#ifdef __cplusplus
13619extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013620{
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013621#endif
13622/* We use char because int might match the return type of a gcc2
13623 builtin and then its argument prototype would still apply. */
13624char $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013625/* The GNU C library defines this for functions which it implements
13626 to always fail with ENOSYS. Some functions are actually named
13627 something starting with __ and the normal name is an alias. */
13628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13629choke me
13630#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013631char (*f) () = $ac_func;
13632#endif
13633#ifdef __cplusplus
13634}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013635#endif
13636
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013637int
13638main ()
13639{
13640return f != $ac_func;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013641 ;
13642 return 0;
13643}
13644_ACEOF
13645rm -f conftest.$ac_objext conftest$ac_exeext
13646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013647 (eval $ac_link) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013648 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013649 grep -v '^ *+' conftest.er1 >conftest.err
13650 rm -f conftest.er1
13651 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; } &&
13660 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13666 eval "$as_ac_var=yes"
13667else
13668 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013669sed 's/^/| /' conftest.$ac_ext >&5
13670
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013671eval "$as_ac_var=no"
13672fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013673rm -f conftest.err conftest.$ac_objext \
13674 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013675fi
13676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13677echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13678if test `eval echo '${'$as_ac_var'}'` = yes; then
13679 cat >>confdefs.h <<_ACEOF
13680#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13681_ACEOF
13682
13683else
13684 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13685echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13686if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13688else
13689 ac_check_lib_save_LIBS=$LIBS
13690LIBS="-ldl $LIBS"
13691cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013692/* confdefs.h. */
13693_ACEOF
13694cat confdefs.h >>conftest.$ac_ext
13695cat >>conftest.$ac_ext <<_ACEOF
13696/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013697
13698/* Override any gcc2 internal prototype to avoid an error. */
13699#ifdef __cplusplus
13700extern "C"
13701#endif
13702/* We use char because int might match the return type of a gcc2
13703 builtin and then its argument prototype would still apply. */
13704char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013705int
13706main ()
13707{
13708dlopen ();
13709 ;
13710 return 0;
13711}
13712_ACEOF
13713rm -f conftest.$ac_objext conftest$ac_exeext
13714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013715 (eval $ac_link) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013716 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; } &&
13728 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; }; then
13734 ac_cv_lib_dl_dlopen=yes
13735else
13736 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013737sed 's/^/| /' conftest.$ac_ext >&5
13738
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013739ac_cv_lib_dl_dlopen=no
13740fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013741rm -f conftest.err conftest.$ac_objext \
13742 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013743LIBS=$ac_check_lib_save_LIBS
13744fi
13745echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13746echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13747if test $ac_cv_lib_dl_dlopen = yes; then
13748
13749cat >>confdefs.h <<\_ACEOF
13750#define HAVE_DLOPEN 1
13751_ACEOF
13752
13753 DLLIBS="-ldl"
13754else
13755 LIBEXT="a"
13756fi
13757
13758fi
13759done
13760
13761else
13762 LIBEXT="a"
13763fi
13764
13765done
13766
13767
13768 if test "$LIBEXT" = "so"
13769 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000013770 DLLFLAGS="$DLLFLAGS -fPIC"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013771 DLLEXT=".so"
Alexandre Julliard466ae142002-05-07 18:33:47 +000013772 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013773echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13774if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013776else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013777 ac_wine_try_cflags_saved=$CFLAGS
13778CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13779cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000013780void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013781_ACEOF
13782rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013784 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013785 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013786 grep -v '^ *+' conftest.er1 >conftest.err
13787 rm -f conftest.er1
13788 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013790 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; } &&
13797 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013799 (eval $ac_try) 2>&5
13800 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013802 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000013803 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013804else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013805 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013806sed 's/^/| /' conftest.$ac_ext >&5
13807
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013808ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013809fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013810rm -f conftest.err conftest.$ac_objext \
13811 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013812CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013813fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013814echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013815echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000013816 if test "$ac_cv_c_dll_gnuelf" = "yes"
13817 then
13818 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013819 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013820 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13821echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13822if test "${ac_cv_c_dll_zdefs+set}" = set; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13824else
13825 ac_wine_try_cflags_saved=$CFLAGS
13826CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13827cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013828/* confdefs.h. */
13829_ACEOF
13830cat confdefs.h >>conftest.$ac_ext
13831cat >>conftest.$ac_ext <<_ACEOF
13832/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013833
13834int
13835main ()
13836{
13837
13838 ;
13839 return 0;
13840}
13841_ACEOF
13842rm -f conftest.$ac_objext conftest$ac_exeext
13843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013844 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013845 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013846 grep -v '^ *+' conftest.er1 >conftest.err
13847 rm -f conftest.er1
13848 cat conftest.err >&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13854 ac_status=$?
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; } &&
13857 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13860 ac_status=$?
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13863 ac_cv_c_dll_zdefs="yes"
13864else
13865 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013866sed 's/^/| /' conftest.$ac_ext >&5
13867
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013868ac_cv_c_dll_zdefs="no"
13869fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013870rm -f conftest.err conftest.$ac_objext \
13871 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013872CFLAGS=$ac_wine_try_cflags_saved
13873fi
13874echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13875echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13876 if test "$ac_cv_c_dll_zdefs" = "yes"
13877 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013878 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013879 fi
Alexandre Julliard4d52d372003-03-24 19:33:20 +000013880
Alexandre Julliard36048242004-01-08 03:36:53 +000013881 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13882echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13883if test "${ac_cv_c_dll_init_fini+set}" = set; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885else
13886 ac_wine_try_cflags_saved=$CFLAGS
13887CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13888cat >conftest.$ac_ext <<_ACEOF
13889/* confdefs.h. */
13890_ACEOF
13891cat confdefs.h >>conftest.$ac_ext
13892cat >>conftest.$ac_ext <<_ACEOF
13893/* end confdefs.h. */
13894
13895int
13896main ()
13897{
13898
13899 ;
13900 return 0;
13901}
13902_ACEOF
13903rm -f conftest.$ac_objext conftest$ac_exeext
13904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13905 (eval $ac_link) 2>conftest.er1
13906 ac_status=$?
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } &&
13912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; } &&
13918 { ac_try='test -s conftest$ac_exeext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_cv_c_dll_init_fini="yes"
13925else
13926 echo "$as_me: failed program was:" >&5
13927sed 's/^/| /' conftest.$ac_ext >&5
13928
13929ac_cv_c_dll_init_fini="no"
13930fi
13931rm -f conftest.err conftest.$ac_objext \
13932 conftest$ac_exeext conftest.$ac_ext
13933CFLAGS=$ac_wine_try_cflags_saved
13934fi
13935echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13936echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13937 if test "$ac_cv_c_dll_init_fini" = "yes"
13938 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013939 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard36048242004-01-08 03:36:53 +000013940 fi
13941
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000013942 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13943echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13944if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13946else
13947 echo '{ global: *; };' >conftest.map
13948 ac_wine_try_cflags_saved=$CFLAGS
13949CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13950cat >conftest.$ac_ext <<_ACEOF
13951/* confdefs.h. */
13952_ACEOF
13953cat confdefs.h >>conftest.$ac_ext
13954cat >>conftest.$ac_ext <<_ACEOF
13955/* end confdefs.h. */
13956
13957int
13958main ()
13959{
13960
13961 ;
13962 return 0;
13963}
13964_ACEOF
13965rm -f conftest.$ac_objext conftest$ac_exeext
13966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13967 (eval $ac_link) 2>conftest.er1
13968 ac_status=$?
13969 grep -v '^ *+' conftest.er1 >conftest.err
13970 rm -f conftest.er1
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } &&
13974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13976 (eval $ac_try) 2>&5
13977 ac_status=$?
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); }; } &&
13980 { ac_try='test -s conftest$ac_exeext'
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13983 ac_status=$?
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; }; then
13986 ac_cv_c_ld_version_scripts="yes"
13987else
13988 echo "$as_me: failed program was:" >&5
13989sed 's/^/| /' conftest.$ac_ext >&5
13990
13991ac_cv_c_ld_version_scripts="no"
13992fi
13993rm -f conftest.err conftest.$ac_objext \
13994 conftest$ac_exeext conftest.$ac_ext
13995CFLAGS=$ac_wine_try_cflags_saved
13996 rm -f conftest.map
13997fi
13998echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13999echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
14000 if test "$ac_cv_c_ld_version_scripts" = "yes"
14001 then
14002 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14003 fi
14004
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014005 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14006echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
14007if test "${ac_cv_c_export_dynamic+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009else
14010 ac_wine_try_cflags_saved=$CFLAGS
14011CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14012cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014013/* confdefs.h. */
14014_ACEOF
14015cat confdefs.h >>conftest.$ac_ext
14016cat >>conftest.$ac_ext <<_ACEOF
14017/* end confdefs.h. */
14018
14019int
14020main ()
14021{
14022
14023 ;
14024 return 0;
14025}
14026_ACEOF
14027rm -f conftest.$ac_objext conftest$ac_exeext
14028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014029 (eval $ac_link) 2>conftest.er1
Alexandre Julliardef2d04d2003-11-17 20:07:55 +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 Julliardef2d04d2003-11-17 20:07:55 +000014034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (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 Julliardef2d04d2003-11-17 20:07:55 +000014043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044 (eval $ac_try) 2>&5
14045 ac_status=$?
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; }; then
14048 ac_cv_c_export_dynamic="yes"
14049else
14050 echo "$as_me: failed program was:" >&5
14051sed 's/^/| /' conftest.$ac_ext >&5
14052
14053ac_cv_c_export_dynamic="no"
14054fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014055rm -f conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014057CFLAGS=$ac_wine_try_cflags_saved
14058fi
14059echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14060echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
14061 if test "$ac_cv_c_export_dynamic" = "yes"
14062 then
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014063 LDEXECFLAGS="-Wl,--export-dynamic"
14064
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014065 fi
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014066
14067 case $host_cpu in
14068 *i[3456789]86*)
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014069 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
14070echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014071if test "${ac_cv_ld_reloc_exec+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014074 ac_wine_try_cflags_saved=$CFLAGS
14075CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
14076cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014077/* confdefs.h. */
14078_ACEOF
14079cat confdefs.h >>conftest.$ac_ext
14080cat >>conftest.$ac_ext <<_ACEOF
14081/* end confdefs.h. */
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014082
14083int
14084main ()
14085{
14086
14087 ;
14088 return 0;
14089}
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014090_ACEOF
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014091rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014093 (eval $ac_link) 2>conftest.er1
14094 ac_status=$?
14095 grep -v '^ *+' conftest.er1 >conftest.err
14096 rm -f conftest.er1
14097 cat conftest.err >&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); } &&
14100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014105 (exit $ac_status); }; } &&
14106 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14109 ac_status=$?
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 ac_cv_ld_reloc_exec="yes"
14113else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014114 echo "$as_me: failed program was:" >&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014115sed 's/^/| /' conftest.$ac_ext >&5
14116
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014117ac_cv_ld_reloc_exec="no"
14118fi
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014119rm -f conftest.err conftest.$ac_objext \
14120 conftest$ac_exeext conftest.$ac_ext
14121CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014122fi
14123echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14124echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14125 if test "$ac_cv_ld_reloc_exec" = "yes"
14126 then
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014127 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014128 fi
14129 ;;
14130 esac
14131
Alexandre Julliard466ae142002-05-07 18:33:47 +000014132 else
14133 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014134echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14135if test "${ac_cv_c_dll_unixware+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000014137else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014138 ac_wine_try_cflags_saved=$CFLAGS
14139CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14140cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000014141void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014142_ACEOF
14143rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014145 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014146 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014147 grep -v '^ *+' conftest.er1 >conftest.err
14148 rm -f conftest.er1
14149 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014151 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14155 ac_status=$?
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; } &&
14158 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014160 (eval $ac_try) 2>&5
14161 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014163 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000014164 ac_cv_c_dll_unixware="yes"
14165else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014166 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014167sed 's/^/| /' conftest.$ac_ext >&5
14168
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014169ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000014170fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014171rm -f conftest.err conftest.$ac_objext \
14172 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014173CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014174fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014175echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014176echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000014177 if test "$ac_cv_c_dll_unixware" = "yes"
14178 then
14179 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014180 LDDLLFLAGS="-Wl,-G,-B,symbolic"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014181
14182 else
14183 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14184echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14185if test "${ac_cv_c_dll_macho+set}" = set; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14187else
14188 ac_wine_try_cflags_saved=$CFLAGS
14189CFLAGS="$CFLAGS -bundle"
14190cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000014191void myfunc() {}
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014192_ACEOF
14193rm -f conftest.$ac_objext conftest$ac_exeext
14194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014195 (eval $ac_link) 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014196 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014197 grep -v '^ *+' conftest.er1 >conftest.err
14198 rm -f conftest.er1
14199 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14204 (eval $ac_try) 2>&5
14205 ac_status=$?
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); }; } &&
14208 { ac_try='test -s conftest$ac_exeext'
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14210 (eval $ac_try) 2>&5
14211 ac_status=$?
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; }; then
14214 ac_cv_c_dll_macho="yes"
14215else
14216 echo "$as_me: failed program was:" >&5
14217sed 's/^/| /' conftest.$ac_ext >&5
14218
14219ac_cv_c_dll_macho="no"
14220fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014221rm -f conftest.err conftest.$ac_objext \
14222 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014223CFLAGS=$ac_wine_try_cflags_saved
14224fi
14225echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14226echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14227 if test "$ac_cv_c_dll_macho" = "yes"
14228 then
14229 LIBEXT="dylib"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014230 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014231 LDSHARED="\$(CC) -dynamiclib"
14232 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014233 STRIP="$STRIP -u -r"
Emmanuel Maillard46718f82004-07-22 19:48:41 +000014234 LDEXECFLAGS="-seg1addr 0x120000"
14235
14236 LDLIBWINEFLAGS="-seg1addr 0x140000"
14237
Emmanuel Maillard2300ce62004-08-19 01:20:45 +000014238 COREFOUNDATIONLIB="-framework CoreFoundation"
14239
14240 IOKITLIB="-framework IOKit"
14241
14242 IOKITLIB = "$IOKITLIB $COREFOUNDATIONLIB"
Warren Baird421e8b92004-09-22 19:17:55 +000014243 else
14244 echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14245echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
14246if test "${ac_cv_c_dll_hpux+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14248else
14249 ac_wine_try_cflags_saved=$CFLAGS
14250CFLAGS="$CFLAGS -shared"
14251cat >conftest.$ac_ext <<_ACEOF
14252void myfunc() {}
14253_ACEOF
14254rm -f conftest.$ac_objext conftest$ac_exeext
14255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14256 (eval $ac_link) 2>conftest.er1
14257 ac_status=$?
14258 grep -v '^ *+' conftest.er1 >conftest.err
14259 rm -f conftest.er1
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
14263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try='test -s conftest$ac_exeext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_cv_c_dll_hpux="yes"
14276else
14277 echo "$as_me: failed program was:" >&5
14278sed 's/^/| /' conftest.$ac_ext >&5
14279
14280ac_cv_c_dll_hpux="no"
14281fi
14282rm -f conftest.err conftest.$ac_objext \
14283 conftest$ac_exeext conftest.$ac_ext
14284CFLAGS=$ac_wine_try_cflags_saved
14285fi
14286echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14287echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
14288 if test "$ac_cv_c_dll_hpux" = "yes"
14289 then
14290 LIBEXT="sl"
14291 LDDLLFLAGS="-shared"
14292 LDSHARED="\$(CC) -shared"
14293 fi
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014294 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000014295 fi
14296 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014297 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014298
14299 CROSSTEST=""
14300
14301 if test "$cross_compiling" = "no"
14302 then
Kevin Koltzaud3444562004-04-15 00:01:05 +000014303 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014304do
14305 # Extract the first word of "$ac_prog", so it can be a program name with args.
14306set dummy $ac_prog; ac_word=$2
14307echo "$as_me:$LINENO: checking for $ac_word" >&5
14308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14309if test "${ac_cv_prog_CROSSCC+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14311else
14312 if test -n "$CROSSCC"; then
14313 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14314else
14315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14316for as_dir in $PATH
14317do
14318 IFS=$as_save_IFS
14319 test -z "$as_dir" && as_dir=.
14320 for ac_exec_ext in '' $ac_executable_extensions; do
14321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14322 ac_cv_prog_CROSSCC="$ac_prog"
14323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14324 break 2
14325 fi
14326done
14327done
14328
14329fi
14330fi
14331CROSSCC=$ac_cv_prog_CROSSCC
14332if test -n "$CROSSCC"; then
14333 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14334echo "${ECHO_T}$CROSSCC" >&6
14335else
14336 echo "$as_me:$LINENO: result: no" >&5
14337echo "${ECHO_T}no" >&6
14338fi
14339
14340 test -n "$CROSSCC" && break
14341done
14342test -n "$CROSSCC" || CROSSCC="false"
14343
Kevin Koltzaud3444562004-04-15 00:01:05 +000014344 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014345do
14346 # Extract the first word of "$ac_prog", so it can be a program name with args.
14347set dummy $ac_prog; ac_word=$2
14348echo "$as_me:$LINENO: checking for $ac_word" >&5
14349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14350if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14352else
14353 if test -n "$DLLTOOL"; then
14354 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14355else
14356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14357for as_dir in $PATH
14358do
14359 IFS=$as_save_IFS
14360 test -z "$as_dir" && as_dir=.
14361 for ac_exec_ext in '' $ac_executable_extensions; do
14362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14363 ac_cv_prog_DLLTOOL="$ac_prog"
14364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14365 break 2
14366 fi
14367done
14368done
14369
14370fi
14371fi
14372DLLTOOL=$ac_cv_prog_DLLTOOL
14373if test -n "$DLLTOOL"; then
14374 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14375echo "${ECHO_T}$DLLTOOL" >&6
14376else
14377 echo "$as_me:$LINENO: result: no" >&5
14378echo "${ECHO_T}no" >&6
14379fi
14380
14381 test -n "$DLLTOOL" && break
14382done
14383test -n "$DLLTOOL" || DLLTOOL="false"
14384
Kevin Koltzaud3444562004-04-15 00:01:05 +000014385 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
Alexandre Julliard21ee3292003-04-21 22:52:31 +000014386do
14387 # Extract the first word of "$ac_prog", so it can be a program name with args.
14388set dummy $ac_prog; ac_word=$2
14389echo "$as_me:$LINENO: checking for $ac_word" >&5
14390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14391if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14393else
14394 if test -n "$CROSSWINDRES"; then
14395 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14396else
14397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14398for as_dir in $PATH
14399do
14400 IFS=$as_save_IFS
14401 test -z "$as_dir" && as_dir=.
14402 for ac_exec_ext in '' $ac_executable_extensions; do
14403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14404 ac_cv_prog_CROSSWINDRES="$ac_prog"
14405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14406 break 2
14407 fi
14408done
14409done
14410
14411fi
14412fi
14413CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14414if test -n "$CROSSWINDRES"; then
14415 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14416echo "${ECHO_T}$CROSSWINDRES" >&6
14417else
14418 echo "$as_me:$LINENO: result: no" >&5
14419echo "${ECHO_T}no" >&6
14420fi
14421
14422 test -n "$CROSSWINDRES" && break
14423done
14424test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14425
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014426 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14427 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014428 ;;
14429esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014430
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000014431if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014432 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014433It is currently not possible to build Wine without shared library
14434(.so) support to allow transparent switch between .so and .dll files.
14435If you are using Linux, you will need a newer binutils.
14436" >&5
14437echo "$as_me: error: could not find a way to build shared libraries.
14438It is currently not possible to build Wine without shared library
14439(.so) support to allow transparent switch between .so and .dll files.
14440If you are using Linux, you will need a newer binutils.
14441" >&2;}
14442 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000014443fi
14444
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014445case $build_os in
14446 cygwin*|mingw32*)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000014447 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014448 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014449 darwin*|macosx*)
14450 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14451 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014452 *)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000014453 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014454 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014455esac
14456
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014457case $host_os in
14458 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000014459 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000014460
14461 SOCKETLIBS="-lws2_32"
14462
14463 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000014464esac
14465
14466case $host_os in
14467 linux*)
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014468 WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
Alexandre Julliard546839f2003-11-11 00:48:21 +000014469
Alexandre Julliarda628c132003-11-12 03:28:21 +000014470 MAIN_BINARY="wine-glibc"
Alexandre Julliard546839f2003-11-11 00:48:21 +000014471
Alexandre Julliard546839f2003-11-11 00:48:21 +000014472 ;;
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000014473 darwin*)
14474 WINE_BINARIES="wine-pthread"
14475
14476 MAIN_BINARY="wine-pthread"
14477
14478 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000014479 *)
14480 WINE_BINARIES="wine-kthread"
14481
14482 MAIN_BINARY="wine-kthread"
14483
14484 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014485esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014486
14487
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014488if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014489then
14490 # Extract the first word of "ldd", so it can be a program name with args.
14491set dummy ldd; ac_word=$2
14492echo "$as_me:$LINENO: checking for $ac_word" >&5
14493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14494if test "${ac_cv_path_LDD+set}" = set; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14496else
14497 case $LDD in
14498 [\\/]* | ?:[\\/]*)
14499 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14500 ;;
14501 *)
14502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014503as_dummy="/sbin:/usr/sbin:$PATH"
14504for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014505do
14506 IFS=$as_save_IFS
14507 test -z "$as_dir" && as_dir=.
14508 for ac_exec_ext in '' $ac_executable_extensions; do
14509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14510 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14512 break 2
14513 fi
14514done
14515done
14516
14517 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14518 ;;
14519esac
14520fi
14521LDD=$ac_cv_path_LDD
14522
14523if test -n "$LDD"; then
14524 echo "$as_me:$LINENO: result: $LDD" >&5
14525echo "${ECHO_T}$LDD" >&6
14526else
14527 echo "$as_me:$LINENO: result: no" >&5
14528echo "${ECHO_T}no" >&6
14529fi
14530
14531
14532echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14533echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14534if test "${ac_cv_lib_soname_X11+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
14536else
14537 ac_get_soname_save_LIBS=$LIBS
14538LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14539 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014540/* confdefs.h. */
14541_ACEOF
14542cat confdefs.h >>conftest.$ac_ext
14543cat >>conftest.$ac_ext <<_ACEOF
14544/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014545
14546/* Override any gcc2 internal prototype to avoid an error. */
14547#ifdef __cplusplus
14548extern "C"
14549#endif
14550/* We use char because int might match the return type of a gcc2
14551 builtin and then its argument prototype would still apply. */
14552char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014553int
14554main ()
14555{
14556XCreateWindow ();
14557 ;
14558 return 0;
14559}
14560_ACEOF
14561rm -f conftest.$ac_objext conftest$ac_exeext
14562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014563 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014564 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -f conftest.er1
14567 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14572 (eval $ac_try) 2>&5
14573 ac_status=$?
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); }; } &&
14576 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014582 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 +000014583 if test "x$ac_cv_lib_soname_X11" = "x"
14584 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014585 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014586 fi
14587else
14588 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014589sed 's/^/| /' conftest.$ac_ext >&5
14590
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014591ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014592fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014593rm -f conftest.err conftest.$ac_objext \
14594 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014595 LIBS=$ac_get_soname_save_LIBS
14596fi
14597echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14598echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14599if test "x$ac_cv_lib_soname_X11" != xNONE
14600then
14601cat >>confdefs.h <<_ACEOF
14602#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14603_ACEOF
14604fi
14605
14606echo "$as_me:$LINENO: checking for -lXext soname" >&5
14607echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14608if test "${ac_cv_lib_soname_Xext+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14610else
14611 ac_get_soname_save_LIBS=$LIBS
14612LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14613 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014614/* confdefs.h. */
14615_ACEOF
14616cat confdefs.h >>conftest.$ac_ext
14617cat >>conftest.$ac_ext <<_ACEOF
14618/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014619
14620/* Override any gcc2 internal prototype to avoid an error. */
14621#ifdef __cplusplus
14622extern "C"
14623#endif
14624/* We use char because int might match the return type of a gcc2
14625 builtin and then its argument prototype would still apply. */
14626char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014627int
14628main ()
14629{
14630XextCreateExtension ();
14631 ;
14632 return 0;
14633}
14634_ACEOF
14635rm -f conftest.$ac_objext conftest$ac_exeext
14636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014637 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014638 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014639 grep -v '^ *+' conftest.er1 >conftest.err
14640 rm -f conftest.er1
14641 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; } &&
14650 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14653 ac_status=$?
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014656 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 +000014657 if test "x$ac_cv_lib_soname_Xext" = "x"
14658 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014659 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014660 fi
14661else
14662 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014663sed 's/^/| /' conftest.$ac_ext >&5
14664
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014665ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014666fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014667rm -f conftest.err conftest.$ac_objext \
14668 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014669 LIBS=$ac_get_soname_save_LIBS
14670fi
14671echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14672echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14673if test "x$ac_cv_lib_soname_Xext" != xNONE
14674then
14675cat >>confdefs.h <<_ACEOF
14676#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14677_ACEOF
14678fi
14679
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014680echo "$as_me:$LINENO: checking for -lXi soname" >&5
14681echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14682if test "${ac_cv_lib_soname_Xi+set}" = set; then
14683 echo $ECHO_N "(cached) $ECHO_C" >&6
14684else
14685 ac_get_soname_save_LIBS=$LIBS
14686LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14687 cat >conftest.$ac_ext <<_ACEOF
14688/* confdefs.h. */
14689_ACEOF
14690cat confdefs.h >>conftest.$ac_ext
14691cat >>conftest.$ac_ext <<_ACEOF
14692/* end confdefs.h. */
14693
14694/* Override any gcc2 internal prototype to avoid an error. */
14695#ifdef __cplusplus
14696extern "C"
14697#endif
14698/* We use char because int might match the return type of a gcc2
14699 builtin and then its argument prototype would still apply. */
14700char XOpenDevice ();
14701int
14702main ()
14703{
14704XOpenDevice ();
14705 ;
14706 return 0;
14707}
14708_ACEOF
14709rm -f conftest.$ac_objext conftest$ac_exeext
14710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14711 (eval $ac_link) 2>conftest.er1
14712 ac_status=$?
14713 grep -v '^ *+' conftest.er1 >conftest.err
14714 rm -f conftest.er1
14715 cat conftest.err >&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
14718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14721 ac_status=$?
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; } &&
14724 { ac_try='test -s conftest$ac_exeext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014730 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 +000014731 if test "x$ac_cv_lib_soname_Xi" = "x"
14732 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014733 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014734 fi
14735else
14736 echo "$as_me: failed program was:" >&5
14737sed 's/^/| /' conftest.$ac_ext >&5
14738
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014739ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014740fi
14741rm -f conftest.err conftest.$ac_objext \
14742 conftest$ac_exeext conftest.$ac_ext
14743 LIBS=$ac_get_soname_save_LIBS
14744fi
14745echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14746echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14747if test "x$ac_cv_lib_soname_Xi" != xNONE
14748then
14749cat >>confdefs.h <<_ACEOF
14750#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14751_ACEOF
14752fi
14753
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014754echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14755echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14756if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14758else
14759 ac_get_soname_save_LIBS=$LIBS
14760LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14761 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014762/* confdefs.h. */
14763_ACEOF
14764cat confdefs.h >>conftest.$ac_ext
14765cat >>conftest.$ac_ext <<_ACEOF
14766/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014767
14768/* Override any gcc2 internal prototype to avoid an error. */
14769#ifdef __cplusplus
14770extern "C"
14771#endif
14772/* We use char because int might match the return type of a gcc2
14773 builtin and then its argument prototype would still apply. */
14774char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014775int
14776main ()
14777{
14778XRenderQueryExtension ();
14779 ;
14780 return 0;
14781}
14782_ACEOF
14783rm -f conftest.$ac_objext conftest$ac_exeext
14784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014785 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014786 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014787 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1
14789 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14795 ac_status=$?
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; } &&
14798 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014804 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 +000014805 if test "x$ac_cv_lib_soname_Xrender" = "x"
14806 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014807 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014808 fi
14809else
14810 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014811sed 's/^/| /' conftest.$ac_ext >&5
14812
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014813ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014814fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014815rm -f conftest.err conftest.$ac_objext \
14816 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014817 LIBS=$ac_get_soname_save_LIBS
14818fi
14819echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14820echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14821if test "x$ac_cv_lib_soname_Xrender" != xNONE
14822then
14823cat >>confdefs.h <<_ACEOF
14824#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14825_ACEOF
14826fi
14827
Mike McCormackc7c9f932004-04-07 03:57:35 +000014828echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14829echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14830if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14832else
14833 ac_get_soname_save_LIBS=$LIBS
14834LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14835 cat >conftest.$ac_ext <<_ACEOF
14836/* confdefs.h. */
14837_ACEOF
14838cat confdefs.h >>conftest.$ac_ext
14839cat >>conftest.$ac_ext <<_ACEOF
14840/* end confdefs.h. */
14841
14842/* Override any gcc2 internal prototype to avoid an error. */
14843#ifdef __cplusplus
14844extern "C"
14845#endif
14846/* We use char because int might match the return type of a gcc2
14847 builtin and then its argument prototype would still apply. */
14848char XRRQueryExtension ();
14849int
14850main ()
14851{
14852XRRQueryExtension ();
14853 ;
14854 return 0;
14855}
14856_ACEOF
14857rm -f conftest.$ac_objext conftest$ac_exeext
14858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14859 (eval $ac_link) 2>conftest.er1
14860 ac_status=$?
14861 grep -v '^ *+' conftest.er1 >conftest.err
14862 rm -f conftest.er1
14863 cat conftest.err >&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } &&
14866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868 (eval $ac_try) 2>&5
14869 ac_status=$?
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }; } &&
14872 { ac_try='test -s conftest$ac_exeext'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014878 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 +000014879 if test "x$ac_cv_lib_soname_Xrandr" = "x"
14880 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014881 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000014882 fi
14883else
14884 echo "$as_me: failed program was:" >&5
14885sed 's/^/| /' conftest.$ac_ext >&5
14886
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014887ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000014888fi
14889rm -f conftest.err conftest.$ac_objext \
14890 conftest$ac_exeext conftest.$ac_ext
14891 LIBS=$ac_get_soname_save_LIBS
14892fi
14893echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14894echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14895if test "x$ac_cv_lib_soname_Xrandr" != xNONE
14896then
14897cat >>confdefs.h <<_ACEOF
14898#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14899_ACEOF
14900fi
14901
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014902echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14903echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14904if test "${ac_cv_lib_soname_freetype+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14906else
14907 ac_get_soname_save_LIBS=$LIBS
14908LIBS="-lfreetype $X_LIBS $LIBS"
14909 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014910/* confdefs.h. */
14911_ACEOF
14912cat confdefs.h >>conftest.$ac_ext
14913cat >>conftest.$ac_ext <<_ACEOF
14914/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014915
14916/* Override any gcc2 internal prototype to avoid an error. */
14917#ifdef __cplusplus
14918extern "C"
14919#endif
14920/* We use char because int might match the return type of a gcc2
14921 builtin and then its argument prototype would still apply. */
14922char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014923int
14924main ()
14925{
14926FT_Init_FreeType ();
14927 ;
14928 return 0;
14929}
14930_ACEOF
14931rm -f conftest.$ac_objext conftest$ac_exeext
14932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014933 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014934 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014935 grep -v '^ *+' conftest.er1 >conftest.err
14936 rm -f conftest.er1
14937 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14943 ac_status=$?
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; } &&
14946 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014952 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 +000014953 if test "x$ac_cv_lib_soname_freetype" = "x"
14954 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014955 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014956 fi
14957else
14958 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014959sed 's/^/| /' conftest.$ac_ext >&5
14960
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014961ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014962fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014963rm -f conftest.err conftest.$ac_objext \
14964 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014965 LIBS=$ac_get_soname_save_LIBS
14966fi
14967echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14968echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14969if test "x$ac_cv_lib_soname_freetype" != xNONE
14970then
14971cat >>confdefs.h <<_ACEOF
14972#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14973_ACEOF
14974fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000014975
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014976echo "$as_me:$LINENO: checking for -lGL soname" >&5
14977echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14978if test "${ac_cv_lib_soname_GL+set}" = set; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14980else
14981 ac_get_soname_save_LIBS=$LIBS
14982LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14983 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014984/* confdefs.h. */
14985_ACEOF
14986cat confdefs.h >>conftest.$ac_ext
14987cat >>conftest.$ac_ext <<_ACEOF
14988/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014989
14990/* Override any gcc2 internal prototype to avoid an error. */
14991#ifdef __cplusplus
14992extern "C"
14993#endif
14994/* We use char because int might match the return type of a gcc2
14995 builtin and then its argument prototype would still apply. */
14996char glXQueryExtension ();
14997int
14998main ()
14999{
15000glXQueryExtension ();
15001 ;
15002 return 0;
15003}
15004_ACEOF
15005rm -f conftest.$ac_objext conftest$ac_exeext
15006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015007 (eval $ac_link) 2>conftest.er1
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015008 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015009 grep -v '^ *+' conftest.er1 >conftest.err
15010 rm -f conftest.er1
15011 cat conftest.err >&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016 (eval $ac_try) 2>&5
15017 ac_status=$?
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); }; } &&
15020 { ac_try='test -s conftest$ac_exeext'
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015026 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 +000015027 if test "x$ac_cv_lib_soname_GL" = "x"
15028 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015029 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015030 fi
15031else
15032 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015033sed 's/^/| /' conftest.$ac_ext >&5
15034
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015035ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015036fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015037rm -f conftest.err conftest.$ac_objext \
15038 conftest$ac_exeext conftest.$ac_ext
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015039 LIBS=$ac_get_soname_save_LIBS
15040fi
15041echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15042echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
15043if test "x$ac_cv_lib_soname_GL" != xNONE
15044then
15045cat >>confdefs.h <<_ACEOF
15046#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15047_ACEOF
15048fi
15049
Christian Costaeac96b52004-07-30 18:54:32 +000015050echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
15051echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
15052if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15054else
15055 ac_get_soname_save_LIBS=$LIBS
15056LIBS="-ltxc_dxtn $LIBS"
15057 cat >conftest.$ac_ext <<_ACEOF
15058/* confdefs.h. */
15059_ACEOF
15060cat confdefs.h >>conftest.$ac_ext
15061cat >>conftest.$ac_ext <<_ACEOF
15062/* end confdefs.h. */
15063
15064/* Override any gcc2 internal prototype to avoid an error. */
15065#ifdef __cplusplus
15066extern "C"
15067#endif
15068/* We use char because int might match the return type of a gcc2
15069 builtin and then its argument prototype would still apply. */
15070char fetch_2d_texel_rgba_dxt1 ();
15071int
15072main ()
15073{
15074fetch_2d_texel_rgba_dxt1 ();
15075 ;
15076 return 0;
15077}
15078_ACEOF
15079rm -f conftest.$ac_objext conftest$ac_exeext
15080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15081 (eval $ac_link) 2>conftest.er1
15082 ac_status=$?
15083 grep -v '^ *+' conftest.er1 >conftest.err
15084 rm -f conftest.er1
15085 cat conftest.err >&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } &&
15088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try='test -s conftest$ac_exeext'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"`
15101 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
15102 then
15103 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15104 fi
15105else
15106 echo "$as_me: failed program was:" >&5
15107sed 's/^/| /' conftest.$ac_ext >&5
15108
15109ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15110fi
15111rm -f conftest.err conftest.$ac_objext \
15112 conftest$ac_exeext conftest.$ac_ext
15113 LIBS=$ac_get_soname_save_LIBS
15114fi
15115echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15116echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
15117if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
15118then
15119cat >>confdefs.h <<_ACEOF
15120#define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15121_ACEOF
15122fi
15123
Marcus Meissnerf061f762002-11-12 02:22:24 +000015124echo "$as_me:$LINENO: checking for -lcups soname" >&5
15125echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15126if test "${ac_cv_lib_soname_cups+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15128else
15129 ac_get_soname_save_LIBS=$LIBS
15130LIBS="-lcups $LIBS"
15131 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015132/* confdefs.h. */
15133_ACEOF
15134cat confdefs.h >>conftest.$ac_ext
15135cat >>conftest.$ac_ext <<_ACEOF
15136/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000015137
15138/* Override any gcc2 internal prototype to avoid an error. */
15139#ifdef __cplusplus
15140extern "C"
15141#endif
15142/* We use char because int might match the return type of a gcc2
15143 builtin and then its argument prototype would still apply. */
15144char cupsGetDefault ();
15145int
15146main ()
15147{
15148cupsGetDefault ();
15149 ;
15150 return 0;
15151}
15152_ACEOF
15153rm -f conftest.$ac_objext conftest$ac_exeext
15154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015155 (eval $ac_link) 2>conftest.er1
Marcus Meissnerf061f762002-11-12 02:22:24 +000015156 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015157 grep -v '^ *+' conftest.er1 >conftest.err
15158 rm -f conftest.er1
15159 cat conftest.err >&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000015160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15165 ac_status=$?
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try='test -s conftest$ac_exeext'
Marcus Meissnerf061f762002-11-12 02:22:24 +000015169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15171 ac_status=$?
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015174 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 +000015175 if test "x$ac_cv_lib_soname_cups" = "x"
15176 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015177 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000015178 fi
15179else
15180 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015181sed 's/^/| /' conftest.$ac_ext >&5
15182
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015183ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000015184fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015185rm -f conftest.err conftest.$ac_objext \
15186 conftest$ac_exeext conftest.$ac_ext
Marcus Meissnerf061f762002-11-12 02:22:24 +000015187 LIBS=$ac_get_soname_save_LIBS
15188fi
15189echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15190echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15191if test "x$ac_cv_lib_soname_cups" != xNONE
15192then
15193cat >>confdefs.h <<_ACEOF
15194#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15195_ACEOF
15196fi
Chris Morgan4691b182002-12-13 02:26:18 +000015197
15198echo "$as_me:$LINENO: checking for -ljack soname" >&5
15199echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15200if test "${ac_cv_lib_soname_jack+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15202else
15203 ac_get_soname_save_LIBS=$LIBS
15204LIBS="-ljack $LIBS"
15205 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015206/* confdefs.h. */
15207_ACEOF
15208cat confdefs.h >>conftest.$ac_ext
15209cat >>conftest.$ac_ext <<_ACEOF
15210/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000015211
15212/* Override any gcc2 internal prototype to avoid an error. */
15213#ifdef __cplusplus
15214extern "C"
15215#endif
15216/* We use char because int might match the return type of a gcc2
15217 builtin and then its argument prototype would still apply. */
15218char jack_client_new ();
15219int
15220main ()
15221{
15222jack_client_new ();
15223 ;
15224 return 0;
15225}
15226_ACEOF
15227rm -f conftest.$ac_objext conftest$ac_exeext
15228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015229 (eval $ac_link) 2>conftest.er1
Chris Morgan4691b182002-12-13 02:26:18 +000015230 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015231 grep -v '^ *+' conftest.er1 >conftest.err
15232 rm -f conftest.er1
15233 cat conftest.err >&5
Chris Morgan4691b182002-12-13 02:26:18 +000015234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; } &&
15242 { ac_try='test -s conftest$ac_exeext'
Chris Morgan4691b182002-12-13 02:26:18 +000015243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15245 ac_status=$?
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015248 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 +000015249 if test "x$ac_cv_lib_soname_jack" = "x"
15250 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015251 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000015252 fi
15253else
15254 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015255sed 's/^/| /' conftest.$ac_ext >&5
15256
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015257ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000015258fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015259rm -f conftest.err conftest.$ac_objext \
15260 conftest$ac_exeext conftest.$ac_ext
Chris Morgan4691b182002-12-13 02:26:18 +000015261 LIBS=$ac_get_soname_save_LIBS
15262fi
15263echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15264echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15265if test "x$ac_cv_lib_soname_jack" != xNONE
15266then
15267cat >>confdefs.h <<_ACEOF
15268#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15269_ACEOF
15270fi
David Hammerton852c7ae2003-06-20 23:26:56 +000015271
Huw Davies6e128072003-11-09 00:30:13 +000015272echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15273echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15274if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276else
15277 ac_get_soname_save_LIBS=$LIBS
15278LIBS="-lfontconfig $LIBS"
15279 cat >conftest.$ac_ext <<_ACEOF
Huw Davies6e128072003-11-09 00:30:13 +000015280/* confdefs.h. */
15281_ACEOF
15282cat confdefs.h >>conftest.$ac_ext
15283cat >>conftest.$ac_ext <<_ACEOF
15284/* end confdefs.h. */
15285
15286/* Override any gcc2 internal prototype to avoid an error. */
15287#ifdef __cplusplus
15288extern "C"
15289#endif
15290/* We use char because int might match the return type of a gcc2
15291 builtin and then its argument prototype would still apply. */
15292char FcInit ();
15293int
15294main ()
15295{
15296FcInit ();
15297 ;
15298 return 0;
15299}
15300_ACEOF
15301rm -f conftest.$ac_objext conftest$ac_exeext
15302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015303 (eval $ac_link) 2>conftest.er1
Huw Davies6e128072003-11-09 00:30:13 +000015304 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
Huw Davies6e128072003-11-09 00:30:13 +000015308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15313 ac_status=$?
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); }; } &&
15316 { ac_try='test -s conftest$ac_exeext'
Huw Davies6e128072003-11-09 00:30:13 +000015317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015322 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 +000015323 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15324 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015325 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000015326 fi
15327else
15328 echo "$as_me: failed program was:" >&5
15329sed 's/^/| /' conftest.$ac_ext >&5
15330
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015331ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000015332fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015333rm -f conftest.err conftest.$ac_objext \
15334 conftest$ac_exeext conftest.$ac_ext
Huw Davies6e128072003-11-09 00:30:13 +000015335 LIBS=$ac_get_soname_save_LIBS
15336fi
15337echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15338echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15339if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15340then
15341cat >>confdefs.h <<_ACEOF
15342#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15343_ACEOF
Alexandre Julliard79994692003-11-13 20:58:55 +000015344fi
Huw Davies6e128072003-11-09 00:30:13 +000015345
David Hammerton852c7ae2003-06-20 23:26:56 +000015346echo "$as_me:$LINENO: checking for -lssl soname" >&5
15347echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15348if test "${ac_cv_lib_soname_ssl+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350else
15351 ac_get_soname_save_LIBS=$LIBS
15352LIBS="-lssl $LIBS"
15353 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000015354/* confdefs.h. */
15355_ACEOF
15356cat confdefs.h >>conftest.$ac_ext
15357cat >>conftest.$ac_ext <<_ACEOF
15358/* end confdefs.h. */
15359
15360/* Override any gcc2 internal prototype to avoid an error. */
15361#ifdef __cplusplus
15362extern "C"
15363#endif
15364/* We use char because int might match the return type of a gcc2
15365 builtin and then its argument prototype would still apply. */
15366char SSL_library_init ();
15367int
15368main ()
15369{
15370SSL_library_init ();
15371 ;
15372 return 0;
15373}
15374_ACEOF
15375rm -f conftest.$ac_objext conftest$ac_exeext
15376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015377 (eval $ac_link) 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000015378 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000015382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; } &&
15390 { ac_try='test -s conftest$ac_exeext'
David Hammerton852c7ae2003-06-20 23:26:56 +000015391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15392 (eval $ac_try) 2>&5
15393 ac_status=$?
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015396 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 +000015397 if test "x$ac_cv_lib_soname_ssl" = "x"
15398 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015399 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015400 fi
15401else
15402 echo "$as_me: failed program was:" >&5
15403sed 's/^/| /' conftest.$ac_ext >&5
15404
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015405ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015406fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015407rm -f conftest.err conftest.$ac_objext \
15408 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000015409 LIBS=$ac_get_soname_save_LIBS
15410fi
15411echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15412echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15413if test "x$ac_cv_lib_soname_ssl" != xNONE
15414then
15415cat >>confdefs.h <<_ACEOF
15416#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15417_ACEOF
15418fi
15419
15420echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15421echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15422if test "${ac_cv_lib_soname_crypto+set}" = set; then
15423 echo $ECHO_N "(cached) $ECHO_C" >&6
15424else
15425 ac_get_soname_save_LIBS=$LIBS
15426LIBS="-lcrypto $LIBS"
15427 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000015428/* confdefs.h. */
15429_ACEOF
15430cat confdefs.h >>conftest.$ac_ext
15431cat >>conftest.$ac_ext <<_ACEOF
15432/* end confdefs.h. */
15433
15434/* Override any gcc2 internal prototype to avoid an error. */
15435#ifdef __cplusplus
15436extern "C"
15437#endif
15438/* We use char because int might match the return type of a gcc2
15439 builtin and then its argument prototype would still apply. */
15440char BIO_new_socket ();
15441int
15442main ()
15443{
15444BIO_new_socket ();
15445 ;
15446 return 0;
15447}
15448_ACEOF
15449rm -f conftest.$ac_objext conftest$ac_exeext
15450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015451 (eval $ac_link) 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000015452 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015453 grep -v '^ *+' conftest.er1 >conftest.err
15454 rm -f conftest.er1
15455 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000015456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15461 ac_status=$?
15462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; } &&
15464 { ac_try='test -s conftest$ac_exeext'
David Hammerton852c7ae2003-06-20 23:26:56 +000015465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015470 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 +000015471 if test "x$ac_cv_lib_soname_crypto" = "x"
15472 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015473 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015474 fi
15475else
15476 echo "$as_me: failed program was:" >&5
15477sed 's/^/| /' conftest.$ac_ext >&5
15478
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015479ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015480fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015481rm -f conftest.err conftest.$ac_objext \
15482 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000015483 LIBS=$ac_get_soname_save_LIBS
15484fi
15485echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15486echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15487if test "x$ac_cv_lib_soname_crypto" != xNONE
15488then
15489cat >>confdefs.h <<_ACEOF
15490#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15491_ACEOF
15492fi
Mike McCormack9557d1b2003-08-20 04:19:01 +000015493
15494echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15495echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15496if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15498else
15499 ac_get_soname_save_LIBS=$LIBS
15500LIBS="-lncurses $LIBS"
15501 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000015502/* confdefs.h. */
15503_ACEOF
15504cat confdefs.h >>conftest.$ac_ext
15505cat >>conftest.$ac_ext <<_ACEOF
15506/* end confdefs.h. */
15507
15508/* Override any gcc2 internal prototype to avoid an error. */
15509#ifdef __cplusplus
15510extern "C"
15511#endif
15512/* We use char because int might match the return type of a gcc2
15513 builtin and then its argument prototype would still apply. */
15514char waddch ();
15515int
15516main ()
15517{
15518waddch ();
15519 ;
15520 return 0;
15521}
15522_ACEOF
15523rm -f conftest.$ac_objext conftest$ac_exeext
15524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015525 (eval $ac_link) 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000015526 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015527 grep -v '^ *+' conftest.er1 >conftest.err
15528 rm -f conftest.er1
15529 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000015530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15535 ac_status=$?
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; } &&
15538 { ac_try='test -s conftest$ac_exeext'
Mike McCormack9557d1b2003-08-20 04:19:01 +000015539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015544 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 +000015545 if test "x$ac_cv_lib_soname_ncurses" = "x"
15546 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015547 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015548 fi
15549else
15550 echo "$as_me: failed program was:" >&5
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015553ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015554fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015555rm -f conftest.err conftest.$ac_objext \
15556 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000015557 LIBS=$ac_get_soname_save_LIBS
15558fi
15559echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15560echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15561if test "x$ac_cv_lib_soname_ncurses" != xNONE
15562then
15563cat >>confdefs.h <<_ACEOF
15564#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15565_ACEOF
15566fi
15567
15568echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15569echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15570if test "${ac_cv_lib_soname_curses+set}" = set; then
15571 echo $ECHO_N "(cached) $ECHO_C" >&6
15572else
15573 ac_get_soname_save_LIBS=$LIBS
15574LIBS="-lcurses $LIBS"
15575 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000015576/* confdefs.h. */
15577_ACEOF
15578cat confdefs.h >>conftest.$ac_ext
15579cat >>conftest.$ac_ext <<_ACEOF
15580/* end confdefs.h. */
15581
15582/* Override any gcc2 internal prototype to avoid an error. */
15583#ifdef __cplusplus
15584extern "C"
15585#endif
15586/* We use char because int might match the return type of a gcc2
15587 builtin and then its argument prototype would still apply. */
15588char waddch ();
15589int
15590main ()
15591{
15592waddch ();
15593 ;
15594 return 0;
15595}
15596_ACEOF
15597rm -f conftest.$ac_objext conftest$ac_exeext
15598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015599 (eval $ac_link) 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000015600 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015601 grep -v '^ *+' conftest.er1 >conftest.err
15602 rm -f conftest.er1
15603 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000015604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15609 ac_status=$?
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 (exit $ac_status); }; } &&
15612 { ac_try='test -s conftest$ac_exeext'
Mike McCormack9557d1b2003-08-20 04:19:01 +000015613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015618 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 +000015619 if test "x$ac_cv_lib_soname_curses" = "x"
15620 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015621 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015622 fi
15623else
15624 echo "$as_me: failed program was:" >&5
15625sed 's/^/| /' conftest.$ac_ext >&5
15626
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015627ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015628fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015629rm -f conftest.err conftest.$ac_objext \
15630 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000015631 LIBS=$ac_get_soname_save_LIBS
15632fi
15633echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15634echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15635if test "x$ac_cv_lib_soname_curses" != xNONE
15636then
15637cat >>confdefs.h <<_ACEOF
15638#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15639_ACEOF
15640fi
Huw Daviese82dfab2004-08-04 19:10:26 +000015641
15642echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15643echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15644if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15646else
15647 ac_get_soname_save_LIBS=$LIBS
15648LIBS="-ljpeg $LIBS"
15649 cat >conftest.$ac_ext <<_ACEOF
15650/* confdefs.h. */
15651_ACEOF
15652cat confdefs.h >>conftest.$ac_ext
15653cat >>conftest.$ac_ext <<_ACEOF
15654/* end confdefs.h. */
15655
15656/* Override any gcc2 internal prototype to avoid an error. */
15657#ifdef __cplusplus
15658extern "C"
15659#endif
15660/* We use char because int might match the return type of a gcc2
15661 builtin and then its argument prototype would still apply. */
15662char jpeg_start_decompress ();
15663int
15664main ()
15665{
15666jpeg_start_decompress ();
15667 ;
15668 return 0;
15669}
15670_ACEOF
15671rm -f conftest.$ac_objext conftest$ac_exeext
15672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15673 (eval $ac_link) 2>conftest.er1
15674 ac_status=$?
15675 grep -v '^ *+' conftest.er1 >conftest.err
15676 rm -f conftest.er1
15677 cat conftest.err >&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
15680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; } &&
15686 { ac_try='test -s conftest$ac_exeext'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"`
15693 if test "x$ac_cv_lib_soname_jpeg" = "x"
15694 then
15695 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15696 fi
15697else
15698 echo "$as_me: failed program was:" >&5
15699sed 's/^/| /' conftest.$ac_ext >&5
15700
15701ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15702fi
15703rm -f conftest.err conftest.$ac_objext \
15704 conftest$ac_exeext conftest.$ac_ext
15705 LIBS=$ac_get_soname_save_LIBS
15706fi
15707echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15708echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15709if test "x$ac_cv_lib_soname_jpeg" != xNONE
15710then
15711cat >>confdefs.h <<_ACEOF
15712#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15713_ACEOF
15714fi
15715
15716echo "$as_me:$LINENO: checking for -lungif soname" >&5
15717echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15718if test "${ac_cv_lib_soname_ungif+set}" = set; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15720else
15721 ac_get_soname_save_LIBS=$LIBS
15722LIBS="-lungif $LIBS"
15723 cat >conftest.$ac_ext <<_ACEOF
15724/* confdefs.h. */
15725_ACEOF
15726cat confdefs.h >>conftest.$ac_ext
15727cat >>conftest.$ac_ext <<_ACEOF
15728/* end confdefs.h. */
15729
15730/* Override any gcc2 internal prototype to avoid an error. */
15731#ifdef __cplusplus
15732extern "C"
15733#endif
15734/* We use char because int might match the return type of a gcc2
15735 builtin and then its argument prototype would still apply. */
15736char DGifOpen ();
15737int
15738main ()
15739{
15740DGifOpen ();
15741 ;
15742 return 0;
15743}
15744_ACEOF
15745rm -f conftest.$ac_objext conftest$ac_exeext
15746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15747 (eval $ac_link) 2>conftest.er1
15748 ac_status=$?
15749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15757 ac_status=$?
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; } &&
15760 { ac_try='test -s conftest$ac_exeext'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15763 ac_status=$?
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }; then
15766 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"`
15767 if test "x$ac_cv_lib_soname_ungif" = "x"
15768 then
15769 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15770 fi
15771else
15772 echo "$as_me: failed program was:" >&5
15773sed 's/^/| /' conftest.$ac_ext >&5
15774
15775ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15776fi
15777rm -f conftest.err conftest.$ac_objext \
15778 conftest$ac_exeext conftest.$ac_ext
15779 LIBS=$ac_get_soname_save_LIBS
15780fi
15781echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15782echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15783if test "x$ac_cv_lib_soname_ungif" != xNONE
15784then
15785cat >>confdefs.h <<_ACEOF
15786#define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15787_ACEOF
15788fi
Marcus Meissner00cf13a2004-09-14 19:27:58 +000015789
15790echo "$as_me:$LINENO: checking for -lgif soname" >&5
15791echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15792if test "${ac_cv_lib_soname_gif+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15794else
15795 ac_get_soname_save_LIBS=$LIBS
15796LIBS="-lgif $LIBS"
15797 cat >conftest.$ac_ext <<_ACEOF
15798/* confdefs.h. */
15799_ACEOF
15800cat confdefs.h >>conftest.$ac_ext
15801cat >>conftest.$ac_ext <<_ACEOF
15802/* end confdefs.h. */
15803
15804/* Override any gcc2 internal prototype to avoid an error. */
15805#ifdef __cplusplus
15806extern "C"
15807#endif
15808/* We use char because int might match the return type of a gcc2
15809 builtin and then its argument prototype would still apply. */
15810char DGifOpen ();
15811int
15812main ()
15813{
15814DGifOpen ();
15815 ;
15816 return 0;
15817}
15818_ACEOF
15819rm -f conftest.$ac_objext conftest$ac_exeext
15820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15821 (eval $ac_link) 2>conftest.er1
15822 ac_status=$?
15823 grep -v '^ *+' conftest.er1 >conftest.err
15824 rm -f conftest.er1
15825 cat conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } &&
15828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; } &&
15834 { ac_try='test -s conftest$ac_exeext'
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15837 ac_status=$?
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15840 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"`
15841 if test "x$ac_cv_lib_soname_gif" = "x"
15842 then
15843 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15844 fi
15845else
15846 echo "$as_me: failed program was:" >&5
15847sed 's/^/| /' conftest.$ac_ext >&5
15848
15849ac_cv_lib_soname_gif="libgif.$LIBEXT"
15850fi
15851rm -f conftest.err conftest.$ac_objext \
15852 conftest$ac_exeext conftest.$ac_ext
15853 LIBS=$ac_get_soname_save_LIBS
15854fi
15855echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
15856echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
15857if test "x$ac_cv_lib_soname_gif" != xNONE
15858then
15859cat >>confdefs.h <<_ACEOF
15860#define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
15861_ACEOF
15862fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015863fi
15864
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015865
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015866
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015867# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15868# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015869echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015870echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15871if test "${ac_cv_working_alloca_h+set}" = set; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015873else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015874 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015875/* confdefs.h. */
15876_ACEOF
15877cat confdefs.h >>conftest.$ac_ext
15878cat >>conftest.$ac_ext <<_ACEOF
15879/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015880#include <alloca.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015881int
15882main ()
15883{
15884char *p = (char *) alloca (2 * sizeof (int));
15885 ;
15886 return 0;
15887}
15888_ACEOF
15889rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015891 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015892 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015893 grep -v '^ *+' conftest.er1 >conftest.err
15894 rm -f conftest.er1
15895 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015897 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015906 (eval $ac_try) 2>&5
15907 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015909 (exit $ac_status); }; }; then
15910 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015911else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015912 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015913sed 's/^/| /' conftest.$ac_ext >&5
15914
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015915ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015916fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015917rm -f conftest.err conftest.$ac_objext \
15918 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015919fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015920echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015921echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15922if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000015923
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015924cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015925#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015926_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015927
15928fi
15929
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015930echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015931echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15932if test "${ac_cv_func_alloca_works+set}" = set; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015934else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015935 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015936/* confdefs.h. */
15937_ACEOF
15938cat confdefs.h >>conftest.$ac_ext
15939cat >>conftest.$ac_ext <<_ACEOF
15940/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015941#ifdef __GNUC__
15942# define alloca __builtin_alloca
15943#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015944# ifdef _MSC_VER
15945# include <malloc.h>
15946# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015947# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015948# if HAVE_ALLOCA_H
15949# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015950# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015951# ifdef _AIX
15952 #pragma alloca
15953# else
15954# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015955char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000015956# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015957# endif
15958# endif
15959# endif
15960#endif
15961
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015962int
15963main ()
15964{
15965char *p = (char *) alloca (1);
15966 ;
15967 return 0;
15968}
15969_ACEOF
15970rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015972 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015973 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015974 grep -v '^ *+' conftest.er1 >conftest.err
15975 rm -f conftest.er1
15976 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015978 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; } &&
15985 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015987 (eval $ac_try) 2>&5
15988 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015990 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015991 ac_cv_func_alloca_works=yes
15992else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015993 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015994sed 's/^/| /' conftest.$ac_ext >&5
15995
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015996ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015997fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015998rm -f conftest.err conftest.$ac_objext \
15999 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016000fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016001echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016002echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016003
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016004if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016005
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016006cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016007#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016008_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016009
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016010else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016011 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016012# that cause trouble. Some versions do not even contain alloca or
16013# contain a buggy version. If you still want to use their alloca,
16014# use ar to extract alloca.o from them instead of compiling alloca.c.
16015
16016ALLOCA=alloca.$ac_objext
16017
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016018cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016019#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016020_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016021
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016022
16023echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016024echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16025if test "${ac_cv_os_cray+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016027else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016028 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016029/* confdefs.h. */
16030_ACEOF
16031cat confdefs.h >>conftest.$ac_ext
16032cat >>conftest.$ac_ext <<_ACEOF
16033/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016034#if defined(CRAY) && ! defined(CRAY2)
16035webecray
16036#else
16037wenotbecray
16038#endif
16039
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016040_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016042 $EGREP "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016043 ac_cv_os_cray=yes
16044else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016045 ac_cv_os_cray=no
16046fi
16047rm -f conftest*
16048
16049fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016050echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016051echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016052if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016053 for ac_func in _getb67 GETB67 getb67; do
16054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016055echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016056echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16057if eval "test \"\${$as_ac_var+set}\" = set"; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016059else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016060 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016061/* confdefs.h. */
16062_ACEOF
16063cat confdefs.h >>conftest.$ac_ext
16064cat >>conftest.$ac_ext <<_ACEOF
16065/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016066/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16068#define $ac_func innocuous_$ac_func
16069
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016070/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016071 which can conflict with char $ac_func (); below.
16072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16073 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016074
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016075#ifdef __STDC__
16076# include <limits.h>
16077#else
16078# include <assert.h>
16079#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000016080
16081#undef $ac_func
16082
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016083/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016084#ifdef __cplusplus
16085extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016086{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016087#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000016088/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016089 builtin and then its argument prototype would still apply. */
16090char $ac_func ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016091/* The GNU C library defines this for functions which it implements
16092 to always fail with ENOSYS. Some functions are actually named
16093 something starting with __ and the normal name is an alias. */
16094#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16095choke me
16096#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016097char (*f) () = $ac_func;
16098#endif
16099#ifdef __cplusplus
16100}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016101#endif
16102
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016103int
16104main ()
16105{
16106return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016107 ;
16108 return 0;
16109}
16110_ACEOF
16111rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016113 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016114 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016115 grep -v '^ *+' conftest.er1 >conftest.err
16116 rm -f conftest.er1
16117 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016119 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; } &&
16126 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016128 (eval $ac_try) 2>&5
16129 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016131 (exit $ac_status); }; }; then
16132 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016133else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016134 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016135sed 's/^/| /' conftest.$ac_ext >&5
16136
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016137eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016138fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016139rm -f conftest.err conftest.$ac_objext \
16140 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016141fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016143echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16144if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016145
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016146cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016147#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016148_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016149
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016150 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016151fi
16152
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016153 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016154fi
16155
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016156echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016157echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16158if test "${ac_cv_c_stack_direction+set}" = set; then
16159 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016160else
16161 if test "$cross_compiling" = yes; then
16162 ac_cv_c_stack_direction=0
16163else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016164 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016165/* confdefs.h. */
16166_ACEOF
16167cat confdefs.h >>conftest.$ac_ext
16168cat >>conftest.$ac_ext <<_ACEOF
16169/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016170int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016171find_stack_direction ()
16172{
16173 static char *addr = 0;
16174 auto char dummy;
16175 if (addr == 0)
16176 {
16177 addr = &dummy;
16178 return find_stack_direction ();
16179 }
16180 else
16181 return (&dummy > addr) ? 1 : -1;
16182}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016183
16184int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016185main ()
16186{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016187 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016188}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016189_ACEOF
16190rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016192 (eval $ac_link) 2>&5
16193 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016197 (eval $ac_try) 2>&5
16198 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016200 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016201 ac_cv_c_stack_direction=1
16202else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016203 echo "$as_me: program exited with status $ac_status" >&5
16204echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016205sed 's/^/| /' conftest.$ac_ext >&5
16206
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016207( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016208ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016209fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000016210rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016211fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016212fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016213echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016214echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016215
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016216cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016217#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016218_ACEOF
16219
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016220
16221fi
16222
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
Steven Edwardsb9627c12002-05-05 21:03:44 +000016265
16266
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016267
16268
Alexandre Julliard142dab82002-07-01 18:17:30 +000016269
Patrik Stridvall6caeb722002-11-25 21:12:26 +000016270
16271
16272
Pavel Roskin7add08a2003-09-24 18:54:40 +000016273
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000016274
Alexandre Julliarde2930742004-01-08 05:07:05 +000016275
Alexandre Julliard13af4892004-03-05 21:03:46 +000016276
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000016277
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000016278
16279
Alexandre Julliard969f57c2004-09-23 04:48:24 +000016280
Steven Edwardse7c3ab12004-10-04 20:45:49 +000016281
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016282for ac_func in \
16283 _lwp_create \
Alexandre Julliard6f7a2042003-04-01 04:39:35 +000016284 _lwp_self \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016285 _pclose \
16286 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016287 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000016288 _spawnvp \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016289 _stricmp \
16290 _strnicmp \
Steven Edwardsbe514b92003-01-14 19:35:03 +000016291 _vsnprintf \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016292 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016293 clone \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000016294 epoll_create \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000016295 finite \
16296 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000016297 fstatfs \
16298 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016299 ftruncate \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000016300 ftruncate64 \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000016301 futimes \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016302 getnetbyaddr \
16303 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000016304 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016305 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016306 getprotobyname \
16307 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000016308 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016309 getservbyport \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000016310 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000016311 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000016312 getuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016313 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000016314 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000016315 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016316 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000016317 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016318 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016319 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016320 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000016321 pwrite \
Alexandre Julliarde2930742004-01-08 05:07:05 +000016322 readlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016323 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016324 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016325 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016326 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016327 sigaltstack \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016328 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000016329 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016330 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000016331 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000016332 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016333 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000016334 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016335 tcgetattr \
16336 timegm \
16337 usleep \
16338 vfscanf \
Steven Edwardsbe514b92003-01-14 19:35:03 +000016339 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016340 wait4 \
16341 waitpid \
16342
16343do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016345echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16347if eval "test \"\${$as_ac_var+set}\" = set"; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016349else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016350 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016351/* confdefs.h. */
16352_ACEOF
16353cat confdefs.h >>conftest.$ac_ext
16354cat >>conftest.$ac_ext <<_ACEOF
16355/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16358#define $ac_func innocuous_$ac_func
16359
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016360/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016361 which can conflict with char $ac_func (); below.
16362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16363 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016364
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016365#ifdef __STDC__
16366# include <limits.h>
16367#else
16368# include <assert.h>
16369#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000016370
16371#undef $ac_func
16372
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016373/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016374#ifdef __cplusplus
16375extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016376{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016377#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016378/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016379 builtin and then its argument prototype would still apply. */
16380char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016381/* The GNU C library defines this for functions which it implements
16382 to always fail with ENOSYS. Some functions are actually named
16383 something starting with __ and the normal name is an alias. */
16384#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16385choke me
16386#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016387char (*f) () = $ac_func;
16388#endif
16389#ifdef __cplusplus
16390}
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016391#endif
16392
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016393int
16394main ()
16395{
16396return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016397 ;
16398 return 0;
16399}
16400_ACEOF
16401rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016403 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016404 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016409 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; } &&
16416 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016418 (eval $ac_try) 2>&5
16419 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016421 (exit $ac_status); }; }; then
16422 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016423else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016424 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016425sed 's/^/| /' conftest.$ac_ext >&5
16426
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016427eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016428fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016429rm -f conftest.err conftest.$ac_objext \
16430 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016431fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016433echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16434if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016435 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016437_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016438
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016439fi
16440done
16441
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
Laurent Pinchart0314a652002-05-01 22:01:30 +000016503
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016504
16505
16506
Alexandre Julliard127ec922002-05-07 01:51:30 +000016507
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000016508
Patrik Stridvall57bf4502002-08-26 21:53:24 +000016509
16510
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000016511
Chris Morgan4691b182002-12-13 02:26:18 +000016512
Alexandre Julliardb6938952003-01-13 18:41:40 +000016513
Alexandre Julliardc44555b2003-04-02 01:42:06 +000016514
Juan Lang38fa5ad2003-05-13 03:32:20 +000016515
Yorick Hardyc26b7db2003-05-19 21:46:09 +000016516
Yorick Hardyb1334542003-05-20 17:48:40 +000016517
David Hammerton852c7ae2003-06-20 23:26:56 +000016518
Pavel Roskin6ce05692003-10-03 04:31:49 +000016519
Rein Klazesc6c404d2003-10-07 22:49:22 +000016520
Alexandre Julliard0b1a82a2003-10-14 01:27:31 +000016521
Dmitry Timoshkov2581db82003-10-14 05:27:43 +000016522
Huw Davies6e128072003-11-09 00:30:13 +000016523
Eric Pouech53fa0d52004-02-05 01:27:38 +000016524
16525
Alexandre Julliarde8a339c2004-03-01 21:32:02 +000016526
Alexandre Julliard13af4892004-03-05 21:03:46 +000016527
Alexandre Julliardffcc67a2004-04-29 20:04:48 +000016528
Huw Daviese82dfab2004-08-04 19:10:26 +000016529
16530
Rein Klazesd1993fb2004-09-07 22:44:34 +000016531
Alexandre Julliard969f57c2004-09-23 04:48:24 +000016532
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016533for ac_header in \
Patrik Stridvall96336321999-10-24 22:13:47 +000016534 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016535 arpa/nameser.h \
Marcus Meissnerf061f762002-11-12 02:22:24 +000016536 cups/cups.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016537 direct.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016538 elf.h \
16539 float.h \
Huw Davies6e128072003-11-09 00:30:13 +000016540 fontconfig/fontconfig.h \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000016541 getopt.h \
Huw Daviese82dfab2004-08-04 19:10:26 +000016542 gif_lib.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +000016543 ieeefp.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016544 io.h \
Chris Morgan4691b182002-12-13 02:26:18 +000016545 jack/jack.h \
Huw Daviese82dfab2004-08-04 19:10:26 +000016546 jpeglib.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016547 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +000016548 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016549 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016550 linux/cdrom.h \
Rein Klazesd1993fb2004-09-07 22:44:34 +000016551 linux/compiler.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016552 linux/hdreg.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +000016553 linux/input.h \
Alexandre Julliarde8a339c2004-03-01 21:32:02 +000016554 linux/ioctl.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +000016555 linux/joystick.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016556 linux/major.h \
Laurent Pinchart0314a652002-05-01 22:01:30 +000016557 linux/param.h \
Lawson Whitney533e7ee2002-02-19 18:41:56 +000016558 linux/serial.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016559 linux/ucdrom.h \
Yorick Hardyb1334542003-05-20 17:48:40 +000016560 machine/cpu.h \
Alexandre Julliardffcc67a2004-04-29 20:04:48 +000016561 mntent.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +000016562 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016563 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000016564 netinet/in_systm.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016565 netinet/tcp.h \
Juan Lang38fa5ad2003-05-13 03:32:20 +000016566 netinet/tcp_fsm.h \
David Hammerton852c7ae2003-06-20 23:26:56 +000016567 openssl/ssl.h \
Dmitry Timoshkov2581db82003-10-14 05:27:43 +000016568 process.h \
Alexandre Julliard0b1a82a2003-10-14 01:27:31 +000016569 pthread.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +000016570 pty.h \
Steven Edwardsff4525c2002-06-24 23:00:25 +000016571 pwd.h \
Alexandre Julliardb6938952003-01-13 18:41:40 +000016572 regex.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016573 sched.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016574 scsi/sg.h \
Rein Klazesc6c404d2003-10-07 22:49:22 +000016575 scsi/scsi.h \
Pavel Roskin6ce05692003-10-03 04:31:49 +000016576 scsi/scsi_ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016577 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +000016578 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016579 strings.h \
16580 sys/cdio.h \
Eric Pouech53fa0d52004-02-05 01:27:38 +000016581 sys/elf32.h \
Howard Abrams13277481999-07-10 13:16:29 +000016582 sys/errno.h \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000016583 sys/epoll.h \
Eric Pouech53fa0d52004-02-05 01:27:38 +000016584 sys/exec_elf.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016585 sys/file.h \
16586 sys/filio.h \
Michal Pasternak60983992002-03-29 18:04:43 +000016587 sys/inttypes.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000016588 sys/ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016589 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +000016590 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016591 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +000016592 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016593 sys/modem.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016594 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016595 sys/param.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000016596 sys/poll.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000016597 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +000016598 sys/reg.h \
Yorick Hardyc26b7db2003-05-19 21:46:09 +000016599 sys/scsiio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016600 sys/shm.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016601 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016602 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016603 sys/sockio.h \
16604 sys/statfs.h \
Alexandre Julliard13af4892004-03-05 21:03:46 +000016605 sys/statvfs.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016606 sys/strtio.h \
16607 sys/syscall.h \
Alexandre Julliard127ec922002-05-07 01:51:30 +000016608 sys/sysctl.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016609 sys/time.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000016610 sys/times.h \
Steven Edwards45e56812002-10-31 03:41:56 +000016611 sys/uio.h \
16612 sys/un.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016613 sys/v86.h \
16614 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016615 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016616 sys/vm86.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016617 sys/wait.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016618 syscall.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000016619 termios.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016620 unistd.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000016621 utime.h \
Alexandre Julliardc44555b2003-04-02 01:42:06 +000016622 valgrind/memcheck.h
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016623
Alexandre Julliard02e90081998-01-04 17:49:09 +000016624do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016626if eval "test \"\${$as_ac_Header+set}\" = set"; then
16627 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16629if eval "test \"\${$as_ac_Header+set}\" = set"; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016631fi
16632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16633echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliard02e90081998-01-04 17:49:09 +000016634else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016635 # Is the header compilable?
16636echo "$as_me:$LINENO: checking $ac_header usability" >&5
16637echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16638cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016639/* confdefs.h. */
16640_ACEOF
16641cat confdefs.h >>conftest.$ac_ext
16642cat >>conftest.$ac_ext <<_ACEOF
16643/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016644$ac_includes_default
16645#include <$ac_header>
16646_ACEOF
16647rm -f conftest.$ac_objext
16648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016649 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016650 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16659 ac_status=$?
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_header_compiler=yes
16669else
16670 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016671sed 's/^/| /' conftest.$ac_ext >&5
16672
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016673ac_header_compiler=no
16674fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016676echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16677echo "${ECHO_T}$ac_header_compiler" >&6
16678
16679# Is the header present?
16680echo "$as_me:$LINENO: checking $ac_header presence" >&5
16681echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16682cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016683/* confdefs.h. */
16684_ACEOF
16685cat confdefs.h >>conftest.$ac_ext
16686cat >>conftest.$ac_ext <<_ACEOF
16687/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016688#include <$ac_header>
16689_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016690if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16692 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016693 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016694 rm -f conftest.er1
16695 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016697 (exit $ac_status); } >/dev/null; then
16698 if test -s conftest.err; then
16699 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000016700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016701 else
16702 ac_cpp_err=
16703 fi
Alexandre Julliard02e90081998-01-04 17:49:09 +000016704else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016705 ac_cpp_err=yes
16706fi
16707if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016708 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016709else
16710 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016711sed 's/^/| /' conftest.$ac_ext >&5
16712
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016713 ac_header_preproc=no
Alexandre Julliard02e90081998-01-04 17:49:09 +000016714fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016715rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016716echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16717echo "${ECHO_T}$ac_header_preproc" >&6
16718
16719# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016720case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16721 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16723echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000016724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16725echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16726 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016727 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000016728 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16730echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000016731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16732echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16734echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16736echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016738echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000016739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16740echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016741 (
16742 cat <<\_ASBOX
16743## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000016744## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016745## ------------------------------------ ##
16746_ASBOX
16747 ) |
16748 sed "s/^/$as_me: WARNING: /" >&2
16749 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016750esac
16751echo "$as_me:$LINENO: checking for $ac_header" >&5
16752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16753if eval "test \"\${$as_ac_Header+set}\" = set"; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755else
Alexandre Julliard875927f2004-01-02 01:55:29 +000016756 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard02e90081998-01-04 17:49:09 +000016757fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016760
Alexandre Julliard02e90081998-01-04 17:49:09 +000016761fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016762if test `eval echo '${'$as_ac_Header'}'` = yes; then
16763 cat >>confdefs.h <<_ACEOF
16764#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16765_ACEOF
16766
16767fi
16768
Alexandre Julliard02e90081998-01-04 17:49:09 +000016769done
16770
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016771echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016772echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16773if test "${ac_cv_header_stat_broken+set}" = set; then
16774 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016775else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016776 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016777/* confdefs.h. */
16778_ACEOF
16779cat confdefs.h >>conftest.$ac_ext
16780cat >>conftest.$ac_ext <<_ACEOF
16781/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016782#include <sys/types.h>
16783#include <sys/stat.h>
16784
16785#if defined(S_ISBLK) && defined(S_IFDIR)
16786# if S_ISBLK (S_IFDIR)
16787You lose.
16788# endif
16789#endif
16790
16791#if defined(S_ISBLK) && defined(S_IFCHR)
16792# if S_ISBLK (S_IFCHR)
16793You lose.
16794# endif
16795#endif
16796
16797#if defined(S_ISLNK) && defined(S_IFREG)
16798# if S_ISLNK (S_IFREG)
16799You lose.
16800# endif
16801#endif
16802
16803#if defined(S_ISSOCK) && defined(S_IFREG)
16804# if S_ISSOCK (S_IFREG)
16805You lose.
16806# endif
16807#endif
16808
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016809_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016811 $EGREP "You lose" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016812 ac_cv_header_stat_broken=yes
16813else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016814 ac_cv_header_stat_broken=no
16815fi
16816rm -f conftest*
16817
16818fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016819echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016820echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016821if test $ac_cv_header_stat_broken = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016822
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016823cat >>confdefs.h <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016824#define STAT_MACROS_BROKEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016825_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016826
16827fi
16828
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016829
16830
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016831
16832
16833for ac_header in sys/mount.h sys/user.h
16834do
16835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16836echo "$as_me:$LINENO: checking for $ac_header" >&5
16837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16838if eval "test \"\${$as_ac_Header+set}\" = set"; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16840else
16841 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016842/* confdefs.h. */
16843_ACEOF
16844cat confdefs.h >>conftest.$ac_ext
16845cat >>conftest.$ac_ext <<_ACEOF
16846/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000016847#include <sys/types.h>
16848 #if HAVE_SYS_PARAM_H
16849 # include <sys/param.h>
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016850 #endif
16851
16852#include <$ac_header>
16853_ACEOF
16854rm -f conftest.$ac_objext
16855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016856 (eval $ac_compile) 2>conftest.er1
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016857 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016858 grep -v '^ *+' conftest.er1 >conftest.err
16859 rm -f conftest.er1
16860 cat conftest.err >&5
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16865 (eval $ac_try) 2>&5
16866 ac_status=$?
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; } &&
16869 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16875 eval "$as_ac_Header=yes"
16876else
16877 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016878sed 's/^/| /' conftest.$ac_ext >&5
16879
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016880eval "$as_ac_Header=no"
16881fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016883fi
16884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16886if test `eval echo '${'$as_ac_Header'}'` = yes; then
16887 cat >>confdefs.h <<_ACEOF
16888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16889_ACEOF
16890
16891fi
16892
16893done
16894
16895
16896
Juan Lang38fa5ad2003-05-13 03:32:20 +000016897
16898
16899
16900
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016901for 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 +000016902do
16903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16904echo "$as_me:$LINENO: checking for $ac_header" >&5
16905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16906if eval "test \"\${$as_ac_Header+set}\" = set"; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16908else
16909 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016910/* confdefs.h. */
16911_ACEOF
16912cat confdefs.h >>conftest.$ac_ext
16913cat >>conftest.$ac_ext <<_ACEOF
16914/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000016915#include <sys/types.h>
Gerald Pfeifer87c369d2002-07-23 02:02:02 +000016916 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016917 # include <sys/socket.h>
16918 #endif
16919
16920#include <$ac_header>
16921_ACEOF
16922rm -f conftest.$ac_objext
16923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016924 (eval $ac_compile) 2>conftest.er1
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016925 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest.$ac_objext'
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 eval "$as_ac_Header=yes"
16944else
16945 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016946sed 's/^/| /' conftest.$ac_ext >&5
16947
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016948eval "$as_ac_Header=no"
16949fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016951fi
16952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16954if test `eval echo '${'$as_ac_Header'}'` = yes; then
16955 cat >>confdefs.h <<_ACEOF
16956#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16957_ACEOF
16958
16959fi
16960
16961done
16962
16963
16964
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016965for ac_header in resolv.h
16966do
16967as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16968echo "$as_me:$LINENO: checking for $ac_header" >&5
16969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16970if eval "test \"\${$as_ac_Header+set}\" = set"; then
16971 echo $ECHO_N "(cached) $ECHO_C" >&6
16972else
16973 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016974/* confdefs.h. */
16975_ACEOF
16976cat confdefs.h >>conftest.$ac_ext
16977cat >>conftest.$ac_ext <<_ACEOF
16978/* end confdefs.h. */
16979#include <sys/types.h>
16980 #if HAVE_SYS_SOCKET_H
16981 # include <sys/socket.h>
16982 #endif
16983 #if HAVE_NETINET_IN_H
16984 # include <netinet/in.h>
16985 #endif
Pierre d'Herbemontae8ca362003-10-27 21:55:00 +000016986 #if HAVE_ARPA_NAMESER_H
16987 # include <arpa/nameser.h>
16988 #endif
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016989
16990#include <$ac_header>
16991_ACEOF
16992rm -f conftest.$ac_objext
16993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016994 (eval $ac_compile) 2>conftest.er1
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016995 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016996 grep -v '^ *+' conftest.er1 >conftest.err
16997 rm -f conftest.er1
16998 cat conftest.err >&5
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17003 (eval $ac_try) 2>&5
17004 ac_status=$?
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); }; } &&
17007 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000017008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009 (eval $ac_try) 2>&5
17010 ac_status=$?
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; }; then
17013 eval "$as_ac_Header=yes"
17014else
17015 echo "$as_me: failed program was:" >&5
17016sed 's/^/| /' conftest.$ac_ext >&5
17017
17018eval "$as_ac_Header=no"
17019fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000017021fi
17022echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17023echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17024if test `eval echo '${'$as_ac_Header'}'` = yes; then
17025 cat >>confdefs.h <<_ACEOF
17026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17027_ACEOF
17028
17029fi
17030
17031done
17032
17033
17034
Gregg Mattinson044b5c42002-07-19 03:16:51 +000017035for ac_header in netinet/ip.h
17036do
17037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17038echo "$as_me:$LINENO: checking for $ac_header" >&5
17039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17040if eval "test \"\${$as_ac_Header+set}\" = set"; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17042else
17043 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017044/* confdefs.h. */
17045_ACEOF
17046cat confdefs.h >>conftest.$ac_ext
17047cat >>conftest.$ac_ext <<_ACEOF
17048/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000017049#include <sys/types.h>
17050 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000017051 # include <sys/socket.h>
17052 #endif
17053 #if HAVE_NETINET_IN_SYSTM_H
17054 # include <netinet/in_systm.h>
17055 #endif
17056
17057#include <$ac_header>
17058_ACEOF
17059rm -f conftest.$ac_objext
17060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017061 (eval $ac_compile) 2>conftest.er1
Gregg Mattinson044b5c42002-07-19 03:16:51 +000017062 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
Gregg Mattinson044b5c42002-07-19 03:16:51 +000017066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17070 (eval $ac_try) 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; } &&
17074 { ac_try='test -s conftest.$ac_objext'
Gregg Mattinson044b5c42002-07-19 03:16:51 +000017075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17076 (eval $ac_try) 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; }; then
17080 eval "$as_ac_Header=yes"
17081else
17082 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017083sed 's/^/| /' conftest.$ac_ext >&5
17084
Gregg Mattinson044b5c42002-07-19 03:16:51 +000017085eval "$as_ac_Header=no"
17086fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gregg Mattinson044b5c42002-07-19 03:16:51 +000017088fi
17089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17091if test `eval echo '${'$as_ac_Header'}'` = yes; then
17092 cat >>confdefs.h <<_ACEOF
17093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17094_ACEOF
17095
17096fi
17097
17098done
17099
17100
17101
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017102for ac_header in ucontext.h
17103do
17104as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17105echo "$as_me:$LINENO: checking for $ac_header" >&5
17106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17107if eval "test \"\${$as_ac_Header+set}\" = set"; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17109else
17110 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017111/* confdefs.h. */
17112_ACEOF
17113cat confdefs.h >>conftest.$ac_ext
17114cat >>conftest.$ac_ext <<_ACEOF
17115/* end confdefs.h. */
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017116#include <signal.h>
17117
17118#include <$ac_header>
17119_ACEOF
17120rm -f conftest.$ac_objext
17121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017122 (eval $ac_compile) 2>conftest.er1
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017123 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017124 grep -v '^ *+' conftest.er1 >conftest.err
17125 rm -f conftest.er1
17126 cat conftest.err >&5
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17132 ac_status=$?
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; } &&
17135 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137 (eval $ac_try) 2>&5
17138 ac_status=$?
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); }; }; then
17141 eval "$as_ac_Header=yes"
17142else
17143 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017144sed 's/^/| /' conftest.$ac_ext >&5
17145
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017146eval "$as_ac_Header=no"
17147fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017149fi
17150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17152if test `eval echo '${'$as_ac_Header'}'` = yes; then
17153 cat >>confdefs.h <<_ACEOF
17154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17155_ACEOF
17156
17157fi
17158
17159done
17160
17161
17162
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017163echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
17164echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
17165if test "${ac_cv_c_ipx_gnu+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17167else
17168 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017169/* confdefs.h. */
17170_ACEOF
17171cat confdefs.h >>conftest.$ac_ext
17172cat >>conftest.$ac_ext <<_ACEOF
17173/* end confdefs.h. */
17174#include <sys/types.h>
17175 #ifdef HAVE_SYS_SOCKET_H
17176 # include <sys/socket.h>
17177 #endif
17178 #include <netipx/ipx.h>
17179int
17180main ()
17181{
17182((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17183 ;
17184 return 0;
17185}
17186_ACEOF
17187rm -f conftest.$ac_objext
17188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017189 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017190 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017191 grep -v '^ *+' conftest.er1 >conftest.err
17192 rm -f conftest.er1
17193 cat conftest.err >&5
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; } &&
17202 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17204 (eval $ac_try) 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; }; then
17208 ac_cv_c_ipx_gnu="yes"
17209else
17210 echo "$as_me: failed program was:" >&5
17211sed 's/^/| /' conftest.$ac_ext >&5
17212
17213ac_cv_c_ipx_gnu="no"
17214fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017216
17217fi
17218echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
17219echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
17220if test "$ac_cv_c_ipx_gnu" = "yes"
17221then
17222
17223cat >>confdefs.h <<\_ACEOF
17224#define HAVE_IPX_GNU 1
17225_ACEOF
17226
17227fi
17228
17229if test "$ac_cv_c_ipx_gnu" = "no"
17230then
17231 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
17232echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
17233if test "${ac_cv_c_ipx_linux+set}" = set; then
17234 echo $ECHO_N "(cached) $ECHO_C" >&6
17235else
17236 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017237/* confdefs.h. */
17238_ACEOF
17239cat confdefs.h >>conftest.$ac_ext
17240cat >>conftest.$ac_ext <<_ACEOF
17241/* end confdefs.h. */
17242#include <sys/types.h>
17243 #ifdef HAVE_SYS_SOCKET_H
17244 # include <sys/socket.h>
17245 #endif
17246 #include <asm/types.h>
17247 #include <linux/ipx.h>
17248int
17249main ()
17250{
17251((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17252 ;
17253 return 0;
17254}
17255_ACEOF
17256rm -f conftest.$ac_objext
17257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017258 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017259 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017260 grep -v '^ *+' conftest.er1 >conftest.err
17261 rm -f conftest.er1
17262 cat conftest.err >&5
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; } &&
17271 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_cv_c_ipx_linux="yes"
17278else
17279 echo "$as_me: failed program was:" >&5
17280sed 's/^/| /' conftest.$ac_ext >&5
17281
17282ac_cv_c_ipx_linux="no"
17283fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017285
17286fi
17287echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17288echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17289 if test "$ac_cv_c_ipx_linux" = "yes"
17290 then
17291
17292cat >>confdefs.h <<\_ACEOF
17293#define HAVE_IPX_LINUX 1
17294_ACEOF
17295
17296 fi
17297fi
17298
17299
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017300echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017301echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17302if test "${ac_cv_c_const+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304else
17305 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017306/* confdefs.h. */
17307_ACEOF
17308cat confdefs.h >>conftest.$ac_ext
17309cat >>conftest.$ac_ext <<_ACEOF
17310/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017311
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017312int
17313main ()
17314{
17315/* FIXME: Include the comments suggested by Paul. */
17316#ifndef __cplusplus
17317 /* Ultrix mips cc rejects this. */
17318 typedef int charset[2];
17319 const charset x;
17320 /* SunOS 4.1.1 cc rejects this. */
17321 char const *const *ccp;
17322 char **p;
17323 /* NEC SVR4.0.2 mips cc rejects this. */
17324 struct point {int x, y;};
17325 static struct point const zero = {0,0};
17326 /* AIX XL C 1.02.0.0 rejects this.
17327 It does not let you subtract one const X* pointer from another in
17328 an arm of an if-expression whose if-part is not a constant
17329 expression */
17330 const char *g = "string";
17331 ccp = &g + (g ? g-g : 0);
17332 /* HPUX 7.0 cc rejects these. */
17333 ++ccp;
17334 p = (char**) ccp;
17335 ccp = (char const *const *) p;
17336 { /* SCO 3.2v4 cc rejects this. */
17337 char *t;
17338 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017339
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017340 *t++ = 0;
17341 }
17342 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17343 int x[] = {25, 17};
17344 const int *foo = &x[0];
17345 ++foo;
17346 }
17347 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17348 typedef const int *iptr;
17349 iptr p = 0;
17350 ++p;
17351 }
17352 { /* AIX XL C 1.02.0.0 rejects this saying
17353 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17354 struct s { int j; const int *ap[3]; };
17355 struct s *b; b->j = 5;
17356 }
17357 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17358 const int foo = 10;
17359 }
17360#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017361
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017362 ;
17363 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017364}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017365_ACEOF
17366rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017368 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017369 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017370 grep -v '^ *+' conftest.er1 >conftest.err
17371 rm -f conftest.er1
17372 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017374 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; } &&
17381 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017383 (eval $ac_try) 2>&5
17384 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017386 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017387 ac_cv_c_const=yes
17388else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017389 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017390sed 's/^/| /' conftest.$ac_ext >&5
17391
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017392ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017393fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017395fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017396echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017397echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017398if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017399
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017400cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017401#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017402_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017403
17404fi
17405
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017406echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017407echo $ECHO_N "checking for inline... $ECHO_C" >&6
17408if test "${ac_cv_c_inline+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017410else
17411 ac_cv_c_inline=no
17412for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017413 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017414/* confdefs.h. */
17415_ACEOF
17416cat confdefs.h >>conftest.$ac_ext
17417cat >>conftest.$ac_ext <<_ACEOF
17418/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017419#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017420typedef int foo_t;
17421static $ac_kw foo_t static_foo () {return 0; }
17422$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017423#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017424
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017425_ACEOF
17426rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017428 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017429 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017430 grep -v '^ *+' conftest.er1 >conftest.err
17431 rm -f conftest.er1
17432 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017434 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } &&
17441 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017443 (eval $ac_try) 2>&5
17444 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017446 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017447 ac_cv_c_inline=$ac_kw; break
17448else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017449 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017450sed 's/^/| /' conftest.$ac_ext >&5
17451
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017452fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017454done
17455
17456fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017457echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017458echo "${ECHO_T}$ac_cv_c_inline" >&6
Alexandre Julliard875927f2004-01-02 01:55:29 +000017459
17460
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017461case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017462 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000017463 *)
17464 case $ac_cv_c_inline in
17465 no) ac_val=;;
17466 *) ac_val=$ac_cv_c_inline;;
17467 esac
17468 cat >>confdefs.h <<_ACEOF
17469#ifndef __cplusplus
17470#define inline $ac_val
17471#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017472_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000017473 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017474esac
17475
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017476echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017477echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17478if test "${ac_cv_type_mode_t+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17480else
17481 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017482/* confdefs.h. */
17483_ACEOF
17484cat confdefs.h >>conftest.$ac_ext
17485cat >>conftest.$ac_ext <<_ACEOF
17486/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017487$ac_includes_default
17488int
17489main ()
17490{
17491if ((mode_t *) 0)
17492 return 0;
17493if (sizeof (mode_t))
17494 return 0;
17495 ;
17496 return 0;
17497}
17498_ACEOF
17499rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017501 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017502 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017507 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017516 (eval $ac_try) 2>&5
17517 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017519 (exit $ac_status); }; }; then
17520 ac_cv_type_mode_t=yes
17521else
17522 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017523sed 's/^/| /' conftest.$ac_ext >&5
17524
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017525ac_cv_type_mode_t=no
17526fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017528fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017529echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017530echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17531if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017532
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017533cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017534#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017535_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017536
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017537
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017538fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017539echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017540echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17541if test "${ac_cv_type_off_t+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17543else
17544 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017545/* confdefs.h. */
17546_ACEOF
17547cat confdefs.h >>conftest.$ac_ext
17548cat >>conftest.$ac_ext <<_ACEOF
17549/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017550$ac_includes_default
17551int
17552main ()
17553{
17554if ((off_t *) 0)
17555 return 0;
17556if (sizeof (off_t))
17557 return 0;
17558 ;
17559 return 0;
17560}
17561_ACEOF
17562rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017564 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017565 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017566 grep -v '^ *+' conftest.er1 >conftest.err
17567 rm -f conftest.er1
17568 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017570 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } &&
17577 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017579 (eval $ac_try) 2>&5
17580 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017582 (exit $ac_status); }; }; then
17583 ac_cv_type_off_t=yes
17584else
17585 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017586sed 's/^/| /' conftest.$ac_ext >&5
17587
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017588ac_cv_type_off_t=no
17589fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017591fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017592echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017593echo "${ECHO_T}$ac_cv_type_off_t" >&6
17594if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017595
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017596cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017597#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017598_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017599
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017600
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017601fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017602echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017603echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17604if test "${ac_cv_type_pid_t+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17606else
17607 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017608/* confdefs.h. */
17609_ACEOF
17610cat confdefs.h >>conftest.$ac_ext
17611cat >>conftest.$ac_ext <<_ACEOF
17612/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017613$ac_includes_default
17614int
17615main ()
17616{
17617if ((pid_t *) 0)
17618 return 0;
17619if (sizeof (pid_t))
17620 return 0;
17621 ;
17622 return 0;
17623}
17624_ACEOF
17625rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017627 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017628 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017629 grep -v '^ *+' conftest.er1 >conftest.err
17630 rm -f conftest.er1
17631 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017633 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017642 (eval $ac_try) 2>&5
17643 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017645 (exit $ac_status); }; }; then
17646 ac_cv_type_pid_t=yes
17647else
17648 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017649sed 's/^/| /' conftest.$ac_ext >&5
17650
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017651ac_cv_type_pid_t=no
17652fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017654fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017655echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017656echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17657if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017658
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017659cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017660#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017661_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017662
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017663
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017664fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017665echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017666echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17667if test "${ac_cv_type_size_t+set}" = set; then
17668 echo $ECHO_N "(cached) $ECHO_C" >&6
17669else
17670 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017671/* confdefs.h. */
17672_ACEOF
17673cat confdefs.h >>conftest.$ac_ext
17674cat >>conftest.$ac_ext <<_ACEOF
17675/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017676$ac_includes_default
17677int
17678main ()
17679{
17680if ((size_t *) 0)
17681 return 0;
17682if (sizeof (size_t))
17683 return 0;
17684 ;
17685 return 0;
17686}
17687_ACEOF
17688rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017690 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017691 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017696 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17700 ac_status=$?
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; } &&
17703 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017705 (eval $ac_try) 2>&5
17706 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017708 (exit $ac_status); }; }; then
17709 ac_cv_type_size_t=yes
17710else
17711 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017712sed 's/^/| /' conftest.$ac_ext >&5
17713
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017714ac_cv_type_size_t=no
17715fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017717fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017718echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017719echo "${ECHO_T}$ac_cv_type_size_t" >&6
17720if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017721
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017722cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017723#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017724_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017725
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017726
17727fi
17728echo "$as_me:$LINENO: checking for ssize_t" >&5
17729echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17730if test "${ac_cv_type_ssize_t+set}" = set; then
17731 echo $ECHO_N "(cached) $ECHO_C" >&6
17732else
17733 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017734/* confdefs.h. */
17735_ACEOF
17736cat confdefs.h >>conftest.$ac_ext
17737cat >>conftest.$ac_ext <<_ACEOF
17738/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017739$ac_includes_default
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017740int
17741main ()
17742{
17743if ((ssize_t *) 0)
17744 return 0;
17745if (sizeof (ssize_t))
17746 return 0;
17747 ;
17748 return 0;
17749}
17750_ACEOF
17751rm -f conftest.$ac_objext
17752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017753 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017754 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017755 grep -v '^ *+' conftest.er1 >conftest.err
17756 rm -f conftest.er1
17757 cat conftest.err >&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 ac_cv_type_ssize_t=yes
17773else
17774 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017775sed 's/^/| /' conftest.$ac_ext >&5
17776
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017777ac_cv_type_ssize_t=no
17778fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017780fi
17781echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17782echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17783if test $ac_cv_type_ssize_t = yes; then
17784
17785cat >>confdefs.h <<_ACEOF
17786#define HAVE_SSIZE_T 1
17787_ACEOF
17788
17789
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017790fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017791echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017792echo $ECHO_N "checking for long long... $ECHO_C" >&6
17793if test "${ac_cv_type_long_long+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17795else
17796 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017797/* confdefs.h. */
17798_ACEOF
17799cat confdefs.h >>conftest.$ac_ext
17800cat >>conftest.$ac_ext <<_ACEOF
17801/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017802$ac_includes_default
17803int
17804main ()
17805{
17806if ((long long *) 0)
17807 return 0;
17808if (sizeof (long long))
17809 return 0;
17810 ;
17811 return 0;
17812}
17813_ACEOF
17814rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017816 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017817 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017822 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017831 (eval $ac_try) 2>&5
17832 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017834 (exit $ac_status); }; }; then
17835 ac_cv_type_long_long=yes
17836else
17837 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017838sed 's/^/| /' conftest.$ac_ext >&5
17839
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017840ac_cv_type_long_long=no
17841fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017843fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017844echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017845echo "${ECHO_T}$ac_cv_type_long_long" >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017846if test $ac_cv_type_long_long = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017847
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017848cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017849#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017850_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000017851
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017852
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017853fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000017854echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17855echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17856if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17857 echo $ECHO_N "(cached) $ECHO_C" >&6
17858else
17859 cat >conftest.$ac_ext <<_ACEOF
17860/* confdefs.h. */
17861_ACEOF
17862cat confdefs.h >>conftest.$ac_ext
17863cat >>conftest.$ac_ext <<_ACEOF
17864/* end confdefs.h. */
17865$ac_includes_default
17866int
17867main ()
17868{
17869if ((fsblkcnt_t *) 0)
17870 return 0;
17871if (sizeof (fsblkcnt_t))
17872 return 0;
17873 ;
17874 return 0;
17875}
17876_ACEOF
17877rm -f conftest.$ac_objext
17878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17879 (eval $ac_compile) 2>conftest.er1
17880 ac_status=$?
17881 grep -v '^ *+' conftest.er1 >conftest.err
17882 rm -f conftest.er1
17883 cat conftest.err >&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } &&
17886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest.$ac_objext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_cv_type_fsblkcnt_t=yes
17899else
17900 echo "$as_me: failed program was:" >&5
17901sed 's/^/| /' conftest.$ac_ext >&5
17902
17903ac_cv_type_fsblkcnt_t=no
17904fi
17905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17906fi
17907echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17908echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17909if test $ac_cv_type_fsblkcnt_t = yes; then
17910
17911cat >>confdefs.h <<_ACEOF
17912#define HAVE_FSBLKCNT_T 1
17913_ACEOF
17914
17915
17916fi
17917echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17918echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17919if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
17921else
17922 cat >conftest.$ac_ext <<_ACEOF
17923/* confdefs.h. */
17924_ACEOF
17925cat confdefs.h >>conftest.$ac_ext
17926cat >>conftest.$ac_ext <<_ACEOF
17927/* end confdefs.h. */
17928$ac_includes_default
17929int
17930main ()
17931{
17932if ((fsfilcnt_t *) 0)
17933 return 0;
17934if (sizeof (fsfilcnt_t))
17935 return 0;
17936 ;
17937 return 0;
17938}
17939_ACEOF
17940rm -f conftest.$ac_objext
17941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17942 (eval $ac_compile) 2>conftest.er1
17943 ac_status=$?
17944 grep -v '^ *+' conftest.er1 >conftest.err
17945 rm -f conftest.er1
17946 cat conftest.err >&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); } &&
17949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; } &&
17955 { ac_try='test -s conftest.$ac_objext'
17956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17958 ac_status=$?
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; }; then
17961 ac_cv_type_fsfilcnt_t=yes
17962else
17963 echo "$as_me: failed program was:" >&5
17964sed 's/^/| /' conftest.$ac_ext >&5
17965
17966ac_cv_type_fsfilcnt_t=no
17967fi
17968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17969fi
17970echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17971echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17972if test $ac_cv_type_fsfilcnt_t = yes; then
17973
17974cat >>confdefs.h <<_ACEOF
17975#define HAVE_FSFILCNT_T 1
17976_ACEOF
17977
17978
17979fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017980
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017981
17982echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017983echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17984if test "${wine_cv_linux_input_h+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017986else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017987 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017988/* confdefs.h. */
17989_ACEOF
17990cat confdefs.h >>conftest.$ac_ext
17991cat >>conftest.$ac_ext <<_ACEOF
17992/* end confdefs.h. */
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017993
17994 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017995
17996int
17997main ()
17998{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017999
18000 int foo = EVIOCGBIT(EV_ABS,42);
18001 int bar = BTN_PINKIE;
18002 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018003
18004 ;
18005 return 0;
18006}
18007_ACEOF
18008rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018010 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018011 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018012 grep -v '^ *+' conftest.er1 >conftest.err
18013 rm -f conftest.er1
18014 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018016 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; } &&
18023 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018025 (eval $ac_try) 2>&5
18026 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018028 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000018029 wine_cv_linux_input_h=yes
18030else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018031 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018032sed 's/^/| /' conftest.$ac_ext >&5
18033
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018034wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000018035fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000018037
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018038fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018039echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018040echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000018041 if test "$wine_cv_linux_input_h" = "yes"
18042 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018043
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018044cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000018045#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018046_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000018047
18048 fi
18049
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018050
18051echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018052echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
18053if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000018055else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018056 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018057/* confdefs.h. */
18058_ACEOF
18059cat confdefs.h >>conftest.$ac_ext
18060cat >>conftest.$ac_ext <<_ACEOF
18061/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000018062
18063#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018064
18065int
18066main ()
18067{
Rein Klazesff7a61f2000-09-24 19:41:57 +000018068
18069 char *name=NULL;
18070 struct hostent he;
18071 struct hostent *result;
18072 char *buf=NULL;
18073 int bufsize=0;
18074 int res,errnr;
18075 char *addr=NULL;
18076 int addrlen=0;
18077 int addrtype=0;
18078 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
18079 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018080
18081 ;
18082 return 0;
18083}
18084_ACEOF
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000018085rm -f conftest.$ac_objext conftest$ac_exeext
18086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18087 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018088 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018089 grep -v '^ *+' conftest.er1 >conftest.err
18090 rm -f conftest.er1
18091 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018093 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; } &&
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000018100 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018102 (eval $ac_try) 2>&5
18103 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018105 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000018106 wine_cv_linux_gethostbyname_r_6=yes
18107else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018108 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018109sed 's/^/| /' conftest.$ac_ext >&5
18110
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018111wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000018112
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018113fi
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000018114rm -f conftest.err conftest.$ac_objext \
18115 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018116
18117fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018118echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018119echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000018120 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
18121 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018122
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018123cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000018124#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018125_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000018126
18127 fi
18128
Marcus Meissner028e9a11999-08-04 15:07:56 +000018129if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018130then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018131 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018132echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
18133if test "${wine_cv_linux_joystick_22_api+set}" = set; then
18134 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018135else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018136 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018137/* confdefs.h. */
18138_ACEOF
18139cat confdefs.h >>conftest.$ac_ext
18140cat >>conftest.$ac_ext <<_ACEOF
18141/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018142
Marcus Meissner028e9a11999-08-04 15:07:56 +000018143 #include <sys/ioctl.h>
18144 #include <linux/joystick.h>
18145
18146 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000018147 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
18148 #error "no 2.2 header"
18149 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018150
18151int
18152main ()
18153{
Marcus Meissner028e9a11999-08-04 15:07:56 +000018154/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018155 ;
18156 return 0;
18157}
18158_ACEOF
18159rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018161 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018162 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018163 grep -v '^ *+' conftest.er1 >conftest.err
18164 rm -f conftest.er1
18165 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018167 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18171 ac_status=$?
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; } &&
18174 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018176 (eval $ac_try) 2>&5
18177 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018179 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000018180 wine_cv_linux_joystick_22_api=yes
18181else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018182 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018183sed 's/^/| /' conftest.$ac_ext >&5
18184
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018185wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000018186fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000018188
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018189fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018190echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018191echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000018192 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000018193 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018194
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018195cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000018196#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018197_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000018198
18199 fi
18200fi
18201
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018202
Marcus Meissner028e9a11999-08-04 15:07:56 +000018203if test "$ac_cv_header_sys_vfs_h" = "yes"
18204then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018205 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018206echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
18207if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000018209else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018210 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018211/* confdefs.h. */
18212_ACEOF
18213cat confdefs.h >>conftest.$ac_ext
18214cat >>conftest.$ac_ext <<_ACEOF
18215/* end confdefs.h. */
Marcus Meissner028e9a11999-08-04 15:07:56 +000018216
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018217 #include <sys/types.h>
18218 #ifdef HAVE_SYS_PARAM_H
18219 # include <sys/param.h>
18220 #endif
18221 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018222
18223int
18224main ()
18225{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018226
18227 struct statfs stfs;
18228
18229 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018230
18231 ;
18232 return 0;
18233}
18234_ACEOF
18235rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018237 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018238 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018239 grep -v '^ *+' conftest.er1 >conftest.err
18240 rm -f conftest.er1
18241 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018243 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246 (eval $ac_try) 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; } &&
18250 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018252 (eval $ac_try) 2>&5
18253 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018255 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018256 wine_cv_sys_vfs_has_statfs=yes
18257else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018258 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018259sed 's/^/| /' conftest.$ac_ext >&5
18260
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018261wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018262
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018263fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018265
18266fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018267echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018268echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018269 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18270 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018271
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018272cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018273#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018274_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018275
18276 fi
18277fi
18278
18279if test "$ac_cv_header_sys_statfs_h" = "yes"
18280then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018281 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018282echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18283if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18284 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018285else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018286 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018287/* confdefs.h. */
18288_ACEOF
18289cat confdefs.h >>conftest.$ac_ext
18290cat >>conftest.$ac_ext <<_ACEOF
18291/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018292
18293 #include <sys/types.h>
18294 #ifdef HAVE_SYS_PARAM_H
18295 # include <sys/param.h>
18296 #endif
18297 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018298
18299int
18300main ()
18301{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018302
18303 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018304
18305 ;
18306 return 0;
18307}
18308_ACEOF
18309rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018311 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018312 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018313 grep -v '^ *+' conftest.er1 >conftest.err
18314 rm -f conftest.er1
18315 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018317 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18320 (eval $ac_try) 2>&5
18321 ac_status=$?
18322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); }; } &&
18324 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018326 (eval $ac_try) 2>&5
18327 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018329 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018330 wine_cv_sys_statfs_has_statfs=yes
18331else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018332 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018333sed 's/^/| /' conftest.$ac_ext >&5
18334
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018335wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018336
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018337fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018339
18340fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018341echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018342echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018343 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18344 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018345
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018346cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018347#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018348_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018349
18350 fi
18351fi
18352
18353if test "$ac_cv_header_sys_mount_h" = "yes"
18354then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018355 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018356echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18357if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018359else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018360 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018361/* confdefs.h. */
18362_ACEOF
18363cat confdefs.h >>conftest.$ac_ext
18364cat >>conftest.$ac_ext <<_ACEOF
18365/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018366
18367 #include <sys/types.h>
18368 #ifdef HAVE_SYS_PARAM_H
18369 # include <sys/param.h>
18370 #endif
18371 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018372
18373int
18374main ()
18375{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018376
18377 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018378
18379 ;
18380 return 0;
18381}
18382_ACEOF
18383rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018385 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018386 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018387 grep -v '^ *+' conftest.er1 >conftest.err
18388 rm -f conftest.er1
18389 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018391 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; } &&
18398 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018400 (eval $ac_try) 2>&5
18401 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018403 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018404 wine_cv_sys_mount_has_statfs=yes
18405else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018406 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018407sed 's/^/| /' conftest.$ac_ext >&5
18408
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018409wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018410
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018411fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018413
18414fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018415echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018416echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018417 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18418 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018419
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018420cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018421#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018422_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018423
18424 fi
18425fi
18426
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018427
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018428echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18429echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18430if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018431 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018432else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018433 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018434/* confdefs.h. */
18435_ACEOF
18436cat confdefs.h >>conftest.$ac_ext
18437cat >>conftest.$ac_ext <<_ACEOF
18438/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018439#include <sys/types.h>
18440#ifdef HAVE_SYS_PARAM_H
18441# include <sys/param.h>
18442#endif
18443#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18444# include <sys/mount.h>
18445#else
18446# ifdef STATFS_DEFINED_BY_SYS_VFS
18447# include <sys/vfs.h>
18448# else
18449# ifdef STATFS_DEFINED_BY_SYS_STATFS
18450# include <sys/statfs.h>
18451# endif
18452# endif
18453#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018454
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018455int
18456main ()
18457{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018458static struct statfs ac_aggr;
18459if (ac_aggr.f_bfree)
18460return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018461 ;
18462 return 0;
18463}
18464_ACEOF
18465rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018467 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018468 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018469 grep -v '^ *+' conftest.er1 >conftest.err
18470 rm -f conftest.er1
18471 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018473 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; } &&
18480 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018482 (eval $ac_try) 2>&5
18483 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018485 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018486 ac_cv_member_struct_statfs_f_bfree=yes
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018487else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018488 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018489sed 's/^/| /' conftest.$ac_ext >&5
18490
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018491cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018492/* confdefs.h. */
18493_ACEOF
18494cat confdefs.h >>conftest.$ac_ext
18495cat >>conftest.$ac_ext <<_ACEOF
18496/* end confdefs.h. */
18497#include <sys/types.h>
18498#ifdef HAVE_SYS_PARAM_H
18499# include <sys/param.h>
18500#endif
18501#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18502# include <sys/mount.h>
18503#else
18504# ifdef STATFS_DEFINED_BY_SYS_VFS
18505# include <sys/vfs.h>
18506# else
18507# ifdef STATFS_DEFINED_BY_SYS_STATFS
18508# include <sys/statfs.h>
18509# endif
18510# endif
18511#endif
18512
18513int
18514main ()
18515{
18516static struct statfs ac_aggr;
18517if (sizeof ac_aggr.f_bfree)
18518return 0;
18519 ;
18520 return 0;
18521}
18522_ACEOF
18523rm -f conftest.$ac_objext
18524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018525 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018526 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018527 grep -v '^ *+' conftest.er1 >conftest.err
18528 rm -f conftest.er1
18529 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18534 (eval $ac_try) 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; } &&
18538 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18540 (eval $ac_try) 2>&5
18541 ac_status=$?
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; }; then
18544 ac_cv_member_struct_statfs_f_bfree=yes
18545else
18546 echo "$as_me: failed program was:" >&5
18547sed 's/^/| /' conftest.$ac_ext >&5
18548
18549ac_cv_member_struct_statfs_f_bfree=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018550fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018552fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018554fi
18555echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18556echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18557if test $ac_cv_member_struct_statfs_f_bfree = yes; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018558
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018559cat >>confdefs.h <<_ACEOF
18560#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018561_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018562
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018563
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018564fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018565echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18566echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18567if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018568 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000018569else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018570 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018571/* confdefs.h. */
18572_ACEOF
18573cat confdefs.h >>conftest.$ac_ext
18574cat >>conftest.$ac_ext <<_ACEOF
18575/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018576#include <sys/types.h>
18577#ifdef HAVE_SYS_PARAM_H
18578# include <sys/param.h>
18579#endif
18580#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18581# include <sys/mount.h>
18582#else
18583# ifdef STATFS_DEFINED_BY_SYS_VFS
18584# include <sys/vfs.h>
18585# else
18586# ifdef STATFS_DEFINED_BY_SYS_STATFS
18587# include <sys/statfs.h>
18588# endif
18589# endif
18590#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018591
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018592int
18593main ()
18594{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018595static struct statfs ac_aggr;
18596if (ac_aggr.f_bavail)
18597return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018598 ;
18599 return 0;
18600}
18601_ACEOF
18602rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018604 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018605 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018610 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; } &&
18617 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018619 (eval $ac_try) 2>&5
18620 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018622 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018623 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000018624else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018625 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018626sed 's/^/| /' conftest.$ac_ext >&5
18627
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018628cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018629/* confdefs.h. */
18630_ACEOF
18631cat confdefs.h >>conftest.$ac_ext
18632cat >>conftest.$ac_ext <<_ACEOF
18633/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000018634#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018635#ifdef HAVE_SYS_PARAM_H
18636# include <sys/param.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000018637#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018638#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18639# include <sys/mount.h>
18640#else
18641# ifdef STATFS_DEFINED_BY_SYS_VFS
18642# include <sys/vfs.h>
18643# else
18644# ifdef STATFS_DEFINED_BY_SYS_STATFS
18645# include <sys/statfs.h>
18646# endif
18647# endif
18648#endif
18649
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018650int
18651main ()
18652{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018653static struct statfs ac_aggr;
18654if (sizeof ac_aggr.f_bavail)
18655return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018656 ;
18657 return 0;
18658}
18659_ACEOF
18660rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018662 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018663 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018664 grep -v '^ *+' conftest.er1 >conftest.err
18665 rm -f conftest.er1
18666 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018668 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18671 (eval $ac_try) 2>&5
18672 ac_status=$?
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); }; } &&
18675 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018677 (eval $ac_try) 2>&5
18678 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018680 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018681 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliard829fe321998-07-26 14:27:39 +000018682else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018683 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018684sed 's/^/| /' conftest.$ac_ext >&5
18685
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018686ac_cv_member_struct_statfs_f_bavail=no
Alexandre Julliard829fe321998-07-26 14:27:39 +000018687fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000018689fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000018691fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018692echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18693echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18694if test $ac_cv_member_struct_statfs_f_bavail = yes; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000018695
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018696cat >>confdefs.h <<_ACEOF
18697#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018698_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000018699
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018700
Patrik Stridvall09da9662001-07-08 22:30:50 +000018701fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000018702echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18703echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18704if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18705 echo $ECHO_N "(cached) $ECHO_C" >&6
18706else
18707 cat >conftest.$ac_ext <<_ACEOF
18708/* confdefs.h. */
18709_ACEOF
18710cat confdefs.h >>conftest.$ac_ext
18711cat >>conftest.$ac_ext <<_ACEOF
18712/* end confdefs.h. */
18713#include <sys/types.h>
18714#ifdef HAVE_SYS_PARAM_H
18715# include <sys/param.h>
18716#endif
18717#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18718# include <sys/mount.h>
18719#else
18720# ifdef STATFS_DEFINED_BY_SYS_VFS
18721# include <sys/vfs.h>
18722# else
18723# ifdef STATFS_DEFINED_BY_SYS_STATFS
18724# include <sys/statfs.h>
18725# endif
18726# endif
18727#endif
18728
18729int
18730main ()
18731{
18732static struct statfs ac_aggr;
18733if (ac_aggr.f_frsize)
18734return 0;
18735 ;
18736 return 0;
18737}
18738_ACEOF
18739rm -f conftest.$ac_objext
18740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18741 (eval $ac_compile) 2>conftest.er1
18742 ac_status=$?
18743 grep -v '^ *+' conftest.er1 >conftest.err
18744 rm -f conftest.er1
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } &&
18748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; } &&
18754 { ac_try='test -s conftest.$ac_objext'
18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 (eval $ac_try) 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; }; then
18760 ac_cv_member_struct_statfs_f_frsize=yes
18761else
18762 echo "$as_me: failed program was:" >&5
18763sed 's/^/| /' conftest.$ac_ext >&5
18764
18765cat >conftest.$ac_ext <<_ACEOF
18766/* confdefs.h. */
18767_ACEOF
18768cat confdefs.h >>conftest.$ac_ext
18769cat >>conftest.$ac_ext <<_ACEOF
18770/* end confdefs.h. */
18771#include <sys/types.h>
18772#ifdef HAVE_SYS_PARAM_H
18773# include <sys/param.h>
18774#endif
18775#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18776# include <sys/mount.h>
18777#else
18778# ifdef STATFS_DEFINED_BY_SYS_VFS
18779# include <sys/vfs.h>
18780# else
18781# ifdef STATFS_DEFINED_BY_SYS_STATFS
18782# include <sys/statfs.h>
18783# endif
18784# endif
18785#endif
18786
18787int
18788main ()
18789{
18790static struct statfs ac_aggr;
18791if (sizeof ac_aggr.f_frsize)
18792return 0;
18793 ;
18794 return 0;
18795}
18796_ACEOF
18797rm -f conftest.$ac_objext
18798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18799 (eval $ac_compile) 2>conftest.er1
18800 ac_status=$?
18801 grep -v '^ *+' conftest.er1 >conftest.err
18802 rm -f conftest.er1
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808 (eval $ac_try) 2>&5
18809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; } &&
18812 { ac_try='test -s conftest.$ac_objext'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18815 ac_status=$?
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; }; then
18818 ac_cv_member_struct_statfs_f_frsize=yes
18819else
18820 echo "$as_me: failed program was:" >&5
18821sed 's/^/| /' conftest.$ac_ext >&5
18822
18823ac_cv_member_struct_statfs_f_frsize=no
18824fi
18825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18826fi
18827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18828fi
18829echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18830echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18831if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18832
18833cat >>confdefs.h <<_ACEOF
18834#define HAVE_STRUCT_STATFS_F_FRSIZE 1
18835_ACEOF
18836
18837
18838fi
18839echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18840echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18841if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18842 echo $ECHO_N "(cached) $ECHO_C" >&6
18843else
18844 cat >conftest.$ac_ext <<_ACEOF
18845/* confdefs.h. */
18846_ACEOF
18847cat confdefs.h >>conftest.$ac_ext
18848cat >>conftest.$ac_ext <<_ACEOF
18849/* end confdefs.h. */
18850#include <sys/types.h>
18851#ifdef HAVE_SYS_PARAM_H
18852# include <sys/param.h>
18853#endif
18854#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18855# include <sys/mount.h>
18856#else
18857# ifdef STATFS_DEFINED_BY_SYS_VFS
18858# include <sys/vfs.h>
18859# else
18860# ifdef STATFS_DEFINED_BY_SYS_STATFS
18861# include <sys/statfs.h>
18862# endif
18863# endif
18864#endif
18865
18866int
18867main ()
18868{
18869static struct statfs ac_aggr;
18870if (ac_aggr.f_ffree)
18871return 0;
18872 ;
18873 return 0;
18874}
18875_ACEOF
18876rm -f conftest.$ac_objext
18877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18878 (eval $ac_compile) 2>conftest.er1
18879 ac_status=$?
18880 grep -v '^ *+' conftest.er1 >conftest.err
18881 rm -f conftest.er1
18882 cat conftest.err >&5
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); } &&
18885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; } &&
18891 { ac_try='test -s conftest.$ac_objext'
18892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893 (eval $ac_try) 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18897 ac_cv_member_struct_statfs_f_ffree=yes
18898else
18899 echo "$as_me: failed program was:" >&5
18900sed 's/^/| /' conftest.$ac_ext >&5
18901
18902cat >conftest.$ac_ext <<_ACEOF
18903/* confdefs.h. */
18904_ACEOF
18905cat confdefs.h >>conftest.$ac_ext
18906cat >>conftest.$ac_ext <<_ACEOF
18907/* end confdefs.h. */
18908#include <sys/types.h>
18909#ifdef HAVE_SYS_PARAM_H
18910# include <sys/param.h>
18911#endif
18912#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18913# include <sys/mount.h>
18914#else
18915# ifdef STATFS_DEFINED_BY_SYS_VFS
18916# include <sys/vfs.h>
18917# else
18918# ifdef STATFS_DEFINED_BY_SYS_STATFS
18919# include <sys/statfs.h>
18920# endif
18921# endif
18922#endif
18923
18924int
18925main ()
18926{
18927static struct statfs ac_aggr;
18928if (sizeof ac_aggr.f_ffree)
18929return 0;
18930 ;
18931 return 0;
18932}
18933_ACEOF
18934rm -f conftest.$ac_objext
18935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18936 (eval $ac_compile) 2>conftest.er1
18937 ac_status=$?
18938 grep -v '^ *+' conftest.er1 >conftest.err
18939 rm -f conftest.er1
18940 cat conftest.err >&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } &&
18943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18945 (eval $ac_try) 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; } &&
18949 { ac_try='test -s conftest.$ac_objext'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18952 ac_status=$?
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18955 ac_cv_member_struct_statfs_f_ffree=yes
18956else
18957 echo "$as_me: failed program was:" >&5
18958sed 's/^/| /' conftest.$ac_ext >&5
18959
18960ac_cv_member_struct_statfs_f_ffree=no
18961fi
18962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18963fi
18964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18965fi
18966echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18967echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18968if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18969
18970cat >>confdefs.h <<_ACEOF
18971#define HAVE_STRUCT_STATFS_F_FFREE 1
18972_ACEOF
18973
18974
18975fi
18976echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18977echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18978if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18980else
18981 cat >conftest.$ac_ext <<_ACEOF
18982/* confdefs.h. */
18983_ACEOF
18984cat confdefs.h >>conftest.$ac_ext
18985cat >>conftest.$ac_ext <<_ACEOF
18986/* end confdefs.h. */
18987#include <sys/types.h>
18988#ifdef HAVE_SYS_PARAM_H
18989# include <sys/param.h>
18990#endif
18991#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18992# include <sys/mount.h>
18993#else
18994# ifdef STATFS_DEFINED_BY_SYS_VFS
18995# include <sys/vfs.h>
18996# else
18997# ifdef STATFS_DEFINED_BY_SYS_STATFS
18998# include <sys/statfs.h>
18999# endif
19000# endif
19001#endif
19002
19003int
19004main ()
19005{
19006static struct statfs ac_aggr;
19007if (ac_aggr.f_favail)
19008return 0;
19009 ;
19010 return 0;
19011}
19012_ACEOF
19013rm -f conftest.$ac_objext
19014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19015 (eval $ac_compile) 2>conftest.er1
19016 ac_status=$?
19017 grep -v '^ *+' conftest.er1 >conftest.err
19018 rm -f conftest.er1
19019 cat conftest.err >&5
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } &&
19022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024 (eval $ac_try) 2>&5
19025 ac_status=$?
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; } &&
19028 { ac_try='test -s conftest.$ac_objext'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 ac_cv_member_struct_statfs_f_favail=yes
19035else
19036 echo "$as_me: failed program was:" >&5
19037sed 's/^/| /' conftest.$ac_ext >&5
19038
19039cat >conftest.$ac_ext <<_ACEOF
19040/* confdefs.h. */
19041_ACEOF
19042cat confdefs.h >>conftest.$ac_ext
19043cat >>conftest.$ac_ext <<_ACEOF
19044/* end confdefs.h. */
19045#include <sys/types.h>
19046#ifdef HAVE_SYS_PARAM_H
19047# include <sys/param.h>
19048#endif
19049#ifdef STATFS_DEFINED_BY_SYS_MOUNT
19050# include <sys/mount.h>
19051#else
19052# ifdef STATFS_DEFINED_BY_SYS_VFS
19053# include <sys/vfs.h>
19054# else
19055# ifdef STATFS_DEFINED_BY_SYS_STATFS
19056# include <sys/statfs.h>
19057# endif
19058# endif
19059#endif
19060
19061int
19062main ()
19063{
19064static struct statfs ac_aggr;
19065if (sizeof ac_aggr.f_favail)
19066return 0;
19067 ;
19068 return 0;
19069}
19070_ACEOF
19071rm -f conftest.$ac_objext
19072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19073 (eval $ac_compile) 2>conftest.er1
19074 ac_status=$?
19075 grep -v '^ *+' conftest.er1 >conftest.err
19076 rm -f conftest.er1
19077 cat conftest.err >&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } &&
19080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19082 (eval $ac_try) 2>&5
19083 ac_status=$?
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); }; } &&
19086 { ac_try='test -s conftest.$ac_objext'
19087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088 (eval $ac_try) 2>&5
19089 ac_status=$?
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; }; then
19092 ac_cv_member_struct_statfs_f_favail=yes
19093else
19094 echo "$as_me: failed program was:" >&5
19095sed 's/^/| /' conftest.$ac_ext >&5
19096
19097ac_cv_member_struct_statfs_f_favail=no
19098fi
19099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19100fi
19101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19102fi
19103echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
19104echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
19105if test $ac_cv_member_struct_statfs_f_favail = yes; then
19106
19107cat >>confdefs.h <<_ACEOF
19108#define HAVE_STRUCT_STATFS_F_FAVAIL 1
19109_ACEOF
19110
19111
19112fi
Alexandre Julliardb859a682004-03-07 03:16:43 +000019113echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
19114echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
19115if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19117else
19118 cat >conftest.$ac_ext <<_ACEOF
19119/* confdefs.h. */
19120_ACEOF
19121cat confdefs.h >>conftest.$ac_ext
19122cat >>conftest.$ac_ext <<_ACEOF
19123/* end confdefs.h. */
19124#include <sys/types.h>
19125#ifdef HAVE_SYS_PARAM_H
19126# include <sys/param.h>
19127#endif
19128#ifdef STATFS_DEFINED_BY_SYS_MOUNT
19129# include <sys/mount.h>
19130#else
19131# ifdef STATFS_DEFINED_BY_SYS_VFS
19132# include <sys/vfs.h>
19133# else
19134# ifdef STATFS_DEFINED_BY_SYS_STATFS
19135# include <sys/statfs.h>
19136# endif
19137# endif
19138#endif
19139
19140int
19141main ()
19142{
19143static struct statfs ac_aggr;
19144if (ac_aggr.f_namelen)
19145return 0;
19146 ;
19147 return 0;
19148}
19149_ACEOF
19150rm -f conftest.$ac_objext
19151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19152 (eval $ac_compile) 2>conftest.er1
19153 ac_status=$?
19154 grep -v '^ *+' conftest.er1 >conftest.err
19155 rm -f conftest.er1
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } &&
19159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19162 ac_status=$?
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; } &&
19165 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19171 ac_cv_member_struct_statfs_f_namelen=yes
19172else
19173 echo "$as_me: failed program was:" >&5
19174sed 's/^/| /' conftest.$ac_ext >&5
19175
19176cat >conftest.$ac_ext <<_ACEOF
19177/* confdefs.h. */
19178_ACEOF
19179cat confdefs.h >>conftest.$ac_ext
19180cat >>conftest.$ac_ext <<_ACEOF
19181/* end confdefs.h. */
19182#include <sys/types.h>
19183#ifdef HAVE_SYS_PARAM_H
19184# include <sys/param.h>
19185#endif
19186#ifdef STATFS_DEFINED_BY_SYS_MOUNT
19187# include <sys/mount.h>
19188#else
19189# ifdef STATFS_DEFINED_BY_SYS_VFS
19190# include <sys/vfs.h>
19191# else
19192# ifdef STATFS_DEFINED_BY_SYS_STATFS
19193# include <sys/statfs.h>
19194# endif
19195# endif
19196#endif
19197
19198int
19199main ()
19200{
19201static struct statfs ac_aggr;
19202if (sizeof ac_aggr.f_namelen)
19203return 0;
19204 ;
19205 return 0;
19206}
19207_ACEOF
19208rm -f conftest.$ac_objext
19209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19210 (eval $ac_compile) 2>conftest.er1
19211 ac_status=$?
19212 grep -v '^ *+' conftest.er1 >conftest.err
19213 rm -f conftest.er1
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } &&
19217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219 (eval $ac_try) 2>&5
19220 ac_status=$?
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); }; } &&
19223 { ac_try='test -s conftest.$ac_objext'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; }; then
19229 ac_cv_member_struct_statfs_f_namelen=yes
19230else
19231 echo "$as_me: failed program was:" >&5
19232sed 's/^/| /' conftest.$ac_ext >&5
19233
19234ac_cv_member_struct_statfs_f_namelen=no
19235fi
19236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19237fi
19238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19239fi
19240echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19241echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
19242if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19243
19244cat >>confdefs.h <<_ACEOF
19245#define HAVE_STRUCT_STATFS_F_NAMELEN 1
19246_ACEOF
19247
19248
19249fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000019250
19251
19252echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19253echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19254if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19256else
19257 cat >conftest.$ac_ext <<_ACEOF
19258/* confdefs.h. */
19259_ACEOF
19260cat confdefs.h >>conftest.$ac_ext
19261cat >>conftest.$ac_ext <<_ACEOF
19262/* end confdefs.h. */
19263#ifdef HAVE_SYS_STATVFS_H
19264#include <sys/statvfs.h>
19265#endif
19266
19267int
19268main ()
19269{
19270static struct statvfs ac_aggr;
19271if (ac_aggr.f_blocks)
19272return 0;
19273 ;
19274 return 0;
19275}
19276_ACEOF
19277rm -f conftest.$ac_objext
19278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19279 (eval $ac_compile) 2>conftest.er1
19280 ac_status=$?
19281 grep -v '^ *+' conftest.er1 >conftest.err
19282 rm -f conftest.er1
19283 cat conftest.err >&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } &&
19286 { 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'
19293 { (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_statvfs_f_blocks=yes
19299else
19300 echo "$as_me: failed program was:" >&5
19301sed 's/^/| /' conftest.$ac_ext >&5
19302
19303cat >conftest.$ac_ext <<_ACEOF
19304/* confdefs.h. */
19305_ACEOF
19306cat confdefs.h >>conftest.$ac_ext
19307cat >>conftest.$ac_ext <<_ACEOF
19308/* end confdefs.h. */
19309#ifdef HAVE_SYS_STATVFS_H
19310#include <sys/statvfs.h>
19311#endif
19312
19313int
19314main ()
19315{
19316static struct statvfs ac_aggr;
19317if (sizeof ac_aggr.f_blocks)
19318return 0;
19319 ;
19320 return 0;
19321}
19322_ACEOF
19323rm -f conftest.$ac_objext
19324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19325 (eval $ac_compile) 2>conftest.er1
19326 ac_status=$?
19327 grep -v '^ *+' conftest.er1 >conftest.err
19328 rm -f conftest.er1
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
19332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest.$ac_objext'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_cv_member_struct_statvfs_f_blocks=yes
19345else
19346 echo "$as_me: failed program was:" >&5
19347sed 's/^/| /' conftest.$ac_ext >&5
19348
19349ac_cv_member_struct_statvfs_f_blocks=no
19350fi
19351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19352fi
19353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19354fi
19355echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19356echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19357if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19358
19359cat >>confdefs.h <<_ACEOF
19360#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19361_ACEOF
19362
19363
19364fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000019365
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019366
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019367echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19368echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19369if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019370 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000019371else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019372 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019373/* confdefs.h. */
19374_ACEOF
19375cat confdefs.h >>conftest.$ac_ext
19376cat >>conftest.$ac_ext <<_ACEOF
19377/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000019378#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000019379#ifdef HAVE_SYS_SOCKET_H
19380# include <sys/socket.h>
19381#endif
19382#ifdef HAVE_SYS_UN_H
19383# include <sys/un.h>
19384#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019385
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019386int
19387main ()
19388{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019389static struct msghdr ac_aggr;
19390if (ac_aggr.msg_accrights)
19391return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019392 ;
19393 return 0;
19394}
19395_ACEOF
19396rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019398 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019399 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019400 grep -v '^ *+' conftest.er1 >conftest.err
19401 rm -f conftest.er1
19402 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019404 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; } &&
19411 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019413 (eval $ac_try) 2>&5
19414 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019416 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019417 ac_cv_member_struct_msghdr_msg_accrights=yes
Juergen Lock2d33ab92000-02-13 16:03:29 +000019418else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019419 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019420sed 's/^/| /' conftest.$ac_ext >&5
19421
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019422cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019423/* confdefs.h. */
19424_ACEOF
19425cat confdefs.h >>conftest.$ac_ext
19426cat >>conftest.$ac_ext <<_ACEOF
19427/* end confdefs.h. */
19428#include <sys/types.h>
19429#ifdef HAVE_SYS_SOCKET_H
19430# include <sys/socket.h>
19431#endif
19432#ifdef HAVE_SYS_UN_H
19433# include <sys/un.h>
19434#endif
19435
19436int
19437main ()
19438{
19439static struct msghdr ac_aggr;
19440if (sizeof ac_aggr.msg_accrights)
19441return 0;
19442 ;
19443 return 0;
19444}
19445_ACEOF
19446rm -f conftest.$ac_objext
19447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019448 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019449 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019450 grep -v '^ *+' conftest.er1 >conftest.err
19451 rm -f conftest.er1
19452 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19458 ac_status=$?
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); }; } &&
19461 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463 (eval $ac_try) 2>&5
19464 ac_status=$?
19465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466 (exit $ac_status); }; }; then
19467 ac_cv_member_struct_msghdr_msg_accrights=yes
19468else
19469 echo "$as_me: failed program was:" >&5
19470sed 's/^/| /' conftest.$ac_ext >&5
19471
19472ac_cv_member_struct_msghdr_msg_accrights=no
Juergen Lock2d33ab92000-02-13 16:03:29 +000019473fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000019475fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019477fi
19478echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19479echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19480if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000019481
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019482cat >>confdefs.h <<_ACEOF
19483#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019484_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000019485
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019486
19487fi
19488echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19489echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19490if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19492else
19493 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019494/* confdefs.h. */
19495_ACEOF
19496cat confdefs.h >>conftest.$ac_ext
19497cat >>conftest.$ac_ext <<_ACEOF
19498/* end confdefs.h. */
19499#include <sys/types.h>
19500#ifdef HAVE_SYS_SOCKET_H
19501# include <sys/socket.h>
19502#endif
19503#ifdef HAVE_SYS_UN_H
19504# include <sys/un.h>
19505#endif
19506
19507int
19508main ()
19509{
19510static struct sockaddr ac_aggr;
19511if (ac_aggr.sa_len)
19512return 0;
19513 ;
19514 return 0;
19515}
19516_ACEOF
19517rm -f conftest.$ac_objext
19518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019519 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019520 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019521 grep -v '^ *+' conftest.er1 >conftest.err
19522 rm -f conftest.er1
19523 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19528 (eval $ac_try) 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; } &&
19532 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 ac_cv_member_struct_sockaddr_sa_len=yes
19539else
19540 echo "$as_me: failed program was:" >&5
19541sed 's/^/| /' conftest.$ac_ext >&5
19542
19543cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019544/* confdefs.h. */
19545_ACEOF
19546cat confdefs.h >>conftest.$ac_ext
19547cat >>conftest.$ac_ext <<_ACEOF
19548/* end confdefs.h. */
19549#include <sys/types.h>
19550#ifdef HAVE_SYS_SOCKET_H
19551# include <sys/socket.h>
19552#endif
19553#ifdef HAVE_SYS_UN_H
19554# include <sys/un.h>
19555#endif
19556
19557int
19558main ()
19559{
19560static struct sockaddr ac_aggr;
19561if (sizeof ac_aggr.sa_len)
19562return 0;
19563 ;
19564 return 0;
19565}
19566_ACEOF
19567rm -f conftest.$ac_objext
19568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019569 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019570 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019571 grep -v '^ *+' conftest.er1 >conftest.err
19572 rm -f conftest.er1
19573 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578 (eval $ac_try) 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }; } &&
19582 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19585 ac_status=$?
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; }; then
19588 ac_cv_member_struct_sockaddr_sa_len=yes
19589else
19590 echo "$as_me: failed program was:" >&5
19591sed 's/^/| /' conftest.$ac_ext >&5
19592
19593ac_cv_member_struct_sockaddr_sa_len=no
19594fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019596fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019598fi
19599echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19600echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19601if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19602
19603cat >>confdefs.h <<_ACEOF
19604#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19605_ACEOF
19606
19607
19608fi
19609echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19610echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19611if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19613else
19614 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019615/* confdefs.h. */
19616_ACEOF
19617cat confdefs.h >>conftest.$ac_ext
19618cat >>conftest.$ac_ext <<_ACEOF
19619/* end confdefs.h. */
19620#include <sys/types.h>
19621#ifdef HAVE_SYS_SOCKET_H
19622# include <sys/socket.h>
19623#endif
19624#ifdef HAVE_SYS_UN_H
19625# include <sys/un.h>
19626#endif
19627
19628int
19629main ()
19630{
19631static struct sockaddr_un ac_aggr;
19632if (ac_aggr.sun_len)
19633return 0;
19634 ;
19635 return 0;
19636}
19637_ACEOF
19638rm -f conftest.$ac_objext
19639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019640 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019641 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019642 grep -v '^ *+' conftest.er1 >conftest.err
19643 rm -f conftest.er1
19644 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; } &&
19653 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; }; then
19659 ac_cv_member_struct_sockaddr_un_sun_len=yes
19660else
19661 echo "$as_me: failed program was:" >&5
19662sed 's/^/| /' conftest.$ac_ext >&5
19663
19664cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019665/* confdefs.h. */
19666_ACEOF
19667cat confdefs.h >>conftest.$ac_ext
19668cat >>conftest.$ac_ext <<_ACEOF
19669/* end confdefs.h. */
19670#include <sys/types.h>
19671#ifdef HAVE_SYS_SOCKET_H
19672# include <sys/socket.h>
19673#endif
19674#ifdef HAVE_SYS_UN_H
19675# include <sys/un.h>
19676#endif
19677
19678int
19679main ()
19680{
19681static struct sockaddr_un ac_aggr;
19682if (sizeof ac_aggr.sun_len)
19683return 0;
19684 ;
19685 return 0;
19686}
19687_ACEOF
19688rm -f conftest.$ac_objext
19689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019690 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019691 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019692 grep -v '^ *+' conftest.er1 >conftest.err
19693 rm -f conftest.er1
19694 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; } &&
19703 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
19709 ac_cv_member_struct_sockaddr_un_sun_len=yes
19710else
19711 echo "$as_me: failed program was:" >&5
19712sed 's/^/| /' conftest.$ac_ext >&5
19713
19714ac_cv_member_struct_sockaddr_un_sun_len=no
19715fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019717fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019719fi
19720echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19721echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19722if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19723
19724cat >>confdefs.h <<_ACEOF
19725#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19726_ACEOF
19727
19728
Juergen Lock2d33ab92000-02-13 16:03:29 +000019729fi
19730
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019731
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019732echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19733echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19734if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19735 echo $ECHO_N "(cached) $ECHO_C" >&6
19736else
19737 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019738/* confdefs.h. */
19739_ACEOF
19740cat confdefs.h >>conftest.$ac_ext
19741cat >>conftest.$ac_ext <<_ACEOF
19742/* end confdefs.h. */
19743#include <signal.h>
19744
19745int
19746main ()
19747{
19748static siginfo_t ac_aggr;
19749if (ac_aggr.si_fd)
19750return 0;
19751 ;
19752 return 0;
19753}
19754_ACEOF
19755rm -f conftest.$ac_objext
19756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019757 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019758 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019759 grep -v '^ *+' conftest.er1 >conftest.err
19760 rm -f conftest.er1
19761 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19766 (eval $ac_try) 2>&5
19767 ac_status=$?
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; } &&
19770 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19773 ac_status=$?
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; }; then
19776 ac_cv_member_siginfo_t_si_fd=yes
19777else
19778 echo "$as_me: failed program was:" >&5
19779sed 's/^/| /' conftest.$ac_ext >&5
19780
19781cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019782/* confdefs.h. */
19783_ACEOF
19784cat confdefs.h >>conftest.$ac_ext
19785cat >>conftest.$ac_ext <<_ACEOF
19786/* end confdefs.h. */
19787#include <signal.h>
19788
19789int
19790main ()
19791{
19792static siginfo_t ac_aggr;
19793if (sizeof ac_aggr.si_fd)
19794return 0;
19795 ;
19796 return 0;
19797}
19798_ACEOF
19799rm -f conftest.$ac_objext
19800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019801 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019802 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019803 grep -v '^ *+' conftest.er1 >conftest.err
19804 rm -f conftest.er1
19805 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; } &&
19814 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816 (eval $ac_try) 2>&5
19817 ac_status=$?
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); }; }; then
19820 ac_cv_member_siginfo_t_si_fd=yes
19821else
19822 echo "$as_me: failed program was:" >&5
19823sed 's/^/| /' conftest.$ac_ext >&5
19824
19825ac_cv_member_siginfo_t_si_fd=no
19826fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019828fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019830fi
19831echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19832echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19833if test $ac_cv_member_siginfo_t_si_fd = yes; then
19834
19835cat >>confdefs.h <<_ACEOF
19836#define HAVE_SIGINFO_T_SI_FD 1
19837_ACEOF
19838
19839
19840fi
19841
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019842
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019843echo "$as_me:$LINENO: checking for struct option.name" >&5
19844echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19845if test "${ac_cv_member_struct_option_name+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19847else
19848 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019849/* confdefs.h. */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h. */
19854#ifdef HAVE_GETOPT_H
19855#include <getopt.h>
19856#endif
19857
19858int
19859main ()
19860{
19861static struct option ac_aggr;
19862if (ac_aggr.name)
19863return 0;
19864 ;
19865 return 0;
19866}
19867_ACEOF
19868rm -f conftest.$ac_objext
19869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019870 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019871 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019872 grep -v '^ *+' conftest.er1 >conftest.err
19873 rm -f conftest.er1
19874 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; } &&
19883 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19886 ac_status=$?
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); }; }; then
19889 ac_cv_member_struct_option_name=yes
19890else
19891 echo "$as_me: failed program was:" >&5
19892sed 's/^/| /' conftest.$ac_ext >&5
19893
19894cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019895/* confdefs.h. */
19896_ACEOF
19897cat confdefs.h >>conftest.$ac_ext
19898cat >>conftest.$ac_ext <<_ACEOF
19899/* end confdefs.h. */
19900#ifdef HAVE_GETOPT_H
19901#include <getopt.h>
19902#endif
19903
19904int
19905main ()
19906{
19907static struct option ac_aggr;
19908if (sizeof ac_aggr.name)
19909return 0;
19910 ;
19911 return 0;
19912}
19913_ACEOF
19914rm -f conftest.$ac_objext
19915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019916 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019917 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019918 grep -v '^ *+' conftest.er1 >conftest.err
19919 rm -f conftest.er1
19920 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; } &&
19929 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; }; then
19935 ac_cv_member_struct_option_name=yes
19936else
19937 echo "$as_me: failed program was:" >&5
19938sed 's/^/| /' conftest.$ac_ext >&5
19939
19940ac_cv_member_struct_option_name=no
19941fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019943fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019945fi
19946echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19947echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19948if test $ac_cv_member_struct_option_name = yes; then
19949
19950cat >>confdefs.h <<_ACEOF
19951#define HAVE_STRUCT_OPTION_NAME 1
19952_ACEOF
19953
19954
19955fi
19956
19957
Pavel Roskind6507192003-10-03 03:28:40 +000019958echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19959echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19960if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19962else
19963 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000019964/* confdefs.h. */
19965_ACEOF
19966cat confdefs.h >>conftest.$ac_ext
19967cat >>conftest.$ac_ext <<_ACEOF
19968/* end confdefs.h. */
19969$ac_includes_default
19970int
19971main ()
19972{
19973static struct stat ac_aggr;
19974if (ac_aggr.st_blocks)
19975return 0;
19976 ;
19977 return 0;
19978}
19979_ACEOF
19980rm -f conftest.$ac_objext
19981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019982 (eval $ac_compile) 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000019983 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019984 grep -v '^ *+' conftest.er1 >conftest.err
19985 rm -f conftest.er1
19986 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000019987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991 (eval $ac_try) 2>&5
19992 ac_status=$?
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); }; } &&
19995 { ac_try='test -s conftest.$ac_objext'
Pavel Roskind6507192003-10-03 03:28:40 +000019996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; }; then
20001 ac_cv_member_struct_stat_st_blocks=yes
20002else
20003 echo "$as_me: failed program was:" >&5
20004sed 's/^/| /' conftest.$ac_ext >&5
20005
20006cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000020007/* confdefs.h. */
20008_ACEOF
20009cat confdefs.h >>conftest.$ac_ext
20010cat >>conftest.$ac_ext <<_ACEOF
20011/* end confdefs.h. */
20012$ac_includes_default
20013int
20014main ()
20015{
20016static struct stat ac_aggr;
20017if (sizeof ac_aggr.st_blocks)
20018return 0;
20019 ;
20020 return 0;
20021}
20022_ACEOF
20023rm -f conftest.$ac_objext
20024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020025 (eval $ac_compile) 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000020026 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000020030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000020032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034 (eval $ac_try) 2>&5
20035 ac_status=$?
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }; } &&
20038 { ac_try='test -s conftest.$ac_objext'
Pavel Roskind6507192003-10-03 03:28:40 +000020039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20041 ac_status=$?
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; }; then
20044 ac_cv_member_struct_stat_st_blocks=yes
20045else
20046 echo "$as_me: failed program was:" >&5
20047sed 's/^/| /' conftest.$ac_ext >&5
20048
20049ac_cv_member_struct_stat_st_blocks=no
20050fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000020051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000020052fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000020053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000020054fi
20055echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20056echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20057if test $ac_cv_member_struct_stat_st_blocks = yes; then
20058
20059cat >>confdefs.h <<_ACEOF
20060#define HAVE_STRUCT_STAT_ST_BLOCKS 1
20061_ACEOF
20062
20063
20064fi
20065
20066
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020067
Alexandre Julliardfc01b722002-05-12 03:16:39 +000020068case $host_cpu in
Alexandre Julliard05783b52002-12-11 00:21:55 +000020069 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020070echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000020071if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020072 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000020073else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020074 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020075/* confdefs.h. */
20076_ACEOF
20077cat confdefs.h >>conftest.$ac_ext
20078cat >>conftest.$ac_ext <<_ACEOF
20079/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020080#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000020081yes
20082#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020083_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000020084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020085 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000020086 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000020087else
Alexandre Julliard05783b52002-12-11 00:21:55 +000020088 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000020089fi
20090rm -f conftest*
20091
20092fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020093echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20094echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
20095if test $ac_cv_cpp_def___i386__ = yes; then
20096 CFLAGS="$CFLAGS -D__i386__"
20097 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000020098fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020099 ;;
20100 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
Steven Edwards69b67862002-12-10 22:48:48 +000020101echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000020102if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000020103 echo $ECHO_N "(cached) $ECHO_C" >&6
20104else
20105 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020106/* confdefs.h. */
20107_ACEOF
20108cat confdefs.h >>conftest.$ac_ext
20109cat >>conftest.$ac_ext <<_ACEOF
20110/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000020111#ifndef __ALPHA__
20112yes
20113#endif
20114_ACEOF
20115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20116 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000020117 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000020118else
Alexandre Julliard05783b52002-12-11 00:21:55 +000020119 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000020120fi
20121rm -f conftest*
20122
20123fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020124echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20125echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
20126if test $ac_cv_cpp_def___ALPHA__ = yes; then
20127 CFLAGS="$CFLAGS -D__ALPHA__"
20128 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000020129fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020130 ;;
20131 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020132echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000020133if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020134 echo $ECHO_N "(cached) $ECHO_C" >&6
20135else
20136 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020137/* confdefs.h. */
20138_ACEOF
20139cat confdefs.h >>conftest.$ac_ext
20140cat >>conftest.$ac_ext <<_ACEOF
20141/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020142#ifndef __sparc__
20143yes
20144#endif
20145_ACEOF
20146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020147 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000020148 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020149else
Alexandre Julliard05783b52002-12-11 00:21:55 +000020150 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020151fi
20152rm -f conftest*
20153
20154fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020155echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20156echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
20157if test $ac_cv_cpp_def___sparc__ = yes; then
20158 CFLAGS="$CFLAGS -D__sparc__"
20159 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020160fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020161 ;;
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000020162 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20163echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
20164if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20166else
20167 cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000020168/* confdefs.h. */
20169_ACEOF
20170cat confdefs.h >>conftest.$ac_ext
20171cat >>conftest.$ac_ext <<_ACEOF
20172/* end confdefs.h. */
20173#ifndef __powerpc__
20174yes
20175#endif
20176_ACEOF
20177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20178 $EGREP "yes" >/dev/null 2>&1; then
20179 ac_cv_cpp_def___powerpc__=yes
20180else
20181 ac_cv_cpp_def___powerpc__=no
20182fi
20183rm -f conftest*
20184
20185fi
20186echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20187echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
20188if test $ac_cv_cpp_def___powerpc__ = yes; then
20189 CFLAGS="$CFLAGS -D__powerpc__"
20190 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20191fi
20192 ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000020193esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020194
20195case $host_vendor in
Alexandre Julliard05783b52002-12-11 00:21:55 +000020196 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020197echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000020198if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020199 echo $ECHO_N "(cached) $ECHO_C" >&6
20200else
20201 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020202/* confdefs.h. */
20203_ACEOF
20204cat confdefs.h >>conftest.$ac_ext
20205cat >>conftest.$ac_ext <<_ACEOF
20206/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020207#ifndef __sun__
20208yes
20209#endif
20210_ACEOF
20211if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020212 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000020213 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020214else
Alexandre Julliard05783b52002-12-11 00:21:55 +000020215 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020216fi
20217rm -f conftest*
20218
20219fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020220echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20221echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20222if test $ac_cv_cpp_def___sun__ = yes; then
20223 CFLAGS="$CFLAGS -D__sun__"
20224 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020225fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020226 ;;
20227esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020228
20229
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020230
20231
20232
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020233 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000020234
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020235 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000020236
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020237 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000020238
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020239 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000020240
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020241 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000020242
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020243 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000020244
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020245 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000020246
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020247 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000020248
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020249 ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020250
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020251 ac_config_commands="$ac_config_commands dlls/user/dde"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020252
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020253 ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020254
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020255 ac_config_commands="$ac_config_commands dlls/wineps/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020256
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020257 ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020258
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020259 ac_config_commands="$ac_config_commands misc"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020260
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020261 ac_config_commands="$ac_config_commands programs/regedit/tests"
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000020262
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020263 ac_config_commands="$ac_config_commands windows"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020264
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000020265
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000020266MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020267
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020268
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000020269MAKE_DLL_RULES=dlls/Makedll.rules
20270
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020271
Alexandre Julliardedeee892002-08-09 01:22:40 +000020272MAKE_TEST_RULES=dlls/Maketest.rules
20273
20274
Alexandre Julliard117436e2003-05-01 00:39:29 +000020275MAKE_LIB_RULES=libs/Makelib.rules
20276
20277
Alexandre Julliard626f4252000-11-10 23:35:20 +000020278MAKE_PROG_RULES=programs/Makeprog.rules
20279
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020280
Huw Davies20313b82004-09-27 20:39:40 +000020281 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/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/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/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/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/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/secur32/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/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/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 +000020282
Alexandre Julliard626f4252000-11-10 23:35:20 +000020283
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020284cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020285# This file is a shell script that caches the results of configure
20286# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020287# scripts and configure runs, see configure's option --config-cache.
20288# It is not useful on other systems. If it contains results you don't
20289# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020290#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020291# config.status only pays attention to the cache file if you give it
20292# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020293#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020294# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020295# loading this file, other *unset* `ac_cv_foo' will be assigned the
20296# following values.
20297
20298_ACEOF
20299
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000020300# The following way of writing the cache mishandles newlines in values,
20301# but we know of no workaround that is simple, portable, and efficient.
20302# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020303# Ultrix sh set writes to stderr and can't be redirected directly,
20304# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020305{
20306 (set) 2>&1 |
20307 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20308 *ac_space=\ *)
20309 # `set' does not quote correctly, so add quotes (double-quote
20310 # substitution turns \\\\ into \\, and sed turns \\ into \).
20311 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000020312 "s/'/'\\\\''/g;
20313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020314 ;;
20315 *)
20316 # `set' quotes correctly as required by POSIX, so do not add quotes.
20317 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000020318 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020319 ;;
20320 esac;
20321} |
20322 sed '
20323 t clear
20324 : clear
20325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20326 t end
20327 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20328 : end' >>confcache
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020329if diff $cache_file confcache >/dev/null 2>&1; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020330 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020331 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20332 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020333 else
20334 echo "not updating unwritable cache $cache_file"
20335 fi
20336fi
20337rm -f confcache
20338
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020339test "x$prefix" = xNONE && prefix=$ac_default_prefix
20340# Let make expand exec_prefix.
20341test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20342
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020343# VPATH may cause trouble with some makes, so we remove $(srcdir),
20344# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20345# trailing colons and then remove the whole line if VPATH becomes empty
20346# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020347if test "x$srcdir" = x.; then
Alexandre Julliard875927f2004-01-02 01:55:29 +000020348 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020349s/:*\$(srcdir):*/:/;
20350s/:*\${srcdir}:*/:/;
20351s/:*@srcdir@:*/:/;
Alexandre Julliard875927f2004-01-02 01:55:29 +000020352s/^\([^=]*=[ ]*\):*/\1/;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020353s/:*$//;
Alexandre Julliard875927f2004-01-02 01:55:29 +000020354s/^[^=]*=[ ]*$//;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020355}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020356fi
20357
Alexandre Julliard18f92e71996-07-17 20:02:21 +000020358DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020359
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020360ac_libobjs=
20361ac_ltlibobjs=
20362for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20363 # 1. Remove the extension, and $U if already installed.
20364 ac_i=`echo "$ac_i" |
Alexandre Julliard875927f2004-01-02 01:55:29 +000020365 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020366 # 2. Add them.
20367 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20368 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20369done
20370LIBOBJS=$ac_libobjs
20371
20372LTLIBOBJS=$ac_ltlibobjs
20373
20374
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020375
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020376: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020377ac_clean_files_save=$ac_clean_files
20378ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020379{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020380echo "$as_me: creating $CONFIG_STATUS" >&6;}
20381cat >$CONFIG_STATUS <<_ACEOF
20382#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020383# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020384# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020385# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020386# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020387
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020388debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020389ac_cs_recheck=false
20390ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020391SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020392_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020393
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020394cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020395## --------------------- ##
20396## M4sh Initialization. ##
20397## --------------------- ##
20398
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020399# Be Bourne compatible
20400if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20401 emulate sh
20402 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020403 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20404 # is contrary to our usage. Disable this feature.
20405 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020406elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20407 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000020408fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000020409DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020410
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020411# Support unset when possible.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020412if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020413 as_unset=unset
20414else
20415 as_unset=false
20416fi
20417
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020418
20419# Work around bugs in pre-3.0 UWIN ksh.
20420$as_unset ENV MAIL MAILPATH
20421PS1='$ '
20422PS2='> '
20423PS4='+ '
20424
20425# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020426for as_var in \
20427 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20428 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20429 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020430do
Alexandre Julliard875927f2004-01-02 01:55:29 +000020431 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020432 eval $as_var=C; export $as_var
20433 else
20434 $as_unset $as_var
20435 fi
20436done
20437
20438# Required to use basename.
20439if expr a : '\(a\)' >/dev/null 2>&1; then
20440 as_expr=expr
20441else
20442 as_expr=false
20443fi
20444
20445if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20446 as_basename=basename
20447else
20448 as_basename=false
20449fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020450
20451
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020452# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020453as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020454$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20455 X"$0" : 'X\(//\)$' \| \
20456 X"$0" : 'X\(/\)$' \| \
20457 . : '\(.\)' 2>/dev/null ||
20458echo X/"$0" |
20459 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20460 /^X\/\(\/\/\)$/{ s//\1/; q; }
20461 /^X\/\(\/\).*/{ s//\1/; q; }
20462 s/.*/./; q'`
20463
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020464
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020465# PATH needs CR, and LINENO needs CR and PATH.
20466# Avoid depending upon Character Ranges.
20467as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20468as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20469as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20470as_cr_digits='0123456789'
20471as_cr_alnum=$as_cr_Letters$as_cr_digits
20472
20473# The user is always right.
20474if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020475 echo "#! /bin/sh" >conf$$.sh
20476 echo "exit 0" >>conf$$.sh
20477 chmod +x conf$$.sh
20478 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020479 PATH_SEPARATOR=';'
20480 else
20481 PATH_SEPARATOR=:
20482 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020483 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020484fi
20485
20486
20487 as_lineno_1=$LINENO
20488 as_lineno_2=$LINENO
20489 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20490 test "x$as_lineno_1" != "x$as_lineno_2" &&
20491 test "x$as_lineno_3" = "x$as_lineno_2" || {
20492 # Find who we are. Look in the path if we contain no path at all
20493 # relative or not.
20494 case $0 in
20495 *[\\/]* ) as_myself=$0 ;;
20496 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20497for as_dir in $PATH
20498do
20499 IFS=$as_save_IFS
20500 test -z "$as_dir" && as_dir=.
20501 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20502done
20503
20504 ;;
20505 esac
20506 # We did not find ourselves, most probably we were run as `sh COMMAND'
20507 # in which case we are not to be found in the path.
20508 if test "x$as_myself" = x; then
20509 as_myself=$0
20510 fi
20511 if test ! -f "$as_myself"; then
20512 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20513echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20514 { (exit 1); exit 1; }; }
20515 fi
20516 case $CONFIG_SHELL in
20517 '')
20518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20519for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20520do
20521 IFS=$as_save_IFS
20522 test -z "$as_dir" && as_dir=.
20523 for as_base in sh bash ksh sh5; do
20524 case $as_dir in
20525 /*)
20526 if ("$as_dir/$as_base" -c '
20527 as_lineno_1=$LINENO
20528 as_lineno_2=$LINENO
20529 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20530 test "x$as_lineno_1" != "x$as_lineno_2" &&
20531 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020532 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20533 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020534 CONFIG_SHELL=$as_dir/$as_base
20535 export CONFIG_SHELL
20536 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20537 fi;;
20538 esac
20539 done
20540done
20541;;
20542 esac
20543
20544 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20545 # uniformly replaced by the line number. The first 'sed' inserts a
20546 # line-number line before each line; the second 'sed' does the real
20547 # work. The second script uses 'N' to pair each line-number line
20548 # with the numbered line, and appends trailing '-' during
20549 # substitution so that $LINENO is not a special case at line end.
20550 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20551 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20552 sed '=' <$as_myself |
20553 sed '
20554 N
20555 s,$,-,
20556 : loop
20557 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20558 t loop
20559 s,-$,,
20560 s,^['$as_cr_digits']*\n,,
20561 ' >$as_me.lineno &&
20562 chmod +x $as_me.lineno ||
20563 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20564echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20565 { (exit 1); exit 1; }; }
20566
20567 # Don't try to exec as it changes $[0], causing all sort of problems
20568 # (the dirname of $[0] is not the place where we might find the
20569 # original and so on. Autoconf is especially sensible to this).
20570 . ./$as_me.lineno
20571 # Exit status is that of the last command.
20572 exit
20573}
20574
20575
20576case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20577 *c*,-n*) ECHO_N= ECHO_C='
20578' ECHO_T=' ' ;;
20579 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20580 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20581esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020582
20583if expr a : '\(a\)' >/dev/null 2>&1; then
20584 as_expr=expr
20585else
20586 as_expr=false
20587fi
20588
20589rm -f conf$$ conf$$.exe conf$$.file
20590echo >conf$$.file
20591if ln -s conf$$.file conf$$ 2>/dev/null; then
20592 # We could just check for DJGPP; but this test a) works b) is more generic
20593 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20594 if test -f conf$$.exe; then
20595 # Don't use ln at all; we don't have any links
20596 as_ln_s='cp -p'
20597 else
20598 as_ln_s='ln -s'
20599 fi
20600elif ln conf$$.file conf$$ 2>/dev/null; then
20601 as_ln_s=ln
20602else
20603 as_ln_s='cp -p'
20604fi
20605rm -f conf$$ conf$$.exe conf$$.file
20606
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020607if mkdir -p . 2>/dev/null; then
20608 as_mkdir_p=:
20609else
Alexandre Julliard875927f2004-01-02 01:55:29 +000020610 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020611 as_mkdir_p=false
20612fi
20613
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020614as_executable_p="test -f"
20615
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020616# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020617as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020618
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020619# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020620as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020621
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020622
20623# IFS
20624# We need space, tab and new line, in precisely that order.
20625as_nl='
20626'
20627IFS=" $as_nl"
20628
20629# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020630$as_unset CDPATH
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020631
20632exec 6>&1
20633
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020634# Open the log real soon, to keep \$[0] and so on meaningful, and to
20635# report actual input values of CONFIG_FILES etc. instead of their
20636# values after options handling. Logging --version etc. is OK.
20637exec 5>>config.log
20638{
20639 echo
20640 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20641## Running $as_me. ##
20642_ASBOX
20643} >&5
20644cat >&5 <<_CSEOF
20645
Alexandre Julliard8087fca2004-09-14 22:11:36 +000020646This file was extended by Wine $as_me 20040914, which was
Eric Pouech53fa0d52004-02-05 01:27:38 +000020647generated by GNU Autoconf 2.59. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020648
20649 CONFIG_FILES = $CONFIG_FILES
20650 CONFIG_HEADERS = $CONFIG_HEADERS
20651 CONFIG_LINKS = $CONFIG_LINKS
20652 CONFIG_COMMANDS = $CONFIG_COMMANDS
20653 $ $0 $@
20654
20655_CSEOF
20656echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20657echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020658_ACEOF
20659
20660# Files that config.status was made for.
20661if test -n "$ac_config_files"; then
20662 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20663fi
20664
20665if test -n "$ac_config_headers"; then
20666 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20667fi
20668
20669if test -n "$ac_config_links"; then
20670 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20671fi
20672
20673if test -n "$ac_config_commands"; then
20674 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20675fi
20676
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020677cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020678
20679ac_cs_usage="\
20680\`$as_me' instantiates files from templates according to the
20681current configuration.
20682
20683Usage: $0 [OPTIONS] [FILE]...
20684
20685 -h, --help print this help, then exit
20686 -V, --version print version number, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020687 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020688 -d, --debug don't remove temporary files
20689 --recheck update $as_me by reconfiguring in the same conditions
20690 --file=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000020691 instantiate the configuration file FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020692 --header=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000020693 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020694
20695Configuration files:
20696$config_files
20697
20698Configuration headers:
20699$config_headers
20700
20701Configuration commands:
20702$config_commands
20703
20704Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020705_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000020706
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020707cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020708ac_cs_version="\\
Alexandre Julliard8087fca2004-09-14 22:11:36 +000020709Wine config.status 20040914
Eric Pouech53fa0d52004-02-05 01:27:38 +000020710configured by $0, generated by GNU Autoconf 2.59,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020711 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020712
Alexandre Julliard875927f2004-01-02 01:55:29 +000020713Copyright (C) 2003 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020714This config.status script is free software; the Free Software Foundation
20715gives unlimited permission to copy, distribute and modify it."
20716srcdir=$srcdir
20717INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020718_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020719
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020720cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020721# If no file are specified by the user, then we need to provide default
20722# value. By we need to know if files were specified by the user.
20723ac_need_defaults=:
20724while test $# != 0
20725do
20726 case $1 in
20727 --*=*)
20728 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20729 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020730 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020731 ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020732 -*)
20733 ac_option=$1
20734 ac_optarg=$2
20735 ac_shift=shift
20736 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020737 *) # This is not an option, so the user has probably given explicit
20738 # arguments.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020739 ac_option=$1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020740 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020741 esac
20742
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020743 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020744 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020745_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020746cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020747 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20748 ac_cs_recheck=: ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020749 --version | --vers* | -V )
20750 echo "$ac_cs_version"; exit 0 ;;
20751 --he | --h)
20752 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020753 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020754Try \`$0 --help' for more information." >&5
20755echo "$as_me: error: ambiguous option: $1
20756Try \`$0 --help' for more information." >&2;}
20757 { (exit 1); exit 1; }; };;
20758 --help | --hel | -h )
20759 echo "$ac_cs_usage"; exit 0 ;;
20760 --debug | --d* | -d )
20761 debug=: ;;
20762 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020763 $ac_shift
20764 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020765 ac_need_defaults=false;;
20766 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020767 $ac_shift
20768 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020769 ac_need_defaults=false;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20771 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20772 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020773
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020774 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020775 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020776Try \`$0 --help' for more information." >&5
20777echo "$as_me: error: unrecognized option: $1
20778Try \`$0 --help' for more information." >&2;}
20779 { (exit 1); exit 1; }; } ;;
20780
20781 *) ac_config_targets="$ac_config_targets $1" ;;
20782
20783 esac
20784 shift
20785done
20786
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020787ac_configure_extra_args=
20788
20789if $ac_cs_silent; then
20790 exec 6>/dev/null
20791 ac_configure_extra_args="$ac_configure_extra_args --silent"
20792fi
20793
20794_ACEOF
20795cat >>$CONFIG_STATUS <<_ACEOF
20796if \$ac_cs_recheck; then
20797 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20798 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20799fi
20800
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020801_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020802
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020803
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020804
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020805
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020806
20807cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020808for ac_config_target in $ac_config_targets
20809do
20810 case "$ac_config_target" in
20811 # Handling of arguments.
20812 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20813 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020814 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliard117436e2003-05-01 00:39:29 +000020815 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020816 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20817 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020818 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20819 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020820 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
Huw Davies20313b82004-09-27 20:39:40 +000020821 "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
Christian Costa76b77872004-03-09 01:29:56 +000020822 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
Aric Stewart4bd374f2004-07-06 21:01:18 +000020823 "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020824 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20825 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
Patrik Stridvalld1447fa2002-11-19 00:47:12 +000020826 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000020827 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
Sami Nopanen9063cef2004-03-15 20:26:42 +000020828 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
Mike McCormackb107b922003-10-31 03:38:07 +000020829 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000020830 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020831 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
Uwe Bonnes2c4fd422003-05-15 23:58:48 +000020832 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020833 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20834 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20835 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
Dmitry Timoshkov5a23a002003-01-02 19:34:14 +000020836 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
Sylvain Petreolle3a99d8b2002-06-25 23:23:03 +000020837 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
Alexandre Julliardaa1bdc42003-07-01 01:11:13 +000020838 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
Enrico Horneaae7052003-01-24 01:08:15 +000020839 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
Ivan Leo Murray-Smith8f14eb02004-05-18 00:54:12 +000020840 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
Raphael Junqueirae31ae922002-12-17 01:15:15 +000020841 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
Christian Costa7590fe52004-06-03 00:03:23 +000020842 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
Eric Pouech800864a2004-04-05 22:21:27 +000020843 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020844 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20845 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
Sami Aariof22a4722003-11-18 00:12:00 +000020846 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020847 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20848 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
Ove Kaavend2d08f02002-06-14 00:39:44 +000020849 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020850 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20851 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20852 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20853 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20854 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20855 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20856 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
Rok Mandeljc2d04be72003-03-21 00:42:38 +000020857 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020858 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020859 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20860 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
Raphael Junqueira5f3f2142004-04-07 20:39:00 +000020861 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020862 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020863 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
Francois Gougetd523a452002-12-05 19:19:41 +000020864 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
Rok Mandeljc0382ea12004-01-20 00:21:40 +000020865 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
Raphael Junqueira033ae922004-04-16 00:26:14 +000020866 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
Robert Reifcc02d952004-03-09 23:25:57 +000020867 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20868 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020869 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020870 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
Patrik Stridvall928ecb42002-10-02 19:58:27 +000020871 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020872 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
Jacek Cabanef799c42003-12-02 04:11:09 +000020873 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
Krzysztof Foltman9bca6902004-04-22 03:45:00 +000020874 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
Alexandre Julliard0a106bf2004-01-15 04:56:18 +000020875 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020876 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020877 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020878 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20879 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
Juan Lang38fa5ad2003-05-13 03:32:20 +000020880 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
Juan Lange6f491a2004-01-07 01:08:55 +000020881 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
Alexandre Julliard5f6e3c82004-08-24 21:00:15 +000020882 "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020883 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020884 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020885 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20886 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
Jon Griffiths4ec0d3b2004-04-23 23:30:00 +000020887 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
Alexandre Julliard94a9d332004-08-04 18:33:06 +000020888 "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20889 "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020890 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20891 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020892 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20893 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000020894 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000020895 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000020896 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Eric Pouechb706b232002-06-04 17:53:46 +000020897 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
Robert Reif00cd2b22004-05-03 20:17:43 +000020898 "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
Hans Leidekker51647572004-09-22 04:08:38 +000020899 "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020900 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
Mike McCormackaa1c2a32003-09-08 19:32:14 +000020901 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
Mike McCormack6386edc2003-08-13 01:27:48 +000020902 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020903 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000020904 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020905 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
Alexandre Julliard7ba8fba2004-02-27 21:51:12 +000020906 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020907 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
Uwe Bonnesa768fa32002-10-30 23:49:03 +000020908 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020909 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
Mike McCormackd0779462004-01-12 22:12:27 +000020910 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
Adam Gundy19a15132003-04-04 19:37:57 +000020911 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
Patrik Stridvall5c4420f2004-05-18 01:05:36 +000020912 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
Mike McCormack4cc64c82004-01-23 05:00:37 +000020913 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020914 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
André Johansen2123c132003-08-02 00:52:02 +000020915 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020916 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
Andriy Palamarchukb812c902002-09-11 02:35:17 +000020917 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
Ulrich Czekalla9655a5f2003-12-30 22:19:30 +000020918 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020919 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
Jon Griffiths1da29712002-08-15 22:08:40 +000020920 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020921 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20922 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
Mike McCormack06b80462004-08-11 00:17:52 +000020923 "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
Eric Pouech5caccaf2003-06-23 03:43:00 +000020924 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020925 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020926 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020927 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20928 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20929 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20930 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20931 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20932 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
Stefan Leichter0d4fff42004-06-15 20:23:47 +000020933 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020934 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20935 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
Christian Costae3a288f2004-08-16 21:14:28 +000020936 "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020937 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20938 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20939 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
Greg Turnerac89cc22002-10-07 21:54:07 +000020940 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
Mike McCormackb6de3042004-02-13 20:47:07 +000020941 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
Michael Jungb4b0c242004-07-30 00:06:54 +000020942 "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
Juan Lang3ed89c32004-03-02 04:57:35 +000020943 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020944 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20945 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20946 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20947 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
Andriy Palamarchuk5b5bea02002-08-27 01:34:33 +000020948 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020949 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20950 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020951 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000020952 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020953 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
Francois Gougeta8963892004-08-19 19:31:20 +000020954 "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020955 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20956 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000020957 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliard46321f42003-11-27 01:10:26 +000020958 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020959 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20960 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
Patrik Stridvall9398d9c2002-11-12 01:13:10 +000020961 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020962 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020963 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020964 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
Kevin Koltzau0af4fb92003-10-04 03:48:11 +000020965 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020966 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
Sami Aario78f12242004-04-07 19:41:21 +000020967 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020968 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
Stefan Leichter09733db2004-04-05 22:54:03 +000020969 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
Alexandre Julliard6c8147b2004-02-21 04:13:56 +000020970 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
Juan Lange9ed2f32004-03-01 23:35:25 +000020971 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020972 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20973 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20974 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020975 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20976 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020977 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020978 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20979 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20980 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020981 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020982 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20983 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20984 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20985 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20986 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20987 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20988 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20989 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
Francois Gouget4ce28372002-11-04 23:47:49 +000020990 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020991 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Eric Pouecha120ce02002-06-28 17:40:16 +000020992 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000020993 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000020994 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
Chris Morgan4691b182002-12-13 02:26:18 +000020995 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020996 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020997 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20998 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20999 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000021000 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021001 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
Stefan Leichter88b11062003-01-15 00:50:48 +000021002 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
Patrik Stridvall5caddc72002-12-17 01:49:16 +000021003 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021004 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
21005 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
21006 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
21007 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
21008 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Huw Davies00acb5f2004-08-17 22:33:14 +000021009 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021010 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
Alexandre Julliard6a9fe362003-03-19 22:09:16 +000021011 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
21012 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000021013 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
Alexandre Julliard2d1c7902003-03-22 20:40:48 +000021014 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
Alexandre Julliarde1a9b102003-05-01 03:16:21 +000021015 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
Alexandre Julliard357c7402003-11-06 01:17:56 +000021016 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021017 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
21018 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
21019 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
21020 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
21021 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000021022 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Vincent BĂ©ron34966892004-07-19 19:44:07 +000021023 "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021024 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021025 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000021026 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000021027 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardd77294a2002-12-02 21:17:04 +000021028 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
Alberto Massari15e8e0a2002-11-15 01:41:20 +000021029 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
Dan Kegelba02ae42003-01-21 20:14:36 +000021030 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
Eric Pouechd6b348f2004-03-23 01:19:54 +000021031 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021032 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
21033 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
21034 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
Shachar Shemesh175d0592003-01-04 02:52:05 +000021035 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
Chris Morgand888d362004-01-06 20:49:58 +000021036 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
Dimitrie O. Paun82ce2cc2003-03-31 19:41:55 +000021037 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021038 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
Alexandre Julliardf264bd32002-09-13 17:54:27 +000021039 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
Alexandre Julliard65a42162002-06-04 21:29:40 +000021040 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
Mike McCormack88090b42003-05-21 18:50:53 +000021041 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021042 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000021043 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliard9f71bd92003-12-04 02:01:39 +000021044 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
Alexandre Julliardfedc4112003-04-27 00:47:58 +000021045 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021046 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21047 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021048 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21049 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000021050 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021051 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
21052 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21053 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
Alexandre Julliard280661c2003-09-11 21:27:58 +000021054 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021055 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21056 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021057 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
21058 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
21059 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
21060 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
21061 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
21062 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000021063 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
21064 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021065 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
21066 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
21067 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
21068 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
21069 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000021070 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000021071 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000021072 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021073 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021074 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021075echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21076 { (exit 1); exit 1; }; };;
21077 esac
21078done
21079
21080# If the user did not use the arguments to specify the items to instantiate,
21081# then the envvar interface is used. Set only those that are not.
21082# We use the long form for the default assignment because of an extremely
21083# bizarre bug on SunOS 4.1.3.
21084if $ac_need_defaults; then
21085 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21086 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21087 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21088fi
21089
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021090# Have a temporary directory for convenience. Make it in the build tree
21091# simply because there is no reason to put it here, and in addition,
21092# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021093# Create a temporary directory, and hook for its removal unless debugging.
21094$debug ||
21095{
21096 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21097 trap '{ (exit 1); exit 1; }' 1 2 13 15
21098}
21099
21100# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021101
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021102{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021103 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021104 test -n "$tmp" && test -d "$tmp"
21105} ||
21106{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021107 tmp=./confstat$$-$RANDOM
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021108 (umask 077 && mkdir $tmp)
21109} ||
21110{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021111 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021112 { (exit 1); exit 1; }
21113}
21114
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021115_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021116
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021117cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021118
21119#
21120# CONFIG_FILES section.
21121#
21122
21123# No need to generate the scripts if there are no CONFIG_FILES.
21124# This happens for instance when ./config.status config.h
21125if test -n "\$CONFIG_FILES"; then
21126 # Protect against being on the right side of a sed subst in config.status.
21127 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21128 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21129s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021130s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21131s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21132s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21133s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21134s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21135s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021136s,@exec_prefix@,$exec_prefix,;t t
21137s,@prefix@,$prefix,;t t
21138s,@program_transform_name@,$program_transform_name,;t t
21139s,@bindir@,$bindir,;t t
21140s,@sbindir@,$sbindir,;t t
21141s,@libexecdir@,$libexecdir,;t t
21142s,@datadir@,$datadir,;t t
21143s,@sysconfdir@,$sysconfdir,;t t
21144s,@sharedstatedir@,$sharedstatedir,;t t
21145s,@localstatedir@,$localstatedir,;t t
21146s,@libdir@,$libdir,;t t
21147s,@includedir@,$includedir,;t t
21148s,@oldincludedir@,$oldincludedir,;t t
21149s,@infodir@,$infodir,;t t
21150s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021151s,@build_alias@,$build_alias,;t t
21152s,@host_alias@,$host_alias,;t t
21153s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021154s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021155s,@ECHO_C@,$ECHO_C,;t t
21156s,@ECHO_N@,$ECHO_N,;t t
21157s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021158s,@LIBS@,$LIBS,;t t
Alexandre Julliardc728efc2002-10-02 02:34:09 +000021159s,@WIN16_FILES@,$WIN16_FILES,;t t
21160s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021161s,@build@,$build,;t t
21162s,@build_cpu@,$build_cpu,;t t
21163s,@build_vendor@,$build_vendor,;t t
21164s,@build_os@,$build_os,;t t
21165s,@host@,$host,;t t
21166s,@host_cpu@,$host_cpu,;t t
21167s,@host_vendor@,$host_vendor,;t t
21168s,@host_os@,$host_os,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021169s,@SET_MAKE@,$SET_MAKE,;t t
21170s,@CC@,$CC,;t t
21171s,@CFLAGS@,$CFLAGS,;t t
21172s,@LDFLAGS@,$LDFLAGS,;t t
21173s,@CPPFLAGS@,$CPPFLAGS,;t t
21174s,@ac_ct_CC@,$ac_ct_CC,;t t
21175s,@EXEEXT@,$EXEEXT,;t t
21176s,@OBJEXT@,$OBJEXT,;t t
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000021177s,@CXX@,$CXX,;t t
21178s,@CXXFLAGS@,$CXXFLAGS,;t t
21179s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Alexandre Julliarda631ef62004-03-03 20:30:46 +000021180s,@CPPBIN@,$CPPBIN,;t t
21181s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021182s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliarda631ef62004-03-03 20:30:46 +000021183s,@CPP@,$CPP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021184s,@X_CFLAGS@,$X_CFLAGS,;t t
21185s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21186s,@X_LIBS@,$X_LIBS,;t t
21187s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021188s,@LEX@,$LEX,;t t
21189s,@LEXLIB@,$LEXLIB,;t t
21190s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021191s,@XLEX@,$XLEX,;t t
Mike McCormackc068f672004-03-16 03:11:39 +000021192s,@BISON@,$BISON,;t t
Marcus Meissner1d4db782003-01-09 00:46:54 +000021193s,@AS@,$AS,;t t
21194s,@ac_ct_AS@,$ac_ct_AS,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000021195s,@LD@,$LD,;t t
21196s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021197s,@AR@,$AR,;t t
21198s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021199s,@RANLIB@,$RANLIB,;t t
21200s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021201s,@STRIP@,$STRIP,;t t
21202s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21203s,@WINDRES@,$WINDRES,;t t
21204s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021205s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000021206s,@LN@,$LN,;t t
Alexandre Julliardc6264912004-08-16 20:09:37 +000021207s,@EGREP@,$EGREP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021208s,@LDCONFIG@,$LDCONFIG,;t t
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021209s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21210s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21211s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021212s,@LINT@,$LINT,;t t
21213s,@LINTFLAGS@,$LINTFLAGS,;t t
Vincent BĂ©ron1d8cb6e2002-11-23 01:20:02 +000021214s,@DB2HTML@,$DB2HTML,;t t
21215s,@DB2PDF@,$DB2PDF,;t t
21216s,@DB2PS@,$DB2PS,;t t
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +000021217s,@DB2TXT@,$DB2TXT,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000021218s,@FONTFORGE@,$FONTFORGE,;t t
Alexandre Julliardf45325e2003-11-06 23:05:41 +000021219s,@LIBPTHREAD@,$LIBPTHREAD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021220s,@XLIB@,$XLIB,;t t
21221s,@XFILES@,$XFILES,;t t
21222s,@OPENGLFILES@,$OPENGLFILES,;t t
21223s,@GLU32FILES@,$GLU32FILES,;t t
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000021224s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
Jacek Cabanef799c42003-12-02 04:11:09 +000021225s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21226s,@GLUT32FILES@,$GLUT32FILES,;t t
Francois Gouget6f670b12002-10-10 17:54:27 +000021227s,@NASLIBS@,$NASLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021228s,@CURSESLIBS@,$CURSESLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000021229s,@sane_devel@,$sane_devel,;t t
21230s,@SANELIBS@,$SANELIBS,;t t
21231s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliard4ee82902003-06-20 21:38:10 +000021232s,@ICULIBS@,$ICULIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021233s,@ft_devel@,$ft_devel,;t t
21234s,@ft_devel2@,$ft_devel2,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000021235s,@FREETYPELIBS@,$FREETYPELIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021236s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000021237s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000021238s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21239s,@ARTSLIBS@,$ARTSLIBS,;t t
21240s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000021241s,@ALSALIBS@,$ALSALIBS,;t t
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000021242s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
Hans Leidekker51647572004-09-22 04:08:38 +000021243s,@LCMSLIBS@,$LCMSLIBS,;t t
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000021244s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
Alexandre Julliardfc094232003-04-14 21:46:41 +000021245s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000021246s,@DLLEXT@,$DLLEXT,;t t
21247s,@DLLFLAGS@,$DLLFLAGS,;t t
21248s,@DLLIBS@,$DLLIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000021249s,@LDSHARED@,$LDSHARED,;t t
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000021250s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
Alexandre Julliardada5e652002-12-12 22:03:14 +000021251s,@LIBEXT@,$LIBEXT,;t t
21252s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21253s,@DLLTOOL@,$DLLTOOL,;t t
21254s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021255s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021256s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliard4d52d372003-03-24 19:33:20 +000021257s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
Emmanuel Maillard46718f82004-07-22 19:48:41 +000021258s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
Emmanuel Maillard2300ce62004-08-19 01:20:45 +000021259s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
21260s,@IOKITLIB@,$IOKITLIB,;t t
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000021261s,@CROSSTEST@,$CROSSTEST,;t t
21262s,@CROSSCC@,$CROSSCC,;t t
Alexandre Julliard21ee3292003-04-21 22:52:31 +000021263s,@CROSSWINDRES@,$CROSSWINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021264s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000021265s,@CRTLIBS@,$CRTLIBS,;t t
Steven Edwardsc91ae452004-09-03 18:57:19 +000021266s,@SOCKETLIBS@,$SOCKETLIBS,;t t
Alexandre Julliard546839f2003-11-11 00:48:21 +000021267s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21268s,@MAIN_BINARY@,$MAIN_BINARY,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000021269s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021270s,@ALLOCA@,$ALLOCA,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021271s,@LIBOBJS@,$LIBOBJS,;t t
21272s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021273/@MAKE_RULES@/r $MAKE_RULES
21274s,@MAKE_RULES@,,;t t
21275/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21276s,@MAKE_DLL_RULES@,,;t t
Alexandre Julliardedeee892002-08-09 01:22:40 +000021277/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21278s,@MAKE_TEST_RULES@,,;t t
Alexandre Julliard117436e2003-05-01 00:39:29 +000021279/@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21280s,@MAKE_LIB_RULES@,,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021281/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21282s,@MAKE_PROG_RULES@,,;t t
21283CEOF
21284
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021285_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021286
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021287 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021288 # Split the substitutions into bite-sized pieces for seds with
21289 # small command number limits, like on Digital OSF/1 and HP-UX.
21290 ac_max_sed_lines=48
21291 ac_sed_frag=1 # Number of current file.
21292 ac_beg=1 # First line for current file.
21293 ac_end=$ac_max_sed_lines # Line after last line for current file.
21294 ac_more_lines=:
21295 ac_sed_cmds=
21296 while $ac_more_lines; do
21297 if test $ac_beg -gt 1; then
21298 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21299 else
21300 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21301 fi
21302 if test ! -s $tmp/subs.frag; then
21303 ac_more_lines=false
21304 else
21305 # The purpose of the label and of the branching condition is to
21306 # speed up the sed processing (if there are no `@' at all, there
21307 # is no need to browse any of the substitutions).
21308 # These are the two extra sed commands mentioned above.
21309 (echo ':t
21310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21311 if test -z "$ac_sed_cmds"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +000021312 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021313 else
Alexandre Julliard875927f2004-01-02 01:55:29 +000021314 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021315 fi
21316 ac_sed_frag=`expr $ac_sed_frag + 1`
21317 ac_beg=$ac_end
21318 ac_end=`expr $ac_end + $ac_max_sed_lines`
21319 fi
21320 done
21321 if test -z "$ac_sed_cmds"; then
21322 ac_sed_cmds=cat
21323 fi
21324fi # test -n "$CONFIG_FILES"
21325
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021326_ACEOF
21327cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021328for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21329 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21330 case $ac_file in
21331 - | *:- | *:-:* ) # input from stdin
Alexandre Julliard875927f2004-01-02 01:55:29 +000021332 cat >$tmp/stdin
21333 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21334 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021335 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021336 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021337 * ) ac_file_in=$ac_file.in ;;
21338 esac
21339
21340 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021341 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21342$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021343 X"$ac_file" : 'X\(//\)[^/]' \| \
21344 X"$ac_file" : 'X\(//\)$' \| \
21345 X"$ac_file" : 'X\(/\)' \| \
21346 . : '\(.\)' 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021347echo X"$ac_file" |
21348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21349 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21350 /^X\(\/\/\)$/{ s//\1/; q; }
21351 /^X\(\/\).*/{ s//\1/; q; }
21352 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021353 { if $as_mkdir_p; then
21354 mkdir -p "$ac_dir"
21355 else
21356 as_dir="$ac_dir"
21357 as_dirs=
21358 while test ! -d "$as_dir"; do
21359 as_dirs="$as_dir $as_dirs"
21360 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21361$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021362 X"$as_dir" : 'X\(//\)[^/]' \| \
21363 X"$as_dir" : 'X\(//\)$' \| \
21364 X"$as_dir" : 'X\(/\)' \| \
21365 . : '\(.\)' 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021366echo X"$as_dir" |
21367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21368 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21369 /^X\(\/\/\)$/{ s//\1/; q; }
21370 /^X\(\/\).*/{ s//\1/; q; }
21371 s/.*/./; q'`
21372 done
21373 test ! -n "$as_dirs" || mkdir $as_dirs
21374 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21375echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21376 { (exit 1); exit 1; }; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021377
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021378 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021379
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021380if test "$ac_dir" != .; then
21381 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21382 # A "../" for each directory in $ac_dir_suffix.
21383 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21384else
21385 ac_dir_suffix= ac_top_builddir=
21386fi
21387
21388case $srcdir in
21389 .) # No --srcdir option. We are building in place.
21390 ac_srcdir=.
21391 if test -z "$ac_top_builddir"; then
21392 ac_top_srcdir=.
21393 else
21394 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21395 fi ;;
21396 [\\/]* | ?:[\\/]* ) # Absolute path.
21397 ac_srcdir=$srcdir$ac_dir_suffix;
21398 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021399 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021400 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21401 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21402esac
Alexandre Julliard875927f2004-01-02 01:55:29 +000021403
21404# Do not use `cd foo && pwd` to compute absolute paths, because
21405# the directories may not exist.
21406case `pwd` in
21407.) ac_abs_builddir="$ac_dir";;
21408*)
21409 case "$ac_dir" in
21410 .) ac_abs_builddir=`pwd`;;
21411 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21412 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21413 esac;;
21414esac
21415case $ac_abs_builddir in
21416.) ac_abs_top_builddir=${ac_top_builddir}.;;
21417*)
21418 case ${ac_top_builddir}. in
21419 .) ac_abs_top_builddir=$ac_abs_builddir;;
21420 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21421 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21422 esac;;
21423esac
21424case $ac_abs_builddir in
21425.) ac_abs_srcdir=$ac_srcdir;;
21426*)
21427 case $ac_srcdir in
21428 .) ac_abs_srcdir=$ac_abs_builddir;;
21429 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21430 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21431 esac;;
21432esac
21433case $ac_abs_builddir in
21434.) ac_abs_top_srcdir=$ac_top_srcdir;;
21435*)
21436 case $ac_top_srcdir in
21437 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21438 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21439 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21440 esac;;
21441esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021442
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021443
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021444 case $INSTALL in
21445 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021446 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000021447 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000021448
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021449 # Let's still pretend it is `configure' which instantiates (i.e., don't
21450 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021451 # /* config.h. Generated by config.status. */
21452 if test x"$ac_file" = x-; then
21453 configure_input=
21454 else
21455 configure_input="$ac_file. "
21456 fi
21457 configure_input=$configure_input"Generated from `echo $ac_file_in |
Alexandre Julliard875927f2004-01-02 01:55:29 +000021458 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000021459
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021460 # First look for the input files in the build tree, otherwise in the
21461 # src tree.
21462 ac_file_inputs=`IFS=:
21463 for f in $ac_file_in; do
21464 case $f in
21465 -) echo $tmp/stdin ;;
21466 [\\/$]*)
Alexandre Julliard875927f2004-01-02 01:55:29 +000021467 # Absolute (can't be DOS-style, as IFS=:)
21468 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021469echo "$as_me: error: cannot find input file: $f" >&2;}
21470 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021471 echo "$f";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021472 *) # Relative
Alexandre Julliard875927f2004-01-02 01:55:29 +000021473 if test -f "$f"; then
21474 # Build tree
21475 echo "$f"
21476 elif test -f "$srcdir/$f"; then
21477 # Source tree
21478 echo "$srcdir/$f"
21479 else
21480 # /dev/null tree
21481 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021482echo "$as_me: error: cannot find input file: $f" >&2;}
21483 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021484 fi;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021485 esac
21486 done` || { (exit 1); exit 1; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021487
21488 if test x"$ac_file" != x-; then
21489 { echo "$as_me:$LINENO: creating $ac_file" >&5
21490echo "$as_me: creating $ac_file" >&6;}
21491 rm -f "$ac_file"
21492 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021493_ACEOF
21494cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021495 sed "$ac_vpsub
21496$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021497_ACEOF
21498cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021499:t
21500/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21501s,@configure_input@,$configure_input,;t t
21502s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021503s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021504s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021505s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21506s,@builddir@,$ac_builddir,;t t
21507s,@abs_builddir@,$ac_abs_builddir,;t t
21508s,@top_builddir@,$ac_top_builddir,;t t
21509s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021510s,@INSTALL@,$ac_INSTALL,;t t
21511" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21512 rm -f $tmp/stdin
21513 if test x"$ac_file" != x-; then
21514 mv $tmp/out $ac_file
21515 else
21516 cat $tmp/out
21517 rm -f $tmp/out
21518 fi
21519
21520done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021521_ACEOF
21522cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021523
21524#
21525# CONFIG_HEADER section.
21526#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021527
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021528# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21529# NAME is the cpp macro being defined and VALUE is the value it is being given.
21530#
21531# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021532ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21533ac_dB='[ ].*$,\1#\2'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021534ac_dC=' '
21535ac_dD=',;t'
21536# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Alexandre Julliard875927f2004-01-02 01:55:29 +000021537ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021538ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021539ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021540ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021541
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021542for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000021543 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021544 case $ac_file in
21545 - | *:- | *:-:* ) # input from stdin
Alexandre Julliard875927f2004-01-02 01:55:29 +000021546 cat >$tmp/stdin
21547 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21548 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021549 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021550 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021551 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021552 esac
21553
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021554 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021555echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021556
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021557 # First look for the input files in the build tree, otherwise in the
21558 # src tree.
21559 ac_file_inputs=`IFS=:
21560 for f in $ac_file_in; do
21561 case $f in
21562 -) echo $tmp/stdin ;;
21563 [\\/$]*)
Alexandre Julliard875927f2004-01-02 01:55:29 +000021564 # Absolute (can't be DOS-style, as IFS=:)
21565 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021566echo "$as_me: error: cannot find input file: $f" >&2;}
21567 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021568 # Do quote $f, to prevent DOS paths from being IFS'd.
21569 echo "$f";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021570 *) # Relative
Alexandre Julliard875927f2004-01-02 01:55:29 +000021571 if test -f "$f"; then
21572 # Build tree
21573 echo "$f"
21574 elif test -f "$srcdir/$f"; then
21575 # Source tree
21576 echo "$srcdir/$f"
21577 else
21578 # /dev/null tree
21579 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021580echo "$as_me: error: cannot find input file: $f" >&2;}
21581 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021582 fi;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021583 esac
21584 done` || { (exit 1); exit 1; }
21585 # Remove the trailing spaces.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021586 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021587
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021588_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021589
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021590# Transform confdefs.h into two sed scripts, `conftest.defines' and
21591# `conftest.undefs', that substitutes the proper values into
21592# config.h.in to produce config.h. The first handles `#define'
21593# templates, and the second `#undef' templates.
21594# And first: Protect against being on the right side of a sed subst in
21595# config.status. Protect against being in an unquoted here document
21596# in config.status.
21597rm -f conftest.defines conftest.undefs
21598# Using a here document instead of a string reduces the quoting nightmare.
21599# Putting comments in sed scripts is not portable.
21600#
21601# `end' is used to avoid that the second main sed command (meant for
21602# 0-ary CPP macros) applies to n-ary macro definitions.
21603# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021604cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021605s/[\\&,]/\\&/g
21606s,[\\$`],\\&,g
21607t clear
21608: clear
Alexandre Julliard875927f2004-01-02 01:55:29 +000021609s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021610t end
Alexandre Julliard875927f2004-01-02 01:55:29 +000021611s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021612: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021613_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021614# If some macros were called several times there might be several times
21615# the same #defines, which is useless. Nevertheless, we may not want to
21616# sort them, since we want the *last* AC-DEFINE to be honored.
21617uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21618sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21619rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021620
21621# This sed command replaces #undef with comments. This is necessary, for
21622# example, in the case of _POSIX_SOURCE, which is predefined and required
21623# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021624cat >>conftest.undefs <<\_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000021625s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021626_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021627
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021628# Break up conftest.defines because some shells have a limit on the size
21629# of here documents, and old seds have small limits too (100 cmds).
21630echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Alexandre Julliard875927f2004-01-02 01:55:29 +000021631echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021632echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21633echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021634rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021635while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021636do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021637 # Write a limited-size here document to $tmp/defines.sed.
21638 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21639 # Speed up: don't consider the non `#define' lines.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021640 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021641 # Work around the forget-to-reset-the-flag bug.
21642 echo 't clr' >>$CONFIG_STATUS
21643 echo ': clr' >>$CONFIG_STATUS
21644 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021645 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021646 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21647 rm -f $tmp/in
21648 mv $tmp/out $tmp/in
21649' >>$CONFIG_STATUS
21650 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21651 rm -f conftest.defines
21652 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021653done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021654rm -f conftest.defines
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021655echo ' fi # grep' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021656echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021657
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021658# Break up conftest.undefs because some shells have a limit on the size
21659# of here documents, and old seds have small limits too (100 cmds).
21660echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21661rm -f conftest.tail
21662while grep . conftest.undefs >/dev/null
21663do
21664 # Write a limited-size here document to $tmp/undefs.sed.
21665 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21666 # Speed up: don't consider the non `#undef'
Alexandre Julliard875927f2004-01-02 01:55:29 +000021667 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021668 # Work around the forget-to-reset-the-flag bug.
21669 echo 't clr' >>$CONFIG_STATUS
21670 echo ': clr' >>$CONFIG_STATUS
21671 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21672 echo 'CEOF
21673 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21674 rm -f $tmp/in
21675 mv $tmp/out $tmp/in
21676' >>$CONFIG_STATUS
21677 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21678 rm -f conftest.undefs
21679 mv conftest.tail conftest.undefs
21680done
21681rm -f conftest.undefs
21682
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021683cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021684 # Let's still pretend it is `configure' which instantiates (i.e., don't
21685 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021686 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021687 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021688 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021689 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021690 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021691 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021692 cat $tmp/in >>$tmp/config.h
21693 rm -f $tmp/in
21694 if test x"$ac_file" != x-; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021695 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021696 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021697echo "$as_me: $ac_file is unchanged" >&6;}
21698 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021699 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21700$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021701 X"$ac_file" : 'X\(//\)[^/]' \| \
21702 X"$ac_file" : 'X\(//\)$' \| \
21703 X"$ac_file" : 'X\(/\)' \| \
21704 . : '\(.\)' 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021705echo X"$ac_file" |
21706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21707 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21708 /^X\(\/\/\)$/{ s//\1/; q; }
21709 /^X\(\/\).*/{ s//\1/; q; }
21710 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021711 { if $as_mkdir_p; then
21712 mkdir -p "$ac_dir"
21713 else
21714 as_dir="$ac_dir"
21715 as_dirs=
21716 while test ! -d "$as_dir"; do
21717 as_dirs="$as_dir $as_dirs"
21718 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21719$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021720 X"$as_dir" : 'X\(//\)[^/]' \| \
21721 X"$as_dir" : 'X\(//\)$' \| \
21722 X"$as_dir" : 'X\(/\)' \| \
21723 . : '\(.\)' 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021724echo X"$as_dir" |
21725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21727 /^X\(\/\/\)$/{ s//\1/; q; }
21728 /^X\(\/\).*/{ s//\1/; q; }
21729 s/.*/./; q'`
21730 done
21731 test ! -n "$as_dirs" || mkdir $as_dirs
21732 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21733echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21734 { (exit 1); exit 1; }; }; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021735
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021736 rm -f $ac_file
21737 mv $tmp/config.h $ac_file
21738 fi
21739 else
21740 cat $tmp/config.h
21741 rm -f $tmp/config.h
21742 fi
21743done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021744_ACEOF
21745cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021746
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021747#
21748# CONFIG_COMMANDS section.
21749#
21750for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21751 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21752 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021753 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21754$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021755 X"$ac_dest" : 'X\(//\)[^/]' \| \
21756 X"$ac_dest" : 'X\(//\)$' \| \
21757 X"$ac_dest" : 'X\(/\)' \| \
21758 . : '\(.\)' 2>/dev/null ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021759echo X"$ac_dest" |
21760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21762 /^X\(\/\/\)$/{ s//\1/; q; }
21763 /^X\(\/\).*/{ s//\1/; q; }
21764 s/.*/./; q'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021765 { if $as_mkdir_p; then
21766 mkdir -p "$ac_dir"
21767 else
21768 as_dir="$ac_dir"
21769 as_dirs=
21770 while test ! -d "$as_dir"; do
21771 as_dirs="$as_dir $as_dirs"
21772 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21773$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21774 X"$as_dir" : 'X\(//\)[^/]' \| \
21775 X"$as_dir" : 'X\(//\)$' \| \
21776 X"$as_dir" : 'X\(/\)' \| \
21777 . : '\(.\)' 2>/dev/null ||
21778echo X"$as_dir" |
21779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21780 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21781 /^X\(\/\/\)$/{ s//\1/; q; }
21782 /^X\(\/\).*/{ s//\1/; q; }
21783 s/.*/./; q'`
21784 done
21785 test ! -n "$as_dirs" || mkdir $as_dirs
21786 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21787echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21788 { (exit 1); exit 1; }; }; }
21789
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021790 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000021791
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021792if test "$ac_dir" != .; then
21793 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21794 # A "../" for each directory in $ac_dir_suffix.
21795 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021796else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021797 ac_dir_suffix= ac_top_builddir=
21798fi
21799
21800case $srcdir in
21801 .) # No --srcdir option. We are building in place.
21802 ac_srcdir=.
21803 if test -z "$ac_top_builddir"; then
21804 ac_top_srcdir=.
21805 else
21806 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21807 fi ;;
21808 [\\/]* | ?:[\\/]* ) # Absolute path.
21809 ac_srcdir=$srcdir$ac_dir_suffix;
21810 ac_top_srcdir=$srcdir ;;
21811 *) # Relative path.
21812 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21813 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21814esac
Alexandre Julliard875927f2004-01-02 01:55:29 +000021815
21816# Do not use `cd foo && pwd` to compute absolute paths, because
21817# the directories may not exist.
21818case `pwd` in
21819.) ac_abs_builddir="$ac_dir";;
21820*)
21821 case "$ac_dir" in
21822 .) ac_abs_builddir=`pwd`;;
21823 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21824 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21825 esac;;
21826esac
21827case $ac_abs_builddir in
21828.) ac_abs_top_builddir=${ac_top_builddir}.;;
21829*)
21830 case ${ac_top_builddir}. in
21831 .) ac_abs_top_builddir=$ac_abs_builddir;;
21832 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21833 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21834 esac;;
21835esac
21836case $ac_abs_builddir in
21837.) ac_abs_srcdir=$ac_srcdir;;
21838*)
21839 case $ac_srcdir in
21840 .) ac_abs_srcdir=$ac_abs_builddir;;
21841 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21842 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21843 esac;;
21844esac
21845case $ac_abs_builddir in
21846.) ac_abs_top_srcdir=$ac_top_srcdir;;
21847*)
21848 case $ac_top_srcdir in
21849 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21850 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21851 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21852 esac;;
21853esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021854
21855
21856 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21857echo "$as_me: executing $ac_dest commands" >&6;}
21858 case $ac_dest in
21859 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21860echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21861 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21862echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21863 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21864echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21865 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21866echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21867 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21868echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21869 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21870echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021871 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21872echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21873 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21874echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021875 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21876echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021877 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21878echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21879 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21880echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021881 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21882echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21883 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21884echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000021885 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21886echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000021887 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21888echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000021889 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21890echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021891 esac
21892done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021893_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021894
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021895cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000021896
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021897{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021898_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021899chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021900ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021901
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021902
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021903# configure is writing to config.log, and then calls config.status.
21904# config.status does its own redirection, appending to config.log.
21905# Unfortunately, on DOS this fails, as config.log is still kept open
21906# by configure, so config.status won't be able to write to it; its
21907# output is simply discarded. So we exec the FD to /dev/null,
21908# effectively closing config.log, so it can be properly (re)opened and
21909# appended to by config.status. When coming back to configure, we
21910# need to make the FD available again.
21911if test "$no_create" != yes; then
21912 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021913 ac_config_status_args=
21914 test "$silent" = yes &&
21915 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021916 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021917 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021918 exec 5>>config.log
21919 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21920 # would make configure fail if this is the last instruction.
21921 $ac_cs_success || { (exit 1); exit 1; }
21922fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021923
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021924
Ove Kaaven8b4431f1999-01-23 13:59:11 +000021925if test "$have_x" = "no"
21926then
21927 echo
21928 echo "*** Warning: X development files not found. Wine will be built without"
21929 echo "*** X support, which currently does not work, and would probably not be"
21930 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000021931 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000021932fi
21933
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000021934if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000021935then
21936 echo
21937 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000021938 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21939fi
21940
Ian Pilcher563598d2001-05-16 20:56:05 +000021941if test "$wine_cv_msg_freetype" = "yes"
21942then
21943 echo
21944 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021945 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21946 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21947 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000021948fi
21949
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021950echo
Vincent BĂ©ron5606d102004-08-19 00:03:45 +000021951echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021952echo
21953