blob: e3083ff2f0116a705cfbc70b7e6fea993c1462ce [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 Julliard62a48072004-07-17 00:52:37 +00003# Generated by GNU Autoconf 2.59 for Wine 20040716.
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 Julliard62a48072004-07-17 00:52:37 +0000272PACKAGE_VERSION='20040716'
273PACKAGE_STRING='Wine 20040716'
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
Mike McCormackc068f672004-03-16 03:11:39 +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 LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS 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 Julliard62a48072004-07-17 00:52:37 +0000791\`configure' configures Wine 20040716 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 Julliard62a48072004-07-17 00:52:37 +0000856 short | recursive ) echo "Configuration of Wine 20040716:";;
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 Julliard62a48072004-07-17 00:52:37 +0000985Wine configure 20040716
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 Julliard62a48072004-07-17 00:52:37 +0000999It was created by Wine $as_me 20040716, 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
James Juranffe6b761999-06-12 08:21:57 +00005393# Extract the first word of "ldconfig", so it can be a program name with args.
5394set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005395echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5397if test "${ac_cv_path_LDCONFIG+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00005399else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005400 case $LDCONFIG in
5401 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00005402 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5403 ;;
5404 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00005406for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005407do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5415 fi
5416done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005417done
5418
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005419 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00005420 ;;
5421esac
5422fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005423LDCONFIG=$ac_cv_path_LDCONFIG
5424
James Juranffe6b761999-06-12 08:21:57 +00005425if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005426 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005427echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00005428else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005429 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005430echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00005431fi
5432
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005433# Find a good install program. We prefer a C program (faster),
5434# so one script is as good as another. But avoid the broken or
5435# incompatible versions:
5436# SysV /etc/install, /usr/sbin/install
5437# SunOS /usr/etc/install
5438# IRIX /sbin/install
5439# AIX /bin/install
5440# AmigaOS /C/install, which installs bootblocks on floppy discs
5441# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5442# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5443# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00005444# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005445# ./install, which can be erroneously created by make from ./install.sh.
5446echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5447echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5448if test -z "$INSTALL"; then
5449if test "${ac_cv_path_install+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 # Account for people who put trailing slashes in PATH elements.
5458case $as_dir/ in
5459 ./ | .// | /cC/* | \
5460 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005461 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005462 /usr/ucb/* ) ;;
5463 *)
5464 # OSF1 and SCO ODT 3.0 have their own names for install.
5465 # Don't use installbsd from OSF since it installs stuff as root
5466 # by default.
5467 for ac_prog in ginstall scoinst install; do
5468 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliard875927f2004-01-02 01:55:29 +00005469 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5470 if test $ac_prog = install &&
5471 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5472 # AIX install. It has an incompatible calling convention.
5473 :
5474 elif test $ac_prog = install &&
5475 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5476 # program-specific install script used by HP pwplus--don't use.
5477 :
5478 else
5479 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5480 break 3
5481 fi
5482 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005483 done
5484 done
5485 ;;
5486esac
5487done
5488
5489
5490fi
5491 if test "${ac_cv_path_install+set}" = set; then
5492 INSTALL=$ac_cv_path_install
5493 else
5494 # As a last resort, use the slow shell script. We don't cache a
5495 # path for INSTALL within a source directory, because that will
5496 # break other packages using the cache if that directory is
5497 # removed, or if the path is relative.
5498 INSTALL=$ac_install_sh
5499 fi
5500fi
5501echo "$as_me:$LINENO: result: $INSTALL" >&5
5502echo "${ECHO_T}$INSTALL" >&6
5503
5504# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5505# It thinks the first close brace ends the variable substitution.
5506test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5507
5508test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5509
5510test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5511
5512case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00005513 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005514 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5515esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005516
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005517for ac_prog in lclint lint
5518do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005519 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005520set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005521echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5523if test "${ac_cv_prog_LINT+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005525else
5526 if test -n "$LINT"; then
5527 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5528else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530for as_dir in $PATH
5531do
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536 ac_cv_prog_LINT="$ac_prog"
5537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5539 fi
5540done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005541done
5542
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005543fi
5544fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005545LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005546if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005547 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005548echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005549else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005550 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005551echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005552fi
5553
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005554 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005555done
5556
5557if test "$LINT" = "lint"
5558then
5559 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5560 fi
5561
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005562
5563
Vincent Béron1d8cb6e2002-11-23 01:20:02 +00005564for ac_prog in docbook2html db2html
5565do
5566 # Extract the first word of "$ac_prog", so it can be a program name with args.
5567set dummy $ac_prog; ac_word=$2
5568echo "$as_me:$LINENO: checking for $ac_word" >&5
5569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5570if test "${ac_cv_prog_DB2HTML+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572else
5573 if test -n "$DB2HTML"; then
5574 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5575else
5576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577for as_dir in $PATH
5578do
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583 ac_cv_prog_DB2HTML="$ac_prog"
5584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5586 fi
5587done
5588done
5589
5590fi
5591fi
5592DB2HTML=$ac_cv_prog_DB2HTML
5593if test -n "$DB2HTML"; then
5594 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5595echo "${ECHO_T}$DB2HTML" >&6
5596else
5597 echo "$as_me:$LINENO: result: no" >&5
5598echo "${ECHO_T}no" >&6
5599fi
5600
5601 test -n "$DB2HTML" && break
5602done
5603test -n "$DB2HTML" || DB2HTML="false"
5604
5605
5606
5607for ac_prog in docbook2pdf db2pdf
5608do
5609 # Extract the first word of "$ac_prog", so it can be a program name with args.
5610set dummy $ac_prog; ac_word=$2
5611echo "$as_me:$LINENO: checking for $ac_word" >&5
5612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5613if test "${ac_cv_prog_DB2PDF+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615else
5616 if test -n "$DB2PDF"; then
5617 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5618else
5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH
5621do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_DB2PDF="$ac_prog"
5627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5629 fi
5630done
5631done
5632
5633fi
5634fi
5635DB2PDF=$ac_cv_prog_DB2PDF
5636if test -n "$DB2PDF"; then
5637 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5638echo "${ECHO_T}$DB2PDF" >&6
5639else
5640 echo "$as_me:$LINENO: result: no" >&5
5641echo "${ECHO_T}no" >&6
5642fi
5643
5644 test -n "$DB2PDF" && break
5645done
5646test -n "$DB2PDF" || DB2PDF="false"
5647
5648
5649
5650for ac_prog in docbook2ps db2ps
5651do
5652 # Extract the first word of "$ac_prog", so it can be a program name with args.
5653set dummy $ac_prog; ac_word=$2
5654echo "$as_me:$LINENO: checking for $ac_word" >&5
5655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5656if test "${ac_cv_prog_DB2PS+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658else
5659 if test -n "$DB2PS"; then
5660 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5661else
5662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663for as_dir in $PATH
5664do
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_prog_DB2PS="$ac_prog"
5670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5672 fi
5673done
5674done
5675
5676fi
5677fi
5678DB2PS=$ac_cv_prog_DB2PS
5679if test -n "$DB2PS"; then
5680 echo "$as_me:$LINENO: result: $DB2PS" >&5
5681echo "${ECHO_T}$DB2PS" >&6
5682else
5683 echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6
5685fi
5686
5687 test -n "$DB2PS" && break
5688done
5689test -n "$DB2PS" || DB2PS="false"
5690
5691
5692
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005693for ac_prog in docbook2txt db2txt
5694do
5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
5696set dummy $ac_prog; ac_word=$2
5697echo "$as_me:$LINENO: checking for $ac_word" >&5
5698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5699if test "${ac_cv_prog_DB2TXT+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701else
5702 if test -n "$DB2TXT"; then
5703 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_DB2TXT="$ac_prog"
5713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716done
5717done
5718
5719fi
5720fi
5721DB2TXT=$ac_cv_prog_DB2TXT
5722if test -n "$DB2TXT"; then
5723 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5724echo "${ECHO_T}$DB2TXT" >&6
5725else
5726 echo "$as_me:$LINENO: result: no" >&5
5727echo "${ECHO_T}no" >&6
5728fi
5729
5730 test -n "$DB2TXT" && break
5731done
5732test -n "$DB2TXT" || DB2TXT="false"
5733
5734
5735
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005736
5737
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005738echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005739echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5740if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005742else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005743 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005744LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005745cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005746/* confdefs.h. */
5747_ACEOF
5748cat confdefs.h >>conftest.$ac_ext
5749cat >>conftest.$ac_ext <<_ACEOF
5750/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005751
Alexandre Julliard59730ae1996-03-24 16:20:51 +00005752/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005753#ifdef __cplusplus
5754extern "C"
5755#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005756/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005757 builtin and then its argument prototype would still apply. */
5758char i386_set_ldt ();
5759int
5760main ()
5761{
5762i386_set_ldt ();
5763 ;
5764 return 0;
5765}
5766_ACEOF
5767rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005769 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005770 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005775 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005784 (eval $ac_try) 2>&5
5785 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005787 (exit $ac_status); }; }; then
5788 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005789else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005790 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005791sed 's/^/| /' conftest.$ac_ext >&5
5792
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005793ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005794fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005795rm -f conftest.err conftest.$ac_objext \
5796 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005797LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005798fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005799echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005800echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5801if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005802 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005803#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005804_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005805
5806 LIBS="-li386 $LIBS"
5807
Alexandre Julliard02e90081998-01-04 17:49:09 +00005808fi
5809
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005810
5811echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005812echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5813if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005815else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005816 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005817LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005818cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005819/* confdefs.h. */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005824
Todd Vierlingecc76691998-12-15 17:49:02 +00005825/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005826#ifdef __cplusplus
5827extern "C"
5828#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00005829/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005830 builtin and then its argument prototype would still apply. */
5831char _oss_ioctl ();
5832int
5833main ()
5834{
5835_oss_ioctl ();
5836 ;
5837 return 0;
5838}
5839_ACEOF
5840rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005842 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005843 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005848 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 (eval $ac_try) 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; } &&
5855 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005857 (eval $ac_try) 2>&5
5858 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005860 (exit $ac_status); }; }; then
5861 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005862else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005863 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005864sed 's/^/| /' conftest.$ac_ext >&5
5865
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005866ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005867fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005868rm -f conftest.err conftest.$ac_objext \
5869 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005870LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005871fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005872echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005873echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5874if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005875 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005876#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005877_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005878
5879 LIBS="-lossaudio $LIBS"
5880
Todd Vierlingecc76691998-12-15 17:49:02 +00005881fi
5882
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005883
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005884for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00005885do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005886as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005887echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005888echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5889if eval "test \"\${$as_ac_var+set}\" = set"; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005891else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005892 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005898/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5900#define $ac_func innocuous_$ac_func
5901
Patrik Stridvallea584721998-11-01 16:22:07 +00005902/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005903 which can conflict with char $ac_func (); below.
5904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5905 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005906
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005907#ifdef __STDC__
5908# include <limits.h>
5909#else
5910# include <assert.h>
5911#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00005912
5913#undef $ac_func
5914
Patrik Stridvallea584721998-11-01 16:22:07 +00005915/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005916#ifdef __cplusplus
5917extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005918{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005919#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005920/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005921 builtin and then its argument prototype would still apply. */
5922char $ac_func ();
Patrik Stridvallea584721998-11-01 16:22:07 +00005923/* The GNU C library defines this for functions which it implements
5924 to always fail with ENOSYS. Some functions are actually named
5925 something starting with __ and the normal name is an alias. */
5926#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5927choke me
5928#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005929char (*f) () = $ac_func;
5930#endif
5931#ifdef __cplusplus
5932}
Patrik Stridvallea584721998-11-01 16:22:07 +00005933#endif
5934
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005935int
5936main ()
5937{
5938return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005939 ;
5940 return 0;
5941}
5942_ACEOF
5943rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005945 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005946 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005947 grep -v '^ *+' conftest.er1 >conftest.err
5948 rm -f conftest.er1
5949 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005951 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 (eval $ac_try) 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; } &&
5958 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005960 (eval $ac_try) 2>&5
5961 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005963 (exit $ac_status); }; }; then
5964 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005965else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005966 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005967sed 's/^/| /' conftest.$ac_ext >&5
5968
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005969eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005970fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005971rm -f conftest.err conftest.$ac_objext \
5972 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005973fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005975echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5976if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005977 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005978#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005979_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005980
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005981else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005982
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005983echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005984echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5985if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005987else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005988 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005989LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005990cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005991/* confdefs.h. */
5992_ACEOF
5993cat confdefs.h >>conftest.$ac_ext
5994cat >>conftest.$ac_ext <<_ACEOF
5995/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005996
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005997/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005998#ifdef __cplusplus
5999extern "C"
6000#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006001/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006002 builtin and then its argument prototype would still apply. */
6003char iswalnum ();
6004int
6005main ()
6006{
6007iswalnum ();
6008 ;
6009 return 0;
6010}
6011_ACEOF
6012rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006014 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006015 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006020 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006029 (eval $ac_try) 2>&5
6030 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006032 (exit $ac_status); }; }; then
6033 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006034else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006035 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006036sed 's/^/| /' conftest.$ac_ext >&5
6037
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006038ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006039fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006040rm -f conftest.err conftest.$ac_objext \
6041 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006042LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006043fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006044echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006045echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6046if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006047 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006048#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006049_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006050
6051 LIBS="-lw $LIBS"
6052
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006053fi
6054
6055fi
6056done
6057
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006058
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006059for ac_func in gethostbyname
6060do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006062echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6064if eval "test \"\${$as_ac_var+set}\" = set"; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006066else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006067 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006068/* confdefs.h. */
6069_ACEOF
6070cat confdefs.h >>conftest.$ac_ext
6071cat >>conftest.$ac_ext <<_ACEOF
6072/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6075#define $ac_func innocuous_$ac_func
6076
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006077/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006078 which can conflict with char $ac_func (); below.
6079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006081
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006082#ifdef __STDC__
6083# include <limits.h>
6084#else
6085# include <assert.h>
6086#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006087
6088#undef $ac_func
6089
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006090/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006091#ifdef __cplusplus
6092extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006093{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006094#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006095/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006096 builtin and then its argument prototype would still apply. */
6097char $ac_func ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006098/* The GNU C library defines this for functions which it implements
6099 to always fail with ENOSYS. Some functions are actually named
6100 something starting with __ and the normal name is an alias. */
6101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6102choke me
6103#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006104char (*f) () = $ac_func;
6105#endif
6106#ifdef __cplusplus
6107}
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006108#endif
6109
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006110int
6111main ()
6112{
6113return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006114 ;
6115 return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006120 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006121 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006126 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006135 (eval $ac_try) 2>&5
6136 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006138 (exit $ac_status); }; }; then
6139 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00006140else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006141 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006142sed 's/^/| /' conftest.$ac_ext >&5
6143
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006144eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00006145fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006146rm -f conftest.err conftest.$ac_objext \
6147 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00006148fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006150echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6151if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006152 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006154_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00006155
Patrik Stridvallea584721998-11-01 16:22:07 +00006156else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006157
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006158echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006159echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6160if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00006162else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006163 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006164LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006165cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006166/* confdefs.h. */
6167_ACEOF
6168cat confdefs.h >>conftest.$ac_ext
6169cat >>conftest.$ac_ext <<_ACEOF
6170/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006171
Patrik Stridvallea584721998-11-01 16:22:07 +00006172/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006173#ifdef __cplusplus
6174extern "C"
6175#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00006176/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006177 builtin and then its argument prototype would still apply. */
6178char gethostbyname ();
6179int
6180main ()
6181{
6182gethostbyname ();
6183 ;
6184 return 0;
6185}
6186_ACEOF
6187rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006189 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006190 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006195 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; } &&
6202 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006204 (eval $ac_try) 2>&5
6205 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006207 (exit $ac_status); }; }; then
6208 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00006209else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006210 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006211sed 's/^/| /' conftest.$ac_ext >&5
6212
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006213ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00006214fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006215rm -f conftest.err conftest.$ac_objext \
6216 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006217LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00006218fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006219echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006220echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6221if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006222 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006223#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006224_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00006225
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006226 LIBS="-lnsl $LIBS"
6227
Ron Recorde977d6c1999-09-05 12:32:05 +00006228fi
6229
Patrik Stridvallea584721998-11-01 16:22:07 +00006230fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00006231done
6232
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006233
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006234for ac_func in connect
6235do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006237echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6239if eval "test \"\${$as_ac_var+set}\" = set"; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006241else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006242 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006243/* confdefs.h. */
6244_ACEOF
6245cat confdefs.h >>conftest.$ac_ext
6246cat >>conftest.$ac_ext <<_ACEOF
6247/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6250#define $ac_func innocuous_$ac_func
6251
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006252/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006253 which can conflict with char $ac_func (); below.
6254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6255 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006256
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006257#ifdef __STDC__
6258# include <limits.h>
6259#else
6260# include <assert.h>
6261#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006262
6263#undef $ac_func
6264
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006265/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006266#ifdef __cplusplus
6267extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006268{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006269#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006270/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006271 builtin and then its argument prototype would still apply. */
6272char $ac_func ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006273/* The GNU C library defines this for functions which it implements
6274 to always fail with ENOSYS. Some functions are actually named
6275 something starting with __ and the normal name is an alias. */
6276#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6277choke me
6278#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006279char (*f) () = $ac_func;
6280#endif
6281#ifdef __cplusplus
6282}
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006283#endif
6284
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006285int
6286main ()
6287{
6288return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006289 ;
6290 return 0;
6291}
6292_ACEOF
6293rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006295 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006296 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006297 grep -v '^ *+' conftest.er1 >conftest.err
6298 rm -f conftest.er1
6299 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006301 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; } &&
6308 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006310 (eval $ac_try) 2>&5
6311 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006313 (exit $ac_status); }; }; then
6314 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006315else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006316 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006317sed 's/^/| /' conftest.$ac_ext >&5
6318
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006319eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006320fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006321rm -f conftest.err conftest.$ac_objext \
6322 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006323fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006325echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6326if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006327 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006328#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006329_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006330
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006331else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006332
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006333echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006334echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6335if test "${ac_cv_lib_socket_connect+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006337else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006338 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006339LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006340cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006341/* confdefs.h. */
6342_ACEOF
6343cat confdefs.h >>conftest.$ac_ext
6344cat >>conftest.$ac_ext <<_ACEOF
6345/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006346
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006347/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006348#ifdef __cplusplus
6349extern "C"
6350#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006351/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006352 builtin and then its argument prototype would still apply. */
6353char connect ();
6354int
6355main ()
6356{
6357connect ();
6358 ;
6359 return 0;
6360}
6361_ACEOF
6362rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006364 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006365 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006366 grep -v '^ *+' conftest.er1 >conftest.err
6367 rm -f conftest.er1
6368 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006370 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 (eval $ac_try) 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; } &&
6377 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006379 (eval $ac_try) 2>&5
6380 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006382 (exit $ac_status); }; }; then
6383 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006384else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006385 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006386sed 's/^/| /' conftest.$ac_ext >&5
6387
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006388ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006389fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006390rm -f conftest.err conftest.$ac_objext \
6391 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006392LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006393fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006394echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006395echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6396if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006397 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006398#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006399_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006400
6401 LIBS="-lsocket $LIBS"
6402
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006403fi
6404
6405fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00006406done
6407
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006408
Alexandre Julliardc5552742002-04-03 20:24:44 +00006409for ac_func in inet_aton
6410do
6411as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006412echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006413echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6414if eval "test \"\${$as_ac_var+set}\" = set"; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416else
6417 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006418/* confdefs.h. */
6419_ACEOF
6420cat confdefs.h >>conftest.$ac_ext
6421cat >>conftest.$ac_ext <<_ACEOF
6422/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006423/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6425#define $ac_func innocuous_$ac_func
6426
Alexandre Julliardc5552742002-04-03 20:24:44 +00006427/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006428 which can conflict with char $ac_func (); below.
6429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6430 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006431
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006432#ifdef __STDC__
6433# include <limits.h>
6434#else
6435# include <assert.h>
6436#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006437
6438#undef $ac_func
6439
Alexandre Julliardc5552742002-04-03 20:24:44 +00006440/* Override any gcc2 internal prototype to avoid an error. */
6441#ifdef __cplusplus
6442extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006443{
Alexandre Julliardc5552742002-04-03 20:24:44 +00006444#endif
6445/* We use char because int might match the return type of a gcc2
6446 builtin and then its argument prototype would still apply. */
6447char $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00006448/* The GNU C library defines this for functions which it implements
6449 to always fail with ENOSYS. Some functions are actually named
6450 something starting with __ and the normal name is an alias. */
6451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6452choke me
6453#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006454char (*f) () = $ac_func;
6455#endif
6456#ifdef __cplusplus
6457}
Alexandre Julliardc5552742002-04-03 20:24:44 +00006458#endif
6459
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006460int
6461main ()
6462{
6463return f != $ac_func;
Alexandre Julliardc5552742002-04-03 20:24:44 +00006464 ;
6465 return 0;
6466}
6467_ACEOF
6468rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006470 (eval $ac_link) 2>conftest.er1
Alexandre Julliardc5552742002-04-03 20:24:44 +00006471 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006472 grep -v '^ *+' conftest.er1 >conftest.err
6473 rm -f conftest.er1
6474 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006476 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 (eval $ac_try) 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; } &&
6483 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006485 (eval $ac_try) 2>&5
6486 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006488 (exit $ac_status); }; }; then
6489 eval "$as_ac_var=yes"
6490else
6491 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006492sed 's/^/| /' conftest.$ac_ext >&5
6493
Alexandre Julliardc5552742002-04-03 20:24:44 +00006494eval "$as_ac_var=no"
6495fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006496rm -f conftest.err conftest.$ac_objext \
6497 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc5552742002-04-03 20:24:44 +00006498fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006500echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6501if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006502 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00006503#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006504_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00006505
6506else
6507
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006508echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006509echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6510if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512else
6513 ac_check_lib_save_LIBS=$LIBS
6514LIBS="-lresolv $LIBS"
6515cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006516/* confdefs.h. */
6517_ACEOF
6518cat confdefs.h >>conftest.$ac_ext
6519cat >>conftest.$ac_ext <<_ACEOF
6520/* end confdefs.h. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00006521
6522/* Override any gcc2 internal prototype to avoid an error. */
6523#ifdef __cplusplus
6524extern "C"
6525#endif
6526/* We use char because int might match the return type of a gcc2
6527 builtin and then its argument prototype would still apply. */
6528char inet_aton ();
6529int
6530main ()
6531{
6532inet_aton ();
6533 ;
6534 return 0;
6535}
6536_ACEOF
6537rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006539 (eval $ac_link) 2>conftest.er1
Francois Gouget3b943bc2002-04-01 21:05:15 +00006540 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006545 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 (eval $ac_try) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; } &&
6552 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006554 (eval $ac_try) 2>&5
6555 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006557 (exit $ac_status); }; }; then
6558 ac_cv_lib_resolv_inet_aton=yes
6559else
6560 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006561sed 's/^/| /' conftest.$ac_ext >&5
6562
Francois Gouget3b943bc2002-04-01 21:05:15 +00006563ac_cv_lib_resolv_inet_aton=no
6564fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006565rm -f conftest.err conftest.$ac_objext \
6566 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3b943bc2002-04-01 21:05:15 +00006567LIBS=$ac_check_lib_save_LIBS
6568fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006569echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006570echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6571if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006572 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00006573#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006574_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00006575
6576 LIBS="-lresolv $LIBS"
6577
6578fi
6579
Alexandre Julliardc5552742002-04-03 20:24:44 +00006580fi
6581done
6582
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006583
6584echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006585echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6586if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006588else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006589 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006590LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006591cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006592/* confdefs.h. */
6593_ACEOF
6594cat confdefs.h >>conftest.$ac_ext
6595cat >>conftest.$ac_ext <<_ACEOF
6596/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006597
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006598/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006599#ifdef __cplusplus
6600extern "C"
6601#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006602/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006603 builtin and then its argument prototype would still apply. */
6604char _xpg4_setrunelocale ();
6605int
6606main ()
6607{
6608_xpg4_setrunelocale ();
6609 ;
6610 return 0;
6611}
6612_ACEOF
6613rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006615 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006616 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006617 grep -v '^ *+' conftest.er1 >conftest.err
6618 rm -f conftest.er1
6619 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006621 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 (eval $ac_try) 2>&5
6625 ac_status=$?
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; } &&
6628 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006630 (eval $ac_try) 2>&5
6631 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006633 (exit $ac_status); }; }; then
6634 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006635else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006636 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006637sed 's/^/| /' conftest.$ac_ext >&5
6638
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006639ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006640fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006641rm -f conftest.err conftest.$ac_objext \
6642 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006643LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006644fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006645echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006646echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6647if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006648 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006649#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006650_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006651
6652 LIBS="-lxpg4 $LIBS"
6653
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006654fi
6655
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006656
6657echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6658echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6659if test "${ac_cv_lib_poll_poll+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661else
6662 ac_check_lib_save_LIBS=$LIBS
6663LIBS="-lpoll $LIBS"
6664cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006665/* confdefs.h. */
6666_ACEOF
6667cat confdefs.h >>conftest.$ac_ext
6668cat >>conftest.$ac_ext <<_ACEOF
6669/* end confdefs.h. */
6670
6671/* Override any gcc2 internal prototype to avoid an error. */
6672#ifdef __cplusplus
6673extern "C"
6674#endif
6675/* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6677char poll ();
6678int
6679main ()
6680{
6681poll ();
6682 ;
6683 return 0;
6684}
6685_ACEOF
6686rm -f conftest.$ac_objext conftest$ac_exeext
6687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006688 (eval $ac_link) 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006689 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006690 grep -v '^ *+' conftest.er1 >conftest.err
6691 rm -f conftest.er1
6692 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; } &&
6701 { ac_try='test -s conftest$ac_exeext'
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 ac_cv_lib_poll_poll=yes
6708else
6709 echo "$as_me: failed program was:" >&5
6710sed 's/^/| /' conftest.$ac_ext >&5
6711
6712ac_cv_lib_poll_poll=no
6713fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006714rm -f conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006716LIBS=$ac_check_lib_save_LIBS
6717fi
6718echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6719echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6720if test $ac_cv_lib_poll_poll = yes; then
6721 cat >>confdefs.h <<_ACEOF
6722#define HAVE_LIBPOLL 1
6723_ACEOF
6724
6725 LIBS="-lpoll $LIBS"
6726
6727fi
6728
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00006729
6730echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6731echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6732if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6734else
6735 ac_check_lib_save_LIBS=$LIBS
6736LIBS="-lresolv $LIBS"
6737cat >conftest.$ac_ext <<_ACEOF
6738/* confdefs.h. */
6739_ACEOF
6740cat confdefs.h >>conftest.$ac_ext
6741cat >>conftest.$ac_ext <<_ACEOF
6742/* end confdefs.h. */
6743
6744/* Override any gcc2 internal prototype to avoid an error. */
6745#ifdef __cplusplus
6746extern "C"
6747#endif
6748/* We use char because int might match the return type of a gcc2
6749 builtin and then its argument prototype would still apply. */
6750char res_9_init ();
6751int
6752main ()
6753{
6754res_9_init ();
6755 ;
6756 return 0;
6757}
6758_ACEOF
6759rm -f conftest.$ac_objext conftest$ac_exeext
6760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6761 (eval $ac_link) 2>conftest.er1
6762 ac_status=$?
6763 grep -v '^ *+' conftest.er1 >conftest.err
6764 rm -f conftest.er1
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } &&
6768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 (eval $ac_try) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; } &&
6774 { ac_try='test -s conftest$ac_exeext'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; }; then
6780 ac_cv_lib_resolv_res_9_init=yes
6781else
6782 echo "$as_me: failed program was:" >&5
6783sed 's/^/| /' conftest.$ac_ext >&5
6784
6785ac_cv_lib_resolv_res_9_init=no
6786fi
6787rm -f conftest.err conftest.$ac_objext \
6788 conftest$ac_exeext conftest.$ac_ext
6789LIBS=$ac_check_lib_save_LIBS
6790fi
6791echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6792echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6793if test $ac_cv_lib_resolv_res_9_init = yes; then
6794 cat >>confdefs.h <<_ACEOF
6795#define HAVE_LIBRESOLV 1
6796_ACEOF
6797
6798 LIBS="-lresolv $LIBS"
6799
6800fi
6801
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006802echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6803echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6804if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006805 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006806else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006807 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006808LIBS="-lpthread $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006809cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006810/* confdefs.h. */
6811_ACEOF
6812cat confdefs.h >>conftest.$ac_ext
6813cat >>conftest.$ac_ext <<_ACEOF
6814/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006815
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006816/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006817#ifdef __cplusplus
6818extern "C"
6819#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006820/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006821 builtin and then its argument prototype would still apply. */
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006822char pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006823int
6824main ()
6825{
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006826pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006827 ;
6828 return 0;
6829}
6830_ACEOF
6831rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006833 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006834 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006839 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 (eval $ac_try) 2>&5
6843 ac_status=$?
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; } &&
6846 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006848 (eval $ac_try) 2>&5
6849 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006851 (exit $ac_status); }; }; then
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006852 ac_cv_lib_pthread_pthread_create=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006853else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006854 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006855sed 's/^/| /' conftest.$ac_ext >&5
6856
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006857ac_cv_lib_pthread_pthread_create=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006858fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006859rm -f conftest.err conftest.$ac_objext \
6860 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006861LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006862fi
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006863echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6864echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6865if test $ac_cv_lib_pthread_pthread_create = yes; then
6866 LIBPTHREAD="-lpthread"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006867
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006868fi
6869
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006870
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00006871JPEGLIB=""
Alexandre Julliard562089b2001-12-31 22:28:35 +00006872
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006873echo "$as_me:$LINENO: checking for egrep" >&5
6874echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6875if test "${ac_cv_prog_egrep+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877else
6878 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6879 then ac_cv_prog_egrep='grep -E'
6880 else ac_cv_prog_egrep='egrep'
6881 fi
6882fi
6883echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6884echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6885 EGREP=$ac_cv_prog_egrep
6886
6887
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006888echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6889echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6890if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006891 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00006892else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006893 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006894/* confdefs.h. */
6895_ACEOF
6896cat confdefs.h >>conftest.$ac_ext
6897cat >>conftest.$ac_ext <<_ACEOF
6898/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006899#include <stdlib.h>
6900#include <stdarg.h>
6901#include <string.h>
6902#include <float.h>
6903
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006904int
6905main ()
6906{
6907
6908 ;
6909 return 0;
6910}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006911_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006912rm -f conftest.$ac_objext
6913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006914 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006915 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006916 grep -v '^ *+' conftest.er1 >conftest.err
6917 rm -f conftest.er1
6918 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006920 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 (eval $ac_try) 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; } &&
6927 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 (eval $ac_try) 2>&5
6930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006933 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006934else
6935 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006936sed 's/^/| /' conftest.$ac_ext >&5
6937
6938ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00006939fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006941
6942if test $ac_cv_header_stdc = yes; then
6943 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6944 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006945/* confdefs.h. */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006950#include <string.h>
6951
6952_ACEOF
6953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006954 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006955 :
6956else
6957 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00006958fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006959rm -f conftest*
6960
6961fi
6962
6963if test $ac_cv_header_stdc = yes; then
6964 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6965 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006966/* confdefs.h. */
6967_ACEOF
6968cat confdefs.h >>conftest.$ac_ext
6969cat >>conftest.$ac_ext <<_ACEOF
6970/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006971#include <stdlib.h>
6972
6973_ACEOF
6974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006975 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006976 :
6977else
6978 ac_cv_header_stdc=no
6979fi
6980rm -f conftest*
6981
6982fi
6983
6984if test $ac_cv_header_stdc = yes; then
6985 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6986 if test "$cross_compiling" = yes; then
6987 :
6988else
6989 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006990/* confdefs.h. */
6991_ACEOF
6992cat confdefs.h >>conftest.$ac_ext
6993cat >>conftest.$ac_ext <<_ACEOF
6994/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006995#include <ctype.h>
6996#if ((' ' & 0x0FF) == 0x020)
6997# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6998# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6999#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007000# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007001 (('a' <= (c) && (c) <= 'i') \
7002 || ('j' <= (c) && (c) <= 'r') \
7003 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007004# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7005#endif
7006
7007#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7008int
7009main ()
7010{
7011 int i;
7012 for (i = 0; i < 256; i++)
7013 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00007014 || toupper (i) != TOUPPER (i))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007015 exit(2);
7016 exit (0);
7017}
7018_ACEOF
7019rm -f conftest$ac_exeext
7020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7021 (eval $ac_link) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 :
7031else
7032 echo "$as_me: program exited with status $ac_status" >&5
7033echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007034sed 's/^/| /' conftest.$ac_ext >&5
7035
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007036( exit $ac_status )
7037ac_cv_header_stdc=no
7038fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +00007039rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007040fi
7041fi
7042fi
7043echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7044echo "${ECHO_T}$ac_cv_header_stdc" >&6
7045if test $ac_cv_header_stdc = yes; then
7046
7047cat >>confdefs.h <<\_ACEOF
7048#define STDC_HEADERS 1
7049_ACEOF
7050
7051fi
7052
7053# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007064 inttypes.h stdint.h unistd.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007065do
7066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7067echo "$as_me:$LINENO: checking for $ac_header" >&5
7068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7069if eval "test \"\${$as_ac_Header+set}\" = set"; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007073/* confdefs.h. */
7074_ACEOF
7075cat confdefs.h >>conftest.$ac_ext
7076cat >>conftest.$ac_ext <<_ACEOF
7077/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007078$ac_includes_default
7079
7080#include <$ac_header>
7081_ACEOF
7082rm -f conftest.$ac_objext
7083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007084 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007085 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007086 grep -v '^ *+' conftest.er1 >conftest.err
7087 rm -f conftest.er1
7088 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; } &&
7097 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 (eval $ac_try) 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 eval "$as_ac_Header=yes"
7104else
7105 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007106sed 's/^/| /' conftest.$ac_ext >&5
7107
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007108eval "$as_ac_Header=no"
7109fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007111fi
7112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7114if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007115 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007117_ACEOF
7118
7119fi
7120
7121done
7122
7123
7124
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007125for ac_header in jpeglib.h
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007126do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007128if eval "test \"\${$as_ac_Header+set}\" = set"; then
7129 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7131if eval "test \"\${$as_ac_Header+set}\" = set"; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007133fi
7134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007136else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007137 # Is the header compilable?
7138echo "$as_me:$LINENO: checking $ac_header usability" >&5
7139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7140cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007141/* confdefs.h. */
7142_ACEOF
7143cat confdefs.h >>conftest.$ac_ext
7144cat >>conftest.$ac_ext <<_ACEOF
7145/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007146$ac_includes_default
7147#include <$ac_header>
7148_ACEOF
7149rm -f conftest.$ac_objext
7150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007151 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007152 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 (eval $ac_try) 2>&5
7161 ac_status=$?
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; } &&
7164 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; }; then
7170 ac_header_compiler=yes
7171else
7172 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007173sed 's/^/| /' conftest.$ac_ext >&5
7174
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007175ac_header_compiler=no
7176fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007178echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7179echo "${ECHO_T}$ac_header_compiler" >&6
7180
7181# Is the header present?
7182echo "$as_me:$LINENO: checking $ac_header presence" >&5
7183echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7184cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007185/* confdefs.h. */
7186_ACEOF
7187cat confdefs.h >>conftest.$ac_ext
7188cat >>conftest.$ac_ext <<_ACEOF
7189/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007190#include <$ac_header>
7191_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7194 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007195 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007196 rm -f conftest.er1
7197 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007199 (exit $ac_status); } >/dev/null; then
7200 if test -s conftest.err; then
7201 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00007202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007203 else
7204 ac_cpp_err=
7205 fi
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007206else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007207 ac_cpp_err=yes
7208fi
7209if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007210 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007211else
7212 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007213sed 's/^/| /' conftest.$ac_ext >&5
7214
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007215 ac_header_preproc=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007216fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007217rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007218echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7219echo "${ECHO_T}$ac_header_preproc" >&6
7220
7221# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7223 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7225echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7227echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7228 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007229 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00007230 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7232echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7234echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7236echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7238echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7242echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007243 (
7244 cat <<\_ASBOX
7245## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00007246## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007247## ------------------------------------ ##
7248_ASBOX
7249 ) |
7250 sed "s/^/$as_me: WARNING: /" >&2
7251 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007252esac
7253echo "$as_me:$LINENO: checking for $ac_header" >&5
7254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7255if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257else
Alexandre Julliard875927f2004-01-02 01:55:29 +00007258 eval "$as_ac_Header=\$ac_header_preproc"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007259fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007262
7263fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007264if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007265 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007267_ACEOF
7268 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007269echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
7270if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007272else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007273 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007274LIBS="-ljpeg $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007275cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007276/* confdefs.h. */
7277_ACEOF
7278cat confdefs.h >>conftest.$ac_ext
7279cat >>conftest.$ac_ext <<_ACEOF
7280/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007281
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007282/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007283#ifdef __cplusplus
7284extern "C"
7285#endif
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007286/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007287 builtin and then its argument prototype would still apply. */
7288char jpeg_start_decompress ();
7289int
7290main ()
7291{
7292jpeg_start_decompress ();
7293 ;
7294 return 0;
7295}
7296_ACEOF
7297rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007299 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007300 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007301 grep -v '^ *+' conftest.er1 >conftest.err
7302 rm -f conftest.er1
7303 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007305 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 (eval $ac_try) 2>&5
7309 ac_status=$?
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; } &&
7312 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007314 (eval $ac_try) 2>&5
7315 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007317 (exit $ac_status); }; }; then
7318 ac_cv_lib_jpeg_jpeg_start_decompress=yes
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007319else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007320 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007321sed 's/^/| /' conftest.$ac_ext >&5
7322
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007323ac_cv_lib_jpeg_jpeg_start_decompress=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007324fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007325rm -f conftest.err conftest.$ac_objext \
7326 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007327LIBS=$ac_check_lib_save_LIBS
7328fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007329echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007330echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
7331if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007332
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007333cat >>confdefs.h <<\_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007334#define HAVE_LIBJPEG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007335_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007336
7337 JPEGLIB="-ljpeg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007338
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007339fi
7340
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007341
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007342fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007343
Marcus Meissner252b0fe2001-08-06 18:52:14 +00007344done
7345
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007346
Marcus Meissner728bedc2003-01-09 06:04:33 +00007347GIFLIB=""
7348
7349
7350for ac_header in gif_lib.h
7351do
7352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7353if eval "test \"\${$as_ac_Header+set}\" = set"; then
7354 echo "$as_me:$LINENO: checking for $ac_header" >&5
7355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7356if eval "test \"\${$as_ac_Header+set}\" = set"; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358fi
7359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7361else
7362 # Is the header compilable?
7363echo "$as_me:$LINENO: checking $ac_header usability" >&5
7364echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7365cat >conftest.$ac_ext <<_ACEOF
Marcus Meissner728bedc2003-01-09 06:04:33 +00007366/* confdefs.h. */
7367_ACEOF
7368cat confdefs.h >>conftest.$ac_ext
7369cat >>conftest.$ac_ext <<_ACEOF
7370/* end confdefs.h. */
7371$ac_includes_default
7372#include <$ac_header>
7373_ACEOF
7374rm -f conftest.$ac_objext
7375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007376 (eval $ac_compile) 2>conftest.er1
Marcus Meissner728bedc2003-01-09 06:04:33 +00007377 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007378 grep -v '^ *+' conftest.er1 >conftest.err
7379 rm -f conftest.er1
7380 cat conftest.err >&5
Marcus Meissner728bedc2003-01-09 06:04:33 +00007381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 (eval $ac_try) 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; } &&
7389 { ac_try='test -s conftest.$ac_objext'
Marcus Meissner728bedc2003-01-09 06:04:33 +00007390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 (eval $ac_try) 2>&5
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7395 ac_header_compiler=yes
7396else
7397 echo "$as_me: failed program was:" >&5
7398sed 's/^/| /' conftest.$ac_ext >&5
7399
7400ac_header_compiler=no
7401fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner728bedc2003-01-09 06:04:33 +00007403echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7404echo "${ECHO_T}$ac_header_compiler" >&6
7405
7406# Is the header present?
7407echo "$as_me:$LINENO: checking $ac_header presence" >&5
7408echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7409cat >conftest.$ac_ext <<_ACEOF
Marcus Meissner728bedc2003-01-09 06:04:33 +00007410/* confdefs.h. */
7411_ACEOF
7412cat confdefs.h >>conftest.$ac_ext
7413cat >>conftest.$ac_ext <<_ACEOF
7414/* end confdefs.h. */
7415#include <$ac_header>
7416_ACEOF
7417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } >/dev/null; then
7425 if test -s conftest.err; then
7426 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00007427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Marcus Meissner728bedc2003-01-09 06:04:33 +00007428 else
7429 ac_cpp_err=
7430 fi
7431else
7432 ac_cpp_err=yes
7433fi
7434if test -z "$ac_cpp_err"; then
7435 ac_header_preproc=yes
7436else
7437 echo "$as_me: failed program was:" >&5
7438sed 's/^/| /' conftest.$ac_ext >&5
7439
7440 ac_header_preproc=no
7441fi
7442rm -f conftest.err conftest.$ac_ext
7443echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7444echo "${ECHO_T}$ac_header_preproc" >&6
7445
7446# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7448 yes:no: )
Marcus Meissner728bedc2003-01-09 06:04:33 +00007449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7450echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7452echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7453 ac_header_preproc=yes
Marcus Meissner728bedc2003-01-09 06:04:33 +00007454 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00007455 no:yes:* )
Marcus Meissner728bedc2003-01-09 06:04:33 +00007456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7457echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7459echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7461echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7463echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Marcus Meissner728bedc2003-01-09 06:04:33 +00007464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7467echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Marcus Meissner728bedc2003-01-09 06:04:33 +00007468 (
7469 cat <<\_ASBOX
7470## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00007471## Report this to wine-devel@winehq.org ##
Marcus Meissner728bedc2003-01-09 06:04:33 +00007472## ------------------------------------ ##
7473_ASBOX
7474 ) |
7475 sed "s/^/$as_me: WARNING: /" >&2
7476 ;;
7477esac
7478echo "$as_me:$LINENO: checking for $ac_header" >&5
7479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7480if eval "test \"\${$as_ac_Header+set}\" = set"; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482else
Alexandre Julliard875927f2004-01-02 01:55:29 +00007483 eval "$as_ac_Header=\$ac_header_preproc"
Marcus Meissner728bedc2003-01-09 06:04:33 +00007484fi
7485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7487
7488fi
7489if test `eval echo '${'$as_ac_Header'}'` = yes; then
7490 cat >>confdefs.h <<_ACEOF
7491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7492_ACEOF
7493 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
7494echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7495if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7497else
7498 ac_check_lib_save_LIBS=$LIBS
7499LIBS="-lungif $LIBS"
7500cat >conftest.$ac_ext <<_ACEOF
Marcus Meissner728bedc2003-01-09 06:04:33 +00007501/* confdefs.h. */
7502_ACEOF
7503cat confdefs.h >>conftest.$ac_ext
7504cat >>conftest.$ac_ext <<_ACEOF
7505/* end confdefs.h. */
7506
7507/* Override any gcc2 internal prototype to avoid an error. */
7508#ifdef __cplusplus
7509extern "C"
7510#endif
7511/* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7513char DGifOpen ();
7514int
7515main ()
7516{
7517DGifOpen ();
7518 ;
7519 return 0;
7520}
7521_ACEOF
7522rm -f conftest.$ac_objext conftest$ac_exeext
7523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007524 (eval $ac_link) 2>conftest.er1
Marcus Meissner728bedc2003-01-09 06:04:33 +00007525 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007526 grep -v '^ *+' conftest.er1 >conftest.err
7527 rm -f conftest.er1
7528 cat conftest.err >&5
Marcus Meissner728bedc2003-01-09 06:04:33 +00007529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner728bedc2003-01-09 06:04:33 +00007538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_cv_lib_ungif_DGifOpen=yes
7544else
7545 echo "$as_me: failed program was:" >&5
7546sed 's/^/| /' conftest.$ac_ext >&5
7547
7548ac_cv_lib_ungif_DGifOpen=no
7549fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007550rm -f conftest.err conftest.$ac_objext \
7551 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner728bedc2003-01-09 06:04:33 +00007552LIBS=$ac_check_lib_save_LIBS
7553fi
7554echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
7555echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7556if test $ac_cv_lib_ungif_DGifOpen = yes; then
7557
7558cat >>confdefs.h <<\_ACEOF
7559#define HAVE_LIBGIF 1
7560_ACEOF
7561
7562 GIFLIB="-lungif"
7563else
7564 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
7565echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
7566if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568else
7569 ac_check_lib_save_LIBS=$LIBS
7570LIBS="-lgif $LIBS"
7571cat >conftest.$ac_ext <<_ACEOF
Marcus Meissner728bedc2003-01-09 06:04:33 +00007572/* confdefs.h. */
7573_ACEOF
7574cat confdefs.h >>conftest.$ac_ext
7575cat >>conftest.$ac_ext <<_ACEOF
7576/* end confdefs.h. */
7577
7578/* Override any gcc2 internal prototype to avoid an error. */
7579#ifdef __cplusplus
7580extern "C"
7581#endif
7582/* We use char because int might match the return type of a gcc2
7583 builtin and then its argument prototype would still apply. */
7584char DGifOpen ();
7585int
7586main ()
7587{
7588DGifOpen ();
7589 ;
7590 return 0;
7591}
7592_ACEOF
7593rm -f conftest.$ac_objext conftest$ac_exeext
7594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007595 (eval $ac_link) 2>conftest.er1
Marcus Meissner728bedc2003-01-09 06:04:33 +00007596 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007597 grep -v '^ *+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
Marcus Meissner728bedc2003-01-09 06:04:33 +00007600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 (eval $ac_try) 2>&5
7605 ac_status=$?
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; } &&
7608 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner728bedc2003-01-09 06:04:33 +00007609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 (eval $ac_try) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7614 ac_cv_lib_gif_DGifOpen=yes
7615else
7616 echo "$as_me: failed program was:" >&5
7617sed 's/^/| /' conftest.$ac_ext >&5
7618
7619ac_cv_lib_gif_DGifOpen=no
7620fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007621rm -f conftest.err conftest.$ac_objext \
7622 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner728bedc2003-01-09 06:04:33 +00007623LIBS=$ac_check_lib_save_LIBS
7624fi
7625echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
7626echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
7627if test $ac_cv_lib_gif_DGifOpen = yes; then
7628 cat >>confdefs.h <<\_ACEOF
7629#define HAVE_LIBGIF 1
7630_ACEOF
7631
7632 GIFLIB="-lgif"
7633fi
7634
7635fi
7636
7637fi
7638
7639done
7640
7641
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007642
7643
Patrik Stridvall2941a212000-04-25 20:34:22 +00007644XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007645
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007646OPENGLFILES=""
7647
Marcus Meissnerb63ab442001-06-08 19:02:57 +00007648GLU32FILES=""
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00007649
7650OPENGL_LIBS=""
Patrik Stridvallea584721998-11-01 16:22:07 +00007651if test "$have_x" = "yes"
7652then
Patrik Stridvall24110281999-02-04 10:09:54 +00007653 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00007654 ac_save_CPPFLAGS="$CPPFLAGS"
7655 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00007656
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007657
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007658for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007659do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007660as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007661if eval "test \"\${$as_ac_Header+set}\" = set"; then
7662 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007663echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7664if eval "test \"\${$as_ac_Header+set}\" = set"; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007666fi
7667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007669else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007670 # Is the header compilable?
7671echo "$as_me:$LINENO: checking $ac_header usability" >&5
7672echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7673cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007674/* confdefs.h. */
7675_ACEOF
7676cat confdefs.h >>conftest.$ac_ext
7677cat >>conftest.$ac_ext <<_ACEOF
7678/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007679$ac_includes_default
7680#include <$ac_header>
7681_ACEOF
7682rm -f conftest.$ac_objext
7683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007684 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007685 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007686 grep -v '^ *+' conftest.er1 >conftest.err
7687 rm -f conftest.er1
7688 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 (eval $ac_try) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_header_compiler=yes
7704else
7705 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007706sed 's/^/| /' conftest.$ac_ext >&5
7707
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007708ac_header_compiler=no
7709fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007711echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7712echo "${ECHO_T}$ac_header_compiler" >&6
7713
7714# Is the header present?
7715echo "$as_me:$LINENO: checking $ac_header presence" >&5
7716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7717cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007718/* confdefs.h. */
7719_ACEOF
7720cat confdefs.h >>conftest.$ac_ext
7721cat >>conftest.$ac_ext <<_ACEOF
7722/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007723#include <$ac_header>
7724_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7727 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007728 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007729 rm -f conftest.er1
7730 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007732 (exit $ac_status); } >/dev/null; then
7733 if test -s conftest.err; then
7734 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00007735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007736 else
7737 ac_cpp_err=
7738 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007739else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007740 ac_cpp_err=yes
7741fi
7742if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007743 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007744else
7745 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007746sed 's/^/| /' conftest.$ac_ext >&5
7747
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007748 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007749fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007750rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007751echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7752echo "${ECHO_T}$ac_header_preproc" >&6
7753
7754# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007755case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7756 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7760echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7761 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007762 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00007763 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7767echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7769echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7771echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007773echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7775echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007776 (
7777 cat <<\_ASBOX
7778## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00007779## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007780## ------------------------------------ ##
7781_ASBOX
7782 ) |
7783 sed "s/^/$as_me: WARNING: /" >&2
7784 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007785esac
7786echo "$as_me:$LINENO: checking for $ac_header" >&5
7787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7788if eval "test \"\${$as_ac_Header+set}\" = set"; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790else
Alexandre Julliard875927f2004-01-02 01:55:29 +00007791 eval "$as_ac_Header=\$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007792fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007795
7796fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007797if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007798 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007800_ACEOF
7801
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007802
Alexandre Julliard255b4862003-10-15 04:09:55 +00007803
7804
7805
7806
7807
7808
7809
7810
Aric Stewart2eebf3c2004-01-09 00:03:00 +00007811
Alexandre Julliard255b4862003-10-15 04:09:55 +00007812for ac_header in X11/XKBlib.h \
7813 X11/Xutil.h \
7814 X11/extensions/shape.h \
Aric Stewart2eebf3c2004-01-09 00:03:00 +00007815 X11/extensions/XInput.h \
Alexandre Julliard255b4862003-10-15 04:09:55 +00007816 X11/extensions/XShm.h \
7817 X11/extensions/Xrandr.h \
7818 X11/extensions/Xrender.h \
7819 X11/extensions/Xvlib.h \
7820 X11/extensions/xf86dga.h \
7821 X11/extensions/xf86vmode.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007822do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007824echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7826if eval "test \"\${$as_ac_Header+set}\" = set"; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007828else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007829 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007830/* confdefs.h. */
7831_ACEOF
7832cat confdefs.h >>conftest.$ac_ext
7833cat >>conftest.$ac_ext <<_ACEOF
7834/* end confdefs.h. */
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007835#include <X11/Xlib.h>
Alexandre Julliard255b4862003-10-15 04:09:55 +00007836 #ifdef HAVE_X11_XUTIL_H
7837 # include <X11/Xutil.h>
7838 #endif
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007839
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007840#include <$ac_header>
7841_ACEOF
7842rm -f conftest.$ac_objext
7843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007844 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007845 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007846 grep -v '^ *+' conftest.er1 >conftest.err
7847 rm -f conftest.er1
7848 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 (eval $ac_try) 2>&5
7854 ac_status=$?
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; } &&
7857 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 (eval $ac_try) 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007863 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007864else
7865 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007866sed 's/^/| /' conftest.$ac_ext >&5
7867
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007868eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007869fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007871fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7874if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007875 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007877_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00007878
7879fi
7880
7881done
7882
7883
7884 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7885 then
7886 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007887echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7888if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007890else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007891 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00007892LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007893cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007894/* confdefs.h. */
7895_ACEOF
7896cat confdefs.h >>conftest.$ac_ext
7897cat >>conftest.$ac_ext <<_ACEOF
7898/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007899
Patrik Stridvall24110281999-02-04 10:09:54 +00007900/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007901#ifdef __cplusplus
7902extern "C"
7903#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007904/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007905 builtin and then its argument prototype would still apply. */
7906char XkbQueryExtension ();
7907int
7908main ()
7909{
7910XkbQueryExtension ();
7911 ;
7912 return 0;
7913}
7914_ACEOF
7915rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007917 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007918 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007919 grep -v '^ *+' conftest.er1 >conftest.err
7920 rm -f conftest.er1
7921 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007923 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 (eval $ac_try) 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; } &&
7930 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007932 (eval $ac_try) 2>&5
7933 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007935 (exit $ac_status); }; }; then
7936 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007937else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007938 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007939sed 's/^/| /' conftest.$ac_ext >&5
7940
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007941ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007942fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007943rm -f conftest.err conftest.$ac_objext \
7944 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007945LIBS=$ac_check_lib_save_LIBS
7946fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007947echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007948echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7949if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007950
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007951cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007952#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007953_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007954
Patrik Stridvall24110281999-02-04 10:09:54 +00007955fi
7956
Alexandre Julliard255b4862003-10-15 04:09:55 +00007957 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007958
Alexandre Julliard255b4862003-10-15 04:09:55 +00007959 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7960 then
7961 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007962echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7963if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00007965else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007966 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00007967LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007968cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007969/* confdefs.h. */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
7973/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007974
Francois Jacques5b6879c2000-07-28 23:04:54 +00007975/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007976#ifdef __cplusplus
7977extern "C"
7978#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00007979/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007980 builtin and then its argument prototype would still apply. */
7981char XShmQueryExtension ();
7982int
7983main ()
7984{
7985XShmQueryExtension ();
7986 ;
7987 return 0;
7988}
7989_ACEOF
7990rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007992 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007993 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007994 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -f conftest.er1
7996 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007998 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 (eval $ac_try) 2>&5
8002 ac_status=$?
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; } &&
8005 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008007 (eval $ac_try) 2>&5
8008 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008010 (exit $ac_status); }; }; then
8011 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00008012else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008013 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008014sed 's/^/| /' conftest.$ac_ext >&5
8015
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008016ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00008017fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008018rm -f conftest.err conftest.$ac_objext \
8019 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008020LIBS=$ac_check_lib_save_LIBS
8021fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008022echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008023echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
8024if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00008025
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008026cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00008027#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008028_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00008029
Francois Jacques5b6879c2000-07-28 23:04:54 +00008030fi
8031
Alexandre Julliard255b4862003-10-15 04:09:55 +00008032 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008033
Alexandre Julliard255b4862003-10-15 04:09:55 +00008034 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8035 then
8036 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008037echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8038if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00008040else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008041 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00008042LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008043cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008044/* confdefs.h. */
8045_ACEOF
8046cat confdefs.h >>conftest.$ac_ext
8047cat >>conftest.$ac_ext <<_ACEOF
8048/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008049
Ove Kaavenc90fb252001-01-02 22:39:14 +00008050/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008051#ifdef __cplusplus
8052extern "C"
8053#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00008054/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008055 builtin and then its argument prototype would still apply. */
8056char XShapeQueryExtension ();
8057int
8058main ()
8059{
8060XShapeQueryExtension ();
8061 ;
8062 return 0;
8063}
8064_ACEOF
8065rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008067 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008068 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008073 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 (eval $ac_try) 2>&5
8077 ac_status=$?
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; } &&
8080 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008082 (eval $ac_try) 2>&5
8083 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008085 (exit $ac_status); }; }; then
8086 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00008087else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008088 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008089sed 's/^/| /' conftest.$ac_ext >&5
8090
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008091ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00008092fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008093rm -f conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008095LIBS=$ac_check_lib_save_LIBS
8096fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008097echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008098echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8099if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00008100
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008101cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00008102#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008103_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00008104
Ove Kaavenc90fb252001-01-02 22:39:14 +00008105fi
8106
Alexandre Julliard255b4862003-10-15 04:09:55 +00008107 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008108
Alexandre Julliard255b4862003-10-15 04:09:55 +00008109 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8110 then
8111 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008112echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8113if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008115else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008116 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00008117LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008118cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008119/* confdefs.h. */
8120_ACEOF
8121cat confdefs.h >>conftest.$ac_ext
8122cat >>conftest.$ac_ext <<_ACEOF
8123/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008124
Patrik Stridvall24110281999-02-04 10:09:54 +00008125/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008126#ifdef __cplusplus
8127extern "C"
8128#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00008129/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008130 builtin and then its argument prototype would still apply. */
8131char XDGAQueryExtension ();
8132int
8133main ()
8134{
8135XDGAQueryExtension ();
8136 ;
8137 return 0;
8138}
8139_ACEOF
8140rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008142 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008143 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008148 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; } &&
8155 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008157 (eval $ac_try) 2>&5
8158 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008160 (exit $ac_status); }; }; then
8161 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008162else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008163 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008164sed 's/^/| /' conftest.$ac_ext >&5
8165
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008166ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008167fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008168rm -f conftest.err conftest.$ac_objext \
8169 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008170LIBS=$ac_check_lib_save_LIBS
8171fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008172echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008173echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8174if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008175
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008176cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008177#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008178_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00008179
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008180 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008181
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008182else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008183 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008184echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8185if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008187else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008188 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008189LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
8190 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008191cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008192/* confdefs.h. */
8193_ACEOF
8194cat confdefs.h >>conftest.$ac_ext
8195cat >>conftest.$ac_ext <<_ACEOF
8196/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008197
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008198/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008199#ifdef __cplusplus
8200extern "C"
8201#endif
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008202/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008203 builtin and then its argument prototype would still apply. */
8204char XF86DGAQueryExtension ();
8205int
8206main ()
8207{
8208XF86DGAQueryExtension ();
8209 ;
8210 return 0;
8211}
8212_ACEOF
8213rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008215 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008216 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008217 grep -v '^ *+' conftest.er1 >conftest.err
8218 rm -f conftest.er1
8219 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008221 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008230 (eval $ac_try) 2>&5
8231 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008233 (exit $ac_status); }; }; then
8234 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008235else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008236 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008237sed 's/^/| /' conftest.$ac_ext >&5
8238
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008239ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008240fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008241rm -f conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008243LIBS=$ac_check_lib_save_LIBS
8244fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008245echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008246echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
8247if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00008248
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008249cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00008250#define HAVE_LIBXXF86DGA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008251_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00008252
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008253 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008254
Patrik Stridvall24110281999-02-04 10:09:54 +00008255fi
8256
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008257
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008258fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008259
Alexandre Julliard255b4862003-10-15 04:09:55 +00008260 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008261
Alexandre Julliard255b4862003-10-15 04:09:55 +00008262 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8263 then
8264 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008265echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8266if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008268else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008269 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00008270LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008271cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008272/* confdefs.h. */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008277
Patrik Stridvall24110281999-02-04 10:09:54 +00008278/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008279#ifdef __cplusplus
8280extern "C"
8281#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00008282/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008283 builtin and then its argument prototype would still apply. */
8284char XF86VidModeQueryExtension ();
8285int
8286main ()
8287{
8288XF86VidModeQueryExtension ();
8289 ;
8290 return 0;
8291}
8292_ACEOF
8293rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008295 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008296 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008301 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 (eval $ac_try) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; } &&
8308 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008310 (eval $ac_try) 2>&5
8311 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008313 (exit $ac_status); }; }; then
8314 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008315else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008316 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008317sed 's/^/| /' conftest.$ac_ext >&5
8318
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008319ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008320fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008321rm -f conftest.err conftest.$ac_objext \
8322 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008323LIBS=$ac_check_lib_save_LIBS
8324fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008325echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008326echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8327if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00008328
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008329cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00008330#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008331_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008332
8333 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008334
Patrik Stridvall24110281999-02-04 10:09:54 +00008335fi
8336
Alexandre Julliard255b4862003-10-15 04:09:55 +00008337 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008338
Alexandre Julliard255b4862003-10-15 04:09:55 +00008339 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8340 then
Mike McCormackc7c9f932004-04-07 03:57:35 +00008341 cat >conftest.$ac_ext <<_ACEOF
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008342/* confdefs.h. */
8343_ACEOF
8344cat confdefs.h >>conftest.$ac_ext
8345cat >>conftest.$ac_ext <<_ACEOF
8346/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008347#include <X11/Xlib.h>
8348#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008349int
8350main ()
8351{
Mike McCormackc7c9f932004-04-07 03:57:35 +00008352static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008353 ;
8354 return 0;
8355}
8356_ACEOF
Mike McCormackc7c9f932004-04-07 03:57:35 +00008357rm -f conftest.$ac_objext
8358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8359 (eval $ac_compile) 2>conftest.er1
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008360 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008361 grep -v '^ *+' conftest.er1 >conftest.err
8362 rm -f conftest.er1
8363 cat conftest.err >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 (eval $ac_try) 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
Mike McCormackc7c9f932004-04-07 03:57:35 +00008372 { ac_try='test -s conftest.$ac_objext'
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 (eval $ac_try) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008378
8379cat >>confdefs.h <<\_ACEOF
8380#define HAVE_LIBXRANDR 1
8381_ACEOF
8382
Mike McCormackc7c9f932004-04-07 03:57:35 +00008383else
8384 echo "$as_me: failed program was:" >&5
8385sed 's/^/| /' conftest.$ac_ext >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008386
8387fi
Mike McCormackc7c9f932004-04-07 03:57:35 +00008388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008389 fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008390
Alexandre Julliard255b4862003-10-15 04:09:55 +00008391 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8392 then
8393 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008394echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8395if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00008397else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008398 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00008399LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008400cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008401/* confdefs.h. */
8402_ACEOF
8403cat confdefs.h >>conftest.$ac_ext
8404cat >>conftest.$ac_ext <<_ACEOF
8405/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008406
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00008407/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008408#ifdef __cplusplus
8409extern "C"
8410#endif
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00008411/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008412 builtin and then its argument prototype would still apply. */
8413char XvShmCreateImage ();
8414int
8415main ()
8416{
8417XvShmCreateImage ();
8418 ;
8419 return 0;
8420}
8421_ACEOF
8422rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008424 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008425 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008426 grep -v '^ *+' conftest.er1 >conftest.err
8427 rm -f conftest.er1
8428 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008430 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 (eval $ac_try) 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; } &&
8437 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008439 (eval $ac_try) 2>&5
8440 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008442 (exit $ac_status); }; }; then
8443 ac_cv_lib_Xv_XvShmCreateImage=yes
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00008444else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008445 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008446sed 's/^/| /' conftest.$ac_ext >&5
8447
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008448ac_cv_lib_Xv_XvShmCreateImage=no
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00008449fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008450rm -f conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008452LIBS=$ac_check_lib_save_LIBS
8453fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008454echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008455echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8456if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00008457
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008458cat >>confdefs.h <<\_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00008459#define HAVE_XVIDEO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008460_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00008461
8462 X_PRE_LIBS="$X_PRE_LIBS -lXv"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008463
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00008464fi
8465
Alexandre Julliard255b4862003-10-15 04:09:55 +00008466 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008467
8468
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008469fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008470
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008471done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008472
Alexandre Julliardb8074992002-11-21 21:51:24 +00008473 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008474 then
Francois Gouget42dcd972002-01-29 17:52:28 +00008475 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008476 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008477 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008478This prevents linking to OpenGL. Delete the file and restart configure." >&5
8479echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8480This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8481 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008482 fi
8483
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008484
8485
8486for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008487do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008489if eval "test \"\${$as_ac_Header+set}\" = set"; then
8490 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8492if eval "test \"\${$as_ac_Header+set}\" = set"; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008494fi
8495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008497else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008498 # Is the header compilable?
8499echo "$as_me:$LINENO: checking $ac_header usability" >&5
8500echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8501cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008502/* confdefs.h. */
8503_ACEOF
8504cat confdefs.h >>conftest.$ac_ext
8505cat >>conftest.$ac_ext <<_ACEOF
8506/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008507$ac_includes_default
8508#include <$ac_header>
8509_ACEOF
8510rm -f conftest.$ac_objext
8511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008512 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008513 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008514 grep -v '^ *+' conftest.er1 >conftest.err
8515 rm -f conftest.er1
8516 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; } &&
8525 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
8531 ac_header_compiler=yes
8532else
8533 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008534sed 's/^/| /' conftest.$ac_ext >&5
8535
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008536ac_header_compiler=no
8537fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008539echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8540echo "${ECHO_T}$ac_header_compiler" >&6
8541
8542# Is the header present?
8543echo "$as_me:$LINENO: checking $ac_header presence" >&5
8544echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8545cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008546/* confdefs.h. */
8547_ACEOF
8548cat confdefs.h >>conftest.$ac_ext
8549cat >>conftest.$ac_ext <<_ACEOF
8550/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008551#include <$ac_header>
8552_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008553if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8555 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008556 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008557 rm -f conftest.er1
8558 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008560 (exit $ac_status); } >/dev/null; then
8561 if test -s conftest.err; then
8562 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00008563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008564 else
8565 ac_cpp_err=
8566 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008567else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008568 ac_cpp_err=yes
8569fi
8570if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008571 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008572else
8573 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008574sed 's/^/| /' conftest.$ac_ext >&5
8575
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008576 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008577fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008578rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008579echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8580echo "${ECHO_T}$ac_header_preproc" >&6
8581
8582# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8584 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8589 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008590 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00008591 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008604 (
8605 cat <<\_ASBOX
8606## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00008607## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008608## ------------------------------------ ##
8609_ASBOX
8610 ) |
8611 sed "s/^/$as_me: WARNING: /" >&2
8612 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008613esac
8614echo "$as_me:$LINENO: checking for $ac_header" >&5
8615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8616if eval "test \"\${$as_ac_Header+set}\" = set"; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618else
Alexandre Julliard875927f2004-01-02 01:55:29 +00008619 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00008620fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008623
Patrik Stridvall24110281999-02-04 10:09:54 +00008624fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008625if test `eval echo '${'$as_ac_Header'}'` = yes; then
8626 cat >>confdefs.h <<_ACEOF
8627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8628_ACEOF
8629
8630fi
8631
Patrik Stridvall24110281999-02-04 10:09:54 +00008632done
8633
Marcus Meissner22a969b2000-08-08 20:46:50 +00008634 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008635 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008636
8637for ac_header in GL/glext.h
8638do
8639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8640echo "$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
8644else
8645 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008646/* confdefs.h. */
8647_ACEOF
8648cat confdefs.h >>conftest.$ac_ext
8649cat >>conftest.$ac_ext <<_ACEOF
8650/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008651#include <GL/glx.h>
8652
8653#include <$ac_header>
8654_ACEOF
8655rm -f conftest.$ac_objext
8656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008657 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008658 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; } &&
8670 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; }; then
8676 eval "$as_ac_Header=yes"
8677else
8678 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008679sed 's/^/| /' conftest.$ac_ext >&5
8680
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008681eval "$as_ac_Header=no"
8682fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008684fi
8685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8687if test `eval echo '${'$as_ac_Header'}'` = yes; then
8688 cat >>confdefs.h <<_ACEOF
8689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8690_ACEOF
8691
8692fi
8693
8694done
8695
8696 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008697echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8698if test "${wine_cv_opengl_version_OK+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008700else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008701 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008702/* confdefs.h. */
8703_ACEOF
8704cat confdefs.h >>conftest.$ac_ext
8705cat >>conftest.$ac_ext <<_ACEOF
8706/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008707#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008708int
8709main ()
8710{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008711GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008712 ;
8713 return 0;
8714}
8715_ACEOF
8716rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008718 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008719 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008720 grep -v '^ *+' conftest.er1 >conftest.err
8721 rm -f conftest.er1
8722 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008724 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 (eval $ac_try) 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; } &&
8731 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008733 (eval $ac_try) 2>&5
8734 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008736 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008737 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008738else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008739 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008740sed 's/^/| /' conftest.$ac_ext >&5
8741
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008742wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008743
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008744fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00008746
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008747fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008748echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008749echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8750
Alexandre Julliardb8074992002-11-21 21:51:24 +00008751 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008752 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008753 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008754echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8755if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008757else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008758 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00008759LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008760cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008761/* confdefs.h. */
8762_ACEOF
8763cat confdefs.h >>conftest.$ac_ext
8764cat >>conftest.$ac_ext <<_ACEOF
8765/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008766
Patrik Stridvall24110281999-02-04 10:09:54 +00008767/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008768#ifdef __cplusplus
8769extern "C"
8770#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00008771/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008772 builtin and then its argument prototype would still apply. */
8773char glXCreateContext ();
8774int
8775main ()
8776{
8777glXCreateContext ();
8778 ;
8779 return 0;
8780}
8781_ACEOF
8782rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008784 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008785 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008786 grep -v '^ *+' conftest.er1 >conftest.err
8787 rm -f conftest.er1
8788 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008790 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 (eval $ac_try) 2>&5
8794 ac_status=$?
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; } &&
8797 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008799 (eval $ac_try) 2>&5
8800 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008802 (exit $ac_status); }; }; then
8803 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008804else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008805 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008806sed 's/^/| /' conftest.$ac_ext >&5
8807
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008808ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008809fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008810rm -f conftest.err conftest.$ac_objext \
8811 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008812LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008813fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008814echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008815echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8816if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008817 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00008818
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008819fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008820
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008821
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008822 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008823 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008824 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008825
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008826cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008827#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008828_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008829
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008830
8831 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008832echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8833if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008835else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008836 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008837LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008838cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008839/* confdefs.h. */
8840_ACEOF
8841cat confdefs.h >>conftest.$ac_ext
8842cat >>conftest.$ac_ext <<_ACEOF
8843/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008844
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008845/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008846#ifdef __cplusplus
8847extern "C"
8848#endif
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008849/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008850 builtin and then its argument prototype would still apply. */
8851char glXGetProcAddressARB ();
8852int
8853main ()
8854{
8855glXGetProcAddressARB ();
8856 ;
8857 return 0;
8858}
8859_ACEOF
8860rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008862 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008863 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008864 grep -v '^ *+' conftest.er1 >conftest.err
8865 rm -f conftest.er1
8866 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008868 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008877 (eval $ac_try) 2>&5
8878 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008880 (exit $ac_status); }; }; then
8881 ac_cv_lib_GL_glXGetProcAddressARB=yes
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008882else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008883 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008884sed 's/^/| /' conftest.$ac_ext >&5
8885
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008886ac_cv_lib_GL_glXGetProcAddressARB=no
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008887fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008888rm -f conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008890LIBS=$ac_check_lib_save_LIBS
8891fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008892echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008893echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8894if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008895
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008896cat >>confdefs.h <<\_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008897#define HAVE_GLX_GETPROCADDRESS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008898_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008899
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008900fi
8901
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008902
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008903 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008904 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008905 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008906echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8907if test "${wine_cv_extension_prototypes+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer1434d872000-07-23 14:23:31 +00008909else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008910 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008911/* confdefs.h. */
8912_ACEOF
8913cat confdefs.h >>conftest.$ac_ext
8914cat >>conftest.$ac_ext <<_ACEOF
8915/* end confdefs.h. */
Lionel Ulmer1434d872000-07-23 14:23:31 +00008916#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008917 #ifdef HAVE_GL_GLEXT_H
8918 # include <GL/glext.h>
8919 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008920
8921int
8922main ()
8923{
Lionel Ulmer1434d872000-07-23 14:23:31 +00008924PFNGLCOLORTABLEEXTPROC test_proc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008925 ;
8926 return 0;
8927}
8928_ACEOF
8929rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008931 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008932 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008933 grep -v '^ *+' conftest.er1 >conftest.err
8934 rm -f conftest.er1
8935 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008937 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 (eval $ac_try) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; } &&
8944 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008946 (eval $ac_try) 2>&5
8947 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008949 (exit $ac_status); }; }; then
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008950 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00008951else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008952 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008953sed 's/^/| /' conftest.$ac_ext >&5
8954
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008955wine_cv_extension_prototypes="no"
Lionel Ulmer1434d872000-07-23 14:23:31 +00008956
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008957fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008959
8960fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008961echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008962echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008963 if test "$wine_cv_extension_prototypes" = "yes"
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008964 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008965
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008966cat >>confdefs.h <<\_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008967#define HAVE_GLEXT_PROTOTYPES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008968_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008969
8970 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008971 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00008972
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008973 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008974 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008975echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8976if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008978else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008979 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008980LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008981 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008982cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008983/* confdefs.h. */
8984_ACEOF
8985cat confdefs.h >>conftest.$ac_ext
8986cat >>conftest.$ac_ext <<_ACEOF
8987/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008988
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008989/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008990#ifdef __cplusplus
8991extern "C"
8992#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008993/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008994 builtin and then its argument prototype would still apply. */
8995char gluLookAt ();
8996int
8997main ()
8998{
8999gluLookAt ();
9000 ;
9001 return 0;
9002}
9003_ACEOF
9004rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009006 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009007 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009012 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 (eval $ac_try) 2>&5
9016 ac_status=$?
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; } &&
9019 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009021 (eval $ac_try) 2>&5
9022 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009024 (exit $ac_status); }; }; then
9025 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009026else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009027 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009028sed 's/^/| /' conftest.$ac_ext >&5
9029
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009030ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009031fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009032rm -f conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009034LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009035fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009036echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009037echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
9038if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00009039 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009040 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009041
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009042fi
9043
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009044 fi
Jacek Cabanef799c42003-12-02 04:11:09 +00009045
9046 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
9047echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
9048if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9050else
9051 ac_check_lib_save_LIBS=$LIBS
Jacek Caban5e69f112003-12-03 20:26:43 +00009052LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
Jacek Cabanef799c42003-12-02 04:11:09 +00009053cat >conftest.$ac_ext <<_ACEOF
Jacek Cabanef799c42003-12-02 04:11:09 +00009054/* confdefs.h. */
9055_ACEOF
9056cat confdefs.h >>conftest.$ac_ext
9057cat >>conftest.$ac_ext <<_ACEOF
9058/* end confdefs.h. */
9059
9060/* Override any gcc2 internal prototype to avoid an error. */
9061#ifdef __cplusplus
9062extern "C"
9063#endif
9064/* We use char because int might match the return type of a gcc2
9065 builtin and then its argument prototype would still apply. */
9066char glutMainLoop ();
9067int
9068main ()
9069{
9070glutMainLoop ();
9071 ;
9072 return 0;
9073}
9074_ACEOF
9075rm -f conftest.$ac_objext conftest$ac_exeext
9076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009077 (eval $ac_link) 2>conftest.er1
Jacek Cabanef799c42003-12-02 04:11:09 +00009078 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009079 grep -v '^ *+' conftest.er1 >conftest.err
9080 rm -f conftest.er1
9081 cat conftest.err >&5
Jacek Cabanef799c42003-12-02 04:11:09 +00009082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 (eval $ac_try) 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; } &&
9090 { ac_try='test -s conftest$ac_exeext'
Jacek Cabanef799c42003-12-02 04:11:09 +00009091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 (eval $ac_try) 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096 ac_cv_lib_glut_glutMainLoop=yes
9097else
9098 echo "$as_me: failed program was:" >&5
9099sed 's/^/| /' conftest.$ac_ext >&5
9100
9101ac_cv_lib_glut_glutMainLoop=no
9102fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009103rm -f conftest.err conftest.$ac_objext \
9104 conftest$ac_exeext conftest.$ac_ext
Jacek Cabanef799c42003-12-02 04:11:09 +00009105LIBS=$ac_check_lib_save_LIBS
9106fi
9107echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9108echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
9109if test $ac_cv_lib_glut_glutMainLoop = yes; then
Jacek Caban5e69f112003-12-03 20:26:43 +00009110 GLUT_LIBS="-lglut -lXmu -lXi"
Jacek Cabanef799c42003-12-02 04:11:09 +00009111
9112 GLUT32FILES='$(GLUT32FILES)'
9113
9114fi
9115
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009116 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009117 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00009118
Francois Gouget6f670b12002-10-10 17:54:27 +00009119 NASLIBS=""
9120
9121
9122for ac_header in audio/audiolib.h
9123do
9124as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9125if eval "test \"\${$as_ac_Header+set}\" = set"; then
9126 echo "$as_me:$LINENO: checking for $ac_header" >&5
9127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9128if eval "test \"\${$as_ac_Header+set}\" = set"; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9130fi
9131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9133else
9134 # Is the header compilable?
9135echo "$as_me:$LINENO: checking $ac_header usability" >&5
9136echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9137cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009138/* confdefs.h. */
9139_ACEOF
9140cat confdefs.h >>conftest.$ac_ext
9141cat >>conftest.$ac_ext <<_ACEOF
9142/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009143$ac_includes_default
9144#include <$ac_header>
9145_ACEOF
9146rm -f conftest.$ac_objext
9147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009148 (eval $ac_compile) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00009149 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009150 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -f conftest.er1
9152 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00009153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 (eval $ac_try) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; } &&
9161 { ac_try='test -s conftest.$ac_objext'
Francois Gouget6f670b12002-10-10 17:54:27 +00009162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 (eval $ac_try) 2>&5
9164 ac_status=$?
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; }; then
9167 ac_header_compiler=yes
9168else
9169 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009170sed 's/^/| /' conftest.$ac_ext >&5
9171
Francois Gouget6f670b12002-10-10 17:54:27 +00009172ac_header_compiler=no
9173fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00009175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9176echo "${ECHO_T}$ac_header_compiler" >&6
9177
9178# Is the header present?
9179echo "$as_me:$LINENO: checking $ac_header presence" >&5
9180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9181cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009182/* confdefs.h. */
9183_ACEOF
9184cat confdefs.h >>conftest.$ac_ext
9185cat >>conftest.$ac_ext <<_ACEOF
9186/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009187#include <$ac_header>
9188_ACEOF
9189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } >/dev/null; then
9197 if test -s conftest.err; then
9198 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Francois Gouget6f670b12002-10-10 17:54:27 +00009200 else
9201 ac_cpp_err=
9202 fi
9203else
9204 ac_cpp_err=yes
9205fi
9206if test -z "$ac_cpp_err"; then
9207 ac_header_preproc=yes
9208else
9209 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009210sed 's/^/| /' conftest.$ac_ext >&5
9211
Francois Gouget6f670b12002-10-10 17:54:27 +00009212 ac_header_preproc=no
9213fi
9214rm -f conftest.err conftest.$ac_ext
9215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9216echo "${ECHO_T}$ac_header_preproc" >&6
9217
9218# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9220 yes:no: )
Francois Gouget6f670b12002-10-10 17:54:27 +00009221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9225 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009226 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009227 no:yes:* )
Francois Gouget6f670b12002-10-10 17:54:27 +00009228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Francois Gouget6f670b12002-10-10 17:54:27 +00009236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009240 (
9241 cat <<\_ASBOX
9242## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009243## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009244## ------------------------------------ ##
9245_ASBOX
9246 ) |
9247 sed "s/^/$as_me: WARNING: /" >&2
9248 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00009249esac
9250echo "$as_me:$LINENO: checking for $ac_header" >&5
9251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9252if eval "test \"\${$as_ac_Header+set}\" = set"; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9254else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009255 eval "$as_ac_Header=\$ac_header_preproc"
Francois Gouget6f670b12002-10-10 17:54:27 +00009256fi
9257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9259
9260fi
9261if test `eval echo '${'$as_ac_Header'}'` = yes; then
9262 cat >>confdefs.h <<_ACEOF
9263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9264_ACEOF
9265
9266for ac_header in audio/soundlib.h
9267do
9268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9269echo "$as_me:$LINENO: checking for $ac_header" >&5
9270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9271if eval "test \"\${$as_ac_Header+set}\" = set"; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273else
9274 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009275/* confdefs.h. */
9276_ACEOF
9277cat confdefs.h >>conftest.$ac_ext
9278cat >>conftest.$ac_ext <<_ACEOF
9279/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009280#include <audio/audiolib.h>
9281
9282#include <$ac_header>
9283_ACEOF
9284rm -f conftest.$ac_objext
9285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009286 (eval $ac_compile) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00009287 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009288 grep -v '^ *+' conftest.er1 >conftest.err
9289 rm -f conftest.er1
9290 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00009291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 (eval $ac_try) 2>&5
9296 ac_status=$?
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; } &&
9299 { ac_try='test -s conftest.$ac_objext'
Francois Gouget6f670b12002-10-10 17:54:27 +00009300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 (eval $ac_try) 2>&5
9302 ac_status=$?
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; }; then
9305 eval "$as_ac_Header=yes"
9306else
9307 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009308sed 's/^/| /' conftest.$ac_ext >&5
9309
Francois Gouget6f670b12002-10-10 17:54:27 +00009310eval "$as_ac_Header=no"
9311fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00009313fi
9314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9316if test `eval echo '${'$as_ac_Header'}'` = yes; then
9317 cat >>confdefs.h <<_ACEOF
9318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9319_ACEOF
9320
9321fi
9322
9323done
9324
9325 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9326echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9327if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9329else
9330 ac_check_lib_save_LIBS=$LIBS
9331LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9332cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009333/* confdefs.h. */
9334_ACEOF
9335cat confdefs.h >>conftest.$ac_ext
9336cat >>conftest.$ac_ext <<_ACEOF
9337/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009338
9339/* Override any gcc2 internal prototype to avoid an error. */
9340#ifdef __cplusplus
9341extern "C"
9342#endif
9343/* We use char because int might match the return type of a gcc2
9344 builtin and then its argument prototype would still apply. */
9345char AuCreateFlow ();
9346int
9347main ()
9348{
9349AuCreateFlow ();
9350 ;
9351 return 0;
9352}
9353_ACEOF
9354rm -f conftest.$ac_objext conftest$ac_exeext
9355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009356 (eval $ac_link) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00009357 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00009361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 (eval $ac_try) 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; } &&
9369 { ac_try='test -s conftest$ac_exeext'
Francois Gouget6f670b12002-10-10 17:54:27 +00009370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 (eval $ac_try) 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; }; then
9375 ac_cv_lib_audio_AuCreateFlow=yes
9376else
9377 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009378sed 's/^/| /' conftest.$ac_ext >&5
9379
Francois Gouget6f670b12002-10-10 17:54:27 +00009380ac_cv_lib_audio_AuCreateFlow=no
9381fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009382rm -f conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00009384LIBS=$ac_check_lib_save_LIBS
9385fi
9386echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9387echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9388if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9389
9390cat >>confdefs.h <<\_ACEOF
9391#define HAVE_NAS 1
9392_ACEOF
9393
9394 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9395fi
9396
9397fi
9398
9399done
9400
9401
Ove Kaaven1eb593c1999-02-14 09:34:46 +00009402 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00009403 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00009404else
9405 XLIB=""
9406 X_CFLAGS=""
9407 X_LIBS=""
9408fi
Alexandre Julliard902da691995-11-05 14:39:02 +00009409
Alexandre Julliard48957682001-12-26 23:08:31 +00009410CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009411if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00009412then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009413
9414for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00009415do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009416as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009417if eval "test \"\${$as_ac_Header+set}\" = set"; then
9418 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9420if eval "test \"\${$as_ac_Header+set}\" = set"; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009422fi
9423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009425else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009426 # Is the header compilable?
9427echo "$as_me:$LINENO: checking $ac_header usability" >&5
9428echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9429cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009430/* confdefs.h. */
9431_ACEOF
9432cat confdefs.h >>conftest.$ac_ext
9433cat >>conftest.$ac_ext <<_ACEOF
9434/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009435$ac_includes_default
9436#include <$ac_header>
9437_ACEOF
9438rm -f conftest.$ac_objext
9439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009440 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009441 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009442 grep -v '^ *+' conftest.er1 >conftest.err
9443 rm -f conftest.er1
9444 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; } &&
9453 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9459 ac_header_compiler=yes
9460else
9461 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009462sed 's/^/| /' conftest.$ac_ext >&5
9463
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009464ac_header_compiler=no
9465fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009467echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9468echo "${ECHO_T}$ac_header_compiler" >&6
9469
9470# Is the header present?
9471echo "$as_me:$LINENO: checking $ac_header presence" >&5
9472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9473cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009474/* confdefs.h. */
9475_ACEOF
9476cat confdefs.h >>conftest.$ac_ext
9477cat >>conftest.$ac_ext <<_ACEOF
9478/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009479#include <$ac_header>
9480_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9483 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009484 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009485 rm -f conftest.er1
9486 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009488 (exit $ac_status); } >/dev/null; then
9489 if test -s conftest.err; then
9490 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009492 else
9493 ac_cpp_err=
9494 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009495else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009496 ac_cpp_err=yes
9497fi
9498if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009499 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009500else
9501 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009502sed 's/^/| /' conftest.$ac_ext >&5
9503
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009504 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009505fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009506rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009507echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9508echo "${ECHO_T}$ac_header_preproc" >&6
9509
9510# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9512 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9514echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9516echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9517 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009518 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009519 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9521echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9523echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9525echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9527echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9531echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009532 (
9533 cat <<\_ASBOX
9534## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009535## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009536## ------------------------------------ ##
9537_ASBOX
9538 ) |
9539 sed "s/^/$as_me: WARNING: /" >&2
9540 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009541esac
9542echo "$as_me:$LINENO: checking for $ac_header" >&5
9543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9544if eval "test \"\${$as_ac_Header+set}\" = set"; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009547 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00009548fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009551
9552fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009553if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009554 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009556_ACEOF
9557 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009558echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9559if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009561else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009562 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009563LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009564cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009565/* confdefs.h. */
9566_ACEOF
9567cat confdefs.h >>conftest.$ac_ext
9568cat >>conftest.$ac_ext <<_ACEOF
9569/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009570
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009571/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009572#ifdef __cplusplus
9573extern "C"
9574#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009575/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009576 builtin and then its argument prototype would still apply. */
9577char waddch ();
9578int
9579main ()
9580{
9581waddch ();
9582 ;
9583 return 0;
9584}
9585_ACEOF
9586rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009588 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009589 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009590 grep -v '^ *+' conftest.er1 >conftest.err
9591 rm -f conftest.er1
9592 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009594 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 (eval $ac_try) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; } &&
9601 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009603 (eval $ac_try) 2>&5
9604 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009606 (exit $ac_status); }; }; then
9607 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009608else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009609 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009610sed 's/^/| /' conftest.$ac_ext >&5
9611
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009612ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009613fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009614rm -f conftest.err conftest.$ac_objext \
9615 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009616LIBS=$ac_check_lib_save_LIBS
9617fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009618echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009619echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9620if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009621
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009622cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00009623#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009624_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009625
Alexandre Julliard48957682001-12-26 23:08:31 +00009626 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00009627else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009628
9629for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00009630do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009632if eval "test \"\${$as_ac_Header+set}\" = set"; then
9633 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9635if eval "test \"\${$as_ac_Header+set}\" = set"; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009637fi
9638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009640else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009641 # Is the header compilable?
9642echo "$as_me:$LINENO: checking $ac_header usability" >&5
9643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9644cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009645/* confdefs.h. */
9646_ACEOF
9647cat confdefs.h >>conftest.$ac_ext
9648cat >>conftest.$ac_ext <<_ACEOF
9649/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009650$ac_includes_default
9651#include <$ac_header>
9652_ACEOF
9653rm -f conftest.$ac_objext
9654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009655 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009656 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009657 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1
9659 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 ac_header_compiler=yes
9675else
9676 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009677sed 's/^/| /' conftest.$ac_ext >&5
9678
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009679ac_header_compiler=no
9680fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009682echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9683echo "${ECHO_T}$ac_header_compiler" >&6
9684
9685# Is the header present?
9686echo "$as_me:$LINENO: checking $ac_header presence" >&5
9687echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9688cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009689/* confdefs.h. */
9690_ACEOF
9691cat confdefs.h >>conftest.$ac_ext
9692cat >>conftest.$ac_ext <<_ACEOF
9693/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009694#include <$ac_header>
9695_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9698 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009699 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009700 rm -f conftest.er1
9701 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009703 (exit $ac_status); } >/dev/null; then
9704 if test -s conftest.err; then
9705 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009707 else
9708 ac_cpp_err=
9709 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009710else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009711 ac_cpp_err=yes
9712fi
9713if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009714 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009715else
9716 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009717sed 's/^/| /' conftest.$ac_ext >&5
9718
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009719 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009720fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009721rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009722echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9723echo "${ECHO_T}$ac_header_preproc" >&6
9724
9725# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009726case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9727 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9729echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9731echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9732 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009733 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009734 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9736echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9738echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9740echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9742echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009744echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9746echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009747 (
9748 cat <<\_ASBOX
9749## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009750## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009751## ------------------------------------ ##
9752_ASBOX
9753 ) |
9754 sed "s/^/$as_me: WARNING: /" >&2
9755 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009756esac
9757echo "$as_me:$LINENO: checking for $ac_header" >&5
9758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9759if eval "test \"\${$as_ac_Header+set}\" = set"; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9761else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009762 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00009763fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009765echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009766
9767fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009768if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009769 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009770#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009771_ACEOF
9772 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009773echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9774if test "${ac_cv_lib_curses_waddch+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009776else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009777 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009778LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009779cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009780/* confdefs.h. */
9781_ACEOF
9782cat confdefs.h >>conftest.$ac_ext
9783cat >>conftest.$ac_ext <<_ACEOF
9784/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009785
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009786/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009787#ifdef __cplusplus
9788extern "C"
9789#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009790/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009791 builtin and then its argument prototype would still apply. */
9792char waddch ();
9793int
9794main ()
9795{
9796waddch ();
9797 ;
9798 return 0;
9799}
9800_ACEOF
9801rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009803 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009804 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009809 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 (eval $ac_try) 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009818 (eval $ac_try) 2>&5
9819 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009821 (exit $ac_status); }; }; then
9822 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009823else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009824 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009825sed 's/^/| /' conftest.$ac_ext >&5
9826
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009827ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009828fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009829rm -f conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009831LIBS=$ac_check_lib_save_LIBS
9832fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009833echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009834echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9835if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009836
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009837cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00009838#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009839_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009840
Alexandre Julliard48957682001-12-26 23:08:31 +00009841 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009842fi
9843
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009844fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009845
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009846done
9847
9848fi
Alexandre Julliard48957682001-12-26 23:08:31 +00009849
Alexandre Julliard48957682001-12-26 23:08:31 +00009850fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009851
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009852done
9853
Alexandre Julliard48957682001-12-26 23:08:31 +00009854 saved_libs="$LIBS"
9855 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009856
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009857
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009858for ac_func in getbkgd resizeterm
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009859do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009860as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009861echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009862echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9863if eval "test \"\${$as_ac_var+set}\" = set"; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard638f1691999-01-17 16:32:32 +00009865else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009866 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009867/* confdefs.h. */
9868_ACEOF
9869cat confdefs.h >>conftest.$ac_ext
9870cat >>conftest.$ac_ext <<_ACEOF
9871/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00009872/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9874#define $ac_func innocuous_$ac_func
9875
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009876/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009877 which can conflict with char $ac_func (); below.
9878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9879 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00009880
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009881#ifdef __STDC__
9882# include <limits.h>
9883#else
9884# include <assert.h>
9885#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00009886
9887#undef $ac_func
9888
Alexandre Julliard638f1691999-01-17 16:32:32 +00009889/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009890#ifdef __cplusplus
9891extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009892{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009893#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00009894/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009895 builtin and then its argument prototype would still apply. */
9896char $ac_func ();
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009897/* The GNU C library defines this for functions which it implements
9898 to always fail with ENOSYS. Some functions are actually named
9899 something starting with __ and the normal name is an alias. */
9900#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9901choke me
9902#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009903char (*f) () = $ac_func;
9904#endif
9905#ifdef __cplusplus
9906}
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009907#endif
9908
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009909int
9910main ()
9911{
9912return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009913 ;
9914 return 0;
9915}
9916_ACEOF
9917rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009919 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009920 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009921 grep -v '^ *+' conftest.er1 >conftest.err
9922 rm -f conftest.er1
9923 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009925 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 (eval $ac_try) 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; } &&
9932 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009934 (eval $ac_try) 2>&5
9935 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009937 (exit $ac_status); }; }; then
9938 eval "$as_ac_var=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00009939else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009940 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009941sed 's/^/| /' conftest.$ac_ext >&5
9942
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009943eval "$as_ac_var=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00009944fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009945rm -f conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard638f1691999-01-17 16:32:32 +00009947fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009949echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9950if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009951 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009953_ACEOF
Alexandre Julliard638f1691999-01-17 16:32:32 +00009954
Alexandre Julliard638f1691999-01-17 16:32:32 +00009955fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009956done
Alexandre Julliard638f1691999-01-17 16:32:32 +00009957
Alexandre Julliard48957682001-12-26 23:08:31 +00009958 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009959fi
9960
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009961
Shi Quan He6b0720f2002-03-21 02:58:39 +00009962# Extract the first word of "sane-config", so it can be a program name with args.
9963set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009964echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9966if test "${ac_cv_prog_sane_devel+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968else
9969 if test -n "$sane_devel"; then
9970 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9971else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973for as_dir in $PATH
9974do
9975 IFS=$as_save_IFS
9976 test -z "$as_dir" && as_dir=.
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979 ac_cv_prog_sane_devel="sane-config"
9980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9981 break 2
9982 fi
9983done
Shi Quan He6b0720f2002-03-21 02:58:39 +00009984done
9985
9986 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9987fi
9988fi
9989sane_devel=$ac_cv_prog_sane_devel
9990if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009991 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009992echo "${ECHO_T}$sane_devel" >&6
9993else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009994 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009995echo "${ECHO_T}no" >&6
9996fi
9997
9998if test "$sane_devel" = "no"
9999then
10000 SANELIBS=""
10001 SANEINCL=""
10002else
10003 SANELIBS="`$sane_devel --libs`"
10004 SANEINCL="`$sane_devel --cflags`"
10005 ac_save_CPPFLAGS="$CPPFLAGS"
10006 ac_save_LIBS="$LIBS"
10007 CPPFLAGS="$CPPFLAGS $SANEINCL"
10008 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010009 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10010 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000010011echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10012if test "${ac_cv_header_sane_sane_h+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010014fi
10015echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10016echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +000010017else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010018 # Is the header compilable?
10019echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
10020echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
10021cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010022/* confdefs.h. */
10023_ACEOF
10024cat confdefs.h >>conftest.$ac_ext
10025cat >>conftest.$ac_ext <<_ACEOF
10026/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010027$ac_includes_default
10028#include <sane/sane.h>
10029_ACEOF
10030rm -f conftest.$ac_objext
10031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010032 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010033 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 ac_header_compiler=yes
10052else
10053 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010054sed 's/^/| /' conftest.$ac_ext >&5
10055
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010056ac_header_compiler=no
10057fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010059echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10060echo "${ECHO_T}$ac_header_compiler" >&6
10061
10062# Is the header present?
10063echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10064echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
10065cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010066/* confdefs.h. */
10067_ACEOF
10068cat confdefs.h >>conftest.$ac_ext
10069cat >>conftest.$ac_ext <<_ACEOF
10070/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000010071#include <sane/sane.h>
10072_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000010074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10075 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010076 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +000010077 rm -f conftest.er1
10078 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000010080 (exit $ac_status); } >/dev/null; then
10081 if test -s conftest.err; then
10082 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Shi Quan He6b0720f2002-03-21 02:58:39 +000010084 else
10085 ac_cpp_err=
10086 fi
10087else
10088 ac_cpp_err=yes
10089fi
10090if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010091 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +000010092else
10093 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010094sed 's/^/| /' conftest.$ac_ext >&5
10095
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010096 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +000010097fi
10098rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010099echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10100echo "${ECHO_T}$ac_header_preproc" >&6
10101
10102# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10104 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010105 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10106echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010107 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10108echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10109 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010110 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000010111 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010112 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10113echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010114 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10115echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10116 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10117echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10118 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10119echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010120 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010121echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010122 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10123echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010124 (
10125 cat <<\_ASBOX
10126## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000010127## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010128## ------------------------------------ ##
10129_ASBOX
10130 ) |
10131 sed "s/^/$as_me: WARNING: /" >&2
10132 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010133esac
10134echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10135echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10136if test "${ac_cv_header_sane_sane_h+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10138else
10139 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +000010140fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010141echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000010142echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010143
10144fi
Shi Quan He6b0720f2002-03-21 02:58:39 +000010145if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010146 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000010147echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
10148if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151 ac_check_lib_save_LIBS=$LIBS
10152LIBS="-lsane $LIBS"
10153cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010154/* confdefs.h. */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000010159
10160/* Override any gcc2 internal prototype to avoid an error. */
10161#ifdef __cplusplus
10162extern "C"
10163#endif
10164/* We use char because int might match the return type of a gcc2
10165 builtin and then its argument prototype would still apply. */
10166char sane_open ();
10167int
10168main ()
10169{
10170sane_open ();
10171 ;
10172 return 0;
10173}
10174_ACEOF
10175rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010177 (eval $ac_link) 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +000010178 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000010183 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; } &&
10190 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000010192 (eval $ac_try) 2>&5
10193 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000010195 (exit $ac_status); }; }; then
10196 ac_cv_lib_sane_sane_open=yes
10197else
10198 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010199sed 's/^/| /' conftest.$ac_ext >&5
10200
Shi Quan He6b0720f2002-03-21 02:58:39 +000010201ac_cv_lib_sane_sane_open=no
10202fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010203rm -f conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
Shi Quan He6b0720f2002-03-21 02:58:39 +000010205LIBS=$ac_check_lib_save_LIBS
10206fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010207echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000010208echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
10209if test $ac_cv_lib_sane_sane_open = yes; then
10210
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010211cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000010212#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010213_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000010214
10215else
10216 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +000010217 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +000010218fi
10219
Alexandre Julliard96328b32002-03-31 19:23:41 +000010220else
10221 SANELIBS=""
10222 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +000010223fi
10224
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010225
Shi Quan He6b0720f2002-03-21 02:58:39 +000010226 LIBS="$ac_save_LIBS"
10227 CPPFLAGS="$ac_save_CPPFLAGS"
10228fi
10229
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010230
10231
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010232
10233for ac_header in unicode/ubidi.h
10234do
10235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10236if eval "test \"\${$as_ac_Header+set}\" = set"; then
10237 echo "$as_me:$LINENO: checking for $ac_header" >&5
10238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10239if eval "test \"\${$as_ac_Header+set}\" = set"; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241fi
10242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10244else
10245 # Is the header compilable?
10246echo "$as_me:$LINENO: checking $ac_header usability" >&5
10247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10248cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010249/* confdefs.h. */
10250_ACEOF
10251cat confdefs.h >>conftest.$ac_ext
10252cat >>conftest.$ac_ext <<_ACEOF
10253/* end confdefs.h. */
10254$ac_includes_default
10255#include <$ac_header>
10256_ACEOF
10257rm -f conftest.$ac_objext
10258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010259 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010260 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010261 grep -v '^ *+' conftest.er1 >conftest.err
10262 rm -f conftest.er1
10263 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 ac_header_compiler=yes
10279else
10280 echo "$as_me: failed program was:" >&5
10281sed 's/^/| /' conftest.$ac_ext >&5
10282
10283ac_header_compiler=no
10284fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010286echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10287echo "${ECHO_T}$ac_header_compiler" >&6
10288
10289# Is the header present?
10290echo "$as_me:$LINENO: checking $ac_header presence" >&5
10291echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10292cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010293/* confdefs.h. */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
10297/* end confdefs.h. */
10298#include <$ac_header>
10299_ACEOF
10300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10302 ac_status=$?
10303 grep -v '^ *+' conftest.er1 >conftest.err
10304 rm -f conftest.er1
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } >/dev/null; then
10308 if test -s conftest.err; then
10309 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010311 else
10312 ac_cpp_err=
10313 fi
10314else
10315 ac_cpp_err=yes
10316fi
10317if test -z "$ac_cpp_err"; then
10318 ac_header_preproc=yes
10319else
10320 echo "$as_me: failed program was:" >&5
10321sed 's/^/| /' conftest.$ac_ext >&5
10322
10323 ac_header_preproc=no
10324fi
10325rm -f conftest.err conftest.$ac_ext
10326echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10327echo "${ECHO_T}$ac_header_preproc" >&6
10328
10329# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10331 yes:no: )
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10333echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10335echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10336 ac_header_preproc=yes
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010337 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000010338 no:yes:* )
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10340echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10342echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10344echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10346echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10348echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10350echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010351 (
10352 cat <<\_ASBOX
10353## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000010354## Report this to wine-devel@winehq.org ##
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010355## ------------------------------------ ##
10356_ASBOX
10357 ) |
10358 sed "s/^/$as_me: WARNING: /" >&2
10359 ;;
10360esac
10361echo "$as_me:$LINENO: checking for $ac_header" >&5
10362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10363if eval "test \"\${$as_ac_Header+set}\" = set"; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365else
Alexandre Julliard875927f2004-01-02 01:55:29 +000010366 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010367fi
10368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10370
10371fi
10372if test `eval echo '${'$as_ac_Header'}'` = yes; then
10373 cat >>confdefs.h <<_ACEOF
10374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10375_ACEOF
10376
10377fi
10378
10379done
10380
10381if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10382then
Marcus Meissnerbc624582004-01-18 22:15:46 +000010383 saved_libs="$LIBS"
10384 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
Shachar Shemesh9f2627e2004-04-06 20:13:21 +000010385 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
10386 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
10387 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
10388echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +000010389 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10390 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010391/* confdefs.h. */
10392_ACEOF
10393cat confdefs.h >>conftest.$ac_ext
10394cat >>conftest.$ac_ext <<_ACEOF
10395/* end confdefs.h. */
10396#include <unicode/ubidi.h>
10397int
10398main ()
10399{
10400ubidi_open()
10401 ;
10402 return 0;
10403}
10404_ACEOF
10405rm -f conftest.$ac_objext conftest$ac_exeext
10406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010407 (eval $ac_link) 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010408 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010409 grep -v '^ *+' conftest.er1 >conftest.err
10410 rm -f conftest.er1
10411 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; } &&
10420 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422 (eval $ac_try) 2>&5
10423 ac_status=$?
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; }; then
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010426
10427cat >>confdefs.h <<\_ACEOF
10428#define HAVE_ICU 1
10429_ACEOF
10430
Marcus Meissnerbc624582004-01-18 22:15:46 +000010431 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010432
Shachar Shemesh9f2627e2004-04-06 20:13:21 +000010433 echo "$as_me:$LINENO: result: yes" >&5
10434echo "${ECHO_T}yes" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +000010435else
10436 echo "$as_me: failed program was:" >&5
10437sed 's/^/| /' conftest.$ac_ext >&5
10438
Shachar Shemesh9f2627e2004-04-06 20:13:21 +000010439echo "$as_me:$LINENO: result: no" >&5
10440echo "${ECHO_T}no" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +000010441fi
10442rm -f conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10444 LIBS="$saved_libs"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000010445fi
10446
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010447echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010448echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10449if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10450 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010451else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010452 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +000010453LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010454cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010455/* confdefs.h. */
10456_ACEOF
10457cat confdefs.h >>conftest.$ac_ext
10458cat >>conftest.$ac_ext <<_ACEOF
10459/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010460
Ian Pilcher563598d2001-05-16 20:56:05 +000010461/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010462#ifdef __cplusplus
10463extern "C"
10464#endif
Ian Pilcher563598d2001-05-16 20:56:05 +000010465/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010466 builtin and then its argument prototype would still apply. */
10467char FT_Init_FreeType ();
10468int
10469main ()
10470{
10471FT_Init_FreeType ();
10472 ;
10473 return 0;
10474}
10475_ACEOF
10476rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010478 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010479 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010480 grep -v '^ *+' conftest.er1 >conftest.err
10481 rm -f conftest.er1
10482 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010484 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; } &&
10491 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010493 (eval $ac_try) 2>&5
10494 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010496 (exit $ac_status); }; }; then
10497 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010498else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010499 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010500sed 's/^/| /' conftest.$ac_ext >&5
10501
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010502ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010503fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010504rm -f conftest.err conftest.$ac_objext \
10505 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010506LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010507fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010508echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010509echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10510if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +000010511 ft_lib=yes
10512else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010513 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010514fi
10515
10516if test "$ft_lib" = "no"
10517then
Ian Pilcher563598d2001-05-16 20:56:05 +000010518 FREETYPEINCL=""
10519 wine_cv_msg_freetype=no
10520else
10521 # Extract the first word of "freetype-config", so it can be a program name with args.
10522set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010523echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10525if test "${ac_cv_prog_ft_devel+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010527else
10528 if test -n "$ft_devel"; then
10529 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10530else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532for as_dir in $PATH
10533do
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10538 ac_cv_prog_ft_devel="freetype-config"
10539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10541 fi
10542done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010543done
10544
Ian Pilcher563598d2001-05-16 20:56:05 +000010545 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10546fi
10547fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010548ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +000010549if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010550 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010551echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010552else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010553 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010554echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010555fi
10556
10557 if test "$ft_devel" = "no"
10558 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010559 # Extract the first word of "freetype2-config", so it can be a program name with args.
10560set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010561echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10563if test "${ac_cv_prog_ft_devel2+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010565else
10566 if test -n "$ft_devel2"; then
10567 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10568else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570for as_dir in $PATH
10571do
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10576 ac_cv_prog_ft_devel2="freetype2-config"
10577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 break 2
10579 fi
10580done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010581done
10582
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010583 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10584fi
10585fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010586ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010587if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010588 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010589echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010590else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010591 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010592echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010593fi
10594
10595 if test "$ft_devel2" = "freetype2-config"
10596 then
10597 ft_devel=$ft_devel2
10598 fi
10599 fi
10600 if test "$ft_devel" = "no"
10601 then
Ian Pilcher563598d2001-05-16 20:56:05 +000010602 FREETYPEINCL=""
10603 wine_cv_msg_freetype=yes
10604 else
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010605 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +000010606 ac_save_CPPFLAGS="$CPPFLAGS"
10607 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010608
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010609
10610
10611
10612
10613
10614
10615
Rein Klazese617a9c2003-11-19 02:18:13 +000010616
Huw Daviesc2217182004-06-16 20:06:26 +000010617
Rein Klazese617a9c2003-11-19 02:18:13 +000010618for ac_header in ft2build.h \
10619 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010620 freetype/ftglyph.h \
10621 freetype/tttables.h \
10622 freetype/ftnames.h \
10623 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010624 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010625 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010626 freetype/ftwinfnt.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010627 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +000010628do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010629as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Rein Klazes9c269172003-11-20 04:17:33 +000010630echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10632if eval "test \"\${$as_ac_Header+set}\" = set"; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010634else
Rein Klazes9c269172003-11-20 04:17:33 +000010635 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010636/* confdefs.h. */
10637_ACEOF
10638cat confdefs.h >>conftest.$ac_ext
10639cat >>conftest.$ac_ext <<_ACEOF
10640/* end confdefs.h. */
Rein Klazes9c269172003-11-20 04:17:33 +000010641#if HAVE_FT2BUILD_H
10642 #include <ft2build.h>
10643 #endif
10644
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010645#include <$ac_header>
10646_ACEOF
10647rm -f conftest.$ac_objext
10648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010649 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010650 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; } &&
10662 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
Rein Klazes9c269172003-11-20 04:17:33 +000010668 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010669else
10670 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010671sed 's/^/| /' conftest.$ac_ext >&5
10672
Rein Klazes9c269172003-11-20 04:17:33 +000010673eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010674fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010676fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010679if test `eval echo '${'$as_ac_Header'}'` = yes; then
10680 cat >>confdefs.h <<_ACEOF
10681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10682_ACEOF
10683
10684fi
10685
Ian Pilcher40432fe2001-06-06 21:05:23 +000010686done
10687
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010688 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010689/* confdefs.h. */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010694#include <ft2build.h>
10695 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010696_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10699 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010700 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010701 rm -f conftest.er1
10702 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010704 (exit $ac_status); } >/dev/null; then
10705 if test -s conftest.err; then
10706 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010708 else
10709 ac_cpp_err=
10710 fi
10711else
10712 ac_cpp_err=yes
10713fi
10714if test -z "$ac_cpp_err"; then
10715
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010716cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000010717#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010718_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000010719
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010720 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010721else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010722 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010723sed 's/^/| /' conftest.$ac_ext >&5
10724
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010725 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010726fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010727rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +000010728 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010729 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010730 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010731
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010732cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010733#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010734_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010735
10736 wine_cv_msg_freetype=no
10737 else
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010738 FREETYPEINCL=""
10739 wine_cv_msg_freetype=yes
10740 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010741 fi
10742fi
10743
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010744
10745echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010746echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10747if test "${ac_cv_c_ppdev+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010749else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010750 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010751/* confdefs.h. */
10752_ACEOF
10753cat confdefs.h >>conftest.$ac_ext
10754cat >>conftest.$ac_ext <<_ACEOF
10755/* end confdefs.h. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010756#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010757int
10758main ()
10759{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010760ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010761 ;
10762 return 0;
10763}
10764_ACEOF
10765rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010767 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010768 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010773 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; } &&
10780 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010782 (eval $ac_try) 2>&5
10783 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010785 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010786 ac_cv_c_ppdev="yes"
10787else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010788 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010789sed 's/^/| /' conftest.$ac_ext >&5
10790
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010791ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010792fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010794
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010795fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010796echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010797echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010798if test "$ac_cv_c_ppdev" = "yes"
10799then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010800
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010801cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010802#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010803_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010804
10805fi
10806
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010807echo "$as_me:$LINENO: checking for va_copy" >&5
10808echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10809if test "${ac_cv_c_va_copy+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10811else
10812 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010813/* confdefs.h. */
10814_ACEOF
10815cat confdefs.h >>conftest.$ac_ext
10816cat >>conftest.$ac_ext <<_ACEOF
10817/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010818#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010819int
10820main ()
10821{
10822va_list ap1, ap2;
10823 va_copy(ap1,ap2);
10824
10825 ;
10826 return 0;
10827}
10828_ACEOF
10829rm -f conftest.$ac_objext conftest$ac_exeext
10830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010831 (eval $ac_link) 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010832 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10841 ac_status=$?
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; } &&
10844 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10850 ac_cv_c_va_copy="yes"
10851else
10852 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010853sed 's/^/| /' conftest.$ac_ext >&5
10854
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010855ac_cv_c_va_copy="no"
10856fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010857rm -f conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010859
10860fi
10861echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10862echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10863if test "$ac_cv_c_va_copy" = "yes"
10864then
10865
10866cat >>confdefs.h <<\_ACEOF
10867#define HAVE_VA_COPY 1
10868_ACEOF
10869
10870fi
10871echo "$as_me:$LINENO: checking for __va_copy" >&5
10872echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10873if test "${ac_cv_c___va_copy+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875else
10876 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010877/* confdefs.h. */
10878_ACEOF
10879cat confdefs.h >>conftest.$ac_ext
10880cat >>conftest.$ac_ext <<_ACEOF
10881/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010882#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010883int
10884main ()
10885{
10886va_list ap1, ap2;
10887 __va_copy(ap1,ap2);
10888
10889 ;
10890 return 0;
10891}
10892_ACEOF
10893rm -f conftest.$ac_objext conftest$ac_exeext
10894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010895 (eval $ac_link) 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010896 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10910 (eval $ac_try) 2>&5
10911 ac_status=$?
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; }; then
10914 ac_cv_c___va_copy="yes"
10915else
10916 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010917sed 's/^/| /' conftest.$ac_ext >&5
10918
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010919ac_cv_c___va_copy="no"
10920fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010921rm -f conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010923
10924fi
10925echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10926echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10927if test "$ac_cv_c___va_copy" = "yes"
10928then
10929
10930cat >>confdefs.h <<\_ACEOF
10931#define HAVE___VA_COPY 1
10932_ACEOF
10933
10934fi
10935
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010936echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10937echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10938if test "${ac_cv_c_sigsetjmp+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940else
10941 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010942/* confdefs.h. */
10943_ACEOF
10944cat confdefs.h >>conftest.$ac_ext
10945cat >>conftest.$ac_ext <<_ACEOF
10946/* end confdefs.h. */
10947#include <setjmp.h>
10948int
10949main ()
10950{
10951sigjmp_buf buf;
10952 sigsetjmp( buf, 1 );
10953 siglongjmp( buf, 1 );
10954 ;
10955 return 0;
10956}
10957_ACEOF
10958rm -f conftest.$ac_objext conftest$ac_exeext
10959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010960 (eval $ac_link) 2>conftest.er1
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010961 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; } &&
10973 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 ac_cv_c_sigsetjmp="yes"
10980else
10981 echo "$as_me: failed program was:" >&5
10982sed 's/^/| /' conftest.$ac_ext >&5
10983
10984ac_cv_c_sigsetjmp="no"
10985fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010986rm -f conftest.err conftest.$ac_objext \
10987 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010988
10989fi
10990echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10991echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10992if test "$ac_cv_c_sigsetjmp" = "yes"
10993then
10994
10995cat >>confdefs.h <<\_ACEOF
10996#define HAVE_SIGSETJMP 1
10997_ACEOF
10998
10999fi
11000
Alexandre Julliard80e34db2003-09-03 00:26:08 +000011001echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11002echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
11003if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11005else
11006 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000011007/* confdefs.h. */
11008_ACEOF
11009cat confdefs.h >>conftest.$ac_ext
11010cat >>conftest.$ac_ext <<_ACEOF
11011/* end confdefs.h. */
11012#define _GNU_SOURCE
11013#include <pthread.h>
11014
11015int
11016main ()
11017{
11018if ((pthread_rwlock_t *) 0)
11019 return 0;
11020if (sizeof (pthread_rwlock_t))
11021 return 0;
11022 ;
11023 return 0;
11024}
11025_ACEOF
11026rm -f conftest.$ac_objext
11027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011028 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000011029 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011030 grep -v '^ *+' conftest.er1 >conftest.err
11031 rm -f conftest.er1
11032 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000011033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11037 (eval $ac_try) 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; } &&
11041 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard80e34db2003-09-03 00:26:08 +000011042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 ac_cv_type_pthread_rwlock_t=yes
11048else
11049 echo "$as_me: failed program was:" >&5
11050sed 's/^/| /' conftest.$ac_ext >&5
11051
11052ac_cv_type_pthread_rwlock_t=no
11053fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000011055fi
11056echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11057echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
11058if test $ac_cv_type_pthread_rwlock_t = yes; then
11059
11060cat >>confdefs.h <<_ACEOF
11061#define HAVE_PTHREAD_RWLOCK_T 1
11062_ACEOF
11063
11064
11065fi
11066echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11067echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
11068if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11070else
11071 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000011072/* confdefs.h. */
11073_ACEOF
11074cat confdefs.h >>conftest.$ac_ext
11075cat >>conftest.$ac_ext <<_ACEOF
11076/* end confdefs.h. */
11077#define _GNU_SOURCE
11078#include <pthread.h>
11079
11080int
11081main ()
11082{
11083if ((pthread_rwlockattr_t *) 0)
11084 return 0;
11085if (sizeof (pthread_rwlockattr_t))
11086 return 0;
11087 ;
11088 return 0;
11089}
11090_ACEOF
11091rm -f conftest.$ac_objext
11092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011093 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000011094 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011095 grep -v '^ *+' conftest.er1 >conftest.err
11096 rm -f conftest.er1
11097 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000011098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; } &&
11106 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard80e34db2003-09-03 00:26:08 +000011107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108 (eval $ac_try) 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; }; then
11112 ac_cv_type_pthread_rwlockattr_t=yes
11113else
11114 echo "$as_me: failed program was:" >&5
11115sed 's/^/| /' conftest.$ac_ext >&5
11116
11117ac_cv_type_pthread_rwlockattr_t=no
11118fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000011120fi
11121echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11122echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11123if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11124
11125cat >>confdefs.h <<_ACEOF
11126#define HAVE_PTHREAD_RWLOCKATTR_T 1
11127_ACEOF
11128
11129
11130fi
11131
11132
Alexandre Julliard821ab862003-11-12 22:44:56 +000011133ac_save_LIBS="$LIBS"
11134LIBS="$LIBS $LIBPTHREAD"
11135
11136for ac_func in pthread_getattr_np
11137do
11138as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11139echo "$as_me:$LINENO: checking for $ac_func" >&5
11140echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11141if eval "test \"\${$as_ac_var+set}\" = set"; then
11142 echo $ECHO_N "(cached) $ECHO_C" >&6
11143else
11144 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard821ab862003-11-12 22:44:56 +000011145/* confdefs.h. */
11146_ACEOF
11147cat confdefs.h >>conftest.$ac_ext
11148cat >>conftest.$ac_ext <<_ACEOF
11149/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000011150/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11152#define $ac_func innocuous_$ac_func
11153
Alexandre Julliard821ab862003-11-12 22:44:56 +000011154/* System header to define __stub macros and hopefully few prototypes,
11155 which can conflict with char $ac_func (); below.
11156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11157 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000011158
Alexandre Julliard821ab862003-11-12 22:44:56 +000011159#ifdef __STDC__
11160# include <limits.h>
11161#else
11162# include <assert.h>
11163#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000011164
11165#undef $ac_func
11166
Alexandre Julliard821ab862003-11-12 22:44:56 +000011167/* Override any gcc2 internal prototype to avoid an error. */
11168#ifdef __cplusplus
11169extern "C"
11170{
11171#endif
11172/* We use char because int might match the return type of a gcc2
11173 builtin and then its argument prototype would still apply. */
11174char $ac_func ();
11175/* The GNU C library defines this for functions which it implements
11176 to always fail with ENOSYS. Some functions are actually named
11177 something starting with __ and the normal name is an alias. */
11178#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11179choke me
11180#else
11181char (*f) () = $ac_func;
11182#endif
11183#ifdef __cplusplus
11184}
11185#endif
11186
11187int
11188main ()
11189{
11190return f != $ac_func;
11191 ;
11192 return 0;
11193}
11194_ACEOF
11195rm -f conftest.$ac_objext conftest$ac_exeext
11196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011197 (eval $ac_link) 2>conftest.er1
Alexandre Julliard821ab862003-11-12 22:44:56 +000011198 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011199 grep -v '^ *+' conftest.er1 >conftest.err
11200 rm -f conftest.er1
11201 cat conftest.err >&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000011202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; } &&
11210 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard821ab862003-11-12 22:44:56 +000011211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; }; then
11216 eval "$as_ac_var=yes"
11217else
11218 echo "$as_me: failed program was:" >&5
11219sed 's/^/| /' conftest.$ac_ext >&5
11220
11221eval "$as_ac_var=no"
11222fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011223rm -f conftest.err conftest.$ac_objext \
11224 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard821ab862003-11-12 22:44:56 +000011225fi
11226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11227echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11228if test `eval echo '${'$as_ac_var'}'` = yes; then
11229 cat >>confdefs.h <<_ACEOF
11230#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11231_ACEOF
11232
11233fi
11234done
11235
11236LIBS="$ac_save_LIBS"
11237
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011238
11239
11240
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011241for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011242do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011244if eval "test \"\${$as_ac_Header+set}\" = set"; then
11245 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11247if eval "test \"\${$as_ac_Header+set}\" = set"; then
11248 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011249fi
11250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11251echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011252else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011253 # Is the header compilable?
11254echo "$as_me:$LINENO: checking $ac_header usability" >&5
11255echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11256cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011257/* confdefs.h. */
11258_ACEOF
11259cat confdefs.h >>conftest.$ac_ext
11260cat >>conftest.$ac_ext <<_ACEOF
11261/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011262$ac_includes_default
11263#include <$ac_header>
11264_ACEOF
11265rm -f conftest.$ac_objext
11266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011267 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011268 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011269 grep -v '^ *+' conftest.er1 >conftest.err
11270 rm -f conftest.er1
11271 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276 (eval $ac_try) 2>&5
11277 ac_status=$?
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); }; } &&
11280 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_header_compiler=yes
11287else
11288 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011289sed 's/^/| /' conftest.$ac_ext >&5
11290
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011291ac_header_compiler=no
11292fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011294echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11295echo "${ECHO_T}$ac_header_compiler" >&6
11296
11297# Is the header present?
11298echo "$as_me:$LINENO: checking $ac_header presence" >&5
11299echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11300cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011301/* confdefs.h. */
11302_ACEOF
11303cat confdefs.h >>conftest.$ac_ext
11304cat >>conftest.$ac_ext <<_ACEOF
11305/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011306#include <$ac_header>
11307_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11310 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011311 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011312 rm -f conftest.er1
11313 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011315 (exit $ac_status); } >/dev/null; then
11316 if test -s conftest.err; then
11317 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011319 else
11320 ac_cpp_err=
11321 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011322else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011323 ac_cpp_err=yes
11324fi
11325if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011326 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011327else
11328 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011329sed 's/^/| /' conftest.$ac_ext >&5
11330
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011331 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011332fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011333rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011334echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11335echo "${ECHO_T}$ac_header_preproc" >&6
11336
11337# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11339 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11341echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11343echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11344 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011345 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011346 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11348echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11350echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11352echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11354echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011356echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11358echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011359 (
11360 cat <<\_ASBOX
11361## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011362## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011363## ------------------------------------ ##
11364_ASBOX
11365 ) |
11366 sed "s/^/$as_me: WARNING: /" >&2
11367 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011368esac
11369echo "$as_me:$LINENO: checking for $ac_header" >&5
11370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11371if eval "test \"\${$as_ac_Header+set}\" = set"; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011374 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011375fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011378
11379fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011380if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011381 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011382#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011383_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +000011384 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011385fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011386
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011387done
11388
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011389
11390echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011391echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11392if test "${ac_cv_c_opensoundsystem+set}" = set; then
11393 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011394else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011395 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011396/* confdefs.h. */
11397_ACEOF
11398cat confdefs.h >>conftest.$ac_ext
11399cat >>conftest.$ac_ext <<_ACEOF
11400/* end confdefs.h. */
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011401
Todd Vierlingecc76691998-12-15 17:49:02 +000011402 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011403 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +000011404 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011405 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +000011406 #elif defined(HAVE_SOUNDCARD_H)
11407 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011408 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011409
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011410int
11411main ()
11412{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011413
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011414
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000011415/* check for one of the Open Sound System specific SNDCTL_ defines */
11416#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011417#error No open sound system
11418#endif
11419
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011420 ;
11421 return 0;
11422}
11423_ACEOF
11424rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011426 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011427 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011428 grep -v '^ *+' conftest.er1 >conftest.err
11429 rm -f conftest.er1
11430 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011432 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11436 ac_status=$?
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; } &&
11439 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011441 (eval $ac_try) 2>&5
11442 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011444 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011445 ac_cv_c_opensoundsystem="yes"
11446else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011447 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011448sed 's/^/| /' conftest.$ac_ext >&5
11449
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011450ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011451fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011453fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011454echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011455echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011456
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000011457if test "$ac_cv_c_opensoundsystem" = "yes"
11458then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011459
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011460cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000011461#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011462_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000011463
11464fi
11465
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011466echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011467echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11468if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000011470else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011471 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011472/* confdefs.h. */
11473_ACEOF
11474cat confdefs.h >>conftest.$ac_ext
11475cat >>conftest.$ac_ext <<_ACEOF
11476/* end confdefs.h. */
Eric Pouech338d3b21999-05-22 18:52:21 +000011477
11478 #if defined(HAVE_SYS_SOUNDCARD_H)
11479 #include <sys/soundcard.h>
11480 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11481 #include <machine/soundcard.h>
11482 #elif defined(HAVE_SOUNDCARD_H)
11483 #include <soundcard.h>
11484 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +000011485
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011486int
11487main ()
11488{
Eric Pouech338d3b21999-05-22 18:52:21 +000011489
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011490
Eric Pouech338d3b21999-05-22 18:52:21 +000011491/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11492#if !defined(SNDCTL_SEQ_SYNC)
11493#error No open sound system MIDI interface
11494#endif
11495
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011496 ;
11497 return 0;
11498}
11499_ACEOF
11500rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011502 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011503 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011504 grep -v '^ *+' conftest.er1 >conftest.err
11505 rm -f conftest.er1
11506 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011508 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11512 ac_status=$?
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; } &&
11515 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011517 (eval $ac_try) 2>&5
11518 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011520 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +000011521 ac_cv_c_opensoundsystem_midi="yes"
11522else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011523 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011524sed 's/^/| /' conftest.$ac_ext >&5
11525
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011526ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +000011527fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +000011529fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011530echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011531echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000011532
11533if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11534then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011535
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011536cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000011537#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011538_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000011539
11540fi
11541
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011542# Extract the first word of "artsc-config", so it can be a program name with args.
11543set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011544echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11546if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11548else
11549 case $ARTSCCONFIG in
11550 [\\/]* | ?:[\\/]*)
11551 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11552 ;;
11553 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555for as_dir in $PATH
11556do
11557 IFS=$as_save_IFS
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11561 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11563 break 2
11564 fi
11565done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011566done
11567
11568 ;;
11569esac
11570fi
11571ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11572
11573if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011574 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011575echo "${ECHO_T}$ARTSCCONFIG" >&6
11576else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011577 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011578echo "${ECHO_T}no" >&6
11579fi
11580
Marcus Meissnerbc624582004-01-18 22:15:46 +000011581if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11582then
Alexandre Julliardb3b12cf2004-02-24 01:24:20 +000011583 ARTSC_CFLAGS=""
11584 for i in `$ARTSCCONFIG --cflags`
11585 do
11586 case "$i" in
11587 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11588 esac
11589 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000011590 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11591 save_CFLAGS="$CFLAGS"
11592 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11593 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011594/* confdefs.h. */
11595_ACEOF
11596cat confdefs.h >>conftest.$ac_ext
11597cat >>conftest.$ac_ext <<_ACEOF
11598/* end confdefs.h. */
Marcus Meissnerbc624582004-01-18 22:15:46 +000011599#include <artsc.h>
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011600int
11601main ()
11602{
Marcus Meissnerbc624582004-01-18 22:15:46 +000011603arts_stream_t stream;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011604 ;
11605 return 0;
11606}
11607_ACEOF
11608rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011610 (eval $ac_compile) 2>conftest.er1
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011611 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011612 grep -v '^ *+' conftest.er1 >conftest.err
11613 rm -f conftest.er1
11614 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011616 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; } &&
11623 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011625 (eval $ac_try) 2>&5
11626 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011628 (exit $ac_status); }; }; then
Marcus Meissnerbc624582004-01-18 22:15:46 +000011629 ARTSLIBS=$ARTSC_LIBS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011630
Marcus Meissnerbc624582004-01-18 22:15:46 +000011631 ARTSINCL=$ARTSC_CFLAGS
11632
11633
11634cat >>confdefs.h <<\_ACEOF
11635#define HAVE_ARTS 1
11636_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011637
11638else
11639 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011640sed 's/^/| /' conftest.$ac_ext >&5
11641
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011642fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissnerbc624582004-01-18 22:15:46 +000011644 CFLAGS="$save_CFLAGS"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011645fi
11646
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011647ALSALIBS=""
11648
11649
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011650
11651for ac_header in alsa/asoundlib.h sys/asoundlib.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011652do
11653as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11654if eval "test \"\${$as_ac_Header+set}\" = set"; then
11655 echo "$as_me:$LINENO: checking for $ac_header" >&5
11656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11657if eval "test \"\${$as_ac_Header+set}\" = set"; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11659fi
11660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11662else
11663 # Is the header compilable?
11664echo "$as_me:$LINENO: checking $ac_header usability" >&5
11665echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11666cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011672$ac_includes_default
11673#include <$ac_header>
11674_ACEOF
11675rm -f conftest.$ac_objext
11676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011677 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011678 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; } &&
11690 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11693 ac_status=$?
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 ac_header_compiler=yes
11697else
11698 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011699sed 's/^/| /' conftest.$ac_ext >&5
11700
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011701ac_header_compiler=no
11702fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011704echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11705echo "${ECHO_T}$ac_header_compiler" >&6
11706
11707# Is the header present?
11708echo "$as_me:$LINENO: checking $ac_header presence" >&5
11709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11710cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011711/* confdefs.h. */
11712_ACEOF
11713cat confdefs.h >>conftest.$ac_ext
11714cat >>conftest.$ac_ext <<_ACEOF
11715/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011716#include <$ac_header>
11717_ACEOF
11718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11720 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011721 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011722 rm -f conftest.er1
11723 cat conftest.err >&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } >/dev/null; then
11726 if test -s conftest.err; then
11727 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011729 else
11730 ac_cpp_err=
11731 fi
11732else
11733 ac_cpp_err=yes
11734fi
11735if test -z "$ac_cpp_err"; then
11736 ac_header_preproc=yes
11737else
11738 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011739sed 's/^/| /' conftest.$ac_ext >&5
11740
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011741 ac_header_preproc=no
11742fi
11743rm -f conftest.err conftest.$ac_ext
11744echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11745echo "${ECHO_T}$ac_header_preproc" >&6
11746
11747# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11749 yes:no: )
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11753echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11754 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011755 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011756 no:yes:* )
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11758echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11760echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11762echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11764echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11768echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011769 (
11770 cat <<\_ASBOX
11771## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011772## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011773## ------------------------------------ ##
11774_ASBOX
11775 ) |
11776 sed "s/^/$as_me: WARNING: /" >&2
11777 ;;
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011778esac
11779echo "$as_me:$LINENO: checking for $ac_header" >&5
11780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11781if eval "test \"\${$as_ac_Header+set}\" = set"; then
11782 echo $ECHO_N "(cached) $ECHO_C" >&6
11783else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011784 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011785fi
11786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11788
11789fi
11790if test `eval echo '${'$as_ac_Header'}'` = yes; then
11791 cat >>confdefs.h <<_ACEOF
11792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11793_ACEOF
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011794 break
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011795fi
11796
11797done
11798
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011799if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011800then
11801 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11802echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11803if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11805else
11806 ac_check_lib_save_LIBS=$LIBS
11807LIBS="-lasound $LIBS"
11808cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011809/* confdefs.h. */
11810_ACEOF
11811cat confdefs.h >>conftest.$ac_ext
11812cat >>conftest.$ac_ext <<_ACEOF
11813/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011814
11815/* Override any gcc2 internal prototype to avoid an error. */
11816#ifdef __cplusplus
11817extern "C"
11818#endif
11819/* We use char because int might match the return type of a gcc2
11820 builtin and then its argument prototype would still apply. */
11821char snd_pcm_open ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011822int
11823main ()
11824{
11825snd_pcm_open ();
11826 ;
11827 return 0;
11828}
11829_ACEOF
11830rm -f conftest.$ac_objext conftest$ac_exeext
11831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011832 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011833 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011834 grep -v '^ *+' conftest.er1 >conftest.err
11835 rm -f conftest.er1
11836 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; } &&
11845 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847 (eval $ac_try) 2>&5
11848 ac_status=$?
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; }; then
11851 ac_cv_lib_asound_snd_pcm_open=yes
11852else
11853 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011854sed 's/^/| /' conftest.$ac_ext >&5
11855
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011856ac_cv_lib_asound_snd_pcm_open=no
11857fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011858rm -f conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011860LIBS=$ac_check_lib_save_LIBS
11861fi
11862echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11863echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11864if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11865
11866cat >>confdefs.h <<\_ACEOF
11867#define HAVE_ALSA 1
11868_ACEOF
11869
11870 ALSALIBS="-lasound"
11871fi
11872
11873fi
11874
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011875
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011876AUDIOIOLIBS=""
11877
11878
11879for ac_header in libaudioio.h
11880do
11881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11882if eval "test \"\${$as_ac_Header+set}\" = set"; then
11883 echo "$as_me:$LINENO: checking for $ac_header" >&5
11884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11885if eval "test \"\${$as_ac_Header+set}\" = set"; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11887fi
11888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11890else
11891 # Is the header compilable?
11892echo "$as_me:$LINENO: checking $ac_header usability" >&5
11893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11894cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011895/* confdefs.h. */
11896_ACEOF
11897cat confdefs.h >>conftest.$ac_ext
11898cat >>conftest.$ac_ext <<_ACEOF
11899/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011900$ac_includes_default
11901#include <$ac_header>
11902_ACEOF
11903rm -f conftest.$ac_objext
11904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011905 (eval $ac_compile) 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011906 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011907 grep -v '^ *+' conftest.er1 >conftest.err
11908 rm -f conftest.er1
11909 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914 (eval $ac_try) 2>&5
11915 ac_status=$?
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); }; } &&
11918 { ac_try='test -s conftest.$ac_objext'
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_header_compiler=yes
11925else
11926 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011927sed 's/^/| /' conftest.$ac_ext >&5
11928
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011929ac_header_compiler=no
11930fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011932echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11933echo "${ECHO_T}$ac_header_compiler" >&6
11934
11935# Is the header present?
11936echo "$as_me:$LINENO: checking $ac_header presence" >&5
11937echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11938cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011939/* confdefs.h. */
11940_ACEOF
11941cat confdefs.h >>conftest.$ac_ext
11942cat >>conftest.$ac_ext <<_ACEOF
11943/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011944#include <$ac_header>
11945_ACEOF
11946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11948 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011949 grep -v '^ *+' conftest.er1 >conftest.err
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011950 rm -f conftest.er1
11951 cat conftest.err >&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } >/dev/null; then
11954 if test -s conftest.err; then
11955 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011957 else
11958 ac_cpp_err=
11959 fi
11960else
11961 ac_cpp_err=yes
11962fi
11963if test -z "$ac_cpp_err"; then
11964 ac_header_preproc=yes
11965else
11966 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011967sed 's/^/| /' conftest.$ac_ext >&5
11968
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011969 ac_header_preproc=no
11970fi
11971rm -f conftest.err conftest.$ac_ext
11972echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11973echo "${ECHO_T}$ac_header_preproc" >&6
11974
11975# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011976case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11977 yes:no: )
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11979echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11981echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11982 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011983 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011984 no:yes:* )
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11986echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11988echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11990echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11992echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011994echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11996echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011997 (
11998 cat <<\_ASBOX
11999## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000012000## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012001## ------------------------------------ ##
12002_ASBOX
12003 ) |
12004 sed "s/^/$as_me: WARNING: /" >&2
12005 ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000012006esac
12007echo "$as_me:$LINENO: checking for $ac_header" >&5
12008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12009if eval "test \"\${$as_ac_Header+set}\" = set"; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12011else
Alexandre Julliard875927f2004-01-02 01:55:29 +000012012 eval "$as_ac_Header=\$ac_header_preproc"
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000012013fi
12014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12016
12017fi
12018if test `eval echo '${'$as_ac_Header'}'` = yes; then
12019 cat >>confdefs.h <<_ACEOF
12020#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12021_ACEOF
12022 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12023echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
12024if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026else
12027 ac_check_lib_save_LIBS=$LIBS
12028LIBS="-laudioio $LIBS"
12029cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012030/* confdefs.h. */
12031_ACEOF
12032cat confdefs.h >>conftest.$ac_ext
12033cat >>conftest.$ac_ext <<_ACEOF
12034/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000012035
12036/* Override any gcc2 internal prototype to avoid an error. */
12037#ifdef __cplusplus
12038extern "C"
12039#endif
12040/* We use char because int might match the return type of a gcc2
12041 builtin and then its argument prototype would still apply. */
12042char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000012043int
12044main ()
12045{
12046AudioIOGetVersion ();
12047 ;
12048 return 0;
12049}
12050_ACEOF
12051rm -f conftest.$ac_objext conftest$ac_exeext
12052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012053 (eval $ac_link) 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000012054 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000012058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12063 ac_status=$?
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try='test -s conftest$ac_exeext'
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000012067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 ac_cv_lib_audioio_AudioIOGetVersion=yes
12073else
12074 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012075sed 's/^/| /' conftest.$ac_ext >&5
12076
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000012077ac_cv_lib_audioio_AudioIOGetVersion=no
12078fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012079rm -f conftest.err conftest.$ac_objext \
12080 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000012081LIBS=$ac_check_lib_save_LIBS
12082fi
12083echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12084echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
12085if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12086 AUDIOIOLIBS="-laudioio"
12087
12088cat >>confdefs.h <<\_ACEOF
12089#define HAVE_LIBAUDIOIO 1
12090_ACEOF
12091
12092fi
12093
12094fi
12095
12096done
12097
12098
12099
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012100
12101for ac_header in capi20.h
12102do
12103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12104if eval "test \"\${$as_ac_Header+set}\" = set"; then
12105 echo "$as_me:$LINENO: checking for $ac_header" >&5
12106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12107if eval "test \"\${$as_ac_Header+set}\" = set"; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12109fi
12110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12112else
12113 # Is the header compilable?
12114echo "$as_me:$LINENO: checking $ac_header usability" >&5
12115echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12116cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012117/* confdefs.h. */
12118_ACEOF
12119cat confdefs.h >>conftest.$ac_ext
12120cat >>conftest.$ac_ext <<_ACEOF
12121/* end confdefs.h. */
12122$ac_includes_default
12123#include <$ac_header>
12124_ACEOF
12125rm -f conftest.$ac_objext
12126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012127 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012128 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012129 grep -v '^ *+' conftest.er1 >conftest.err
12130 rm -f conftest.er1
12131 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; } &&
12140 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_header_compiler=yes
12147else
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151ac_header_compiler=no
12152fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012154echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12155echo "${ECHO_T}$ac_header_compiler" >&6
12156
12157# Is the header present?
12158echo "$as_me:$LINENO: checking $ac_header presence" >&5
12159echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12160cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012161/* confdefs.h. */
12162_ACEOF
12163cat confdefs.h >>conftest.$ac_ext
12164cat >>conftest.$ac_ext <<_ACEOF
12165/* end confdefs.h. */
12166#include <$ac_header>
12167_ACEOF
12168if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } >/dev/null; then
12176 if test -s conftest.err; then
12177 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000012178 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012179 else
12180 ac_cpp_err=
12181 fi
12182else
12183 ac_cpp_err=yes
12184fi
12185if test -z "$ac_cpp_err"; then
12186 ac_header_preproc=yes
12187else
12188 echo "$as_me: failed program was:" >&5
12189sed 's/^/| /' conftest.$ac_ext >&5
12190
12191 ac_header_preproc=no
12192fi
12193rm -f conftest.err conftest.$ac_ext
12194echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12195echo "${ECHO_T}$ac_header_preproc" >&6
12196
12197# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12199 yes:no: )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12203echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12204 ac_header_preproc=yes
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012205 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000012206 no:yes:* )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12210echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12212echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12214echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12218echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012219 (
12220 cat <<\_ASBOX
12221## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000012222## Report this to wine-devel@winehq.org ##
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012223## ------------------------------------ ##
12224_ASBOX
12225 ) |
12226 sed "s/^/$as_me: WARNING: /" >&2
12227 ;;
12228esac
12229echo "$as_me:$LINENO: checking for $ac_header" >&5
12230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12231if eval "test \"\${$as_ac_Header+set}\" = set"; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12233else
Alexandre Julliard875927f2004-01-02 01:55:29 +000012234 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012235fi
12236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12238
12239fi
12240if test `eval echo '${'$as_ac_Header'}'` = yes; then
12241 cat >>confdefs.h <<_ACEOF
12242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12243_ACEOF
12244
12245
12246for ac_header in linux/capi.h
12247do
12248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12249if eval "test \"\${$as_ac_Header+set}\" = set"; then
12250 echo "$as_me:$LINENO: checking for $ac_header" >&5
12251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12252if eval "test \"\${$as_ac_Header+set}\" = set"; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12254fi
12255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12256echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12257else
12258 # Is the header compilable?
12259echo "$as_me:$LINENO: checking $ac_header usability" >&5
12260echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12261cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012262/* confdefs.h. */
12263_ACEOF
12264cat confdefs.h >>conftest.$ac_ext
12265cat >>conftest.$ac_ext <<_ACEOF
12266/* end confdefs.h. */
12267$ac_includes_default
12268#include <$ac_header>
12269_ACEOF
12270rm -f conftest.$ac_objext
12271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012272 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012273 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; } &&
12285 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12291 ac_header_compiler=yes
12292else
12293 echo "$as_me: failed program was:" >&5
12294sed 's/^/| /' conftest.$ac_ext >&5
12295
12296ac_header_compiler=no
12297fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012299echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12300echo "${ECHO_T}$ac_header_compiler" >&6
12301
12302# Is the header present?
12303echo "$as_me:$LINENO: checking $ac_header presence" >&5
12304echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12305cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012306/* confdefs.h. */
12307_ACEOF
12308cat confdefs.h >>conftest.$ac_ext
12309cat >>conftest.$ac_ext <<_ACEOF
12310/* end confdefs.h. */
12311#include <$ac_header>
12312_ACEOF
12313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } >/dev/null; then
12321 if test -s conftest.err; then
12322 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000012323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012324 else
12325 ac_cpp_err=
12326 fi
12327else
12328 ac_cpp_err=yes
12329fi
12330if test -z "$ac_cpp_err"; then
12331 ac_header_preproc=yes
12332else
12333 echo "$as_me: failed program was:" >&5
12334sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 ac_header_preproc=no
12337fi
12338rm -f conftest.err conftest.$ac_ext
12339echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12340echo "${ECHO_T}$ac_header_preproc" >&6
12341
12342# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12344 yes:no: )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12346echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12348echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12349 ac_header_preproc=yes
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012350 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000012351 no:yes:* )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12353echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12355echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12357echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12359echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12361echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12363echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012364 (
12365 cat <<\_ASBOX
12366## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000012367## Report this to wine-devel@winehq.org ##
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012368## ------------------------------------ ##
12369_ASBOX
12370 ) |
12371 sed "s/^/$as_me: WARNING: /" >&2
12372 ;;
12373esac
12374echo "$as_me:$LINENO: checking for $ac_header" >&5
12375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12376if eval "test \"\${$as_ac_Header+set}\" = set"; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12378else
Alexandre Julliard875927f2004-01-02 01:55:29 +000012379 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012380fi
12381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12383
12384fi
12385if test `eval echo '${'$as_ac_Header'}'` = yes; then
12386 cat >>confdefs.h <<_ACEOF
12387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12388_ACEOF
12389
12390 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12391echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12392if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12393 echo $ECHO_N "(cached) $ECHO_C" >&6
12394else
12395 ac_check_lib_save_LIBS=$LIBS
12396LIBS="-lcapi20 $LIBS"
12397cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012398/* confdefs.h. */
12399_ACEOF
12400cat confdefs.h >>conftest.$ac_ext
12401cat >>conftest.$ac_ext <<_ACEOF
12402/* end confdefs.h. */
12403
12404/* Override any gcc2 internal prototype to avoid an error. */
12405#ifdef __cplusplus
12406extern "C"
12407#endif
12408/* We use char because int might match the return type of a gcc2
12409 builtin and then its argument prototype would still apply. */
12410char capi20_register ();
12411int
12412main ()
12413{
12414capi20_register ();
12415 ;
12416 return 0;
12417}
12418_ACEOF
12419rm -f conftest.$ac_objext conftest$ac_exeext
12420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012421 (eval $ac_link) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012422 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_cv_lib_capi20_capi20_register=yes
12441else
12442 echo "$as_me: failed program was:" >&5
12443sed 's/^/| /' conftest.$ac_ext >&5
12444
12445ac_cv_lib_capi20_capi20_register=no
12446fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012447rm -f conftest.err conftest.$ac_objext \
12448 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012449LIBS=$ac_check_lib_save_LIBS
12450fi
12451echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12452echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12453if test $ac_cv_lib_capi20_capi20_register = yes; then
12454
12455
12456cat >>confdefs.h <<\_ACEOF
12457#define HAVE_CAPI4LINUX 1
12458_ACEOF
12459
12460 CAPI4LINUXLIBS="-lcapi20"
12461
12462
12463fi
12464
12465
12466fi
12467
12468done
12469
12470
12471fi
12472
12473done
12474
12475
12476
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012477echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012478echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12479if test "${ac_cv_mmap64_works+set}" = set; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012481else
12482 if test "$cross_compiling" = yes; then
12483 ac_cv_mmap64_works="no"
12484else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012485 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012486/* confdefs.h. */
12487_ACEOF
12488cat confdefs.h >>conftest.$ac_ext
12489cat >>conftest.$ac_ext <<_ACEOF
12490/* end confdefs.h. */
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012491
12492 #define _FILE_OFFSET_BITS 64
12493 #include <stdio.h>
12494 #include <unistd.h>
12495 #include <fcntl.h>
12496 #include <sys/mman.h>
12497 #include <errno.h>
12498
12499 int main(int argc,char **argv) {
12500 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12501 if (fd == -1) exit(1);
12502
12503 unlink("conftest.map");
12504
12505 write(fd,"test",4);
12506
12507 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12508 (errno == EINVAL)
12509 ) {
12510 exit(1);
12511 }
12512 close(fd);
12513 fprintf(stderr,"success!\n");
12514 exit(0);
12515 }
12516
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012517
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012518_ACEOF
12519rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012521 (eval $ac_link) 2>&5
12522 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012526 (eval $ac_try) 2>&5
12527 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012529 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012530 ac_cv_mmap64_works="yes"
12531else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012532 echo "$as_me: program exited with status $ac_status" >&5
12533echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012534sed 's/^/| /' conftest.$ac_ext >&5
12535
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012536( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012537ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012538fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012539rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012540fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012541fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012542echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012543echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012544
12545if test "$ac_cv_mmap64_works" = "yes"
12546then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012547
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012548cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012549#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012550_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012551
12552fi
12553
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012554
Alexandre Julliardfc094232003-04-14 21:46:41 +000012555EXTRACFLAGS=""
12556
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012557if test "x${GCC}" = "xyes"
12558then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000012559 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000012560
12561 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012562echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12563if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012565else
12566 if test "$cross_compiling" = yes; then
12567 ac_cv_c_gcc_strength_bug="yes"
12568else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012569 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012570/* confdefs.h. */
12571_ACEOF
12572cat confdefs.h >>conftest.$ac_ext
12573cat >>conftest.$ac_ext <<_ACEOF
12574/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012575
Eric Pouech5aee80f2000-11-11 00:31:39 +000012576int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012577int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012578 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012579 unsigned int B = 3;
12580 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012581 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000012582 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12583 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012584
Eric Pouech5aee80f2000-11-11 00:31:39 +000012585 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012586}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012587_ACEOF
12588rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012590 (eval $ac_link) 2>&5
12591 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012595 (eval $ac_try) 2>&5
12596 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012598 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012599 ac_cv_c_gcc_strength_bug="no"
12600else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012601 echo "$as_me: program exited with status $ac_status" >&5
12602echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012603sed 's/^/| /' conftest.$ac_ext >&5
12604
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012605( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012606ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012607fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012608rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012609fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012610fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012611echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012612echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012613 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12614 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012615 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012616 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012617
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000012618 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12619echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12620if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12622else
12623 ac_wine_try_cflags_saved=$CFLAGS
12624CFLAGS="$CFLAGS -fshort-wchar"
12625cat >conftest.$ac_ext <<_ACEOF
12626/* confdefs.h. */
12627_ACEOF
12628cat confdefs.h >>conftest.$ac_ext
12629cat >>conftest.$ac_ext <<_ACEOF
12630/* end confdefs.h. */
12631
12632int
12633main ()
12634{
12635
12636 ;
12637 return 0;
12638}
12639_ACEOF
12640rm -f conftest.$ac_objext conftest$ac_exeext
12641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12642 (eval $ac_link) 2>conftest.er1
12643 ac_status=$?
12644 grep -v '^ *+' conftest.er1 >conftest.err
12645 rm -f conftest.er1
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; } &&
12655 { ac_try='test -s conftest$ac_exeext'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 ac_cv_c_gcc_fshort_wchar="yes"
12662else
12663 echo "$as_me: failed program was:" >&5
12664sed 's/^/| /' conftest.$ac_ext >&5
12665
12666ac_cv_c_gcc_fshort_wchar="no"
12667fi
12668rm -f conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12670CFLAGS=$ac_wine_try_cflags_saved
12671fi
12672echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12673echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12674 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12675 then
12676
12677cat >>confdefs.h <<\_ACEOF
12678#define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12679_ACEOF
12680
12681 fi
12682
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012683 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012684echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12685if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012687else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012688 ac_wine_try_cflags_saved=$CFLAGS
12689CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12690cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012691/* confdefs.h. */
12692_ACEOF
12693cat confdefs.h >>conftest.$ac_ext
12694cat >>conftest.$ac_ext <<_ACEOF
12695/* end confdefs.h. */
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012696
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012697int
12698main ()
12699{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012700
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012701 ;
12702 return 0;
12703}
12704_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012705rm -f conftest.$ac_objext conftest$ac_exeext
12706if { (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 Julliardf9b94cb2000-12-06 03:50:22 +000012726 ac_cv_c_gcc_stack_boundary="yes"
12727else
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
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012731ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012732fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012733rm -f conftest.err conftest.$ac_objext \
12734 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012735CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012736fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012737echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012738echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012739 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12740 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012741 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012742 fi
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012743
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012744 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12745echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12746if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12748else
12749 ac_wine_try_cflags_saved=$CFLAGS
12750CFLAGS="$CFLAGS -fno-strict-aliasing"
12751cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012752/* confdefs.h. */
12753_ACEOF
12754cat confdefs.h >>conftest.$ac_ext
12755cat >>conftest.$ac_ext <<_ACEOF
12756/* end confdefs.h. */
12757
12758int
12759main ()
12760{
12761
12762 ;
12763 return 0;
12764}
12765_ACEOF
12766rm -f conftest.$ac_objext conftest$ac_exeext
12767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012768 (eval $ac_link) 2>conftest.er1
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012769 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12777 (eval $ac_try) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; }; then
12787 ac_cv_c_gcc_no_strict_aliasing="yes"
12788else
12789 echo "$as_me: failed program was:" >&5
12790sed 's/^/| /' conftest.$ac_ext >&5
12791
12792ac_cv_c_gcc_no_strict_aliasing="no"
12793fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012794rm -f conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012796CFLAGS=$ac_wine_try_cflags_saved
12797fi
12798echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12799echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12800 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12801 then
12802 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12803 fi
12804
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012805 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12806echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12807if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809else
12810 ac_wine_try_cflags_saved=$CFLAGS
12811CFLAGS="$CFLAGS -gstabs+"
12812cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012813/* confdefs.h. */
12814_ACEOF
12815cat confdefs.h >>conftest.$ac_ext
12816cat >>conftest.$ac_ext <<_ACEOF
12817/* end confdefs.h. */
12818
12819int
12820main ()
12821{
12822
12823 ;
12824 return 0;
12825}
12826_ACEOF
12827rm -f conftest.$ac_objext conftest$ac_exeext
12828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012829 (eval $ac_link) 2>conftest.er1
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012830 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012831 grep -v '^ *+' conftest.er1 >conftest.err
12832 rm -f conftest.er1
12833 cat conftest.err >&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 ac_cv_c_gcc_gstabs="yes"
12849else
12850 echo "$as_me: failed program was:" >&5
12851sed 's/^/| /' conftest.$ac_ext >&5
12852
12853ac_cv_c_gcc_gstabs="no"
12854fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012855rm -f conftest.err conftest.$ac_objext \
12856 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012857CFLAGS=$ac_wine_try_cflags_saved
12858fi
12859echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12860echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12861 if test "$ac_cv_c_gcc_gstabs" = "yes"
12862 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012863 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012864 fi
Mike McCormackc509bc42003-02-25 04:01:58 +000012865
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012866 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012867 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12868 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12869echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12870if test "${ac_cv_c_string_h_warnings+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872else
12873 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackc509bc42003-02-25 04:01:58 +000012874/* confdefs.h. */
12875_ACEOF
12876cat confdefs.h >>conftest.$ac_ext
12877cat >>conftest.$ac_ext <<_ACEOF
12878/* end confdefs.h. */
12879#include <string.h>
12880int
12881main ()
12882{
12883
12884 ;
12885 return 0;
12886}
12887_ACEOF
12888rm -f conftest.$ac_objext
12889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012890 (eval $ac_compile) 2>conftest.er1
Mike McCormackc509bc42003-02-25 04:01:58 +000012891 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
Mike McCormackc509bc42003-02-25 04:01:58 +000012895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12899 (eval $ac_try) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; } &&
12903 { ac_try='test -s conftest.$ac_objext'
Mike McCormackc509bc42003-02-25 04:01:58 +000012904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 ac_cv_c_string_h_warnings=no
12910else
12911 echo "$as_me: failed program was:" >&5
12912sed 's/^/| /' conftest.$ac_ext >&5
12913
12914ac_cv_c_string_h_warnings=yes
12915fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012917fi
12918echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12919echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012920 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012921 if test "$ac_cv_c_string_h_warnings" = "no"
12922 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012923 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000012924 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012925fi
12926
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012927
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012928echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12929echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12930if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012931 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012932else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012933 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012934/* confdefs.h. */
12935_ACEOF
12936cat confdefs.h >>conftest.$ac_ext
12937cat >>conftest.$ac_ext <<_ACEOF
12938/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012939void 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 +000012940
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012941int
12942main ()
12943{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012944
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012945 ;
12946 return 0;
12947}
12948_ACEOF
12949rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012951 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012952 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012953 grep -v '^ *+' conftest.er1 >conftest.err
12954 rm -f conftest.er1
12955 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012957 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; } &&
12964 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012966 (eval $ac_try) 2>&5
12967 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012969 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012970 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012971else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012972 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012973sed 's/^/| /' conftest.$ac_ext >&5
12974
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012975cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012976/* confdefs.h. */
12977_ACEOF
12978cat confdefs.h >>conftest.$ac_ext
12979cat >>conftest.$ac_ext <<_ACEOF
12980/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012981void 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 +000012982
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012983int
12984main ()
12985{
12986
12987 ;
12988 return 0;
12989}
12990_ACEOF
12991rm -f conftest.$ac_objext conftest$ac_exeext
12992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012993 (eval $ac_link) 2>conftest.er1
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012994 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012995 grep -v '^ *+' conftest.er1 >conftest.err
12996 rm -f conftest.er1
12997 cat conftest.err >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13002 (eval $ac_try) 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; } &&
13006 { ac_try='test -s conftest$ac_exeext'
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013012 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013013else
13014 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013015sed 's/^/| /' conftest.$ac_ext >&5
13016
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013017cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013018/* confdefs.h. */
13019_ACEOF
13020cat confdefs.h >>conftest.$ac_ext
13021cat >>conftest.$ac_ext <<_ACEOF
13022/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000013023void 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 +000013024
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013025int
13026main ()
13027{
13028
13029 ;
13030 return 0;
13031}
13032_ACEOF
13033rm -f conftest.$ac_objext conftest$ac_exeext
13034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013035 (eval $ac_link) 2>conftest.er1
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013036 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013037 grep -v '^ *+' conftest.er1 >conftest.err
13038 rm -f conftest.er1
13039 cat conftest.err >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; } &&
13048 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_cv_asm_func_def=".type 2"
13055else
13056 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013057sed 's/^/| /' conftest.$ac_ext >&5
13058
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013059ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013060fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013061rm -f conftest.err conftest.$ac_objext \
13062 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013063fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013064rm -f conftest.err conftest.$ac_objext \
13065 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013066fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013067rm -f conftest.err conftest.$ac_objext \
13068 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013069fi
13070echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13071echo "${ECHO_T}$ac_cv_asm_func_def" >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013072
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013073
13074
13075case "$ac_cv_asm_func_def" in
13076 ".def")
13077 cat >>confdefs.h <<\_ACEOF
13078#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013079_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013080 ;;
13081 ".type @function")
13082 cat >>confdefs.h <<\_ACEOF
13083#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13084_ACEOF
13085 ;;
13086 ".type 2")
13087 cat >>confdefs.h <<\_ACEOF
13088#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13089_ACEOF
13090 ;;
13091 *)
13092 cat >>confdefs.h <<\_ACEOF
13093#define __ASM_FUNC(name) ""
13094_ACEOF
13095 ;;
13096esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013097
13098
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013099echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013100echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
13101if test "${ac_cv_c_extern_prefix+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000013103else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013104 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013105/* confdefs.h. */
13106_ACEOF
13107cat confdefs.h >>conftest.$ac_ext
13108cat >>conftest.$ac_ext <<_ACEOF
13109/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000013110void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000013111extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013112int
13113main ()
13114{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000013115if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013116 ;
13117 return 0;
13118}
13119_ACEOF
13120rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013122 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013123 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013124 grep -v '^ *+' conftest.er1 >conftest.err
13125 rm -f conftest.er1
13126 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013128 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; } &&
13135 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013137 (eval $ac_try) 2>&5
13138 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013140 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000013141 ac_cv_c_extern_prefix="yes"
13142else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013143 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013144sed 's/^/| /' conftest.$ac_ext >&5
13145
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013146ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000013147fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013148rm -f conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000013150fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013151echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013152echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013153
13154
13155
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000013156if test "$ac_cv_c_extern_prefix" = "yes"
13157then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013158 cat >>confdefs.h <<\_ACEOF
13159#define __ASM_NAME(name) "_" name
13160_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013161
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013162else
13163 cat >>confdefs.h <<\_ACEOF
13164#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013165_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000013166
13167fi
13168
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013169
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013170echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
13171echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013172if test "${ac_cv_c_asm_string+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000013174else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013175 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013176/* confdefs.h. */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h. */
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013181void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000013182
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013183int
13184main ()
13185{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000013186
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013187 ;
13188 return 0;
13189}
13190_ACEOF
13191rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013193 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013194 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013195 grep -v '^ *+' conftest.er1 >conftest.err
13196 rm -f conftest.er1
13197 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013199 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; } &&
13206 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013208 (eval $ac_try) 2>&5
13209 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013211 (exit $ac_status); }; }; then
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013212 ac_cv_c_asm_string=".string"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000013213else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013214 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013215sed 's/^/| /' conftest.$ac_ext >&5
13216
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013217cat >conftest.$ac_ext <<_ACEOF
13218/* confdefs.h. */
13219_ACEOF
13220cat confdefs.h >>conftest.$ac_ext
13221cat >>conftest.$ac_ext <<_ACEOF
13222/* end confdefs.h. */
13223void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
13224
13225int
13226main ()
13227{
13228
13229 ;
13230 return 0;
13231}
13232_ACEOF
13233rm -f conftest.$ac_objext conftest$ac_exeext
13234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13235 (eval $ac_link) 2>conftest.er1
13236 ac_status=$?
13237 grep -v '^ *+' conftest.er1 >conftest.err
13238 rm -f conftest.er1
13239 cat conftest.err >&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } &&
13242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13245 ac_status=$?
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; } &&
13248 { ac_try='test -s conftest$ac_exeext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 ac_cv_c_asm_string=".asciz"
13255else
13256 echo "$as_me: failed program was:" >&5
13257sed 's/^/| /' conftest.$ac_ext >&5
13258
13259cat >conftest.$ac_ext <<_ACEOF
13260/* confdefs.h. */
13261_ACEOF
13262cat confdefs.h >>conftest.$ac_ext
13263cat >>conftest.$ac_ext <<_ACEOF
13264/* end confdefs.h. */
13265void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
13266
13267int
13268main ()
13269{
13270
13271 ;
13272 return 0;
13273}
13274_ACEOF
13275rm -f conftest.$ac_objext conftest$ac_exeext
13276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13277 (eval $ac_link) 2>conftest.er1
13278 ac_status=$?
13279 grep -v '^ *+' conftest.er1 >conftest.err
13280 rm -f conftest.er1
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } &&
13284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13286 (eval $ac_try) 2>&5
13287 ac_status=$?
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }; } &&
13290 { ac_try='test -s conftest$ac_exeext'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
13296 ac_cv_c_asm_string=".ascii"
13297else
13298 echo "$as_me: failed program was:" >&5
13299sed 's/^/| /' conftest.$ac_ext >&5
13300
13301{ { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
13302echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
13303 { (exit 1); exit 1; }; }
13304fi
13305rm -f conftest.err conftest.$ac_objext \
13306 conftest$ac_exeext conftest.$ac_ext
13307fi
13308rm -f conftest.err conftest.$ac_objext \
13309 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000013310fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013311rm -f conftest.err conftest.$ac_objext \
13312 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000013313fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013314echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013315echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013316
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013317
13318cat >>confdefs.h <<_ACEOF
13319#define __ASM_STRING "$ac_cv_c_asm_string"
Christian Costaf814cf82003-03-23 00:18:26 +000013320_ACEOF
13321
Christian Costaf814cf82003-03-23 00:18:26 +000013322
13323
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013324echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
13325echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
Christian Costaf814cf82003-03-23 00:18:26 +000013326if test "${ac_cv_c_asm_short+set}" = set; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13328else
13329 cat >conftest.$ac_ext <<_ACEOF
Christian Costaf814cf82003-03-23 00:18:26 +000013330/* confdefs.h. */
13331_ACEOF
13332cat confdefs.h >>conftest.$ac_ext
13333cat >>conftest.$ac_ext <<_ACEOF
13334/* end confdefs.h. */
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013335void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
Christian Costaf814cf82003-03-23 00:18:26 +000013336
13337int
13338main ()
13339{
13340
13341 ;
13342 return 0;
13343}
13344_ACEOF
13345rm -f conftest.$ac_objext conftest$ac_exeext
13346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013347 (eval $ac_link) 2>conftest.er1
Christian Costaf814cf82003-03-23 00:18:26 +000013348 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013349 grep -v '^ *+' conftest.er1 >conftest.err
13350 rm -f conftest.er1
13351 cat conftest.err >&5
Christian Costaf814cf82003-03-23 00:18:26 +000013352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; } &&
13360 { ac_try='test -s conftest$ac_exeext'
Christian Costaf814cf82003-03-23 00:18:26 +000013361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; }; then
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013366 ac_cv_c_asm_short=".short"
Christian Costaf814cf82003-03-23 00:18:26 +000013367else
13368 echo "$as_me: failed program was:" >&5
13369sed 's/^/| /' conftest.$ac_ext >&5
13370
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013371cat >conftest.$ac_ext <<_ACEOF
13372/* confdefs.h. */
13373_ACEOF
13374cat confdefs.h >>conftest.$ac_ext
13375cat >>conftest.$ac_ext <<_ACEOF
13376/* end confdefs.h. */
13377void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13378
13379int
13380main ()
13381{
13382
13383 ;
13384 return 0;
13385}
13386_ACEOF
13387rm -f conftest.$ac_objext conftest$ac_exeext
13388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13389 (eval $ac_link) 2>conftest.er1
13390 ac_status=$?
13391 grep -v '^ *+' conftest.er1 >conftest.err
13392 rm -f conftest.er1
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
13396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest$ac_exeext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_c_asm_short=".half"
13409else
13410 echo "$as_me: failed program was:" >&5
13411sed 's/^/| /' conftest.$ac_ext >&5
13412
13413{ { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13414echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13415 { (exit 1); exit 1; }; }
13416fi
13417rm -f conftest.err conftest.$ac_objext \
13418 conftest$ac_exeext conftest.$ac_ext
Christian Costaf814cf82003-03-23 00:18:26 +000013419fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013420rm -f conftest.err conftest.$ac_objext \
13421 conftest$ac_exeext conftest.$ac_ext
Christian Costaf814cf82003-03-23 00:18:26 +000013422fi
13423echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13424echo "${ECHO_T}$ac_cv_c_asm_short" >&6
Christian Costaf814cf82003-03-23 00:18:26 +000013425
Wim Lewis8cbb94c2004-01-07 00:46:10 +000013426
13427cat >>confdefs.h <<_ACEOF
13428#define __ASM_SHORT "$ac_cv_c_asm_short"
Christian Costaf814cf82003-03-23 00:18:26 +000013429_ACEOF
13430
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000013431
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013432
Pierre d'Herbemont68467db2004-06-18 19:36:26 +000013433echo "$as_me:$LINENO: checking for .size in assembler" >&5
13434echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
13435if test "${ac_cv_c_asm_size+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13437else
13438 cat >conftest.$ac_ext <<_ACEOF
13439/* confdefs.h. */
13440_ACEOF
13441cat confdefs.h >>conftest.$ac_ext
13442cat >>conftest.$ac_ext <<_ACEOF
13443/* end confdefs.h. */
13444void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
13445
13446int
13447main ()
13448{
13449
13450 ;
13451 return 0;
13452}
13453_ACEOF
13454rm -f conftest.$ac_objext conftest$ac_exeext
13455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13456 (eval $ac_link) 2>conftest.er1
13457 ac_status=$?
13458 grep -v '^ *+' conftest.er1 >conftest.err
13459 rm -f conftest.er1
13460 cat conftest.err >&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } &&
13463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; } &&
13469 { ac_try='test -s conftest$ac_exeext'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; }; then
13475 ac_cv_c_asm_size="yes"
13476else
13477 echo "$as_me: failed program was:" >&5
13478sed 's/^/| /' conftest.$ac_ext >&5
13479
13480ac_cv_c_asm_size="no"
13481fi
13482rm -f conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13484fi
13485echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13486echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13487
13488if test "$ac_cv_c_asm_size" = "yes"
13489then
13490
13491cat >>confdefs.h <<\_ACEOF
13492#define HAVE_ASM_DOT_SIZE 1
13493_ACEOF
13494
13495fi
13496
13497
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013498DLLEXT=""
13499
Alexandre Julliardfc094232003-04-14 21:46:41 +000013500DLLFLAGS="-D_REENTRANT"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013501
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013502DLLIBS=""
13503
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013504LDSHARED=""
13505
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013506LDDLLFLAGS=""
Alexandre Julliard6ac34ac2003-10-11 01:05:18 +000013507
Alexandre Julliardada5e652002-12-12 22:03:14 +000013508LIBEXT="so"
13509
13510IMPLIBEXT="def"
13511
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013512
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013513case $host_os in
13514 cygwin*|mingw32*)
13515 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000013516 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13517set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13518echo "$as_me:$LINENO: checking for $ac_word" >&5
13519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13520if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13522else
13523 if test -n "$DLLTOOL"; then
13524 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13525else
13526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527for as_dir in $PATH
13528do
13529 IFS=$as_save_IFS
13530 test -z "$as_dir" && as_dir=.
13531 for ac_exec_ext in '' $ac_executable_extensions; do
13532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13533 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13535 break 2
13536 fi
13537done
13538done
13539
13540fi
13541fi
13542DLLTOOL=$ac_cv_prog_DLLTOOL
13543if test -n "$DLLTOOL"; then
13544 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13545echo "${ECHO_T}$DLLTOOL" >&6
13546else
13547 echo "$as_me:$LINENO: result: no" >&5
13548echo "${ECHO_T}no" >&6
13549fi
13550
13551fi
13552if test -z "$ac_cv_prog_DLLTOOL"; then
13553 ac_ct_DLLTOOL=$DLLTOOL
13554 # Extract the first word of "dlltool", so it can be a program name with args.
13555set dummy dlltool; ac_word=$2
13556echo "$as_me:$LINENO: checking for $ac_word" >&5
13557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13558if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560else
13561 if test -n "$ac_ct_DLLTOOL"; then
13562 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13563else
13564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565for as_dir in $PATH
13566do
13567 IFS=$as_save_IFS
13568 test -z "$as_dir" && as_dir=.
13569 for ac_exec_ext in '' $ac_executable_extensions; do
13570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13571 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13573 break 2
13574 fi
13575done
13576done
13577
13578 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13579fi
13580fi
13581ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13582if test -n "$ac_ct_DLLTOOL"; then
13583 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13584echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13585else
13586 echo "$as_me:$LINENO: result: no" >&5
13587echo "${ECHO_T}no" >&6
13588fi
13589
13590 DLLTOOL=$ac_ct_DLLTOOL
13591else
13592 DLLTOOL="$ac_cv_prog_DLLTOOL"
13593fi
13594
13595 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013596 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13597set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +000013598echo "$as_me:$LINENO: checking for $ac_word" >&5
13599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13600if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13602else
13603 if test -n "$DLLWRAP"; then
13604 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13605else
13606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13607for as_dir in $PATH
13608do
13609 IFS=$as_save_IFS
13610 test -z "$as_dir" && as_dir=.
13611 for ac_exec_ext in '' $ac_executable_extensions; do
13612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013613 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000013614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13615 break 2
13616 fi
13617done
13618done
13619
Alexandre Julliard466ae142002-05-07 18:33:47 +000013620fi
13621fi
13622DLLWRAP=$ac_cv_prog_DLLWRAP
13623if test -n "$DLLWRAP"; then
13624 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13625echo "${ECHO_T}$DLLWRAP" >&6
13626else
13627 echo "$as_me:$LINENO: result: no" >&5
13628echo "${ECHO_T}no" >&6
13629fi
13630
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013631fi
13632if test -z "$ac_cv_prog_DLLWRAP"; then
13633 ac_ct_DLLWRAP=$DLLWRAP
13634 # Extract the first word of "dllwrap", so it can be a program name with args.
13635set dummy dllwrap; ac_word=$2
13636echo "$as_me:$LINENO: checking for $ac_word" >&5
13637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13638if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13640else
13641 if test -n "$ac_ct_DLLWRAP"; then
13642 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13643else
13644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13645for as_dir in $PATH
13646do
13647 IFS=$as_save_IFS
13648 test -z "$as_dir" && as_dir=.
13649 for ac_exec_ext in '' $ac_executable_extensions; do
13650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13651 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13653 break 2
13654 fi
13655done
13656done
13657
13658 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13659fi
13660fi
13661ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13662if test -n "$ac_ct_DLLWRAP"; then
13663 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13664echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13665else
13666 echo "$as_me:$LINENO: result: no" >&5
13667echo "${ECHO_T}no" >&6
13668fi
13669
13670 DLLWRAP=$ac_ct_DLLWRAP
13671else
13672 DLLWRAP="$ac_cv_prog_DLLWRAP"
13673fi
13674
13675 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013676 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013677 else
13678 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013679 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000013680 IMPLIBEXT="a"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013681 ;;
13682 *)
13683
13684for ac_header in dlfcn.h
13685do
13686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13687if eval "test \"\${$as_ac_Header+set}\" = set"; then
13688 echo "$as_me:$LINENO: checking for $ac_header" >&5
13689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13690if eval "test \"\${$as_ac_Header+set}\" = set"; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13692fi
13693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13694echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13695else
13696 # Is the header compilable?
13697echo "$as_me:$LINENO: checking $ac_header usability" >&5
13698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13699cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013700/* confdefs.h. */
13701_ACEOF
13702cat confdefs.h >>conftest.$ac_ext
13703cat >>conftest.$ac_ext <<_ACEOF
13704/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013705$ac_includes_default
13706#include <$ac_header>
13707_ACEOF
13708rm -f conftest.$ac_objext
13709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013710 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013711 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013712 grep -v '^ *+' conftest.er1 >conftest.err
13713 rm -f conftest.er1
13714 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; } &&
13723 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 ac_header_compiler=yes
13730else
13731 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013732sed 's/^/| /' conftest.$ac_ext >&5
13733
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013734ac_header_compiler=no
13735fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013737echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13738echo "${ECHO_T}$ac_header_compiler" >&6
13739
13740# Is the header present?
13741echo "$as_me:$LINENO: checking $ac_header presence" >&5
13742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13743cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013744/* confdefs.h. */
13745_ACEOF
13746cat confdefs.h >>conftest.$ac_ext
13747cat >>conftest.$ac_ext <<_ACEOF
13748/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013749#include <$ac_header>
13750_ACEOF
13751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13753 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013754 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013755 rm -f conftest.er1
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } >/dev/null; then
13759 if test -s conftest.err; then
13760 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000013761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013762 else
13763 ac_cpp_err=
13764 fi
13765else
13766 ac_cpp_err=yes
13767fi
13768if test -z "$ac_cpp_err"; then
13769 ac_header_preproc=yes
13770else
13771 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013772sed 's/^/| /' conftest.$ac_ext >&5
13773
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013774 ac_header_preproc=no
13775fi
13776rm -f conftest.err conftest.$ac_ext
13777echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13778echo "${ECHO_T}$ac_header_preproc" >&6
13779
13780# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013781case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13782 yes:no: )
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13784echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13786echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13787 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013788 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000013789 no:yes:* )
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013790 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13791echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013792 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13793echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13794 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13795echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13797echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013799echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013800 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13801echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013802 (
13803 cat <<\_ASBOX
13804## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000013805## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013806## ------------------------------------ ##
13807_ASBOX
13808 ) |
13809 sed "s/^/$as_me: WARNING: /" >&2
13810 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013811esac
13812echo "$as_me:$LINENO: checking for $ac_header" >&5
13813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13814if eval "test \"\${$as_ac_Header+set}\" = set"; then
13815 echo $ECHO_N "(cached) $ECHO_C" >&6
13816else
Alexandre Julliard875927f2004-01-02 01:55:29 +000013817 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013818fi
13819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13821
13822fi
13823if test `eval echo '${'$as_ac_Header'}'` = yes; then
13824 cat >>confdefs.h <<_ACEOF
13825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13826_ACEOF
13827
13828for ac_func in dlopen
13829do
13830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13831echo "$as_me:$LINENO: checking for $ac_func" >&5
13832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13833if eval "test \"\${$as_ac_var+set}\" = set"; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13835else
13836 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013837/* confdefs.h. */
13838_ACEOF
13839cat confdefs.h >>conftest.$ac_ext
13840cat >>conftest.$ac_ext <<_ACEOF
13841/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013842/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13844#define $ac_func innocuous_$ac_func
13845
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013846/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013847 which can conflict with char $ac_func (); below.
13848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13849 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013850
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013851#ifdef __STDC__
13852# include <limits.h>
13853#else
13854# include <assert.h>
13855#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000013856
13857#undef $ac_func
13858
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013859/* Override any gcc2 internal prototype to avoid an error. */
13860#ifdef __cplusplus
13861extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013862{
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013863#endif
13864/* We use char because int might match the return type of a gcc2
13865 builtin and then its argument prototype would still apply. */
13866char $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013867/* The GNU C library defines this for functions which it implements
13868 to always fail with ENOSYS. Some functions are actually named
13869 something starting with __ and the normal name is an alias. */
13870#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13871choke me
13872#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013873char (*f) () = $ac_func;
13874#endif
13875#ifdef __cplusplus
13876}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013877#endif
13878
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013879int
13880main ()
13881{
13882return f != $ac_func;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013883 ;
13884 return 0;
13885}
13886_ACEOF
13887rm -f conftest.$ac_objext conftest$ac_exeext
13888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013889 (eval $ac_link) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013890 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; } &&
13902 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; }; then
13908 eval "$as_ac_var=yes"
13909else
13910 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013911sed 's/^/| /' conftest.$ac_ext >&5
13912
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013913eval "$as_ac_var=no"
13914fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013915rm -f conftest.err conftest.$ac_objext \
13916 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013917fi
13918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13919echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13920if test `eval echo '${'$as_ac_var'}'` = yes; then
13921 cat >>confdefs.h <<_ACEOF
13922#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13923_ACEOF
13924
13925else
13926 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13927echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13928if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930else
13931 ac_check_lib_save_LIBS=$LIBS
13932LIBS="-ldl $LIBS"
13933cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013934/* confdefs.h. */
13935_ACEOF
13936cat confdefs.h >>conftest.$ac_ext
13937cat >>conftest.$ac_ext <<_ACEOF
13938/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013939
13940/* Override any gcc2 internal prototype to avoid an error. */
13941#ifdef __cplusplus
13942extern "C"
13943#endif
13944/* We use char because int might match the return type of a gcc2
13945 builtin and then its argument prototype would still apply. */
13946char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013947int
13948main ()
13949{
13950dlopen ();
13951 ;
13952 return 0;
13953}
13954_ACEOF
13955rm -f conftest.$ac_objext conftest$ac_exeext
13956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013957 (eval $ac_link) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013958 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013959 grep -v '^ *+' conftest.er1 >conftest.err
13960 rm -f conftest.er1
13961 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; } &&
13970 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 ac_cv_lib_dl_dlopen=yes
13977else
13978 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013979sed 's/^/| /' conftest.$ac_ext >&5
13980
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013981ac_cv_lib_dl_dlopen=no
13982fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013983rm -f conftest.err conftest.$ac_objext \
13984 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013985LIBS=$ac_check_lib_save_LIBS
13986fi
13987echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13988echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13989if test $ac_cv_lib_dl_dlopen = yes; then
13990
13991cat >>confdefs.h <<\_ACEOF
13992#define HAVE_DLOPEN 1
13993_ACEOF
13994
13995 DLLIBS="-ldl"
13996else
13997 LIBEXT="a"
13998fi
13999
14000fi
14001done
14002
14003else
14004 LIBEXT="a"
14005fi
14006
14007done
14008
14009
14010 if test "$LIBEXT" = "so"
14011 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000014012 DLLFLAGS="$DLLFLAGS -fPIC"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014013 DLLEXT=".so"
Alexandre Julliard466ae142002-05-07 18:33:47 +000014014 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014015echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
14016if test "${ac_cv_c_dll_gnuelf+set}" = set; then
14017 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014018else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014019 ac_wine_try_cflags_saved=$CFLAGS
14020CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
14021cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014022/* confdefs.h. */
14023_ACEOF
14024cat confdefs.h >>conftest.$ac_ext
14025cat >>conftest.$ac_ext <<_ACEOF
14026/* end confdefs.h. */
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014027
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014028int
14029main ()
14030{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014031
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014032 ;
14033 return 0;
14034}
14035_ACEOF
14036rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014038 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014039 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014040 grep -v '^ *+' conftest.er1 >conftest.err
14041 rm -f conftest.er1
14042 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014044 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; } &&
14051 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014053 (eval $ac_try) 2>&5
14054 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014056 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000014057 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014058else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014059 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014060sed 's/^/| /' conftest.$ac_ext >&5
14061
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014062ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014063fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014064rm -f conftest.err conftest.$ac_objext \
14065 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014066CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014067fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014068echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014069echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000014070 if test "$ac_cv_c_dll_gnuelf" = "yes"
14071 then
14072 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014073 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014074 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
14075echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
14076if test "${ac_cv_c_dll_zdefs+set}" = set; then
14077 echo $ECHO_N "(cached) $ECHO_C" >&6
14078else
14079 ac_wine_try_cflags_saved=$CFLAGS
14080CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
14081cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014082/* confdefs.h. */
14083_ACEOF
14084cat confdefs.h >>conftest.$ac_ext
14085cat >>conftest.$ac_ext <<_ACEOF
14086/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014087
14088int
14089main ()
14090{
14091
14092 ;
14093 return 0;
14094}
14095_ACEOF
14096rm -f conftest.$ac_objext conftest$ac_exeext
14097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014098 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014099 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014100 grep -v '^ *+' conftest.er1 >conftest.err
14101 rm -f conftest.er1
14102 cat conftest.err >&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
14117 ac_cv_c_dll_zdefs="yes"
14118else
14119 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014120sed 's/^/| /' conftest.$ac_ext >&5
14121
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014122ac_cv_c_dll_zdefs="no"
14123fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014124rm -f conftest.err conftest.$ac_objext \
14125 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014126CFLAGS=$ac_wine_try_cflags_saved
14127fi
14128echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
14129echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
14130 if test "$ac_cv_c_dll_zdefs" = "yes"
14131 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014132 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014133 fi
Alexandre Julliard4d52d372003-03-24 19:33:20 +000014134
Alexandre Julliard36048242004-01-08 03:36:53 +000014135 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
14136echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
14137if test "${ac_cv_c_dll_init_fini+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139else
14140 ac_wine_try_cflags_saved=$CFLAGS
14141CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
14142cat >conftest.$ac_ext <<_ACEOF
14143/* confdefs.h. */
14144_ACEOF
14145cat confdefs.h >>conftest.$ac_ext
14146cat >>conftest.$ac_ext <<_ACEOF
14147/* end confdefs.h. */
14148
14149int
14150main ()
14151{
14152
14153 ;
14154 return 0;
14155}
14156_ACEOF
14157rm -f conftest.$ac_objext conftest$ac_exeext
14158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14159 (eval $ac_link) 2>conftest.er1
14160 ac_status=$?
14161 grep -v '^ *+' conftest.er1 >conftest.err
14162 rm -f conftest.er1
14163 cat conftest.err >&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try='test -s conftest$ac_exeext'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 ac_cv_c_dll_init_fini="yes"
14179else
14180 echo "$as_me: failed program was:" >&5
14181sed 's/^/| /' conftest.$ac_ext >&5
14182
14183ac_cv_c_dll_init_fini="no"
14184fi
14185rm -f conftest.err conftest.$ac_objext \
14186 conftest$ac_exeext conftest.$ac_ext
14187CFLAGS=$ac_wine_try_cflags_saved
14188fi
14189echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
14190echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
14191 if test "$ac_cv_c_dll_init_fini" = "yes"
14192 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014193 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard36048242004-01-08 03:36:53 +000014194 fi
14195
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000014196 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
14197echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
14198if test "${ac_cv_c_ld_version_scripts+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14200else
14201 echo '{ global: *; };' >conftest.map
14202 ac_wine_try_cflags_saved=$CFLAGS
14203CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
14204cat >conftest.$ac_ext <<_ACEOF
14205/* confdefs.h. */
14206_ACEOF
14207cat confdefs.h >>conftest.$ac_ext
14208cat >>conftest.$ac_ext <<_ACEOF
14209/* end confdefs.h. */
14210
14211int
14212main ()
14213{
14214
14215 ;
14216 return 0;
14217}
14218_ACEOF
14219rm -f conftest.$ac_objext conftest$ac_exeext
14220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221 (eval $ac_link) 2>conftest.er1
14222 ac_status=$?
14223 grep -v '^ *+' conftest.er1 >conftest.err
14224 rm -f conftest.er1
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; } &&
14234 { ac_try='test -s conftest$ac_exeext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_c_ld_version_scripts="yes"
14241else
14242 echo "$as_me: failed program was:" >&5
14243sed 's/^/| /' conftest.$ac_ext >&5
14244
14245ac_cv_c_ld_version_scripts="no"
14246fi
14247rm -f conftest.err conftest.$ac_objext \
14248 conftest$ac_exeext conftest.$ac_ext
14249CFLAGS=$ac_wine_try_cflags_saved
14250 rm -f conftest.map
14251fi
14252echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
14253echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
14254 if test "$ac_cv_c_ld_version_scripts" = "yes"
14255 then
14256 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14257 fi
14258
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014259 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14260echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
14261if test "${ac_cv_c_export_dynamic+set}" = set; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14263else
14264 ac_wine_try_cflags_saved=$CFLAGS
14265CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14266cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014267/* confdefs.h. */
14268_ACEOF
14269cat confdefs.h >>conftest.$ac_ext
14270cat >>conftest.$ac_ext <<_ACEOF
14271/* end confdefs.h. */
14272
14273int
14274main ()
14275{
14276
14277 ;
14278 return 0;
14279}
14280_ACEOF
14281rm -f conftest.$ac_objext conftest$ac_exeext
14282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014283 (eval $ac_link) 2>conftest.er1
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014284 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014285 grep -v '^ *+' conftest.er1 >conftest.err
14286 rm -f conftest.er1
14287 cat conftest.err >&5
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14292 (eval $ac_try) 2>&5
14293 ac_status=$?
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); }; } &&
14296 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }; then
14302 ac_cv_c_export_dynamic="yes"
14303else
14304 echo "$as_me: failed program was:" >&5
14305sed 's/^/| /' conftest.$ac_ext >&5
14306
14307ac_cv_c_export_dynamic="no"
14308fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014309rm -f conftest.err conftest.$ac_objext \
14310 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014311CFLAGS=$ac_wine_try_cflags_saved
14312fi
14313echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14314echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
14315 if test "$ac_cv_c_export_dynamic" = "yes"
14316 then
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014317 LDEXECFLAGS="-Wl,--export-dynamic"
14318
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014319 fi
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014320
14321 case $host_cpu in
14322 *i[3456789]86*)
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014323 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
14324echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014325if test "${ac_cv_ld_reloc_exec+set}" = set; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14327else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014328 ac_wine_try_cflags_saved=$CFLAGS
14329CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
14330cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014331/* confdefs.h. */
14332_ACEOF
14333cat confdefs.h >>conftest.$ac_ext
14334cat >>conftest.$ac_ext <<_ACEOF
14335/* end confdefs.h. */
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014336
14337int
14338main ()
14339{
14340
14341 ;
14342 return 0;
14343}
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014344_ACEOF
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014345rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014347 (eval $ac_link) 2>conftest.er1
14348 ac_status=$?
14349 grep -v '^ *+' conftest.er1 >conftest.err
14350 rm -f conftest.er1
14351 cat conftest.err >&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); } &&
14354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014357 ac_status=$?
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014359 (exit $ac_status); }; } &&
14360 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; }; then
14366 ac_cv_ld_reloc_exec="yes"
14367else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014368 echo "$as_me: failed program was:" >&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014369sed 's/^/| /' conftest.$ac_ext >&5
14370
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014371ac_cv_ld_reloc_exec="no"
14372fi
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014373rm -f conftest.err conftest.$ac_objext \
14374 conftest$ac_exeext conftest.$ac_ext
14375CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014376fi
14377echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14378echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14379 if test "$ac_cv_ld_reloc_exec" = "yes"
14380 then
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014381 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014382 fi
14383 ;;
14384 esac
14385
Alexandre Julliard466ae142002-05-07 18:33:47 +000014386 else
14387 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014388echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14389if test "${ac_cv_c_dll_unixware+set}" = set; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000014391else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014392 ac_wine_try_cflags_saved=$CFLAGS
14393CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14394cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014395/* confdefs.h. */
14396_ACEOF
14397cat confdefs.h >>conftest.$ac_ext
14398cat >>conftest.$ac_ext <<_ACEOF
14399/* end confdefs.h. */
Todd Vierling4b992b01998-12-15 15:26:27 +000014400
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014401int
14402main ()
14403{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014404
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014405 ;
14406 return 0;
14407}
14408_ACEOF
14409rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014411 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014412 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014417 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } &&
14424 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014426 (eval $ac_try) 2>&5
14427 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014429 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000014430 ac_cv_c_dll_unixware="yes"
14431else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014432 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014433sed 's/^/| /' conftest.$ac_ext >&5
14434
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014435ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000014436fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014437rm -f conftest.err conftest.$ac_objext \
14438 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014439CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014440fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014441echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014442echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000014443 if test "$ac_cv_c_dll_unixware" = "yes"
14444 then
14445 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014446 LDDLLFLAGS="-Wl,-G,-B,symbolic"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014447
14448 else
14449 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14450echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14451if test "${ac_cv_c_dll_macho+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14453else
14454 ac_wine_try_cflags_saved=$CFLAGS
14455CFLAGS="$CFLAGS -bundle"
14456cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014457/* confdefs.h. */
14458_ACEOF
14459cat confdefs.h >>conftest.$ac_ext
14460cat >>conftest.$ac_ext <<_ACEOF
14461/* end confdefs.h. */
14462
14463int
14464main ()
14465{
14466
14467 ;
14468 return 0;
14469}
14470_ACEOF
14471rm -f conftest.$ac_objext conftest$ac_exeext
14472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014473 (eval $ac_link) 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014474 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014475 grep -v '^ *+' conftest.er1 >conftest.err
14476 rm -f conftest.er1
14477 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; } &&
14486 { ac_try='test -s conftest$ac_exeext'
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14489 ac_status=$?
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }; then
14492 ac_cv_c_dll_macho="yes"
14493else
14494 echo "$as_me: failed program was:" >&5
14495sed 's/^/| /' conftest.$ac_ext >&5
14496
14497ac_cv_c_dll_macho="no"
14498fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014499rm -f conftest.err conftest.$ac_objext \
14500 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014501CFLAGS=$ac_wine_try_cflags_saved
14502fi
14503echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14504echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14505 if test "$ac_cv_c_dll_macho" = "yes"
14506 then
14507 LIBEXT="dylib"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014508 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014509 LDSHARED="\$(CC) -dynamiclib"
14510 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014511 STRIP="$STRIP -u -r"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014512 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000014513 fi
14514 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014515 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014516
14517 CROSSTEST=""
14518
14519 if test "$cross_compiling" = "no"
14520 then
Kevin Koltzaud3444562004-04-15 00:01:05 +000014521 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014522do
14523 # Extract the first word of "$ac_prog", so it can be a program name with args.
14524set dummy $ac_prog; ac_word=$2
14525echo "$as_me:$LINENO: checking for $ac_word" >&5
14526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14527if test "${ac_cv_prog_CROSSCC+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14529else
14530 if test -n "$CROSSCC"; then
14531 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14532else
14533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14534for as_dir in $PATH
14535do
14536 IFS=$as_save_IFS
14537 test -z "$as_dir" && as_dir=.
14538 for ac_exec_ext in '' $ac_executable_extensions; do
14539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14540 ac_cv_prog_CROSSCC="$ac_prog"
14541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14542 break 2
14543 fi
14544done
14545done
14546
14547fi
14548fi
14549CROSSCC=$ac_cv_prog_CROSSCC
14550if test -n "$CROSSCC"; then
14551 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14552echo "${ECHO_T}$CROSSCC" >&6
14553else
14554 echo "$as_me:$LINENO: result: no" >&5
14555echo "${ECHO_T}no" >&6
14556fi
14557
14558 test -n "$CROSSCC" && break
14559done
14560test -n "$CROSSCC" || CROSSCC="false"
14561
Kevin Koltzaud3444562004-04-15 00:01:05 +000014562 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014563do
14564 # Extract the first word of "$ac_prog", so it can be a program name with args.
14565set dummy $ac_prog; ac_word=$2
14566echo "$as_me:$LINENO: checking for $ac_word" >&5
14567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14568if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14570else
14571 if test -n "$DLLTOOL"; then
14572 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14573else
14574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14575for as_dir in $PATH
14576do
14577 IFS=$as_save_IFS
14578 test -z "$as_dir" && as_dir=.
14579 for ac_exec_ext in '' $ac_executable_extensions; do
14580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14581 ac_cv_prog_DLLTOOL="$ac_prog"
14582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14583 break 2
14584 fi
14585done
14586done
14587
14588fi
14589fi
14590DLLTOOL=$ac_cv_prog_DLLTOOL
14591if test -n "$DLLTOOL"; then
14592 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14593echo "${ECHO_T}$DLLTOOL" >&6
14594else
14595 echo "$as_me:$LINENO: result: no" >&5
14596echo "${ECHO_T}no" >&6
14597fi
14598
14599 test -n "$DLLTOOL" && break
14600done
14601test -n "$DLLTOOL" || DLLTOOL="false"
14602
Kevin Koltzaud3444562004-04-15 00:01:05 +000014603 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
Alexandre Julliard21ee3292003-04-21 22:52:31 +000014604do
14605 # Extract the first word of "$ac_prog", so it can be a program name with args.
14606set dummy $ac_prog; ac_word=$2
14607echo "$as_me:$LINENO: checking for $ac_word" >&5
14608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14609if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14611else
14612 if test -n "$CROSSWINDRES"; then
14613 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14614else
14615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14616for as_dir in $PATH
14617do
14618 IFS=$as_save_IFS
14619 test -z "$as_dir" && as_dir=.
14620 for ac_exec_ext in '' $ac_executable_extensions; do
14621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14622 ac_cv_prog_CROSSWINDRES="$ac_prog"
14623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14624 break 2
14625 fi
14626done
14627done
14628
14629fi
14630fi
14631CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14632if test -n "$CROSSWINDRES"; then
14633 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14634echo "${ECHO_T}$CROSSWINDRES" >&6
14635else
14636 echo "$as_me:$LINENO: result: no" >&5
14637echo "${ECHO_T}no" >&6
14638fi
14639
14640 test -n "$CROSSWINDRES" && break
14641done
14642test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14643
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014644 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14645 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014646 ;;
14647esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014648
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000014649if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014650 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014651It is currently not possible to build Wine without shared library
14652(.so) support to allow transparent switch between .so and .dll files.
14653If you are using Linux, you will need a newer binutils.
14654" >&5
14655echo "$as_me: error: could not find a way to build shared libraries.
14656It is currently not possible to build Wine without shared library
14657(.so) support to allow transparent switch between .so and .dll files.
14658If you are using Linux, you will need a newer binutils.
14659" >&2;}
14660 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000014661fi
14662
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014663case $build_os in
14664 cygwin*|mingw32*)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000014665 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014666 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014667 darwin*|macosx*)
14668 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14669 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014670 *)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000014671 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014672 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014673esac
14674
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014675case $host_os in
14676 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000014677 CRTLIBS="-lmsvcrt"
14678 ;;
14679esac
14680
14681case $host_os in
14682 linux*)
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014683 WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
Alexandre Julliard546839f2003-11-11 00:48:21 +000014684
Alexandre Julliarda628c132003-11-12 03:28:21 +000014685 MAIN_BINARY="wine-glibc"
Alexandre Julliard546839f2003-11-11 00:48:21 +000014686
Alexandre Julliard546839f2003-11-11 00:48:21 +000014687 ;;
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000014688 darwin*)
14689 WINE_BINARIES="wine-pthread"
14690
14691 MAIN_BINARY="wine-pthread"
14692
14693 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000014694 *)
14695 WINE_BINARIES="wine-kthread"
14696
14697 MAIN_BINARY="wine-kthread"
14698
14699 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014700esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014701
14702
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014703if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014704then
14705 # Extract the first word of "ldd", so it can be a program name with args.
14706set dummy ldd; ac_word=$2
14707echo "$as_me:$LINENO: checking for $ac_word" >&5
14708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14709if test "${ac_cv_path_LDD+set}" = set; then
14710 echo $ECHO_N "(cached) $ECHO_C" >&6
14711else
14712 case $LDD in
14713 [\\/]* | ?:[\\/]*)
14714 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14715 ;;
14716 *)
14717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014718as_dummy="/sbin:/usr/sbin:$PATH"
14719for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014720do
14721 IFS=$as_save_IFS
14722 test -z "$as_dir" && as_dir=.
14723 for ac_exec_ext in '' $ac_executable_extensions; do
14724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14725 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14727 break 2
14728 fi
14729done
14730done
14731
14732 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14733 ;;
14734esac
14735fi
14736LDD=$ac_cv_path_LDD
14737
14738if test -n "$LDD"; then
14739 echo "$as_me:$LINENO: result: $LDD" >&5
14740echo "${ECHO_T}$LDD" >&6
14741else
14742 echo "$as_me:$LINENO: result: no" >&5
14743echo "${ECHO_T}no" >&6
14744fi
14745
14746
14747echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14748echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14749if test "${ac_cv_lib_soname_X11+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14751else
14752 ac_get_soname_save_LIBS=$LIBS
14753LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14754 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014755/* confdefs.h. */
14756_ACEOF
14757cat confdefs.h >>conftest.$ac_ext
14758cat >>conftest.$ac_ext <<_ACEOF
14759/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014760
14761/* Override any gcc2 internal prototype to avoid an error. */
14762#ifdef __cplusplus
14763extern "C"
14764#endif
14765/* We use char because int might match the return type of a gcc2
14766 builtin and then its argument prototype would still apply. */
14767char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014768int
14769main ()
14770{
14771XCreateWindow ();
14772 ;
14773 return 0;
14774}
14775_ACEOF
14776rm -f conftest.$ac_objext conftest$ac_exeext
14777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014778 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014779 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014780 grep -v '^ *+' conftest.er1 >conftest.err
14781 rm -f conftest.er1
14782 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787 (eval $ac_try) 2>&5
14788 ac_status=$?
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); }; } &&
14791 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14794 ac_status=$?
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014797 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 +000014798 if test "x$ac_cv_lib_soname_X11" = "x"
14799 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014800 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014801 fi
14802else
14803 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014804sed 's/^/| /' conftest.$ac_ext >&5
14805
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014806ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014807fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014808rm -f conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014810 LIBS=$ac_get_soname_save_LIBS
14811fi
14812echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14813echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14814if test "x$ac_cv_lib_soname_X11" != xNONE
14815then
14816cat >>confdefs.h <<_ACEOF
14817#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14818_ACEOF
14819fi
14820
14821echo "$as_me:$LINENO: checking for -lXext soname" >&5
14822echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14823if test "${ac_cv_lib_soname_Xext+set}" = set; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14825else
14826 ac_get_soname_save_LIBS=$LIBS
14827LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14828 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014829/* confdefs.h. */
14830_ACEOF
14831cat confdefs.h >>conftest.$ac_ext
14832cat >>conftest.$ac_ext <<_ACEOF
14833/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014834
14835/* Override any gcc2 internal prototype to avoid an error. */
14836#ifdef __cplusplus
14837extern "C"
14838#endif
14839/* We use char because int might match the return type of a gcc2
14840 builtin and then its argument prototype would still apply. */
14841char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014842int
14843main ()
14844{
14845XextCreateExtension ();
14846 ;
14847 return 0;
14848}
14849_ACEOF
14850rm -f conftest.$ac_objext conftest$ac_exeext
14851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014852 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014853 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014854 grep -v '^ *+' conftest.er1 >conftest.err
14855 rm -f conftest.er1
14856 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; } &&
14865 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014871 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 +000014872 if test "x$ac_cv_lib_soname_Xext" = "x"
14873 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014874 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014875 fi
14876else
14877 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014878sed 's/^/| /' conftest.$ac_ext >&5
14879
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014880ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014881fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014882rm -f conftest.err conftest.$ac_objext \
14883 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014884 LIBS=$ac_get_soname_save_LIBS
14885fi
14886echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14887echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14888if test "x$ac_cv_lib_soname_Xext" != xNONE
14889then
14890cat >>confdefs.h <<_ACEOF
14891#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14892_ACEOF
14893fi
14894
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014895echo "$as_me:$LINENO: checking for -lXi soname" >&5
14896echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14897if test "${ac_cv_lib_soname_Xi+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14899else
14900 ac_get_soname_save_LIBS=$LIBS
14901LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14902 cat >conftest.$ac_ext <<_ACEOF
14903/* confdefs.h. */
14904_ACEOF
14905cat confdefs.h >>conftest.$ac_ext
14906cat >>conftest.$ac_ext <<_ACEOF
14907/* end confdefs.h. */
14908
14909/* Override any gcc2 internal prototype to avoid an error. */
14910#ifdef __cplusplus
14911extern "C"
14912#endif
14913/* We use char because int might match the return type of a gcc2
14914 builtin and then its argument prototype would still apply. */
14915char XOpenDevice ();
14916int
14917main ()
14918{
14919XOpenDevice ();
14920 ;
14921 return 0;
14922}
14923_ACEOF
14924rm -f conftest.$ac_objext conftest$ac_exeext
14925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14926 (eval $ac_link) 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } &&
14933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; } &&
14939 { ac_try='test -s conftest$ac_exeext'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14942 ac_status=$?
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014945 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 +000014946 if test "x$ac_cv_lib_soname_Xi" = "x"
14947 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014948 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014949 fi
14950else
14951 echo "$as_me: failed program was:" >&5
14952sed 's/^/| /' conftest.$ac_ext >&5
14953
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014954ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014955fi
14956rm -f conftest.err conftest.$ac_objext \
14957 conftest$ac_exeext conftest.$ac_ext
14958 LIBS=$ac_get_soname_save_LIBS
14959fi
14960echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14961echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14962if test "x$ac_cv_lib_soname_Xi" != xNONE
14963then
14964cat >>confdefs.h <<_ACEOF
14965#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14966_ACEOF
14967fi
14968
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014969echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14970echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14971if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14973else
14974 ac_get_soname_save_LIBS=$LIBS
14975LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14976 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014977/* confdefs.h. */
14978_ACEOF
14979cat confdefs.h >>conftest.$ac_ext
14980cat >>conftest.$ac_ext <<_ACEOF
14981/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014982
14983/* Override any gcc2 internal prototype to avoid an error. */
14984#ifdef __cplusplus
14985extern "C"
14986#endif
14987/* We use char because int might match the return type of a gcc2
14988 builtin and then its argument prototype would still apply. */
14989char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014990int
14991main ()
14992{
14993XRenderQueryExtension ();
14994 ;
14995 return 0;
14996}
14997_ACEOF
14998rm -f conftest.$ac_objext conftest$ac_exeext
14999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015000 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015001 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15010 ac_status=$?
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015019 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 +000015020 if test "x$ac_cv_lib_soname_Xrender" = "x"
15021 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015022 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015023 fi
15024else
15025 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015026sed 's/^/| /' conftest.$ac_ext >&5
15027
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015028ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015029fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015030rm -f conftest.err conftest.$ac_objext \
15031 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015032 LIBS=$ac_get_soname_save_LIBS
15033fi
15034echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
15035echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
15036if test "x$ac_cv_lib_soname_Xrender" != xNONE
15037then
15038cat >>confdefs.h <<_ACEOF
15039#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
15040_ACEOF
15041fi
15042
Mike McCormackc7c9f932004-04-07 03:57:35 +000015043echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
15044echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
15045if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15047else
15048 ac_get_soname_save_LIBS=$LIBS
15049LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15050 cat >conftest.$ac_ext <<_ACEOF
15051/* confdefs.h. */
15052_ACEOF
15053cat confdefs.h >>conftest.$ac_ext
15054cat >>conftest.$ac_ext <<_ACEOF
15055/* end confdefs.h. */
15056
15057/* Override any gcc2 internal prototype to avoid an error. */
15058#ifdef __cplusplus
15059extern "C"
15060#endif
15061/* We use char because int might match the return type of a gcc2
15062 builtin and then its argument prototype would still apply. */
15063char XRRQueryExtension ();
15064int
15065main ()
15066{
15067XRRQueryExtension ();
15068 ;
15069 return 0;
15070}
15071_ACEOF
15072rm -f conftest.$ac_objext conftest$ac_exeext
15073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15074 (eval $ac_link) 2>conftest.er1
15075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } &&
15081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15084 ac_status=$?
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; } &&
15087 { ac_try='test -s conftest$ac_exeext'
15088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089 (eval $ac_try) 2>&5
15090 ac_status=$?
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015093 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 +000015094 if test "x$ac_cv_lib_soname_Xrandr" = "x"
15095 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015096 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000015097 fi
15098else
15099 echo "$as_me: failed program was:" >&5
15100sed 's/^/| /' conftest.$ac_ext >&5
15101
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015102ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000015103fi
15104rm -f conftest.err conftest.$ac_objext \
15105 conftest$ac_exeext conftest.$ac_ext
15106 LIBS=$ac_get_soname_save_LIBS
15107fi
15108echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
15109echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
15110if test "x$ac_cv_lib_soname_Xrandr" != xNONE
15111then
15112cat >>confdefs.h <<_ACEOF
15113#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
15114_ACEOF
15115fi
15116
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015117echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
15118echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
15119if test "${ac_cv_lib_soname_freetype+set}" = set; then
15120 echo $ECHO_N "(cached) $ECHO_C" >&6
15121else
15122 ac_get_soname_save_LIBS=$LIBS
15123LIBS="-lfreetype $X_LIBS $LIBS"
15124 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015125/* confdefs.h. */
15126_ACEOF
15127cat confdefs.h >>conftest.$ac_ext
15128cat >>conftest.$ac_ext <<_ACEOF
15129/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015130
15131/* Override any gcc2 internal prototype to avoid an error. */
15132#ifdef __cplusplus
15133extern "C"
15134#endif
15135/* We use char because int might match the return type of a gcc2
15136 builtin and then its argument prototype would still apply. */
15137char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015138int
15139main ()
15140{
15141FT_Init_FreeType ();
15142 ;
15143 return 0;
15144}
15145_ACEOF
15146rm -f conftest.$ac_objext conftest$ac_exeext
15147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015148 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015149 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015150 grep -v '^ *+' conftest.er1 >conftest.err
15151 rm -f conftest.er1
15152 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015167 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 +000015168 if test "x$ac_cv_lib_soname_freetype" = "x"
15169 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015170 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015171 fi
15172else
15173 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015174sed 's/^/| /' conftest.$ac_ext >&5
15175
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015176ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015177fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015178rm -f conftest.err conftest.$ac_objext \
15179 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015180 LIBS=$ac_get_soname_save_LIBS
15181fi
15182echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
15183echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
15184if test "x$ac_cv_lib_soname_freetype" != xNONE
15185then
15186cat >>confdefs.h <<_ACEOF
15187#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
15188_ACEOF
15189fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000015190
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015191echo "$as_me:$LINENO: checking for -lGL soname" >&5
15192echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
15193if test "${ac_cv_lib_soname_GL+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195else
15196 ac_get_soname_save_LIBS=$LIBS
15197LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
15198 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015199/* confdefs.h. */
15200_ACEOF
15201cat confdefs.h >>conftest.$ac_ext
15202cat >>conftest.$ac_ext <<_ACEOF
15203/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015204
15205/* Override any gcc2 internal prototype to avoid an error. */
15206#ifdef __cplusplus
15207extern "C"
15208#endif
15209/* We use char because int might match the return type of a gcc2
15210 builtin and then its argument prototype would still apply. */
15211char glXQueryExtension ();
15212int
15213main ()
15214{
15215glXQueryExtension ();
15216 ;
15217 return 0;
15218}
15219_ACEOF
15220rm -f conftest.$ac_objext conftest$ac_exeext
15221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015222 (eval $ac_link) 2>conftest.er1
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015223 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015224 grep -v '^ *+' conftest.er1 >conftest.err
15225 rm -f conftest.er1
15226 cat conftest.err >&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231 (eval $ac_try) 2>&5
15232 ac_status=$?
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; } &&
15235 { ac_try='test -s conftest$ac_exeext'
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015241 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 +000015242 if test "x$ac_cv_lib_soname_GL" = "x"
15243 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015244 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015245 fi
15246else
15247 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015248sed 's/^/| /' conftest.$ac_ext >&5
15249
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015250ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015251fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015252rm -f conftest.err conftest.$ac_objext \
15253 conftest$ac_exeext conftest.$ac_ext
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015254 LIBS=$ac_get_soname_save_LIBS
15255fi
15256echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15257echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
15258if test "x$ac_cv_lib_soname_GL" != xNONE
15259then
15260cat >>confdefs.h <<_ACEOF
15261#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15262_ACEOF
15263fi
15264
Marcus Meissnerf061f762002-11-12 02:22:24 +000015265echo "$as_me:$LINENO: checking for -lcups soname" >&5
15266echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15267if test "${ac_cv_lib_soname_cups+set}" = set; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
15269else
15270 ac_get_soname_save_LIBS=$LIBS
15271LIBS="-lcups $LIBS"
15272 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015273/* confdefs.h. */
15274_ACEOF
15275cat confdefs.h >>conftest.$ac_ext
15276cat >>conftest.$ac_ext <<_ACEOF
15277/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000015278
15279/* Override any gcc2 internal prototype to avoid an error. */
15280#ifdef __cplusplus
15281extern "C"
15282#endif
15283/* We use char because int might match the return type of a gcc2
15284 builtin and then its argument prototype would still apply. */
15285char cupsGetDefault ();
15286int
15287main ()
15288{
15289cupsGetDefault ();
15290 ;
15291 return 0;
15292}
15293_ACEOF
15294rm -f conftest.$ac_objext conftest$ac_exeext
15295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015296 (eval $ac_link) 2>conftest.er1
Marcus Meissnerf061f762002-11-12 02:22:24 +000015297 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015298 grep -v '^ *+' conftest.er1 >conftest.err
15299 rm -f conftest.er1
15300 cat conftest.err >&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000015301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5
15306 ac_status=$?
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; } &&
15309 { ac_try='test -s conftest$ac_exeext'
Marcus Meissnerf061f762002-11-12 02:22:24 +000015310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 (eval $ac_try) 2>&5
15312 ac_status=$?
15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015315 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 +000015316 if test "x$ac_cv_lib_soname_cups" = "x"
15317 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015318 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000015319 fi
15320else
15321 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015322sed 's/^/| /' conftest.$ac_ext >&5
15323
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015324ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000015325fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015326rm -f conftest.err conftest.$ac_objext \
15327 conftest$ac_exeext conftest.$ac_ext
Marcus Meissnerf061f762002-11-12 02:22:24 +000015328 LIBS=$ac_get_soname_save_LIBS
15329fi
15330echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15331echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15332if test "x$ac_cv_lib_soname_cups" != xNONE
15333then
15334cat >>confdefs.h <<_ACEOF
15335#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15336_ACEOF
15337fi
Chris Morgan4691b182002-12-13 02:26:18 +000015338
15339echo "$as_me:$LINENO: checking for -ljack soname" >&5
15340echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15341if test "${ac_cv_lib_soname_jack+set}" = set; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15343else
15344 ac_get_soname_save_LIBS=$LIBS
15345LIBS="-ljack $LIBS"
15346 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015347/* confdefs.h. */
15348_ACEOF
15349cat confdefs.h >>conftest.$ac_ext
15350cat >>conftest.$ac_ext <<_ACEOF
15351/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000015352
15353/* Override any gcc2 internal prototype to avoid an error. */
15354#ifdef __cplusplus
15355extern "C"
15356#endif
15357/* We use char because int might match the return type of a gcc2
15358 builtin and then its argument prototype would still apply. */
15359char jack_client_new ();
15360int
15361main ()
15362{
15363jack_client_new ();
15364 ;
15365 return 0;
15366}
15367_ACEOF
15368rm -f conftest.$ac_objext conftest$ac_exeext
15369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015370 (eval $ac_link) 2>conftest.er1
Chris Morgan4691b182002-12-13 02:26:18 +000015371 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
Chris Morgan4691b182002-12-13 02:26:18 +000015375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest$ac_exeext'
Chris Morgan4691b182002-12-13 02:26:18 +000015384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015389 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 +000015390 if test "x$ac_cv_lib_soname_jack" = "x"
15391 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015392 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000015393 fi
15394else
15395 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015396sed 's/^/| /' conftest.$ac_ext >&5
15397
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015398ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000015399fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015400rm -f conftest.err conftest.$ac_objext \
15401 conftest$ac_exeext conftest.$ac_ext
Chris Morgan4691b182002-12-13 02:26:18 +000015402 LIBS=$ac_get_soname_save_LIBS
15403fi
15404echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15405echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15406if test "x$ac_cv_lib_soname_jack" != xNONE
15407then
15408cat >>confdefs.h <<_ACEOF
15409#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15410_ACEOF
15411fi
David Hammerton852c7ae2003-06-20 23:26:56 +000015412
Huw Davies6e128072003-11-09 00:30:13 +000015413echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15414echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15415if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15417else
15418 ac_get_soname_save_LIBS=$LIBS
15419LIBS="-lfontconfig $LIBS"
15420 cat >conftest.$ac_ext <<_ACEOF
Huw Davies6e128072003-11-09 00:30:13 +000015421/* confdefs.h. */
15422_ACEOF
15423cat confdefs.h >>conftest.$ac_ext
15424cat >>conftest.$ac_ext <<_ACEOF
15425/* end confdefs.h. */
15426
15427/* Override any gcc2 internal prototype to avoid an error. */
15428#ifdef __cplusplus
15429extern "C"
15430#endif
15431/* We use char because int might match the return type of a gcc2
15432 builtin and then its argument prototype would still apply. */
15433char FcInit ();
15434int
15435main ()
15436{
15437FcInit ();
15438 ;
15439 return 0;
15440}
15441_ACEOF
15442rm -f conftest.$ac_objext conftest$ac_exeext
15443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015444 (eval $ac_link) 2>conftest.er1
Huw Davies6e128072003-11-09 00:30:13 +000015445 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015446 grep -v '^ *+' conftest.er1 >conftest.err
15447 rm -f conftest.er1
15448 cat conftest.err >&5
Huw Davies6e128072003-11-09 00:30:13 +000015449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest$ac_exeext'
Huw Davies6e128072003-11-09 00:30:13 +000015458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015463 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 +000015464 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15465 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015466 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000015467 fi
15468else
15469 echo "$as_me: failed program was:" >&5
15470sed 's/^/| /' conftest.$ac_ext >&5
15471
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015472ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000015473fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015474rm -f conftest.err conftest.$ac_objext \
15475 conftest$ac_exeext conftest.$ac_ext
Huw Davies6e128072003-11-09 00:30:13 +000015476 LIBS=$ac_get_soname_save_LIBS
15477fi
15478echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15479echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15480if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15481then
15482cat >>confdefs.h <<_ACEOF
15483#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15484_ACEOF
Alexandre Julliard79994692003-11-13 20:58:55 +000015485fi
Huw Davies6e128072003-11-09 00:30:13 +000015486
David Hammerton852c7ae2003-06-20 23:26:56 +000015487echo "$as_me:$LINENO: checking for -lssl soname" >&5
15488echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15489if test "${ac_cv_lib_soname_ssl+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491else
15492 ac_get_soname_save_LIBS=$LIBS
15493LIBS="-lssl $LIBS"
15494 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000015495/* confdefs.h. */
15496_ACEOF
15497cat confdefs.h >>conftest.$ac_ext
15498cat >>conftest.$ac_ext <<_ACEOF
15499/* end confdefs.h. */
15500
15501/* Override any gcc2 internal prototype to avoid an error. */
15502#ifdef __cplusplus
15503extern "C"
15504#endif
15505/* We use char because int might match the return type of a gcc2
15506 builtin and then its argument prototype would still apply. */
15507char SSL_library_init ();
15508int
15509main ()
15510{
15511SSL_library_init ();
15512 ;
15513 return 0;
15514}
15515_ACEOF
15516rm -f conftest.$ac_objext conftest$ac_exeext
15517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015518 (eval $ac_link) 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000015519 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015520 grep -v '^ *+' conftest.er1 >conftest.err
15521 rm -f conftest.er1
15522 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000015523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527 (eval $ac_try) 2>&5
15528 ac_status=$?
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; } &&
15531 { ac_try='test -s conftest$ac_exeext'
David Hammerton852c7ae2003-06-20 23:26:56 +000015532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015537 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 +000015538 if test "x$ac_cv_lib_soname_ssl" = "x"
15539 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015540 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015541 fi
15542else
15543 echo "$as_me: failed program was:" >&5
15544sed 's/^/| /' conftest.$ac_ext >&5
15545
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015546ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015547fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015548rm -f conftest.err conftest.$ac_objext \
15549 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000015550 LIBS=$ac_get_soname_save_LIBS
15551fi
15552echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15553echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15554if test "x$ac_cv_lib_soname_ssl" != xNONE
15555then
15556cat >>confdefs.h <<_ACEOF
15557#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15558_ACEOF
15559fi
15560
15561echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15562echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15563if test "${ac_cv_lib_soname_crypto+set}" = set; then
15564 echo $ECHO_N "(cached) $ECHO_C" >&6
15565else
15566 ac_get_soname_save_LIBS=$LIBS
15567LIBS="-lcrypto $LIBS"
15568 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000015569/* confdefs.h. */
15570_ACEOF
15571cat confdefs.h >>conftest.$ac_ext
15572cat >>conftest.$ac_ext <<_ACEOF
15573/* end confdefs.h. */
15574
15575/* Override any gcc2 internal prototype to avoid an error. */
15576#ifdef __cplusplus
15577extern "C"
15578#endif
15579/* We use char because int might match the return type of a gcc2
15580 builtin and then its argument prototype would still apply. */
15581char BIO_new_socket ();
15582int
15583main ()
15584{
15585BIO_new_socket ();
15586 ;
15587 return 0;
15588}
15589_ACEOF
15590rm -f conftest.$ac_objext conftest$ac_exeext
15591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015592 (eval $ac_link) 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000015593 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015594 grep -v '^ *+' conftest.er1 >conftest.err
15595 rm -f conftest.er1
15596 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000015597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try='test -s conftest$ac_exeext'
David Hammerton852c7ae2003-06-20 23:26:56 +000015606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015611 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 +000015612 if test "x$ac_cv_lib_soname_crypto" = "x"
15613 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015614 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015615 fi
15616else
15617 echo "$as_me: failed program was:" >&5
15618sed 's/^/| /' conftest.$ac_ext >&5
15619
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015620ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015621fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015622rm -f conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000015624 LIBS=$ac_get_soname_save_LIBS
15625fi
15626echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15627echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15628if test "x$ac_cv_lib_soname_crypto" != xNONE
15629then
15630cat >>confdefs.h <<_ACEOF
15631#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15632_ACEOF
15633fi
Mike McCormack9557d1b2003-08-20 04:19:01 +000015634
15635echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15636echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15637if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15639else
15640 ac_get_soname_save_LIBS=$LIBS
15641LIBS="-lncurses $LIBS"
15642 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000015643/* confdefs.h. */
15644_ACEOF
15645cat confdefs.h >>conftest.$ac_ext
15646cat >>conftest.$ac_ext <<_ACEOF
15647/* end confdefs.h. */
15648
15649/* Override any gcc2 internal prototype to avoid an error. */
15650#ifdef __cplusplus
15651extern "C"
15652#endif
15653/* We use char because int might match the return type of a gcc2
15654 builtin and then its argument prototype would still apply. */
15655char waddch ();
15656int
15657main ()
15658{
15659waddch ();
15660 ;
15661 return 0;
15662}
15663_ACEOF
15664rm -f conftest.$ac_objext conftest$ac_exeext
15665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015666 (eval $ac_link) 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000015667 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015668 grep -v '^ *+' conftest.er1 >conftest.err
15669 rm -f conftest.er1
15670 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000015671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675 (eval $ac_try) 2>&5
15676 ac_status=$?
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; } &&
15679 { ac_try='test -s conftest$ac_exeext'
Mike McCormack9557d1b2003-08-20 04:19:01 +000015680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15682 ac_status=$?
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015685 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 +000015686 if test "x$ac_cv_lib_soname_ncurses" = "x"
15687 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015688 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015689 fi
15690else
15691 echo "$as_me: failed program was:" >&5
15692sed 's/^/| /' conftest.$ac_ext >&5
15693
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015694ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015695fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015696rm -f conftest.err conftest.$ac_objext \
15697 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000015698 LIBS=$ac_get_soname_save_LIBS
15699fi
15700echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15701echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15702if test "x$ac_cv_lib_soname_ncurses" != xNONE
15703then
15704cat >>confdefs.h <<_ACEOF
15705#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15706_ACEOF
15707fi
15708
15709echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15710echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15711if test "${ac_cv_lib_soname_curses+set}" = set; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15713else
15714 ac_get_soname_save_LIBS=$LIBS
15715LIBS="-lcurses $LIBS"
15716 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000015717/* confdefs.h. */
15718_ACEOF
15719cat confdefs.h >>conftest.$ac_ext
15720cat >>conftest.$ac_ext <<_ACEOF
15721/* end confdefs.h. */
15722
15723/* Override any gcc2 internal prototype to avoid an error. */
15724#ifdef __cplusplus
15725extern "C"
15726#endif
15727/* We use char because int might match the return type of a gcc2
15728 builtin and then its argument prototype would still apply. */
15729char waddch ();
15730int
15731main ()
15732{
15733waddch ();
15734 ;
15735 return 0;
15736}
15737_ACEOF
15738rm -f conftest.$ac_objext conftest$ac_exeext
15739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015740 (eval $ac_link) 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000015741 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015742 grep -v '^ *+' conftest.er1 >conftest.err
15743 rm -f conftest.er1
15744 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000015745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; } &&
15753 { ac_try='test -s conftest$ac_exeext'
Mike McCormack9557d1b2003-08-20 04:19:01 +000015754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15756 ac_status=$?
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015759 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 +000015760 if test "x$ac_cv_lib_soname_curses" = "x"
15761 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015762 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015763 fi
15764else
15765 echo "$as_me: failed program was:" >&5
15766sed 's/^/| /' conftest.$ac_ext >&5
15767
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015768ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015769fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015770rm -f conftest.err conftest.$ac_objext \
15771 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000015772 LIBS=$ac_get_soname_save_LIBS
15773fi
15774echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15775echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15776if test "x$ac_cv_lib_soname_curses" != xNONE
15777then
15778cat >>confdefs.h <<_ACEOF
15779#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15780_ACEOF
15781fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015782fi
15783
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015784
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015785
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015786# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15787# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015788echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015789echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15790if test "${ac_cv_working_alloca_h+set}" = set; then
15791 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015792else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015793 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015794/* confdefs.h. */
15795_ACEOF
15796cat confdefs.h >>conftest.$ac_ext
15797cat >>conftest.$ac_ext <<_ACEOF
15798/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015799#include <alloca.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015800int
15801main ()
15802{
15803char *p = (char *) alloca (2 * sizeof (int));
15804 ;
15805 return 0;
15806}
15807_ACEOF
15808rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015810 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015811 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015812 grep -v '^ *+' conftest.er1 >conftest.err
15813 rm -f conftest.er1
15814 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015816 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; } &&
15823 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015825 (eval $ac_try) 2>&5
15826 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015828 (exit $ac_status); }; }; then
15829 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015830else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015831 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015832sed 's/^/| /' conftest.$ac_ext >&5
15833
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015834ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015835fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015836rm -f conftest.err conftest.$ac_objext \
15837 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015838fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015839echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015840echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15841if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000015842
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015843cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015844#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015845_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015846
15847fi
15848
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015849echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015850echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15851if test "${ac_cv_func_alloca_works+set}" = set; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015853else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015854 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015855/* confdefs.h. */
15856_ACEOF
15857cat confdefs.h >>conftest.$ac_ext
15858cat >>conftest.$ac_ext <<_ACEOF
15859/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015860#ifdef __GNUC__
15861# define alloca __builtin_alloca
15862#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015863# ifdef _MSC_VER
15864# include <malloc.h>
15865# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015866# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015867# if HAVE_ALLOCA_H
15868# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015869# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015870# ifdef _AIX
15871 #pragma alloca
15872# else
15873# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015874char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000015875# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015876# endif
15877# endif
15878# endif
15879#endif
15880
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015881int
15882main ()
15883{
15884char *p = (char *) alloca (1);
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
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015910 ac_cv_func_alloca_works=yes
15911else
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_func_alloca_works=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_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015921echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015922
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015923if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015924
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015925cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015926#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015927_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015928
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015929else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015930 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015931# that cause trouble. Some versions do not even contain alloca or
15932# contain a buggy version. If you still want to use their alloca,
15933# use ar to extract alloca.o from them instead of compiling alloca.c.
15934
15935ALLOCA=alloca.$ac_objext
15936
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015937cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015938#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015939_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015940
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015941
15942echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015943echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15944if test "${ac_cv_os_cray+set}" = set; then
15945 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015946else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015947 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015948/* confdefs.h. */
15949_ACEOF
15950cat confdefs.h >>conftest.$ac_ext
15951cat >>conftest.$ac_ext <<_ACEOF
15952/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015953#if defined(CRAY) && ! defined(CRAY2)
15954webecray
15955#else
15956wenotbecray
15957#endif
15958
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015959_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015961 $EGREP "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015962 ac_cv_os_cray=yes
15963else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015964 ac_cv_os_cray=no
15965fi
15966rm -f conftest*
15967
15968fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015969echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015970echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015971if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015972 for ac_func in _getb67 GETB67 getb67; do
15973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015974echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15976if eval "test \"\${$as_ac_var+set}\" = set"; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015978else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015979 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015980/* confdefs.h. */
15981_ACEOF
15982cat confdefs.h >>conftest.$ac_ext
15983cat >>conftest.$ac_ext <<_ACEOF
15984/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000015985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15987#define $ac_func innocuous_$ac_func
15988
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015989/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015990 which can conflict with char $ac_func (); below.
15991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15992 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000015993
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015994#ifdef __STDC__
15995# include <limits.h>
15996#else
15997# include <assert.h>
15998#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000015999
16000#undef $ac_func
16001
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016002/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016003#ifdef __cplusplus
16004extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016005{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016006#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000016007/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016008 builtin and then its argument prototype would still apply. */
16009char $ac_func ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016010/* The GNU C library defines this for functions which it implements
16011 to always fail with ENOSYS. Some functions are actually named
16012 something starting with __ and the normal name is an alias. */
16013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16014choke me
16015#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016016char (*f) () = $ac_func;
16017#endif
16018#ifdef __cplusplus
16019}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016020#endif
16021
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016022int
16023main ()
16024{
16025return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016026 ;
16027 return 0;
16028}
16029_ACEOF
16030rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016032 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016033 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016034 grep -v '^ *+' conftest.er1 >conftest.err
16035 rm -f conftest.er1
16036 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016038 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; } &&
16045 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016047 (eval $ac_try) 2>&5
16048 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016050 (exit $ac_status); }; }; then
16051 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016052else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016053 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016054sed 's/^/| /' conftest.$ac_ext >&5
16055
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016056eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016057fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016058rm -f conftest.err conftest.$ac_objext \
16059 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016060fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016062echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16063if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016064
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016065cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016066#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016067_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016068
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016069 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016070fi
16071
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016072 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016073fi
16074
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016075echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016076echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16077if test "${ac_cv_c_stack_direction+set}" = set; then
16078 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016079else
16080 if test "$cross_compiling" = yes; then
16081 ac_cv_c_stack_direction=0
16082else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016083 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016084/* confdefs.h. */
16085_ACEOF
16086cat confdefs.h >>conftest.$ac_ext
16087cat >>conftest.$ac_ext <<_ACEOF
16088/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016089int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016090find_stack_direction ()
16091{
16092 static char *addr = 0;
16093 auto char dummy;
16094 if (addr == 0)
16095 {
16096 addr = &dummy;
16097 return find_stack_direction ();
16098 }
16099 else
16100 return (&dummy > addr) ? 1 : -1;
16101}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016102
16103int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016104main ()
16105{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016106 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016107}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016108_ACEOF
16109rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016111 (eval $ac_link) 2>&5
16112 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016116 (eval $ac_try) 2>&5
16117 ac_status=$?
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); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016120 ac_cv_c_stack_direction=1
16121else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016122 echo "$as_me: program exited with status $ac_status" >&5
16123echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016124sed 's/^/| /' conftest.$ac_ext >&5
16125
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016126( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016127ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016128fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000016129rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016130fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016131fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016132echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016133echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016134
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016135cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016136#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016137_ACEOF
16138
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016139
16140fi
16141
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
Steven Edwardsb9627c12002-05-05 21:03:44 +000016184
16185
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016186
16187
Alexandre Julliard142dab82002-07-01 18:17:30 +000016188
Patrik Stridvall6caeb722002-11-25 21:12:26 +000016189
16190
16191
Pavel Roskin7add08a2003-09-24 18:54:40 +000016192
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000016193
Alexandre Julliarde2930742004-01-08 05:07:05 +000016194
Alexandre Julliard13af4892004-03-05 21:03:46 +000016195
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000016196
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000016197
16198
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016199for ac_func in \
16200 _lwp_create \
Alexandre Julliard6f7a2042003-04-01 04:39:35 +000016201 _lwp_self \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016202 _pclose \
16203 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016204 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000016205 _spawnvp \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016206 _stricmp \
16207 _strnicmp \
Steven Edwardsbe514b92003-01-14 19:35:03 +000016208 _vsnprintf \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016209 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016210 clone \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000016211 finite \
16212 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000016213 fstatfs \
16214 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016215 ftruncate \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000016216 ftruncate64 \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000016217 futimes \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016218 getnetbyaddr \
16219 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000016220 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016221 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016222 getprotobyname \
16223 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000016224 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016225 getservbyport \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000016226 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000016227 gettimeofday \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016228 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000016229 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000016230 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016231 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000016232 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016233 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016234 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016235 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000016236 pwrite \
Alexandre Julliarde2930742004-01-08 05:07:05 +000016237 readlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016238 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016239 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016240 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016241 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016242 sigaltstack \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016243 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000016244 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016245 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000016246 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000016247 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016248 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000016249 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016250 tcgetattr \
16251 timegm \
16252 usleep \
16253 vfscanf \
Steven Edwardsbe514b92003-01-14 19:35:03 +000016254 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016255 wait4 \
16256 waitpid \
16257
16258do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016260echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16262if eval "test \"\${$as_ac_var+set}\" = set"; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016264else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016265 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016266/* confdefs.h. */
16267_ACEOF
16268cat confdefs.h >>conftest.$ac_ext
16269cat >>conftest.$ac_ext <<_ACEOF
16270/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16273#define $ac_func innocuous_$ac_func
16274
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016275/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016276 which can conflict with char $ac_func (); below.
16277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16278 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016279
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016280#ifdef __STDC__
16281# include <limits.h>
16282#else
16283# include <assert.h>
16284#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000016285
16286#undef $ac_func
16287
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016288/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016289#ifdef __cplusplus
16290extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016291{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016292#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016293/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016294 builtin and then its argument prototype would still apply. */
16295char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016296/* The GNU C library defines this for functions which it implements
16297 to always fail with ENOSYS. Some functions are actually named
16298 something starting with __ and the normal name is an alias. */
16299#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16300choke me
16301#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016302char (*f) () = $ac_func;
16303#endif
16304#ifdef __cplusplus
16305}
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016306#endif
16307
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016308int
16309main ()
16310{
16311return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016312 ;
16313 return 0;
16314}
16315_ACEOF
16316rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016318 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016319 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016320 grep -v '^ *+' conftest.er1 >conftest.err
16321 rm -f conftest.er1
16322 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016324 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327 (eval $ac_try) 2>&5
16328 ac_status=$?
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); }; } &&
16331 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016333 (eval $ac_try) 2>&5
16334 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016336 (exit $ac_status); }; }; then
16337 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016338else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016339 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016340sed 's/^/| /' conftest.$ac_ext >&5
16341
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016342eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016343fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016344rm -f conftest.err conftest.$ac_objext \
16345 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016346fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016348echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16349if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016350 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016351#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016352_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016353
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016354fi
16355done
16356
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
Laurent Pinchart0314a652002-05-01 22:01:30 +000016418
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016419
16420
16421
Alexandre Julliard127ec922002-05-07 01:51:30 +000016422
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000016423
Patrik Stridvall57bf4502002-08-26 21:53:24 +000016424
16425
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000016426
Chris Morgan4691b182002-12-13 02:26:18 +000016427
Alexandre Julliardb6938952003-01-13 18:41:40 +000016428
Alexandre Julliardc44555b2003-04-02 01:42:06 +000016429
Juan Lang38fa5ad2003-05-13 03:32:20 +000016430
Yorick Hardyc26b7db2003-05-19 21:46:09 +000016431
Yorick Hardyb1334542003-05-20 17:48:40 +000016432
David Hammerton852c7ae2003-06-20 23:26:56 +000016433
Pavel Roskin6ce05692003-10-03 04:31:49 +000016434
Rein Klazesc6c404d2003-10-07 22:49:22 +000016435
Alexandre Julliard0b1a82a2003-10-14 01:27:31 +000016436
Dmitry Timoshkov2581db82003-10-14 05:27:43 +000016437
Huw Davies6e128072003-11-09 00:30:13 +000016438
Eric Pouech53fa0d52004-02-05 01:27:38 +000016439
16440
Alexandre Julliarde8a339c2004-03-01 21:32:02 +000016441
Alexandre Julliard13af4892004-03-05 21:03:46 +000016442
Alexandre Julliardffcc67a2004-04-29 20:04:48 +000016443
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016444for ac_header in \
Patrik Stridvall96336321999-10-24 22:13:47 +000016445 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016446 arpa/nameser.h \
Marcus Meissnerf061f762002-11-12 02:22:24 +000016447 cups/cups.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016448 direct.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016449 elf.h \
16450 float.h \
Huw Davies6e128072003-11-09 00:30:13 +000016451 fontconfig/fontconfig.h \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000016452 getopt.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +000016453 ieeefp.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016454 io.h \
Chris Morgan4691b182002-12-13 02:26:18 +000016455 jack/jack.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016456 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +000016457 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016458 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016459 linux/cdrom.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016460 linux/hdreg.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +000016461 linux/input.h \
Alexandre Julliarde8a339c2004-03-01 21:32:02 +000016462 linux/ioctl.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +000016463 linux/joystick.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016464 linux/major.h \
Laurent Pinchart0314a652002-05-01 22:01:30 +000016465 linux/param.h \
Lawson Whitney533e7ee2002-02-19 18:41:56 +000016466 linux/serial.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016467 linux/ucdrom.h \
Yorick Hardyb1334542003-05-20 17:48:40 +000016468 machine/cpu.h \
Alexandre Julliardffcc67a2004-04-29 20:04:48 +000016469 mntent.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +000016470 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016471 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000016472 netinet/in_systm.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016473 netinet/tcp.h \
Juan Lang38fa5ad2003-05-13 03:32:20 +000016474 netinet/tcp_fsm.h \
David Hammerton852c7ae2003-06-20 23:26:56 +000016475 openssl/ssl.h \
Dmitry Timoshkov2581db82003-10-14 05:27:43 +000016476 process.h \
Alexandre Julliard0b1a82a2003-10-14 01:27:31 +000016477 pthread.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +000016478 pty.h \
Steven Edwardsff4525c2002-06-24 23:00:25 +000016479 pwd.h \
Alexandre Julliardb6938952003-01-13 18:41:40 +000016480 regex.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016481 sched.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016482 scsi/sg.h \
Rein Klazesc6c404d2003-10-07 22:49:22 +000016483 scsi/scsi.h \
Pavel Roskin6ce05692003-10-03 04:31:49 +000016484 scsi/scsi_ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016485 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +000016486 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016487 strings.h \
16488 sys/cdio.h \
Eric Pouech53fa0d52004-02-05 01:27:38 +000016489 sys/elf32.h \
Howard Abrams13277481999-07-10 13:16:29 +000016490 sys/errno.h \
Eric Pouech53fa0d52004-02-05 01:27:38 +000016491 sys/exec_elf.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016492 sys/file.h \
16493 sys/filio.h \
Michal Pasternak60983992002-03-29 18:04:43 +000016494 sys/inttypes.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000016495 sys/ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016496 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +000016497 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016498 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +000016499 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016500 sys/modem.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016501 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016502 sys/param.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000016503 sys/poll.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000016504 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +000016505 sys/reg.h \
Yorick Hardyc26b7db2003-05-19 21:46:09 +000016506 sys/scsiio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016507 sys/shm.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016508 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016509 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016510 sys/sockio.h \
16511 sys/statfs.h \
Alexandre Julliard13af4892004-03-05 21:03:46 +000016512 sys/statvfs.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016513 sys/strtio.h \
16514 sys/syscall.h \
Alexandre Julliard127ec922002-05-07 01:51:30 +000016515 sys/sysctl.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016516 sys/time.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000016517 sys/times.h \
Steven Edwards45e56812002-10-31 03:41:56 +000016518 sys/uio.h \
16519 sys/un.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016520 sys/v86.h \
16521 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016522 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016523 sys/vm86.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016524 sys/wait.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016525 syscall.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000016526 termios.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016527 unistd.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000016528 utime.h \
Alexandre Julliardc44555b2003-04-02 01:42:06 +000016529 valgrind/memcheck.h
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016530
Alexandre Julliard02e90081998-01-04 17:49:09 +000016531do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016533if eval "test \"\${$as_ac_Header+set}\" = set"; then
16534 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16536if eval "test \"\${$as_ac_Header+set}\" = set"; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016538fi
16539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliard02e90081998-01-04 17:49:09 +000016541else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016542 # Is the header compilable?
16543echo "$as_me:$LINENO: checking $ac_header usability" >&5
16544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16545cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016546/* confdefs.h. */
16547_ACEOF
16548cat confdefs.h >>conftest.$ac_ext
16549cat >>conftest.$ac_ext <<_ACEOF
16550/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016551$ac_includes_default
16552#include <$ac_header>
16553_ACEOF
16554rm -f conftest.$ac_objext
16555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016556 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016557 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016558 grep -v '^ *+' conftest.er1 >conftest.err
16559 rm -f conftest.er1
16560 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16565 (eval $ac_try) 2>&5
16566 ac_status=$?
16567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); }; } &&
16569 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16571 (eval $ac_try) 2>&5
16572 ac_status=$?
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; }; then
16575 ac_header_compiler=yes
16576else
16577 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016578sed 's/^/| /' conftest.$ac_ext >&5
16579
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016580ac_header_compiler=no
16581fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016583echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16584echo "${ECHO_T}$ac_header_compiler" >&6
16585
16586# Is the header present?
16587echo "$as_me:$LINENO: checking $ac_header presence" >&5
16588echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16589cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016590/* confdefs.h. */
16591_ACEOF
16592cat confdefs.h >>conftest.$ac_ext
16593cat >>conftest.$ac_ext <<_ACEOF
16594/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016595#include <$ac_header>
16596_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16599 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016600 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016601 rm -f conftest.er1
16602 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016604 (exit $ac_status); } >/dev/null; then
16605 if test -s conftest.err; then
16606 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000016607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016608 else
16609 ac_cpp_err=
16610 fi
Alexandre Julliard02e90081998-01-04 17:49:09 +000016611else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016612 ac_cpp_err=yes
16613fi
16614if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016615 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016616else
16617 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016618sed 's/^/| /' conftest.$ac_ext >&5
16619
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016620 ac_header_preproc=no
Alexandre Julliard02e90081998-01-04 17:49:09 +000016621fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016622rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016623echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16624echo "${ECHO_T}$ac_header_preproc" >&6
16625
16626# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16628 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000016631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16633 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016634 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000016635 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000016638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16639echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16643echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000016646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016648 (
16649 cat <<\_ASBOX
16650## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000016651## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016652## ------------------------------------ ##
16653_ASBOX
16654 ) |
16655 sed "s/^/$as_me: WARNING: /" >&2
16656 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016657esac
16658echo "$as_me:$LINENO: checking for $ac_header" >&5
16659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16660if eval "test \"\${$as_ac_Header+set}\" = set"; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16662else
Alexandre Julliard875927f2004-01-02 01:55:29 +000016663 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard02e90081998-01-04 17:49:09 +000016664fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016667
Alexandre Julliard02e90081998-01-04 17:49:09 +000016668fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016669if test `eval echo '${'$as_ac_Header'}'` = yes; then
16670 cat >>confdefs.h <<_ACEOF
16671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16672_ACEOF
16673
16674fi
16675
Alexandre Julliard02e90081998-01-04 17:49:09 +000016676done
16677
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016678echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016679echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16680if test "${ac_cv_header_stat_broken+set}" = set; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016682else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016683 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016684/* confdefs.h. */
16685_ACEOF
16686cat confdefs.h >>conftest.$ac_ext
16687cat >>conftest.$ac_ext <<_ACEOF
16688/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016689#include <sys/types.h>
16690#include <sys/stat.h>
16691
16692#if defined(S_ISBLK) && defined(S_IFDIR)
16693# if S_ISBLK (S_IFDIR)
16694You lose.
16695# endif
16696#endif
16697
16698#if defined(S_ISBLK) && defined(S_IFCHR)
16699# if S_ISBLK (S_IFCHR)
16700You lose.
16701# endif
16702#endif
16703
16704#if defined(S_ISLNK) && defined(S_IFREG)
16705# if S_ISLNK (S_IFREG)
16706You lose.
16707# endif
16708#endif
16709
16710#if defined(S_ISSOCK) && defined(S_IFREG)
16711# if S_ISSOCK (S_IFREG)
16712You lose.
16713# endif
16714#endif
16715
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016716_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016718 $EGREP "You lose" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016719 ac_cv_header_stat_broken=yes
16720else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016721 ac_cv_header_stat_broken=no
16722fi
16723rm -f conftest*
16724
16725fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016726echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016727echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016728if test $ac_cv_header_stat_broken = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016729
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016730cat >>confdefs.h <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016731#define STAT_MACROS_BROKEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016732_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016733
16734fi
16735
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016736
16737
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016738
16739
16740for ac_header in sys/mount.h sys/user.h
16741do
16742as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16743echo "$as_me:$LINENO: checking for $ac_header" >&5
16744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16745if eval "test \"\${$as_ac_Header+set}\" = set"; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16747else
16748 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016749/* confdefs.h. */
16750_ACEOF
16751cat confdefs.h >>conftest.$ac_ext
16752cat >>conftest.$ac_ext <<_ACEOF
16753/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000016754#include <sys/types.h>
16755 #if HAVE_SYS_PARAM_H
16756 # include <sys/param.h>
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016757 #endif
16758
16759#include <$ac_header>
16760_ACEOF
16761rm -f conftest.$ac_objext
16762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016763 (eval $ac_compile) 2>conftest.er1
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016764 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016765 grep -v '^ *+' conftest.er1 >conftest.err
16766 rm -f conftest.er1
16767 cat conftest.err >&5
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; } &&
16776 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778 (eval $ac_try) 2>&5
16779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; }; then
16782 eval "$as_ac_Header=yes"
16783else
16784 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016785sed 's/^/| /' conftest.$ac_ext >&5
16786
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016787eval "$as_ac_Header=no"
16788fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016790fi
16791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16793if test `eval echo '${'$as_ac_Header'}'` = yes; then
16794 cat >>confdefs.h <<_ACEOF
16795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16796_ACEOF
16797
16798fi
16799
16800done
16801
16802
16803
Juan Lang38fa5ad2003-05-13 03:32:20 +000016804
16805
16806
16807
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016808for 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 +000016809do
16810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16811echo "$as_me:$LINENO: checking for $ac_header" >&5
16812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16813if eval "test \"\${$as_ac_Header+set}\" = set"; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815else
16816 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016817/* confdefs.h. */
16818_ACEOF
16819cat confdefs.h >>conftest.$ac_ext
16820cat >>conftest.$ac_ext <<_ACEOF
16821/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000016822#include <sys/types.h>
Gerald Pfeifer87c369d2002-07-23 02:02:02 +000016823 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016824 # include <sys/socket.h>
16825 #endif
16826
16827#include <$ac_header>
16828_ACEOF
16829rm -f conftest.$ac_objext
16830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016831 (eval $ac_compile) 2>conftest.er1
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016832 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016833 grep -v '^ *+' conftest.er1 >conftest.err
16834 rm -f conftest.er1
16835 cat conftest.err >&5
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840 (eval $ac_try) 2>&5
16841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; } &&
16844 { ac_try='test -s conftest.$ac_objext'
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
16850 eval "$as_ac_Header=yes"
16851else
16852 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016853sed 's/^/| /' conftest.$ac_ext >&5
16854
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016855eval "$as_ac_Header=no"
16856fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016858fi
16859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16861if test `eval echo '${'$as_ac_Header'}'` = yes; then
16862 cat >>confdefs.h <<_ACEOF
16863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16864_ACEOF
16865
16866fi
16867
16868done
16869
16870
16871
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016872for ac_header in resolv.h
16873do
16874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16875echo "$as_me:$LINENO: checking for $ac_header" >&5
16876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16877if eval "test \"\${$as_ac_Header+set}\" = set"; then
16878 echo $ECHO_N "(cached) $ECHO_C" >&6
16879else
16880 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016881/* confdefs.h. */
16882_ACEOF
16883cat confdefs.h >>conftest.$ac_ext
16884cat >>conftest.$ac_ext <<_ACEOF
16885/* end confdefs.h. */
16886#include <sys/types.h>
16887 #if HAVE_SYS_SOCKET_H
16888 # include <sys/socket.h>
16889 #endif
16890 #if HAVE_NETINET_IN_H
16891 # include <netinet/in.h>
16892 #endif
Pierre d'Herbemontae8ca362003-10-27 21:55:00 +000016893 #if HAVE_ARPA_NAMESER_H
16894 # include <arpa/nameser.h>
16895 #endif
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016896
16897#include <$ac_header>
16898_ACEOF
16899rm -f conftest.$ac_objext
16900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016901 (eval $ac_compile) 2>conftest.er1
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016902 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016903 grep -v '^ *+' conftest.er1 >conftest.err
16904 rm -f conftest.er1
16905 cat conftest.err >&5
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; } &&
16914 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920 eval "$as_ac_Header=yes"
16921else
16922 echo "$as_me: failed program was:" >&5
16923sed 's/^/| /' conftest.$ac_ext >&5
16924
16925eval "$as_ac_Header=no"
16926fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016928fi
16929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16931if test `eval echo '${'$as_ac_Header'}'` = yes; then
16932 cat >>confdefs.h <<_ACEOF
16933#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16934_ACEOF
16935
16936fi
16937
16938done
16939
16940
16941
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016942for ac_header in netinet/ip.h
16943do
16944as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16945echo "$as_me:$LINENO: checking for $ac_header" >&5
16946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16947if eval "test \"\${$as_ac_Header+set}\" = set"; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16949else
16950 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016951/* confdefs.h. */
16952_ACEOF
16953cat confdefs.h >>conftest.$ac_ext
16954cat >>conftest.$ac_ext <<_ACEOF
16955/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000016956#include <sys/types.h>
16957 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016958 # include <sys/socket.h>
16959 #endif
16960 #if HAVE_NETINET_IN_SYSTM_H
16961 # include <netinet/in_systm.h>
16962 #endif
16963
16964#include <$ac_header>
16965_ACEOF
16966rm -f conftest.$ac_objext
16967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016968 (eval $ac_compile) 2>conftest.er1
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016969 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977 (eval $ac_try) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 eval "$as_ac_Header=yes"
16988else
16989 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016990sed 's/^/| /' conftest.$ac_ext >&5
16991
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016992eval "$as_ac_Header=no"
16993fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016995fi
16996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16998if test `eval echo '${'$as_ac_Header'}'` = yes; then
16999 cat >>confdefs.h <<_ACEOF
17000#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17001_ACEOF
17002
17003fi
17004
17005done
17006
17007
17008
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017009for ac_header in ucontext.h
17010do
17011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17012echo "$as_me:$LINENO: checking for $ac_header" >&5
17013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17014if eval "test \"\${$as_ac_Header+set}\" = set"; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17016else
17017 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017018/* confdefs.h. */
17019_ACEOF
17020cat confdefs.h >>conftest.$ac_ext
17021cat >>conftest.$ac_ext <<_ACEOF
17022/* end confdefs.h. */
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017023#include <signal.h>
17024
17025#include <$ac_header>
17026_ACEOF
17027rm -f conftest.$ac_objext
17028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017029 (eval $ac_compile) 2>conftest.er1
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017030 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017031 grep -v '^ *+' conftest.er1 >conftest.err
17032 rm -f conftest.er1
17033 cat conftest.err >&5
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038 (eval $ac_try) 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; } &&
17042 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17045 ac_status=$?
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 eval "$as_ac_Header=yes"
17049else
17050 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017051sed 's/^/| /' conftest.$ac_ext >&5
17052
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017053eval "$as_ac_Header=no"
17054fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017056fi
17057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17059if test `eval echo '${'$as_ac_Header'}'` = yes; then
17060 cat >>confdefs.h <<_ACEOF
17061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17062_ACEOF
17063
17064fi
17065
17066done
17067
17068
17069
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017070echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
17071echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
17072if test "${ac_cv_c_ipx_gnu+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17074else
17075 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017076/* confdefs.h. */
17077_ACEOF
17078cat confdefs.h >>conftest.$ac_ext
17079cat >>conftest.$ac_ext <<_ACEOF
17080/* end confdefs.h. */
17081#include <sys/types.h>
17082 #ifdef HAVE_SYS_SOCKET_H
17083 # include <sys/socket.h>
17084 #endif
17085 #include <netipx/ipx.h>
17086int
17087main ()
17088{
17089((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17090 ;
17091 return 0;
17092}
17093_ACEOF
17094rm -f conftest.$ac_objext
17095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017096 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017097 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017098 grep -v '^ *+' conftest.er1 >conftest.err
17099 rm -f conftest.er1
17100 cat conftest.err >&5
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; } &&
17109 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111 (eval $ac_try) 2>&5
17112 ac_status=$?
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; }; then
17115 ac_cv_c_ipx_gnu="yes"
17116else
17117 echo "$as_me: failed program was:" >&5
17118sed 's/^/| /' conftest.$ac_ext >&5
17119
17120ac_cv_c_ipx_gnu="no"
17121fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017123
17124fi
17125echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
17126echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
17127if test "$ac_cv_c_ipx_gnu" = "yes"
17128then
17129
17130cat >>confdefs.h <<\_ACEOF
17131#define HAVE_IPX_GNU 1
17132_ACEOF
17133
17134fi
17135
17136if test "$ac_cv_c_ipx_gnu" = "no"
17137then
17138 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
17139echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
17140if test "${ac_cv_c_ipx_linux+set}" = set; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17142else
17143 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017144/* confdefs.h. */
17145_ACEOF
17146cat confdefs.h >>conftest.$ac_ext
17147cat >>conftest.$ac_ext <<_ACEOF
17148/* end confdefs.h. */
17149#include <sys/types.h>
17150 #ifdef HAVE_SYS_SOCKET_H
17151 # include <sys/socket.h>
17152 #endif
17153 #include <asm/types.h>
17154 #include <linux/ipx.h>
17155int
17156main ()
17157{
17158((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17159 ;
17160 return 0;
17161}
17162_ACEOF
17163rm -f conftest.$ac_objext
17164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017165 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017166 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; } &&
17178 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
17184 ac_cv_c_ipx_linux="yes"
17185else
17186 echo "$as_me: failed program was:" >&5
17187sed 's/^/| /' conftest.$ac_ext >&5
17188
17189ac_cv_c_ipx_linux="no"
17190fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017192
17193fi
17194echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17195echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17196 if test "$ac_cv_c_ipx_linux" = "yes"
17197 then
17198
17199cat >>confdefs.h <<\_ACEOF
17200#define HAVE_IPX_LINUX 1
17201_ACEOF
17202
17203 fi
17204fi
17205
17206
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017207echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017208echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17209if test "${ac_cv_c_const+set}" = set; then
17210 echo $ECHO_N "(cached) $ECHO_C" >&6
17211else
17212 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017213/* confdefs.h. */
17214_ACEOF
17215cat confdefs.h >>conftest.$ac_ext
17216cat >>conftest.$ac_ext <<_ACEOF
17217/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017218
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017219int
17220main ()
17221{
17222/* FIXME: Include the comments suggested by Paul. */
17223#ifndef __cplusplus
17224 /* Ultrix mips cc rejects this. */
17225 typedef int charset[2];
17226 const charset x;
17227 /* SunOS 4.1.1 cc rejects this. */
17228 char const *const *ccp;
17229 char **p;
17230 /* NEC SVR4.0.2 mips cc rejects this. */
17231 struct point {int x, y;};
17232 static struct point const zero = {0,0};
17233 /* AIX XL C 1.02.0.0 rejects this.
17234 It does not let you subtract one const X* pointer from another in
17235 an arm of an if-expression whose if-part is not a constant
17236 expression */
17237 const char *g = "string";
17238 ccp = &g + (g ? g-g : 0);
17239 /* HPUX 7.0 cc rejects these. */
17240 ++ccp;
17241 p = (char**) ccp;
17242 ccp = (char const *const *) p;
17243 { /* SCO 3.2v4 cc rejects this. */
17244 char *t;
17245 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017246
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017247 *t++ = 0;
17248 }
17249 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17250 int x[] = {25, 17};
17251 const int *foo = &x[0];
17252 ++foo;
17253 }
17254 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17255 typedef const int *iptr;
17256 iptr p = 0;
17257 ++p;
17258 }
17259 { /* AIX XL C 1.02.0.0 rejects this saying
17260 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17261 struct s { int j; const int *ap[3]; };
17262 struct s *b; b->j = 5;
17263 }
17264 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17265 const int foo = 10;
17266 }
17267#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017268
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017269 ;
17270 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017271}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017272_ACEOF
17273rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017275 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017276 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017277 grep -v '^ *+' conftest.er1 >conftest.err
17278 rm -f conftest.er1
17279 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017281 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17285 ac_status=$?
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; } &&
17288 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017290 (eval $ac_try) 2>&5
17291 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017293 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017294 ac_cv_c_const=yes
17295else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017296 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017297sed 's/^/| /' conftest.$ac_ext >&5
17298
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017299ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017300fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017302fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017303echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017304echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017305if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017306
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017307cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017308#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017309_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017310
17311fi
17312
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017313echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017314echo $ECHO_N "checking for inline... $ECHO_C" >&6
17315if test "${ac_cv_c_inline+set}" = set; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017317else
17318 ac_cv_c_inline=no
17319for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017320 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017321/* confdefs.h. */
17322_ACEOF
17323cat confdefs.h >>conftest.$ac_ext
17324cat >>conftest.$ac_ext <<_ACEOF
17325/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017326#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017327typedef int foo_t;
17328static $ac_kw foo_t static_foo () {return 0; }
17329$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017330#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017331
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017332_ACEOF
17333rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017335 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017336 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017337 grep -v '^ *+' conftest.er1 >conftest.err
17338 rm -f conftest.er1
17339 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017341 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; } &&
17348 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017350 (eval $ac_try) 2>&5
17351 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017353 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017354 ac_cv_c_inline=$ac_kw; break
17355else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017356 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017357sed 's/^/| /' conftest.$ac_ext >&5
17358
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017359fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017361done
17362
17363fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017364echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017365echo "${ECHO_T}$ac_cv_c_inline" >&6
Alexandre Julliard875927f2004-01-02 01:55:29 +000017366
17367
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017368case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017369 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000017370 *)
17371 case $ac_cv_c_inline in
17372 no) ac_val=;;
17373 *) ac_val=$ac_cv_c_inline;;
17374 esac
17375 cat >>confdefs.h <<_ACEOF
17376#ifndef __cplusplus
17377#define inline $ac_val
17378#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017379_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000017380 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017381esac
17382
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017383echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017384echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17385if test "${ac_cv_type_mode_t+set}" = set; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17387else
17388 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017389/* confdefs.h. */
17390_ACEOF
17391cat confdefs.h >>conftest.$ac_ext
17392cat >>conftest.$ac_ext <<_ACEOF
17393/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017394$ac_includes_default
17395int
17396main ()
17397{
17398if ((mode_t *) 0)
17399 return 0;
17400if (sizeof (mode_t))
17401 return 0;
17402 ;
17403 return 0;
17404}
17405_ACEOF
17406rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017408 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017409 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017410 grep -v '^ *+' conftest.er1 >conftest.err
17411 rm -f conftest.er1
17412 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017414 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; } &&
17421 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017423 (eval $ac_try) 2>&5
17424 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017426 (exit $ac_status); }; }; then
17427 ac_cv_type_mode_t=yes
17428else
17429 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017430sed 's/^/| /' conftest.$ac_ext >&5
17431
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017432ac_cv_type_mode_t=no
17433fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017435fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017436echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017437echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17438if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017439
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017440cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017441#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017442_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017443
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017444
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017445fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017446echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017447echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17448if test "${ac_cv_type_off_t+set}" = set; then
17449 echo $ECHO_N "(cached) $ECHO_C" >&6
17450else
17451 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017452/* confdefs.h. */
17453_ACEOF
17454cat confdefs.h >>conftest.$ac_ext
17455cat >>conftest.$ac_ext <<_ACEOF
17456/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017457$ac_includes_default
17458int
17459main ()
17460{
17461if ((off_t *) 0)
17462 return 0;
17463if (sizeof (off_t))
17464 return 0;
17465 ;
17466 return 0;
17467}
17468_ACEOF
17469rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017471 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017472 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017473 grep -v '^ *+' conftest.er1 >conftest.err
17474 rm -f conftest.er1
17475 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017477 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480 (eval $ac_try) 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017486 (eval $ac_try) 2>&5
17487 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017489 (exit $ac_status); }; }; then
17490 ac_cv_type_off_t=yes
17491else
17492 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017493sed 's/^/| /' conftest.$ac_ext >&5
17494
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017495ac_cv_type_off_t=no
17496fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017498fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017499echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017500echo "${ECHO_T}$ac_cv_type_off_t" >&6
17501if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017502
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017503cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017504#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017505_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017506
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017507
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017508fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017509echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017510echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17511if test "${ac_cv_type_pid_t+set}" = set; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17513else
17514 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017515/* confdefs.h. */
17516_ACEOF
17517cat confdefs.h >>conftest.$ac_ext
17518cat >>conftest.$ac_ext <<_ACEOF
17519/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017520$ac_includes_default
17521int
17522main ()
17523{
17524if ((pid_t *) 0)
17525 return 0;
17526if (sizeof (pid_t))
17527 return 0;
17528 ;
17529 return 0;
17530}
17531_ACEOF
17532rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017534 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017535 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017536 grep -v '^ *+' conftest.er1 >conftest.err
17537 rm -f conftest.er1
17538 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017540 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543 (eval $ac_try) 2>&5
17544 ac_status=$?
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); }; } &&
17547 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017549 (eval $ac_try) 2>&5
17550 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017552 (exit $ac_status); }; }; then
17553 ac_cv_type_pid_t=yes
17554else
17555 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017556sed 's/^/| /' conftest.$ac_ext >&5
17557
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017558ac_cv_type_pid_t=no
17559fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017561fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017562echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017563echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17564if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017565
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017566cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017567#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017568_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017569
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017570
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017571fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017572echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017573echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17574if test "${ac_cv_type_size_t+set}" = set; then
17575 echo $ECHO_N "(cached) $ECHO_C" >&6
17576else
17577 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017578/* confdefs.h. */
17579_ACEOF
17580cat confdefs.h >>conftest.$ac_ext
17581cat >>conftest.$ac_ext <<_ACEOF
17582/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017583$ac_includes_default
17584int
17585main ()
17586{
17587if ((size_t *) 0)
17588 return 0;
17589if (sizeof (size_t))
17590 return 0;
17591 ;
17592 return 0;
17593}
17594_ACEOF
17595rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017597 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017598 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017599 grep -v '^ *+' conftest.er1 >conftest.err
17600 rm -f conftest.er1
17601 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017603 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17606 (eval $ac_try) 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; } &&
17610 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017612 (eval $ac_try) 2>&5
17613 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017615 (exit $ac_status); }; }; then
17616 ac_cv_type_size_t=yes
17617else
17618 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017619sed 's/^/| /' conftest.$ac_ext >&5
17620
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017621ac_cv_type_size_t=no
17622fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017624fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017625echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017626echo "${ECHO_T}$ac_cv_type_size_t" >&6
17627if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017628
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017629cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017630#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017631_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017632
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017633
17634fi
17635echo "$as_me:$LINENO: checking for ssize_t" >&5
17636echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17637if test "${ac_cv_type_ssize_t+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
17639else
17640 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017641/* confdefs.h. */
17642_ACEOF
17643cat confdefs.h >>conftest.$ac_ext
17644cat >>conftest.$ac_ext <<_ACEOF
17645/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017646$ac_includes_default
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017647int
17648main ()
17649{
17650if ((ssize_t *) 0)
17651 return 0;
17652if (sizeof (ssize_t))
17653 return 0;
17654 ;
17655 return 0;
17656}
17657_ACEOF
17658rm -f conftest.$ac_objext
17659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017660 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017661 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017662 grep -v '^ *+' conftest.er1 >conftest.err
17663 rm -f conftest.er1
17664 cat conftest.err >&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17670 ac_status=$?
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; } &&
17673 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675 (eval $ac_try) 2>&5
17676 ac_status=$?
17677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678 (exit $ac_status); }; }; then
17679 ac_cv_type_ssize_t=yes
17680else
17681 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017682sed 's/^/| /' conftest.$ac_ext >&5
17683
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017684ac_cv_type_ssize_t=no
17685fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017687fi
17688echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17689echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17690if test $ac_cv_type_ssize_t = yes; then
17691
17692cat >>confdefs.h <<_ACEOF
17693#define HAVE_SSIZE_T 1
17694_ACEOF
17695
17696
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017697fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017698echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017699echo $ECHO_N "checking for long long... $ECHO_C" >&6
17700if test "${ac_cv_type_long_long+set}" = set; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17702else
17703 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017704/* confdefs.h. */
17705_ACEOF
17706cat confdefs.h >>conftest.$ac_ext
17707cat >>conftest.$ac_ext <<_ACEOF
17708/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017709$ac_includes_default
17710int
17711main ()
17712{
17713if ((long long *) 0)
17714 return 0;
17715if (sizeof (long long))
17716 return 0;
17717 ;
17718 return 0;
17719}
17720_ACEOF
17721rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017723 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017724 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017725 grep -v '^ *+' conftest.er1 >conftest.err
17726 rm -f conftest.er1
17727 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017729 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732 (eval $ac_try) 2>&5
17733 ac_status=$?
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; } &&
17736 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017738 (eval $ac_try) 2>&5
17739 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017741 (exit $ac_status); }; }; then
17742 ac_cv_type_long_long=yes
17743else
17744 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017745sed 's/^/| /' conftest.$ac_ext >&5
17746
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017747ac_cv_type_long_long=no
17748fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017750fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017751echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017752echo "${ECHO_T}$ac_cv_type_long_long" >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017753if test $ac_cv_type_long_long = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017754
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017755cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017756#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017757_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000017758
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017759
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017760fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000017761echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17762echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17763if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17764 echo $ECHO_N "(cached) $ECHO_C" >&6
17765else
17766 cat >conftest.$ac_ext <<_ACEOF
17767/* confdefs.h. */
17768_ACEOF
17769cat confdefs.h >>conftest.$ac_ext
17770cat >>conftest.$ac_ext <<_ACEOF
17771/* end confdefs.h. */
17772$ac_includes_default
17773int
17774main ()
17775{
17776if ((fsblkcnt_t *) 0)
17777 return 0;
17778if (sizeof (fsblkcnt_t))
17779 return 0;
17780 ;
17781 return 0;
17782}
17783_ACEOF
17784rm -f conftest.$ac_objext
17785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17786 (eval $ac_compile) 2>conftest.er1
17787 ac_status=$?
17788 grep -v '^ *+' conftest.er1 >conftest.err
17789 rm -f conftest.er1
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; } &&
17799 { ac_try='test -s conftest.$ac_objext'
17800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 (eval $ac_try) 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); }; }; then
17805 ac_cv_type_fsblkcnt_t=yes
17806else
17807 echo "$as_me: failed program was:" >&5
17808sed 's/^/| /' conftest.$ac_ext >&5
17809
17810ac_cv_type_fsblkcnt_t=no
17811fi
17812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17813fi
17814echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17815echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17816if test $ac_cv_type_fsblkcnt_t = yes; then
17817
17818cat >>confdefs.h <<_ACEOF
17819#define HAVE_FSBLKCNT_T 1
17820_ACEOF
17821
17822
17823fi
17824echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17825echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17826if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17827 echo $ECHO_N "(cached) $ECHO_C" >&6
17828else
17829 cat >conftest.$ac_ext <<_ACEOF
17830/* confdefs.h. */
17831_ACEOF
17832cat confdefs.h >>conftest.$ac_ext
17833cat >>conftest.$ac_ext <<_ACEOF
17834/* end confdefs.h. */
17835$ac_includes_default
17836int
17837main ()
17838{
17839if ((fsfilcnt_t *) 0)
17840 return 0;
17841if (sizeof (fsfilcnt_t))
17842 return 0;
17843 ;
17844 return 0;
17845}
17846_ACEOF
17847rm -f conftest.$ac_objext
17848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17849 (eval $ac_compile) 2>conftest.er1
17850 ac_status=$?
17851 grep -v '^ *+' conftest.er1 >conftest.err
17852 rm -f conftest.er1
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); } &&
17856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; } &&
17862 { ac_try='test -s conftest.$ac_objext'
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; }; then
17868 ac_cv_type_fsfilcnt_t=yes
17869else
17870 echo "$as_me: failed program was:" >&5
17871sed 's/^/| /' conftest.$ac_ext >&5
17872
17873ac_cv_type_fsfilcnt_t=no
17874fi
17875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17876fi
17877echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17878echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17879if test $ac_cv_type_fsfilcnt_t = yes; then
17880
17881cat >>confdefs.h <<_ACEOF
17882#define HAVE_FSFILCNT_T 1
17883_ACEOF
17884
17885
17886fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017887
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017888
17889echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017890echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17891if test "${wine_cv_linux_input_h+set}" = set; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017893else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017894 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017895/* confdefs.h. */
17896_ACEOF
17897cat confdefs.h >>conftest.$ac_ext
17898cat >>conftest.$ac_ext <<_ACEOF
17899/* end confdefs.h. */
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017900
17901 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017902
17903int
17904main ()
17905{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017906
17907 int foo = EVIOCGBIT(EV_ABS,42);
17908 int bar = BTN_PINKIE;
17909 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017910
17911 ;
17912 return 0;
17913}
17914_ACEOF
17915rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017917 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017918 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017919 grep -v '^ *+' conftest.er1 >conftest.err
17920 rm -f conftest.er1
17921 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017923 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017932 (eval $ac_try) 2>&5
17933 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017935 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017936 wine_cv_linux_input_h=yes
17937else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017938 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017939sed 's/^/| /' conftest.$ac_ext >&5
17940
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017941wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017942fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017944
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017945fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017946echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017947echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017948 if test "$wine_cv_linux_input_h" = "yes"
17949 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017950
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017951cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017952#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017953_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017954
17955 fi
17956
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017957
17958echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017959echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17960if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000017962else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017963 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017964/* confdefs.h. */
17965_ACEOF
17966cat confdefs.h >>conftest.$ac_ext
17967cat >>conftest.$ac_ext <<_ACEOF
17968/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000017969
17970#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017971
17972int
17973main ()
17974{
Rein Klazesff7a61f2000-09-24 19:41:57 +000017975
17976 char *name=NULL;
17977 struct hostent he;
17978 struct hostent *result;
17979 char *buf=NULL;
17980 int bufsize=0;
17981 int res,errnr;
17982 char *addr=NULL;
17983 int addrlen=0;
17984 int addrtype=0;
17985 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17986 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017987
17988 ;
17989 return 0;
17990}
17991_ACEOF
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000017992rm -f conftest.$ac_objext conftest$ac_exeext
17993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17994 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017995 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018000 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003 (eval $ac_try) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; } &&
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000018007 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018009 (eval $ac_try) 2>&5
18010 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018012 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000018013 wine_cv_linux_gethostbyname_r_6=yes
18014else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018015 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018016sed 's/^/| /' conftest.$ac_ext >&5
18017
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018018wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000018019
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018020fi
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000018021rm -f conftest.err conftest.$ac_objext \
18022 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018023
18024fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018025echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018026echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000018027 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
18028 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018029
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018030cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000018031#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018032_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000018033
18034 fi
18035
Marcus Meissner028e9a11999-08-04 15:07:56 +000018036if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018037then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018038 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018039echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
18040if test "${wine_cv_linux_joystick_22_api+set}" = set; then
18041 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018042else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018043 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018044/* confdefs.h. */
18045_ACEOF
18046cat confdefs.h >>conftest.$ac_ext
18047cat >>conftest.$ac_ext <<_ACEOF
18048/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018049
Marcus Meissner028e9a11999-08-04 15:07:56 +000018050 #include <sys/ioctl.h>
18051 #include <linux/joystick.h>
18052
18053 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000018054 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
18055 #error "no 2.2 header"
18056 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018057
18058int
18059main ()
18060{
Marcus Meissner028e9a11999-08-04 15:07:56 +000018061/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018062 ;
18063 return 0;
18064}
18065_ACEOF
18066rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018068 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018069 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018070 grep -v '^ *+' conftest.er1 >conftest.err
18071 rm -f conftest.er1
18072 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018074 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18078 ac_status=$?
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; } &&
18081 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018083 (eval $ac_try) 2>&5
18084 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018086 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000018087 wine_cv_linux_joystick_22_api=yes
18088else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018089 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018090sed 's/^/| /' conftest.$ac_ext >&5
18091
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018092wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000018093fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000018095
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018096fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018097echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018098echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000018099 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000018100 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018101
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018102cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000018103#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018104_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000018105
18106 fi
18107fi
18108
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018109
Marcus Meissner028e9a11999-08-04 15:07:56 +000018110if test "$ac_cv_header_sys_vfs_h" = "yes"
18111then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018112 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018113echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
18114if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000018116else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018117 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018118/* confdefs.h. */
18119_ACEOF
18120cat confdefs.h >>conftest.$ac_ext
18121cat >>conftest.$ac_ext <<_ACEOF
18122/* end confdefs.h. */
Marcus Meissner028e9a11999-08-04 15:07:56 +000018123
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018124 #include <sys/types.h>
18125 #ifdef HAVE_SYS_PARAM_H
18126 # include <sys/param.h>
18127 #endif
18128 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018129
18130int
18131main ()
18132{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018133
18134 struct statfs stfs;
18135
18136 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018137
18138 ;
18139 return 0;
18140}
18141_ACEOF
18142rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018144 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018145 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018146 grep -v '^ *+' conftest.er1 >conftest.err
18147 rm -f conftest.er1
18148 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018150 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18154 ac_status=$?
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; } &&
18157 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018159 (eval $ac_try) 2>&5
18160 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018162 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018163 wine_cv_sys_vfs_has_statfs=yes
18164else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018165 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018166sed 's/^/| /' conftest.$ac_ext >&5
18167
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018168wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018169
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018170fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018172
18173fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018174echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018175echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018176 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18177 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018178
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018179cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018180#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018181_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018182
18183 fi
18184fi
18185
18186if test "$ac_cv_header_sys_statfs_h" = "yes"
18187then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018188 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018189echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18190if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018192else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018193 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018194/* confdefs.h. */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018199
18200 #include <sys/types.h>
18201 #ifdef HAVE_SYS_PARAM_H
18202 # include <sys/param.h>
18203 #endif
18204 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018205
18206int
18207main ()
18208{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018209
18210 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018211
18212 ;
18213 return 0;
18214}
18215_ACEOF
18216rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018218 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018219 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018220 grep -v '^ *+' conftest.er1 >conftest.err
18221 rm -f conftest.er1
18222 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018224 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018233 (eval $ac_try) 2>&5
18234 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018236 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018237 wine_cv_sys_statfs_has_statfs=yes
18238else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018239 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018240sed 's/^/| /' conftest.$ac_ext >&5
18241
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018242wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018243
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018244fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018246
18247fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018248echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018249echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018250 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18251 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018252
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018253cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018254#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018255_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018256
18257 fi
18258fi
18259
18260if test "$ac_cv_header_sys_mount_h" = "yes"
18261then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018262 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018263echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18264if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018266else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018267 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018268/* confdefs.h. */
18269_ACEOF
18270cat confdefs.h >>conftest.$ac_ext
18271cat >>conftest.$ac_ext <<_ACEOF
18272/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018273
18274 #include <sys/types.h>
18275 #ifdef HAVE_SYS_PARAM_H
18276 # include <sys/param.h>
18277 #endif
18278 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018279
18280int
18281main ()
18282{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018283
18284 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018285
18286 ;
18287 return 0;
18288}
18289_ACEOF
18290rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018292 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018293 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018294 grep -v '^ *+' conftest.er1 >conftest.err
18295 rm -f conftest.er1
18296 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018298 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301 (eval $ac_try) 2>&5
18302 ac_status=$?
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; } &&
18305 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018307 (eval $ac_try) 2>&5
18308 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018310 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018311 wine_cv_sys_mount_has_statfs=yes
18312else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018313 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018314sed 's/^/| /' conftest.$ac_ext >&5
18315
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018316wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018317
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018318fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018320
18321fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018322echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018323echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018324 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18325 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018326
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018327cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018328#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018329_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018330
18331 fi
18332fi
18333
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018334
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018335echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18336echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18337if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018338 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018339else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018340 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018341/* confdefs.h. */
18342_ACEOF
18343cat confdefs.h >>conftest.$ac_ext
18344cat >>conftest.$ac_ext <<_ACEOF
18345/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018346#include <sys/types.h>
18347#ifdef HAVE_SYS_PARAM_H
18348# include <sys/param.h>
18349#endif
18350#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18351# include <sys/mount.h>
18352#else
18353# ifdef STATFS_DEFINED_BY_SYS_VFS
18354# include <sys/vfs.h>
18355# else
18356# ifdef STATFS_DEFINED_BY_SYS_STATFS
18357# include <sys/statfs.h>
18358# endif
18359# endif
18360#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018361
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018362int
18363main ()
18364{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018365static struct statfs ac_aggr;
18366if (ac_aggr.f_bfree)
18367return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018368 ;
18369 return 0;
18370}
18371_ACEOF
18372rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018374 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018375 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018376 grep -v '^ *+' conftest.er1 >conftest.err
18377 rm -f conftest.er1
18378 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018380 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18384 ac_status=$?
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; } &&
18387 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018389 (eval $ac_try) 2>&5
18390 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018392 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018393 ac_cv_member_struct_statfs_f_bfree=yes
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018394else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018395 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018396sed 's/^/| /' conftest.$ac_ext >&5
18397
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018398cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018399/* confdefs.h. */
18400_ACEOF
18401cat confdefs.h >>conftest.$ac_ext
18402cat >>conftest.$ac_ext <<_ACEOF
18403/* end confdefs.h. */
18404#include <sys/types.h>
18405#ifdef HAVE_SYS_PARAM_H
18406# include <sys/param.h>
18407#endif
18408#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18409# include <sys/mount.h>
18410#else
18411# ifdef STATFS_DEFINED_BY_SYS_VFS
18412# include <sys/vfs.h>
18413# else
18414# ifdef STATFS_DEFINED_BY_SYS_STATFS
18415# include <sys/statfs.h>
18416# endif
18417# endif
18418#endif
18419
18420int
18421main ()
18422{
18423static struct statfs ac_aggr;
18424if (sizeof ac_aggr.f_bfree)
18425return 0;
18426 ;
18427 return 0;
18428}
18429_ACEOF
18430rm -f conftest.$ac_objext
18431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018432 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018433 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018434 grep -v '^ *+' conftest.er1 >conftest.err
18435 rm -f conftest.er1
18436 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; } &&
18445 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_cv_member_struct_statfs_f_bfree=yes
18452else
18453 echo "$as_me: failed program was:" >&5
18454sed 's/^/| /' conftest.$ac_ext >&5
18455
18456ac_cv_member_struct_statfs_f_bfree=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018457fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018459fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018461fi
18462echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18463echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18464if test $ac_cv_member_struct_statfs_f_bfree = yes; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018465
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018466cat >>confdefs.h <<_ACEOF
18467#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018468_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018469
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018470
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018471fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018472echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18473echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18474if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018475 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000018476else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018477 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018478/* confdefs.h. */
18479_ACEOF
18480cat confdefs.h >>conftest.$ac_ext
18481cat >>conftest.$ac_ext <<_ACEOF
18482/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018483#include <sys/types.h>
18484#ifdef HAVE_SYS_PARAM_H
18485# include <sys/param.h>
18486#endif
18487#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18488# include <sys/mount.h>
18489#else
18490# ifdef STATFS_DEFINED_BY_SYS_VFS
18491# include <sys/vfs.h>
18492# else
18493# ifdef STATFS_DEFINED_BY_SYS_STATFS
18494# include <sys/statfs.h>
18495# endif
18496# endif
18497#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018498
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018499int
18500main ()
18501{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018502static struct statfs ac_aggr;
18503if (ac_aggr.f_bavail)
18504return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018505 ;
18506 return 0;
18507}
18508_ACEOF
18509rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018511 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018512 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018513 grep -v '^ *+' conftest.er1 >conftest.err
18514 rm -f conftest.er1
18515 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018517 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520 (eval $ac_try) 2>&5
18521 ac_status=$?
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; } &&
18524 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018526 (eval $ac_try) 2>&5
18527 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018529 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018530 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000018531else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018532 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018533sed 's/^/| /' conftest.$ac_ext >&5
18534
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018535cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018536/* confdefs.h. */
18537_ACEOF
18538cat confdefs.h >>conftest.$ac_ext
18539cat >>conftest.$ac_ext <<_ACEOF
18540/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000018541#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018542#ifdef HAVE_SYS_PARAM_H
18543# include <sys/param.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000018544#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018545#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18546# include <sys/mount.h>
18547#else
18548# ifdef STATFS_DEFINED_BY_SYS_VFS
18549# include <sys/vfs.h>
18550# else
18551# ifdef STATFS_DEFINED_BY_SYS_STATFS
18552# include <sys/statfs.h>
18553# endif
18554# endif
18555#endif
18556
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018557int
18558main ()
18559{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018560static struct statfs ac_aggr;
18561if (sizeof ac_aggr.f_bavail)
18562return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018563 ;
18564 return 0;
18565}
18566_ACEOF
18567rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018569 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018570 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018571 grep -v '^ *+' conftest.er1 >conftest.err
18572 rm -f conftest.er1
18573 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018575 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; } &&
18582 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018584 (eval $ac_try) 2>&5
18585 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018587 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018588 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliard829fe321998-07-26 14:27:39 +000018589else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018590 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018591sed 's/^/| /' conftest.$ac_ext >&5
18592
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018593ac_cv_member_struct_statfs_f_bavail=no
Alexandre Julliard829fe321998-07-26 14:27:39 +000018594fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000018596fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000018598fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018599echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18600echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18601if test $ac_cv_member_struct_statfs_f_bavail = yes; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000018602
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018603cat >>confdefs.h <<_ACEOF
18604#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018605_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000018606
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018607
Patrik Stridvall09da9662001-07-08 22:30:50 +000018608fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000018609echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18610echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18611if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18612 echo $ECHO_N "(cached) $ECHO_C" >&6
18613else
18614 cat >conftest.$ac_ext <<_ACEOF
18615/* confdefs.h. */
18616_ACEOF
18617cat confdefs.h >>conftest.$ac_ext
18618cat >>conftest.$ac_ext <<_ACEOF
18619/* end confdefs.h. */
18620#include <sys/types.h>
18621#ifdef HAVE_SYS_PARAM_H
18622# include <sys/param.h>
18623#endif
18624#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18625# include <sys/mount.h>
18626#else
18627# ifdef STATFS_DEFINED_BY_SYS_VFS
18628# include <sys/vfs.h>
18629# else
18630# ifdef STATFS_DEFINED_BY_SYS_STATFS
18631# include <sys/statfs.h>
18632# endif
18633# endif
18634#endif
18635
18636int
18637main ()
18638{
18639static struct statfs ac_aggr;
18640if (ac_aggr.f_frsize)
18641return 0;
18642 ;
18643 return 0;
18644}
18645_ACEOF
18646rm -f conftest.$ac_objext
18647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18648 (eval $ac_compile) 2>conftest.er1
18649 ac_status=$?
18650 grep -v '^ *+' conftest.er1 >conftest.err
18651 rm -f conftest.er1
18652 cat conftest.err >&5
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); } &&
18655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657 (eval $ac_try) 2>&5
18658 ac_status=$?
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); }; } &&
18661 { ac_try='test -s conftest.$ac_objext'
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 ac_cv_member_struct_statfs_f_frsize=yes
18668else
18669 echo "$as_me: failed program was:" >&5
18670sed 's/^/| /' conftest.$ac_ext >&5
18671
18672cat >conftest.$ac_ext <<_ACEOF
18673/* confdefs.h. */
18674_ACEOF
18675cat confdefs.h >>conftest.$ac_ext
18676cat >>conftest.$ac_ext <<_ACEOF
18677/* end confdefs.h. */
18678#include <sys/types.h>
18679#ifdef HAVE_SYS_PARAM_H
18680# include <sys/param.h>
18681#endif
18682#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18683# include <sys/mount.h>
18684#else
18685# ifdef STATFS_DEFINED_BY_SYS_VFS
18686# include <sys/vfs.h>
18687# else
18688# ifdef STATFS_DEFINED_BY_SYS_STATFS
18689# include <sys/statfs.h>
18690# endif
18691# endif
18692#endif
18693
18694int
18695main ()
18696{
18697static struct statfs ac_aggr;
18698if (sizeof ac_aggr.f_frsize)
18699return 0;
18700 ;
18701 return 0;
18702}
18703_ACEOF
18704rm -f conftest.$ac_objext
18705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18706 (eval $ac_compile) 2>conftest.er1
18707 ac_status=$?
18708 grep -v '^ *+' conftest.er1 >conftest.err
18709 rm -f conftest.er1
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } &&
18713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715 (eval $ac_try) 2>&5
18716 ac_status=$?
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try='test -s conftest.$ac_objext'
18720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18721 (eval $ac_try) 2>&5
18722 ac_status=$?
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; }; then
18725 ac_cv_member_struct_statfs_f_frsize=yes
18726else
18727 echo "$as_me: failed program was:" >&5
18728sed 's/^/| /' conftest.$ac_ext >&5
18729
18730ac_cv_member_struct_statfs_f_frsize=no
18731fi
18732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18733fi
18734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18735fi
18736echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18737echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18738if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18739
18740cat >>confdefs.h <<_ACEOF
18741#define HAVE_STRUCT_STATFS_F_FRSIZE 1
18742_ACEOF
18743
18744
18745fi
18746echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18747echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18748if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18749 echo $ECHO_N "(cached) $ECHO_C" >&6
18750else
18751 cat >conftest.$ac_ext <<_ACEOF
18752/* confdefs.h. */
18753_ACEOF
18754cat confdefs.h >>conftest.$ac_ext
18755cat >>conftest.$ac_ext <<_ACEOF
18756/* end confdefs.h. */
18757#include <sys/types.h>
18758#ifdef HAVE_SYS_PARAM_H
18759# include <sys/param.h>
18760#endif
18761#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18762# include <sys/mount.h>
18763#else
18764# ifdef STATFS_DEFINED_BY_SYS_VFS
18765# include <sys/vfs.h>
18766# else
18767# ifdef STATFS_DEFINED_BY_SYS_STATFS
18768# include <sys/statfs.h>
18769# endif
18770# endif
18771#endif
18772
18773int
18774main ()
18775{
18776static struct statfs ac_aggr;
18777if (ac_aggr.f_ffree)
18778return 0;
18779 ;
18780 return 0;
18781}
18782_ACEOF
18783rm -f conftest.$ac_objext
18784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18785 (eval $ac_compile) 2>conftest.er1
18786 ac_status=$?
18787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
18792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18795 ac_status=$?
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; } &&
18798 { ac_try='test -s conftest.$ac_objext'
18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18800 (eval $ac_try) 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18804 ac_cv_member_struct_statfs_f_ffree=yes
18805else
18806 echo "$as_me: failed program was:" >&5
18807sed 's/^/| /' conftest.$ac_ext >&5
18808
18809cat >conftest.$ac_ext <<_ACEOF
18810/* confdefs.h. */
18811_ACEOF
18812cat confdefs.h >>conftest.$ac_ext
18813cat >>conftest.$ac_ext <<_ACEOF
18814/* end confdefs.h. */
18815#include <sys/types.h>
18816#ifdef HAVE_SYS_PARAM_H
18817# include <sys/param.h>
18818#endif
18819#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18820# include <sys/mount.h>
18821#else
18822# ifdef STATFS_DEFINED_BY_SYS_VFS
18823# include <sys/vfs.h>
18824# else
18825# ifdef STATFS_DEFINED_BY_SYS_STATFS
18826# include <sys/statfs.h>
18827# endif
18828# endif
18829#endif
18830
18831int
18832main ()
18833{
18834static struct statfs ac_aggr;
18835if (sizeof ac_aggr.f_ffree)
18836return 0;
18837 ;
18838 return 0;
18839}
18840_ACEOF
18841rm -f conftest.$ac_objext
18842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18843 (eval $ac_compile) 2>conftest.er1
18844 ac_status=$?
18845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest.$ac_objext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_cv_member_struct_statfs_f_ffree=yes
18863else
18864 echo "$as_me: failed program was:" >&5
18865sed 's/^/| /' conftest.$ac_ext >&5
18866
18867ac_cv_member_struct_statfs_f_ffree=no
18868fi
18869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18870fi
18871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18872fi
18873echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18874echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18875if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18876
18877cat >>confdefs.h <<_ACEOF
18878#define HAVE_STRUCT_STATFS_F_FFREE 1
18879_ACEOF
18880
18881
18882fi
18883echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18884echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18885if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18886 echo $ECHO_N "(cached) $ECHO_C" >&6
18887else
18888 cat >conftest.$ac_ext <<_ACEOF
18889/* confdefs.h. */
18890_ACEOF
18891cat confdefs.h >>conftest.$ac_ext
18892cat >>conftest.$ac_ext <<_ACEOF
18893/* end confdefs.h. */
18894#include <sys/types.h>
18895#ifdef HAVE_SYS_PARAM_H
18896# include <sys/param.h>
18897#endif
18898#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18899# include <sys/mount.h>
18900#else
18901# ifdef STATFS_DEFINED_BY_SYS_VFS
18902# include <sys/vfs.h>
18903# else
18904# ifdef STATFS_DEFINED_BY_SYS_STATFS
18905# include <sys/statfs.h>
18906# endif
18907# endif
18908#endif
18909
18910int
18911main ()
18912{
18913static struct statfs ac_aggr;
18914if (ac_aggr.f_favail)
18915return 0;
18916 ;
18917 return 0;
18918}
18919_ACEOF
18920rm -f conftest.$ac_objext
18921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18922 (eval $ac_compile) 2>conftest.er1
18923 ac_status=$?
18924 grep -v '^ *+' conftest.er1 >conftest.err
18925 rm -f conftest.er1
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); } &&
18929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931 (eval $ac_try) 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; } &&
18935 { ac_try='test -s conftest.$ac_objext'
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; }; then
18941 ac_cv_member_struct_statfs_f_favail=yes
18942else
18943 echo "$as_me: failed program was:" >&5
18944sed 's/^/| /' conftest.$ac_ext >&5
18945
18946cat >conftest.$ac_ext <<_ACEOF
18947/* confdefs.h. */
18948_ACEOF
18949cat confdefs.h >>conftest.$ac_ext
18950cat >>conftest.$ac_ext <<_ACEOF
18951/* end confdefs.h. */
18952#include <sys/types.h>
18953#ifdef HAVE_SYS_PARAM_H
18954# include <sys/param.h>
18955#endif
18956#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18957# include <sys/mount.h>
18958#else
18959# ifdef STATFS_DEFINED_BY_SYS_VFS
18960# include <sys/vfs.h>
18961# else
18962# ifdef STATFS_DEFINED_BY_SYS_STATFS
18963# include <sys/statfs.h>
18964# endif
18965# endif
18966#endif
18967
18968int
18969main ()
18970{
18971static struct statfs ac_aggr;
18972if (sizeof ac_aggr.f_favail)
18973return 0;
18974 ;
18975 return 0;
18976}
18977_ACEOF
18978rm -f conftest.$ac_objext
18979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18980 (eval $ac_compile) 2>conftest.er1
18981 ac_status=$?
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } &&
18987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989 (eval $ac_try) 2>&5
18990 ac_status=$?
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); }; } &&
18993 { ac_try='test -s conftest.$ac_objext'
18994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995 (eval $ac_try) 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; }; then
18999 ac_cv_member_struct_statfs_f_favail=yes
19000else
19001 echo "$as_me: failed program was:" >&5
19002sed 's/^/| /' conftest.$ac_ext >&5
19003
19004ac_cv_member_struct_statfs_f_favail=no
19005fi
19006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19007fi
19008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19009fi
19010echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
19011echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
19012if test $ac_cv_member_struct_statfs_f_favail = yes; then
19013
19014cat >>confdefs.h <<_ACEOF
19015#define HAVE_STRUCT_STATFS_F_FAVAIL 1
19016_ACEOF
19017
19018
19019fi
Alexandre Julliardb859a682004-03-07 03:16:43 +000019020echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
19021echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
19022if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
19023 echo $ECHO_N "(cached) $ECHO_C" >&6
19024else
19025 cat >conftest.$ac_ext <<_ACEOF
19026/* confdefs.h. */
19027_ACEOF
19028cat confdefs.h >>conftest.$ac_ext
19029cat >>conftest.$ac_ext <<_ACEOF
19030/* end confdefs.h. */
19031#include <sys/types.h>
19032#ifdef HAVE_SYS_PARAM_H
19033# include <sys/param.h>
19034#endif
19035#ifdef STATFS_DEFINED_BY_SYS_MOUNT
19036# include <sys/mount.h>
19037#else
19038# ifdef STATFS_DEFINED_BY_SYS_VFS
19039# include <sys/vfs.h>
19040# else
19041# ifdef STATFS_DEFINED_BY_SYS_STATFS
19042# include <sys/statfs.h>
19043# endif
19044# endif
19045#endif
19046
19047int
19048main ()
19049{
19050static struct statfs ac_aggr;
19051if (ac_aggr.f_namelen)
19052return 0;
19053 ;
19054 return 0;
19055}
19056_ACEOF
19057rm -f conftest.$ac_objext
19058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19059 (eval $ac_compile) 2>conftest.er1
19060 ac_status=$?
19061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } &&
19066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } &&
19072 { ac_try='test -s conftest.$ac_objext'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19078 ac_cv_member_struct_statfs_f_namelen=yes
19079else
19080 echo "$as_me: failed program was:" >&5
19081sed 's/^/| /' conftest.$ac_ext >&5
19082
19083cat >conftest.$ac_ext <<_ACEOF
19084/* confdefs.h. */
19085_ACEOF
19086cat confdefs.h >>conftest.$ac_ext
19087cat >>conftest.$ac_ext <<_ACEOF
19088/* end confdefs.h. */
19089#include <sys/types.h>
19090#ifdef HAVE_SYS_PARAM_H
19091# include <sys/param.h>
19092#endif
19093#ifdef STATFS_DEFINED_BY_SYS_MOUNT
19094# include <sys/mount.h>
19095#else
19096# ifdef STATFS_DEFINED_BY_SYS_VFS
19097# include <sys/vfs.h>
19098# else
19099# ifdef STATFS_DEFINED_BY_SYS_STATFS
19100# include <sys/statfs.h>
19101# endif
19102# endif
19103#endif
19104
19105int
19106main ()
19107{
19108static struct statfs ac_aggr;
19109if (sizeof ac_aggr.f_namelen)
19110return 0;
19111 ;
19112 return 0;
19113}
19114_ACEOF
19115rm -f conftest.$ac_objext
19116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19117 (eval $ac_compile) 2>conftest.er1
19118 ac_status=$?
19119 grep -v '^ *+' conftest.er1 >conftest.err
19120 rm -f conftest.er1
19121 cat conftest.err >&5
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); } &&
19124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; } &&
19130 { ac_try='test -s conftest.$ac_objext'
19131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19132 (eval $ac_try) 2>&5
19133 ac_status=$?
19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); }; }; then
19136 ac_cv_member_struct_statfs_f_namelen=yes
19137else
19138 echo "$as_me: failed program was:" >&5
19139sed 's/^/| /' conftest.$ac_ext >&5
19140
19141ac_cv_member_struct_statfs_f_namelen=no
19142fi
19143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19144fi
19145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19146fi
19147echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19148echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
19149if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19150
19151cat >>confdefs.h <<_ACEOF
19152#define HAVE_STRUCT_STATFS_F_NAMELEN 1
19153_ACEOF
19154
19155
19156fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000019157
19158
19159echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19160echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19161if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19163else
19164 cat >conftest.$ac_ext <<_ACEOF
19165/* confdefs.h. */
19166_ACEOF
19167cat confdefs.h >>conftest.$ac_ext
19168cat >>conftest.$ac_ext <<_ACEOF
19169/* end confdefs.h. */
19170#ifdef HAVE_SYS_STATVFS_H
19171#include <sys/statvfs.h>
19172#endif
19173
19174int
19175main ()
19176{
19177static struct statvfs ac_aggr;
19178if (ac_aggr.f_blocks)
19179return 0;
19180 ;
19181 return 0;
19182}
19183_ACEOF
19184rm -f conftest.$ac_objext
19185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19186 (eval $ac_compile) 2>conftest.er1
19187 ac_status=$?
19188 grep -v '^ *+' conftest.er1 >conftest.err
19189 rm -f conftest.er1
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195 (eval $ac_try) 2>&5
19196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; } &&
19199 { ac_try='test -s conftest.$ac_objext'
19200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19202 ac_status=$?
19203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 ac_cv_member_struct_statvfs_f_blocks=yes
19206else
19207 echo "$as_me: failed program was:" >&5
19208sed 's/^/| /' conftest.$ac_ext >&5
19209
19210cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
19216#ifdef HAVE_SYS_STATVFS_H
19217#include <sys/statvfs.h>
19218#endif
19219
19220int
19221main ()
19222{
19223static struct statvfs ac_aggr;
19224if (sizeof ac_aggr.f_blocks)
19225return 0;
19226 ;
19227 return 0;
19228}
19229_ACEOF
19230rm -f conftest.$ac_objext
19231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19232 (eval $ac_compile) 2>conftest.er1
19233 ac_status=$?
19234 grep -v '^ *+' conftest.er1 >conftest.err
19235 rm -f conftest.er1
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
19239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest.$ac_objext'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 ac_cv_member_struct_statvfs_f_blocks=yes
19252else
19253 echo "$as_me: failed program was:" >&5
19254sed 's/^/| /' conftest.$ac_ext >&5
19255
19256ac_cv_member_struct_statvfs_f_blocks=no
19257fi
19258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19259fi
19260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19261fi
19262echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19263echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19264if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19265
19266cat >>confdefs.h <<_ACEOF
19267#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19268_ACEOF
19269
19270
19271fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000019272
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019273
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019274echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19275echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19276if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019277 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000019278else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019279 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019280/* confdefs.h. */
19281_ACEOF
19282cat confdefs.h >>conftest.$ac_ext
19283cat >>conftest.$ac_ext <<_ACEOF
19284/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000019285#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000019286#ifdef HAVE_SYS_SOCKET_H
19287# include <sys/socket.h>
19288#endif
19289#ifdef HAVE_SYS_UN_H
19290# include <sys/un.h>
19291#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019292
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019293int
19294main ()
19295{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019296static struct msghdr ac_aggr;
19297if (ac_aggr.msg_accrights)
19298return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019299 ;
19300 return 0;
19301}
19302_ACEOF
19303rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019305 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019306 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019311 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19315 ac_status=$?
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; } &&
19318 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019320 (eval $ac_try) 2>&5
19321 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019323 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019324 ac_cv_member_struct_msghdr_msg_accrights=yes
Juergen Lock2d33ab92000-02-13 16:03:29 +000019325else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019326 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019327sed 's/^/| /' conftest.$ac_ext >&5
19328
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019329cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019330/* confdefs.h. */
19331_ACEOF
19332cat confdefs.h >>conftest.$ac_ext
19333cat >>conftest.$ac_ext <<_ACEOF
19334/* end confdefs.h. */
19335#include <sys/types.h>
19336#ifdef HAVE_SYS_SOCKET_H
19337# include <sys/socket.h>
19338#endif
19339#ifdef HAVE_SYS_UN_H
19340# include <sys/un.h>
19341#endif
19342
19343int
19344main ()
19345{
19346static struct msghdr ac_aggr;
19347if (sizeof ac_aggr.msg_accrights)
19348return 0;
19349 ;
19350 return 0;
19351}
19352_ACEOF
19353rm -f conftest.$ac_objext
19354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019355 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019356 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019357 grep -v '^ *+' conftest.er1 >conftest.err
19358 rm -f conftest.er1
19359 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_member_struct_msghdr_msg_accrights=yes
19375else
19376 echo "$as_me: failed program was:" >&5
19377sed 's/^/| /' conftest.$ac_ext >&5
19378
19379ac_cv_member_struct_msghdr_msg_accrights=no
Juergen Lock2d33ab92000-02-13 16:03:29 +000019380fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000019382fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019384fi
19385echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19386echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19387if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000019388
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019389cat >>confdefs.h <<_ACEOF
19390#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019391_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000019392
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019393
19394fi
19395echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19396echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19397if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19399else
19400 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019401/* confdefs.h. */
19402_ACEOF
19403cat confdefs.h >>conftest.$ac_ext
19404cat >>conftest.$ac_ext <<_ACEOF
19405/* end confdefs.h. */
19406#include <sys/types.h>
19407#ifdef HAVE_SYS_SOCKET_H
19408# include <sys/socket.h>
19409#endif
19410#ifdef HAVE_SYS_UN_H
19411# include <sys/un.h>
19412#endif
19413
19414int
19415main ()
19416{
19417static struct sockaddr ac_aggr;
19418if (ac_aggr.sa_len)
19419return 0;
19420 ;
19421 return 0;
19422}
19423_ACEOF
19424rm -f conftest.$ac_objext
19425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019426 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019427 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019428 grep -v '^ *+' conftest.er1 >conftest.err
19429 rm -f conftest.er1
19430 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; } &&
19439 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; }; then
19445 ac_cv_member_struct_sockaddr_sa_len=yes
19446else
19447 echo "$as_me: failed program was:" >&5
19448sed 's/^/| /' conftest.$ac_ext >&5
19449
19450cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019451/* confdefs.h. */
19452_ACEOF
19453cat confdefs.h >>conftest.$ac_ext
19454cat >>conftest.$ac_ext <<_ACEOF
19455/* end confdefs.h. */
19456#include <sys/types.h>
19457#ifdef HAVE_SYS_SOCKET_H
19458# include <sys/socket.h>
19459#endif
19460#ifdef HAVE_SYS_UN_H
19461# include <sys/un.h>
19462#endif
19463
19464int
19465main ()
19466{
19467static struct sockaddr ac_aggr;
19468if (sizeof ac_aggr.sa_len)
19469return 0;
19470 ;
19471 return 0;
19472}
19473_ACEOF
19474rm -f conftest.$ac_objext
19475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019476 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019477 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019478 grep -v '^ *+' conftest.er1 >conftest.err
19479 rm -f conftest.er1
19480 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485 (eval $ac_try) 2>&5
19486 ac_status=$?
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); }; } &&
19489 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491 (eval $ac_try) 2>&5
19492 ac_status=$?
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); }; }; then
19495 ac_cv_member_struct_sockaddr_sa_len=yes
19496else
19497 echo "$as_me: failed program was:" >&5
19498sed 's/^/| /' conftest.$ac_ext >&5
19499
19500ac_cv_member_struct_sockaddr_sa_len=no
19501fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019503fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019505fi
19506echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19507echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19508if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19509
19510cat >>confdefs.h <<_ACEOF
19511#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19512_ACEOF
19513
19514
19515fi
19516echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19517echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19518if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19520else
19521 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019522/* confdefs.h. */
19523_ACEOF
19524cat confdefs.h >>conftest.$ac_ext
19525cat >>conftest.$ac_ext <<_ACEOF
19526/* end confdefs.h. */
19527#include <sys/types.h>
19528#ifdef HAVE_SYS_SOCKET_H
19529# include <sys/socket.h>
19530#endif
19531#ifdef HAVE_SYS_UN_H
19532# include <sys/un.h>
19533#endif
19534
19535int
19536main ()
19537{
19538static struct sockaddr_un ac_aggr;
19539if (ac_aggr.sun_len)
19540return 0;
19541 ;
19542 return 0;
19543}
19544_ACEOF
19545rm -f conftest.$ac_objext
19546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019547 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019548 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019549 grep -v '^ *+' conftest.er1 >conftest.err
19550 rm -f conftest.er1
19551 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; } &&
19560 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19562 (eval $ac_try) 2>&5
19563 ac_status=$?
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); }; }; then
19566 ac_cv_member_struct_sockaddr_un_sun_len=yes
19567else
19568 echo "$as_me: failed program was:" >&5
19569sed 's/^/| /' conftest.$ac_ext >&5
19570
19571cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019572/* confdefs.h. */
19573_ACEOF
19574cat confdefs.h >>conftest.$ac_ext
19575cat >>conftest.$ac_ext <<_ACEOF
19576/* end confdefs.h. */
19577#include <sys/types.h>
19578#ifdef HAVE_SYS_SOCKET_H
19579# include <sys/socket.h>
19580#endif
19581#ifdef HAVE_SYS_UN_H
19582# include <sys/un.h>
19583#endif
19584
19585int
19586main ()
19587{
19588static struct sockaddr_un ac_aggr;
19589if (sizeof ac_aggr.sun_len)
19590return 0;
19591 ;
19592 return 0;
19593}
19594_ACEOF
19595rm -f conftest.$ac_objext
19596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019597 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019598 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019599 grep -v '^ *+' conftest.er1 >conftest.err
19600 rm -f conftest.er1
19601 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19606 (eval $ac_try) 2>&5
19607 ac_status=$?
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; } &&
19610 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
19616 ac_cv_member_struct_sockaddr_un_sun_len=yes
19617else
19618 echo "$as_me: failed program was:" >&5
19619sed 's/^/| /' conftest.$ac_ext >&5
19620
19621ac_cv_member_struct_sockaddr_un_sun_len=no
19622fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019624fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019626fi
19627echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19628echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19629if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19630
19631cat >>confdefs.h <<_ACEOF
19632#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19633_ACEOF
19634
19635
Juergen Lock2d33ab92000-02-13 16:03:29 +000019636fi
19637
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019638
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019639echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19640echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19641if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19643else
19644 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019645/* confdefs.h. */
19646_ACEOF
19647cat confdefs.h >>conftest.$ac_ext
19648cat >>conftest.$ac_ext <<_ACEOF
19649/* end confdefs.h. */
19650#include <signal.h>
19651
19652int
19653main ()
19654{
19655static siginfo_t ac_aggr;
19656if (ac_aggr.si_fd)
19657return 0;
19658 ;
19659 return 0;
19660}
19661_ACEOF
19662rm -f conftest.$ac_objext
19663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019664 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019665 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019666 grep -v '^ *+' conftest.er1 >conftest.err
19667 rm -f conftest.er1
19668 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; } &&
19677 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19680 ac_status=$?
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19683 ac_cv_member_siginfo_t_si_fd=yes
19684else
19685 echo "$as_me: failed program was:" >&5
19686sed 's/^/| /' conftest.$ac_ext >&5
19687
19688cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019689/* confdefs.h. */
19690_ACEOF
19691cat confdefs.h >>conftest.$ac_ext
19692cat >>conftest.$ac_ext <<_ACEOF
19693/* end confdefs.h. */
19694#include <signal.h>
19695
19696int
19697main ()
19698{
19699static siginfo_t ac_aggr;
19700if (sizeof ac_aggr.si_fd)
19701return 0;
19702 ;
19703 return 0;
19704}
19705_ACEOF
19706rm -f conftest.$ac_objext
19707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019708 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019709 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019710 grep -v '^ *+' conftest.er1 >conftest.err
19711 rm -f conftest.er1
19712 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717 (eval $ac_try) 2>&5
19718 ac_status=$?
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); }; } &&
19721 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723 (eval $ac_try) 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); }; }; then
19727 ac_cv_member_siginfo_t_si_fd=yes
19728else
19729 echo "$as_me: failed program was:" >&5
19730sed 's/^/| /' conftest.$ac_ext >&5
19731
19732ac_cv_member_siginfo_t_si_fd=no
19733fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019735fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019737fi
19738echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19739echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19740if test $ac_cv_member_siginfo_t_si_fd = yes; then
19741
19742cat >>confdefs.h <<_ACEOF
19743#define HAVE_SIGINFO_T_SI_FD 1
19744_ACEOF
19745
19746
19747fi
19748
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019749
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019750echo "$as_me:$LINENO: checking for struct option.name" >&5
19751echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19752if test "${ac_cv_member_struct_option_name+set}" = set; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19754else
19755 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019756/* confdefs.h. */
19757_ACEOF
19758cat confdefs.h >>conftest.$ac_ext
19759cat >>conftest.$ac_ext <<_ACEOF
19760/* end confdefs.h. */
19761#ifdef HAVE_GETOPT_H
19762#include <getopt.h>
19763#endif
19764
19765int
19766main ()
19767{
19768static struct option ac_aggr;
19769if (ac_aggr.name)
19770return 0;
19771 ;
19772 return 0;
19773}
19774_ACEOF
19775rm -f conftest.$ac_objext
19776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019777 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019778 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019779 grep -v '^ *+' conftest.er1 >conftest.err
19780 rm -f conftest.er1
19781 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; } &&
19790 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19793 ac_status=$?
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
19796 ac_cv_member_struct_option_name=yes
19797else
19798 echo "$as_me: failed program was:" >&5
19799sed 's/^/| /' conftest.$ac_ext >&5
19800
19801cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019802/* confdefs.h. */
19803_ACEOF
19804cat confdefs.h >>conftest.$ac_ext
19805cat >>conftest.$ac_ext <<_ACEOF
19806/* end confdefs.h. */
19807#ifdef HAVE_GETOPT_H
19808#include <getopt.h>
19809#endif
19810
19811int
19812main ()
19813{
19814static struct option ac_aggr;
19815if (sizeof ac_aggr.name)
19816return 0;
19817 ;
19818 return 0;
19819}
19820_ACEOF
19821rm -f conftest.$ac_objext
19822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019823 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019824 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832 (eval $ac_try) 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; } &&
19836 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838 (eval $ac_try) 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; }; then
19842 ac_cv_member_struct_option_name=yes
19843else
19844 echo "$as_me: failed program was:" >&5
19845sed 's/^/| /' conftest.$ac_ext >&5
19846
19847ac_cv_member_struct_option_name=no
19848fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019850fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019852fi
19853echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19854echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19855if test $ac_cv_member_struct_option_name = yes; then
19856
19857cat >>confdefs.h <<_ACEOF
19858#define HAVE_STRUCT_OPTION_NAME 1
19859_ACEOF
19860
19861
19862fi
19863
19864
Pavel Roskind6507192003-10-03 03:28:40 +000019865echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19866echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19867if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19868 echo $ECHO_N "(cached) $ECHO_C" >&6
19869else
19870 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000019871/* confdefs.h. */
19872_ACEOF
19873cat confdefs.h >>conftest.$ac_ext
19874cat >>conftest.$ac_ext <<_ACEOF
19875/* end confdefs.h. */
19876$ac_includes_default
19877int
19878main ()
19879{
19880static struct stat ac_aggr;
19881if (ac_aggr.st_blocks)
19882return 0;
19883 ;
19884 return 0;
19885}
19886_ACEOF
19887rm -f conftest.$ac_objext
19888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019889 (eval $ac_compile) 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000019890 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019891 grep -v '^ *+' conftest.er1 >conftest.err
19892 rm -f conftest.er1
19893 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000019894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; } &&
19902 { ac_try='test -s conftest.$ac_objext'
Pavel Roskind6507192003-10-03 03:28:40 +000019903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19904 (eval $ac_try) 2>&5
19905 ac_status=$?
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); }; }; then
19908 ac_cv_member_struct_stat_st_blocks=yes
19909else
19910 echo "$as_me: failed program was:" >&5
19911sed 's/^/| /' conftest.$ac_ext >&5
19912
19913cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000019914/* confdefs.h. */
19915_ACEOF
19916cat confdefs.h >>conftest.$ac_ext
19917cat >>conftest.$ac_ext <<_ACEOF
19918/* end confdefs.h. */
19919$ac_includes_default
19920int
19921main ()
19922{
19923static struct stat ac_aggr;
19924if (sizeof ac_aggr.st_blocks)
19925return 0;
19926 ;
19927 return 0;
19928}
19929_ACEOF
19930rm -f conftest.$ac_objext
19931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019932 (eval $ac_compile) 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000019933 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019934 grep -v '^ *+' conftest.er1 >conftest.err
19935 rm -f conftest.er1
19936 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000019937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941 (eval $ac_try) 2>&5
19942 ac_status=$?
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; } &&
19945 { ac_try='test -s conftest.$ac_objext'
Pavel Roskind6507192003-10-03 03:28:40 +000019946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951 ac_cv_member_struct_stat_st_blocks=yes
19952else
19953 echo "$as_me: failed program was:" >&5
19954sed 's/^/| /' conftest.$ac_ext >&5
19955
19956ac_cv_member_struct_stat_st_blocks=no
19957fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000019959fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000019961fi
19962echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19963echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19964if test $ac_cv_member_struct_stat_st_blocks = yes; then
19965
19966cat >>confdefs.h <<_ACEOF
19967#define HAVE_STRUCT_STAT_ST_BLOCKS 1
19968_ACEOF
19969
19970
19971fi
19972
19973
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019974
Alexandre Julliardfc01b722002-05-12 03:16:39 +000019975case $host_cpu in
Alexandre Julliard05783b52002-12-11 00:21:55 +000019976 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019977echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000019978if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019979 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000019980else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019981 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019982/* confdefs.h. */
19983_ACEOF
19984cat confdefs.h >>conftest.$ac_ext
19985cat >>conftest.$ac_ext <<_ACEOF
19986/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019987#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019988yes
19989#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019990_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019991if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019992 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000019993 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019994else
Alexandre Julliard05783b52002-12-11 00:21:55 +000019995 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019996fi
19997rm -f conftest*
19998
19999fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020000echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20001echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
20002if test $ac_cv_cpp_def___i386__ = yes; then
20003 CFLAGS="$CFLAGS -D__i386__"
20004 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000020005fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020006 ;;
20007 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
Steven Edwards69b67862002-12-10 22:48:48 +000020008echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000020009if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000020010 echo $ECHO_N "(cached) $ECHO_C" >&6
20011else
20012 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020013/* confdefs.h. */
20014_ACEOF
20015cat confdefs.h >>conftest.$ac_ext
20016cat >>conftest.$ac_ext <<_ACEOF
20017/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000020018#ifndef __ALPHA__
20019yes
20020#endif
20021_ACEOF
20022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20023 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000020024 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000020025else
Alexandre Julliard05783b52002-12-11 00:21:55 +000020026 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000020027fi
20028rm -f conftest*
20029
20030fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020031echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20032echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
20033if test $ac_cv_cpp_def___ALPHA__ = yes; then
20034 CFLAGS="$CFLAGS -D__ALPHA__"
20035 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000020036fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020037 ;;
20038 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020039echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000020040if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020041 echo $ECHO_N "(cached) $ECHO_C" >&6
20042else
20043 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020044/* confdefs.h. */
20045_ACEOF
20046cat confdefs.h >>conftest.$ac_ext
20047cat >>conftest.$ac_ext <<_ACEOF
20048/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020049#ifndef __sparc__
20050yes
20051#endif
20052_ACEOF
20053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020054 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000020055 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020056else
Alexandre Julliard05783b52002-12-11 00:21:55 +000020057 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020058fi
20059rm -f conftest*
20060
20061fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020062echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20063echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
20064if test $ac_cv_cpp_def___sparc__ = yes; then
20065 CFLAGS="$CFLAGS -D__sparc__"
20066 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020067fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020068 ;;
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000020069 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20070echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
20071if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20072 echo $ECHO_N "(cached) $ECHO_C" >&6
20073else
20074 cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000020075/* confdefs.h. */
20076_ACEOF
20077cat confdefs.h >>conftest.$ac_ext
20078cat >>conftest.$ac_ext <<_ACEOF
20079/* end confdefs.h. */
20080#ifndef __powerpc__
20081yes
20082#endif
20083_ACEOF
20084if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20085 $EGREP "yes" >/dev/null 2>&1; then
20086 ac_cv_cpp_def___powerpc__=yes
20087else
20088 ac_cv_cpp_def___powerpc__=no
20089fi
20090rm -f conftest*
20091
20092fi
20093echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20094echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
20095if test $ac_cv_cpp_def___powerpc__ = yes; then
20096 CFLAGS="$CFLAGS -D__powerpc__"
20097 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20098fi
20099 ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000020100esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020101
20102case $host_vendor in
Alexandre Julliard05783b52002-12-11 00:21:55 +000020103 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020104echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000020105if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020106 echo $ECHO_N "(cached) $ECHO_C" >&6
20107else
20108 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020109/* confdefs.h. */
20110_ACEOF
20111cat confdefs.h >>conftest.$ac_ext
20112cat >>conftest.$ac_ext <<_ACEOF
20113/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020114#ifndef __sun__
20115yes
20116#endif
20117_ACEOF
20118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020119 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000020120 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020121else
Alexandre Julliard05783b52002-12-11 00:21:55 +000020122 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020123fi
20124rm -f conftest*
20125
20126fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020127echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20128echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20129if test $ac_cv_cpp_def___sun__ = yes; then
20130 CFLAGS="$CFLAGS -D__sun__"
20131 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020132fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020133 ;;
20134esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020135
20136
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020137
20138
20139
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020140 ac_config_commands="$ac_config_commands controls"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020141
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020142 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000020143
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020144 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000020145
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020146 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000020147
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020148 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000020149
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020150 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000020151
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020152 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000020153
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020154 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000020155
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020156 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000020157
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020158 ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020159
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020160 ac_config_commands="$ac_config_commands dlls/user/dde"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020161
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020162 ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020163
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020164 ac_config_commands="$ac_config_commands dlls/wineps/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020165
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020166 ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020167
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020168 ac_config_commands="$ac_config_commands misc"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020169
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020170 ac_config_commands="$ac_config_commands objects"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020171
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020172 ac_config_commands="$ac_config_commands programs/regedit/tests"
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000020173
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020174 ac_config_commands="$ac_config_commands windows"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020175
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000020176
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000020177MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020178
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020179
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000020180MAKE_DLL_RULES=dlls/Makedll.rules
20181
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020182
Alexandre Julliardedeee892002-08-09 01:22:40 +000020183MAKE_TEST_RULES=dlls/Maketest.rules
20184
20185
Alexandre Julliard117436e2003-05-01 00:39:29 +000020186MAKE_LIB_RULES=libs/Makelib.rules
20187
20188
Alexandre Julliard626f4252000-11-10 23:35:20 +000020189MAKE_PROG_RULES=programs/Makeprog.rules
20190
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020191
Vincent Béron34966892004-07-19 19:44:07 +000020192 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/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/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mapi32/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/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/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/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/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/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 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 +000020193
Alexandre Julliard626f4252000-11-10 23:35:20 +000020194
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020195cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020196# This file is a shell script that caches the results of configure
20197# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020198# scripts and configure runs, see configure's option --config-cache.
20199# It is not useful on other systems. If it contains results you don't
20200# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020201#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020202# config.status only pays attention to the cache file if you give it
20203# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020204#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020205# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020206# loading this file, other *unset* `ac_cv_foo' will be assigned the
20207# following values.
20208
20209_ACEOF
20210
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000020211# The following way of writing the cache mishandles newlines in values,
20212# but we know of no workaround that is simple, portable, and efficient.
20213# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020214# Ultrix sh set writes to stderr and can't be redirected directly,
20215# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020216{
20217 (set) 2>&1 |
20218 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20219 *ac_space=\ *)
20220 # `set' does not quote correctly, so add quotes (double-quote
20221 # substitution turns \\\\ into \\, and sed turns \\ into \).
20222 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000020223 "s/'/'\\\\''/g;
20224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020225 ;;
20226 *)
20227 # `set' quotes correctly as required by POSIX, so do not add quotes.
20228 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000020229 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020230 ;;
20231 esac;
20232} |
20233 sed '
20234 t clear
20235 : clear
20236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20237 t end
20238 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20239 : end' >>confcache
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020240if diff $cache_file confcache >/dev/null 2>&1; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020241 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020242 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20243 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020244 else
20245 echo "not updating unwritable cache $cache_file"
20246 fi
20247fi
20248rm -f confcache
20249
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020250test "x$prefix" = xNONE && prefix=$ac_default_prefix
20251# Let make expand exec_prefix.
20252test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20253
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020254# VPATH may cause trouble with some makes, so we remove $(srcdir),
20255# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20256# trailing colons and then remove the whole line if VPATH becomes empty
20257# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020258if test "x$srcdir" = x.; then
Alexandre Julliard875927f2004-01-02 01:55:29 +000020259 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020260s/:*\$(srcdir):*/:/;
20261s/:*\${srcdir}:*/:/;
20262s/:*@srcdir@:*/:/;
Alexandre Julliard875927f2004-01-02 01:55:29 +000020263s/^\([^=]*=[ ]*\):*/\1/;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020264s/:*$//;
Alexandre Julliard875927f2004-01-02 01:55:29 +000020265s/^[^=]*=[ ]*$//;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020266}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020267fi
20268
Alexandre Julliard18f92e71996-07-17 20:02:21 +000020269DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020270
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020271ac_libobjs=
20272ac_ltlibobjs=
20273for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20274 # 1. Remove the extension, and $U if already installed.
20275 ac_i=`echo "$ac_i" |
Alexandre Julliard875927f2004-01-02 01:55:29 +000020276 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020277 # 2. Add them.
20278 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20279 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20280done
20281LIBOBJS=$ac_libobjs
20282
20283LTLIBOBJS=$ac_ltlibobjs
20284
20285
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020286
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020287: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020288ac_clean_files_save=$ac_clean_files
20289ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020290{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020291echo "$as_me: creating $CONFIG_STATUS" >&6;}
20292cat >$CONFIG_STATUS <<_ACEOF
20293#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020294# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020295# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020296# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020297# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020298
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020299debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020300ac_cs_recheck=false
20301ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020302SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020303_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020304
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020305cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020306## --------------------- ##
20307## M4sh Initialization. ##
20308## --------------------- ##
20309
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020310# Be Bourne compatible
20311if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20312 emulate sh
20313 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020314 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20315 # is contrary to our usage. Disable this feature.
20316 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020317elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20318 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000020319fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000020320DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020321
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020322# Support unset when possible.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020323if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020324 as_unset=unset
20325else
20326 as_unset=false
20327fi
20328
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020329
20330# Work around bugs in pre-3.0 UWIN ksh.
20331$as_unset ENV MAIL MAILPATH
20332PS1='$ '
20333PS2='> '
20334PS4='+ '
20335
20336# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020337for as_var in \
20338 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20339 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20340 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020341do
Alexandre Julliard875927f2004-01-02 01:55:29 +000020342 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020343 eval $as_var=C; export $as_var
20344 else
20345 $as_unset $as_var
20346 fi
20347done
20348
20349# Required to use basename.
20350if expr a : '\(a\)' >/dev/null 2>&1; then
20351 as_expr=expr
20352else
20353 as_expr=false
20354fi
20355
20356if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20357 as_basename=basename
20358else
20359 as_basename=false
20360fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020361
20362
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020363# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020364as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020365$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20366 X"$0" : 'X\(//\)$' \| \
20367 X"$0" : 'X\(/\)$' \| \
20368 . : '\(.\)' 2>/dev/null ||
20369echo X/"$0" |
20370 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20371 /^X\/\(\/\/\)$/{ s//\1/; q; }
20372 /^X\/\(\/\).*/{ s//\1/; q; }
20373 s/.*/./; q'`
20374
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020375
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020376# PATH needs CR, and LINENO needs CR and PATH.
20377# Avoid depending upon Character Ranges.
20378as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20379as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20380as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20381as_cr_digits='0123456789'
20382as_cr_alnum=$as_cr_Letters$as_cr_digits
20383
20384# The user is always right.
20385if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020386 echo "#! /bin/sh" >conf$$.sh
20387 echo "exit 0" >>conf$$.sh
20388 chmod +x conf$$.sh
20389 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020390 PATH_SEPARATOR=';'
20391 else
20392 PATH_SEPARATOR=:
20393 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020394 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020395fi
20396
20397
20398 as_lineno_1=$LINENO
20399 as_lineno_2=$LINENO
20400 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20401 test "x$as_lineno_1" != "x$as_lineno_2" &&
20402 test "x$as_lineno_3" = "x$as_lineno_2" || {
20403 # Find who we are. Look in the path if we contain no path at all
20404 # relative or not.
20405 case $0 in
20406 *[\\/]* ) as_myself=$0 ;;
20407 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20408for as_dir in $PATH
20409do
20410 IFS=$as_save_IFS
20411 test -z "$as_dir" && as_dir=.
20412 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20413done
20414
20415 ;;
20416 esac
20417 # We did not find ourselves, most probably we were run as `sh COMMAND'
20418 # in which case we are not to be found in the path.
20419 if test "x$as_myself" = x; then
20420 as_myself=$0
20421 fi
20422 if test ! -f "$as_myself"; then
20423 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20424echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20425 { (exit 1); exit 1; }; }
20426 fi
20427 case $CONFIG_SHELL in
20428 '')
20429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20430for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20431do
20432 IFS=$as_save_IFS
20433 test -z "$as_dir" && as_dir=.
20434 for as_base in sh bash ksh sh5; do
20435 case $as_dir in
20436 /*)
20437 if ("$as_dir/$as_base" -c '
20438 as_lineno_1=$LINENO
20439 as_lineno_2=$LINENO
20440 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20441 test "x$as_lineno_1" != "x$as_lineno_2" &&
20442 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020443 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20444 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020445 CONFIG_SHELL=$as_dir/$as_base
20446 export CONFIG_SHELL
20447 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20448 fi;;
20449 esac
20450 done
20451done
20452;;
20453 esac
20454
20455 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20456 # uniformly replaced by the line number. The first 'sed' inserts a
20457 # line-number line before each line; the second 'sed' does the real
20458 # work. The second script uses 'N' to pair each line-number line
20459 # with the numbered line, and appends trailing '-' during
20460 # substitution so that $LINENO is not a special case at line end.
20461 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20462 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20463 sed '=' <$as_myself |
20464 sed '
20465 N
20466 s,$,-,
20467 : loop
20468 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20469 t loop
20470 s,-$,,
20471 s,^['$as_cr_digits']*\n,,
20472 ' >$as_me.lineno &&
20473 chmod +x $as_me.lineno ||
20474 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20475echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20476 { (exit 1); exit 1; }; }
20477
20478 # Don't try to exec as it changes $[0], causing all sort of problems
20479 # (the dirname of $[0] is not the place where we might find the
20480 # original and so on. Autoconf is especially sensible to this).
20481 . ./$as_me.lineno
20482 # Exit status is that of the last command.
20483 exit
20484}
20485
20486
20487case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20488 *c*,-n*) ECHO_N= ECHO_C='
20489' ECHO_T=' ' ;;
20490 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20491 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20492esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020493
20494if expr a : '\(a\)' >/dev/null 2>&1; then
20495 as_expr=expr
20496else
20497 as_expr=false
20498fi
20499
20500rm -f conf$$ conf$$.exe conf$$.file
20501echo >conf$$.file
20502if ln -s conf$$.file conf$$ 2>/dev/null; then
20503 # We could just check for DJGPP; but this test a) works b) is more generic
20504 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20505 if test -f conf$$.exe; then
20506 # Don't use ln at all; we don't have any links
20507 as_ln_s='cp -p'
20508 else
20509 as_ln_s='ln -s'
20510 fi
20511elif ln conf$$.file conf$$ 2>/dev/null; then
20512 as_ln_s=ln
20513else
20514 as_ln_s='cp -p'
20515fi
20516rm -f conf$$ conf$$.exe conf$$.file
20517
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020518if mkdir -p . 2>/dev/null; then
20519 as_mkdir_p=:
20520else
Alexandre Julliard875927f2004-01-02 01:55:29 +000020521 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020522 as_mkdir_p=false
20523fi
20524
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020525as_executable_p="test -f"
20526
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020527# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020528as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020529
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020530# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020531as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020532
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020533
20534# IFS
20535# We need space, tab and new line, in precisely that order.
20536as_nl='
20537'
20538IFS=" $as_nl"
20539
20540# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020541$as_unset CDPATH
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020542
20543exec 6>&1
20544
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020545# Open the log real soon, to keep \$[0] and so on meaningful, and to
20546# report actual input values of CONFIG_FILES etc. instead of their
20547# values after options handling. Logging --version etc. is OK.
20548exec 5>>config.log
20549{
20550 echo
20551 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20552## Running $as_me. ##
20553_ASBOX
20554} >&5
20555cat >&5 <<_CSEOF
20556
Alexandre Julliard62a48072004-07-17 00:52:37 +000020557This file was extended by Wine $as_me 20040716, which was
Eric Pouech53fa0d52004-02-05 01:27:38 +000020558generated by GNU Autoconf 2.59. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020559
20560 CONFIG_FILES = $CONFIG_FILES
20561 CONFIG_HEADERS = $CONFIG_HEADERS
20562 CONFIG_LINKS = $CONFIG_LINKS
20563 CONFIG_COMMANDS = $CONFIG_COMMANDS
20564 $ $0 $@
20565
20566_CSEOF
20567echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20568echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020569_ACEOF
20570
20571# Files that config.status was made for.
20572if test -n "$ac_config_files"; then
20573 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20574fi
20575
20576if test -n "$ac_config_headers"; then
20577 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20578fi
20579
20580if test -n "$ac_config_links"; then
20581 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20582fi
20583
20584if test -n "$ac_config_commands"; then
20585 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20586fi
20587
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020588cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020589
20590ac_cs_usage="\
20591\`$as_me' instantiates files from templates according to the
20592current configuration.
20593
20594Usage: $0 [OPTIONS] [FILE]...
20595
20596 -h, --help print this help, then exit
20597 -V, --version print version number, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020598 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020599 -d, --debug don't remove temporary files
20600 --recheck update $as_me by reconfiguring in the same conditions
20601 --file=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000020602 instantiate the configuration file FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020603 --header=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000020604 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020605
20606Configuration files:
20607$config_files
20608
20609Configuration headers:
20610$config_headers
20611
20612Configuration commands:
20613$config_commands
20614
20615Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020616_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000020617
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020618cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020619ac_cs_version="\\
Alexandre Julliard62a48072004-07-17 00:52:37 +000020620Wine config.status 20040716
Eric Pouech53fa0d52004-02-05 01:27:38 +000020621configured by $0, generated by GNU Autoconf 2.59,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020622 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020623
Alexandre Julliard875927f2004-01-02 01:55:29 +000020624Copyright (C) 2003 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020625This config.status script is free software; the Free Software Foundation
20626gives unlimited permission to copy, distribute and modify it."
20627srcdir=$srcdir
20628INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020629_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020630
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020631cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020632# If no file are specified by the user, then we need to provide default
20633# value. By we need to know if files were specified by the user.
20634ac_need_defaults=:
20635while test $# != 0
20636do
20637 case $1 in
20638 --*=*)
20639 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20640 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020641 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020642 ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020643 -*)
20644 ac_option=$1
20645 ac_optarg=$2
20646 ac_shift=shift
20647 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020648 *) # This is not an option, so the user has probably given explicit
20649 # arguments.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020650 ac_option=$1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020651 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020652 esac
20653
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020654 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020655 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020656_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020657cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020658 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20659 ac_cs_recheck=: ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020660 --version | --vers* | -V )
20661 echo "$ac_cs_version"; exit 0 ;;
20662 --he | --h)
20663 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020664 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020665Try \`$0 --help' for more information." >&5
20666echo "$as_me: error: ambiguous option: $1
20667Try \`$0 --help' for more information." >&2;}
20668 { (exit 1); exit 1; }; };;
20669 --help | --hel | -h )
20670 echo "$ac_cs_usage"; exit 0 ;;
20671 --debug | --d* | -d )
20672 debug=: ;;
20673 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020674 $ac_shift
20675 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020676 ac_need_defaults=false;;
20677 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020678 $ac_shift
20679 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020680 ac_need_defaults=false;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20682 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20683 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020684
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020685 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020686 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020687Try \`$0 --help' for more information." >&5
20688echo "$as_me: error: unrecognized option: $1
20689Try \`$0 --help' for more information." >&2;}
20690 { (exit 1); exit 1; }; } ;;
20691
20692 *) ac_config_targets="$ac_config_targets $1" ;;
20693
20694 esac
20695 shift
20696done
20697
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020698ac_configure_extra_args=
20699
20700if $ac_cs_silent; then
20701 exec 6>/dev/null
20702 ac_configure_extra_args="$ac_configure_extra_args --silent"
20703fi
20704
20705_ACEOF
20706cat >>$CONFIG_STATUS <<_ACEOF
20707if \$ac_cs_recheck; then
20708 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20709 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20710fi
20711
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020712_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020713
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020714
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020715
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020716
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020717
20718cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020719for ac_config_target in $ac_config_targets
20720do
20721 case "$ac_config_target" in
20722 # Handling of arguments.
20723 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20724 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020725 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliard117436e2003-05-01 00:39:29 +000020726 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020727 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20728 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020729 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20730 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020731 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
Christian Costa76b77872004-03-09 01:29:56 +000020732 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
Aric Stewart4bd374f2004-07-06 21:01:18 +000020733 "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020734 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20735 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
Patrik Stridvalld1447fa2002-11-19 00:47:12 +000020736 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000020737 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
Sami Nopanen9063cef2004-03-15 20:26:42 +000020738 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
Mike McCormackb107b922003-10-31 03:38:07 +000020739 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000020740 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020741 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
Uwe Bonnes2c4fd422003-05-15 23:58:48 +000020742 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020743 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20744 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20745 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
Dmitry Timoshkov5a23a002003-01-02 19:34:14 +000020746 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
Sylvain Petreolle3a99d8b2002-06-25 23:23:03 +000020747 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
Alexandre Julliardaa1bdc42003-07-01 01:11:13 +000020748 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
Enrico Horneaae7052003-01-24 01:08:15 +000020749 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
Ivan Leo Murray-Smith8f14eb02004-05-18 00:54:12 +000020750 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
Raphael Junqueirae31ae922002-12-17 01:15:15 +000020751 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
Christian Costa7590fe52004-06-03 00:03:23 +000020752 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
Eric Pouech800864a2004-04-05 22:21:27 +000020753 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020754 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20755 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
Sami Aariof22a4722003-11-18 00:12:00 +000020756 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020757 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20758 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
Ove Kaavend2d08f02002-06-14 00:39:44 +000020759 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020760 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20761 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20762 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20763 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20764 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20765 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20766 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
Rok Mandeljc2d04be72003-03-21 00:42:38 +000020767 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020768 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020769 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20770 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
Raphael Junqueira5f3f2142004-04-07 20:39:00 +000020771 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020772 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020773 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
Francois Gougetd523a452002-12-05 19:19:41 +000020774 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
Rok Mandeljc0382ea12004-01-20 00:21:40 +000020775 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
Raphael Junqueira033ae922004-04-16 00:26:14 +000020776 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
Robert Reifcc02d952004-03-09 23:25:57 +000020777 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20778 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020779 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020780 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
Patrik Stridvall928ecb42002-10-02 19:58:27 +000020781 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020782 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
Jacek Cabanef799c42003-12-02 04:11:09 +000020783 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
Krzysztof Foltman9bca6902004-04-22 03:45:00 +000020784 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
Alexandre Julliard0a106bf2004-01-15 04:56:18 +000020785 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020786 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020787 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020788 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20789 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
Juan Lang38fa5ad2003-05-13 03:32:20 +000020790 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
Juan Lange6f491a2004-01-07 01:08:55 +000020791 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020792 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020793 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020794 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20795 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
Jon Griffiths4ec0d3b2004-04-23 23:30:00 +000020796 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020797 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20798 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020799 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20800 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000020801 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000020802 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000020803 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Eric Pouechb706b232002-06-04 17:53:46 +000020804 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
Robert Reif00cd2b22004-05-03 20:17:43 +000020805 "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020806 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
Mike McCormackaa1c2a32003-09-08 19:32:14 +000020807 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
Mike McCormack6386edc2003-08-13 01:27:48 +000020808 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020809 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000020810 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020811 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
Alexandre Julliard7ba8fba2004-02-27 21:51:12 +000020812 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020813 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
Uwe Bonnesa768fa32002-10-30 23:49:03 +000020814 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020815 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
Mike McCormackd0779462004-01-12 22:12:27 +000020816 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
Adam Gundy19a15132003-04-04 19:37:57 +000020817 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
Patrik Stridvall5c4420f2004-05-18 01:05:36 +000020818 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
Mike McCormack4cc64c82004-01-23 05:00:37 +000020819 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020820 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
André Johansen2123c132003-08-02 00:52:02 +000020821 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020822 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
Andriy Palamarchukb812c902002-09-11 02:35:17 +000020823 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
Ulrich Czekalla9655a5f2003-12-30 22:19:30 +000020824 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020825 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
Jon Griffiths1da29712002-08-15 22:08:40 +000020826 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020827 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20828 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
Eric Pouech5caccaf2003-06-23 03:43:00 +000020829 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020830 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020831 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020832 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20833 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20834 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20835 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20836 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20837 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
Stefan Leichter0d4fff42004-06-15 20:23:47 +000020838 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020839 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20840 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20841 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20842 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20843 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
Greg Turnerac89cc22002-10-07 21:54:07 +000020844 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
Mike McCormackb6de3042004-02-13 20:47:07 +000020845 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
Juan Lang3ed89c32004-03-02 04:57:35 +000020846 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020847 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20848 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20849 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20850 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
Andriy Palamarchuk5b5bea02002-08-27 01:34:33 +000020851 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020852 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20853 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020854 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000020855 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020856 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20857 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20858 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000020859 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliard46321f42003-11-27 01:10:26 +000020860 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020861 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20862 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
Patrik Stridvall9398d9c2002-11-12 01:13:10 +000020863 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020864 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020865 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020866 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
Kevin Koltzau0af4fb92003-10-04 03:48:11 +000020867 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020868 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
Sami Aario78f12242004-04-07 19:41:21 +000020869 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020870 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
Stefan Leichter09733db2004-04-05 22:54:03 +000020871 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
Alexandre Julliard6c8147b2004-02-21 04:13:56 +000020872 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
Juan Lange9ed2f32004-03-01 23:35:25 +000020873 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020874 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20875 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20876 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020877 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20878 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020879 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020880 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20881 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20882 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020883 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020884 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20885 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20886 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20887 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20888 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20889 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20890 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20891 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
Francois Gouget4ce28372002-11-04 23:47:49 +000020892 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020893 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Eric Pouecha120ce02002-06-28 17:40:16 +000020894 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000020895 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000020896 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
Chris Morgan4691b182002-12-13 02:26:18 +000020897 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020898 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020899 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20900 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20901 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020902 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020903 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
Stefan Leichter88b11062003-01-15 00:50:48 +000020904 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
Patrik Stridvall5caddc72002-12-17 01:49:16 +000020905 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020906 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20907 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20908 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20909 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20910 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020911 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
Alexandre Julliard6a9fe362003-03-19 22:09:16 +000020912 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20913 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000020914 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
Alexandre Julliard2d1c7902003-03-22 20:40:48 +000020915 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
Alexandre Julliarde1a9b102003-05-01 03:16:21 +000020916 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
Alexandre Julliard357c7402003-11-06 01:17:56 +000020917 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020918 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20919 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20920 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20921 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20922 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000020923 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Vincent Béron34966892004-07-19 19:44:07 +000020924 "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020925 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020926 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000020927 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000020928 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardd77294a2002-12-02 21:17:04 +000020929 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
Alberto Massari15e8e0a2002-11-15 01:41:20 +000020930 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
Dan Kegelba02ae42003-01-21 20:14:36 +000020931 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
Eric Pouechd6b348f2004-03-23 01:19:54 +000020932 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020933 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20934 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20935 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
Shachar Shemesh175d0592003-01-04 02:52:05 +000020936 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
Chris Morgand888d362004-01-06 20:49:58 +000020937 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
Dimitrie O. Paun82ce2cc2003-03-31 19:41:55 +000020938 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020939 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
Alexandre Julliardf264bd32002-09-13 17:54:27 +000020940 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
Alexandre Julliard65a42162002-06-04 21:29:40 +000020941 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
Mike McCormack88090b42003-05-21 18:50:53 +000020942 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020943 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000020944 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliard9f71bd92003-12-04 02:01:39 +000020945 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
Alexandre Julliardfedc4112003-04-27 00:47:58 +000020946 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020947 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20948 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020949 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20950 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000020951 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020952 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20953 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20954 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
Alexandre Julliard280661c2003-09-11 21:27:58 +000020955 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020956 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20957 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020958 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020959 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20960 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20961 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20962 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20963 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20964 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000020965 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20966 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020967 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20968 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20969 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20970 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20971 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020972 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020973 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000020974 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020975 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020976 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020977 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020978echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20979 { (exit 1); exit 1; }; };;
20980 esac
20981done
20982
20983# If the user did not use the arguments to specify the items to instantiate,
20984# then the envvar interface is used. Set only those that are not.
20985# We use the long form for the default assignment because of an extremely
20986# bizarre bug on SunOS 4.1.3.
20987if $ac_need_defaults; then
20988 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20989 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20990 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20991fi
20992
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020993# Have a temporary directory for convenience. Make it in the build tree
20994# simply because there is no reason to put it here, and in addition,
20995# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020996# Create a temporary directory, and hook for its removal unless debugging.
20997$debug ||
20998{
20999 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21000 trap '{ (exit 1); exit 1; }' 1 2 13 15
21001}
21002
21003# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021004
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021005{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021006 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021007 test -n "$tmp" && test -d "$tmp"
21008} ||
21009{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021010 tmp=./confstat$$-$RANDOM
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021011 (umask 077 && mkdir $tmp)
21012} ||
21013{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021014 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021015 { (exit 1); exit 1; }
21016}
21017
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021018_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021019
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021020cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021021
21022#
21023# CONFIG_FILES section.
21024#
21025
21026# No need to generate the scripts if there are no CONFIG_FILES.
21027# This happens for instance when ./config.status config.h
21028if test -n "\$CONFIG_FILES"; then
21029 # Protect against being on the right side of a sed subst in config.status.
21030 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21031 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21032s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021033s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21034s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21035s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21036s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21037s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21038s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021039s,@exec_prefix@,$exec_prefix,;t t
21040s,@prefix@,$prefix,;t t
21041s,@program_transform_name@,$program_transform_name,;t t
21042s,@bindir@,$bindir,;t t
21043s,@sbindir@,$sbindir,;t t
21044s,@libexecdir@,$libexecdir,;t t
21045s,@datadir@,$datadir,;t t
21046s,@sysconfdir@,$sysconfdir,;t t
21047s,@sharedstatedir@,$sharedstatedir,;t t
21048s,@localstatedir@,$localstatedir,;t t
21049s,@libdir@,$libdir,;t t
21050s,@includedir@,$includedir,;t t
21051s,@oldincludedir@,$oldincludedir,;t t
21052s,@infodir@,$infodir,;t t
21053s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021054s,@build_alias@,$build_alias,;t t
21055s,@host_alias@,$host_alias,;t t
21056s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021057s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021058s,@ECHO_C@,$ECHO_C,;t t
21059s,@ECHO_N@,$ECHO_N,;t t
21060s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021061s,@LIBS@,$LIBS,;t t
Alexandre Julliardc728efc2002-10-02 02:34:09 +000021062s,@WIN16_FILES@,$WIN16_FILES,;t t
21063s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021064s,@build@,$build,;t t
21065s,@build_cpu@,$build_cpu,;t t
21066s,@build_vendor@,$build_vendor,;t t
21067s,@build_os@,$build_os,;t t
21068s,@host@,$host,;t t
21069s,@host_cpu@,$host_cpu,;t t
21070s,@host_vendor@,$host_vendor,;t t
21071s,@host_os@,$host_os,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021072s,@SET_MAKE@,$SET_MAKE,;t t
21073s,@CC@,$CC,;t t
21074s,@CFLAGS@,$CFLAGS,;t t
21075s,@LDFLAGS@,$LDFLAGS,;t t
21076s,@CPPFLAGS@,$CPPFLAGS,;t t
21077s,@ac_ct_CC@,$ac_ct_CC,;t t
21078s,@EXEEXT@,$EXEEXT,;t t
21079s,@OBJEXT@,$OBJEXT,;t t
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000021080s,@CXX@,$CXX,;t t
21081s,@CXXFLAGS@,$CXXFLAGS,;t t
21082s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Alexandre Julliarda631ef62004-03-03 20:30:46 +000021083s,@CPPBIN@,$CPPBIN,;t t
21084s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021085s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliarda631ef62004-03-03 20:30:46 +000021086s,@CPP@,$CPP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021087s,@X_CFLAGS@,$X_CFLAGS,;t t
21088s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21089s,@X_LIBS@,$X_LIBS,;t t
21090s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021091s,@LEX@,$LEX,;t t
21092s,@LEXLIB@,$LEXLIB,;t t
21093s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021094s,@XLEX@,$XLEX,;t t
Mike McCormackc068f672004-03-16 03:11:39 +000021095s,@BISON@,$BISON,;t t
Marcus Meissner1d4db782003-01-09 00:46:54 +000021096s,@AS@,$AS,;t t
21097s,@ac_ct_AS@,$ac_ct_AS,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000021098s,@LD@,$LD,;t t
21099s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021100s,@AR@,$AR,;t t
21101s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021102s,@RANLIB@,$RANLIB,;t t
21103s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021104s,@STRIP@,$STRIP,;t t
21105s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21106s,@WINDRES@,$WINDRES,;t t
21107s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021108s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000021109s,@LN@,$LN,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021110s,@LDCONFIG@,$LDCONFIG,;t t
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021111s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21112s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21113s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021114s,@LINT@,$LINT,;t t
21115s,@LINTFLAGS@,$LINTFLAGS,;t t
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000021116s,@DB2HTML@,$DB2HTML,;t t
21117s,@DB2PDF@,$DB2PDF,;t t
21118s,@DB2PS@,$DB2PS,;t t
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +000021119s,@DB2TXT@,$DB2TXT,;t t
Alexandre Julliardf45325e2003-11-06 23:05:41 +000021120s,@LIBPTHREAD@,$LIBPTHREAD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021121s,@JPEGLIB@,$JPEGLIB,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021122s,@EGREP@,$EGREP,;t t
Marcus Meissner728bedc2003-01-09 06:04:33 +000021123s,@GIFLIB@,$GIFLIB,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021124s,@XLIB@,$XLIB,;t t
21125s,@XFILES@,$XFILES,;t t
21126s,@OPENGLFILES@,$OPENGLFILES,;t t
21127s,@GLU32FILES@,$GLU32FILES,;t t
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000021128s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
Jacek Cabanef799c42003-12-02 04:11:09 +000021129s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21130s,@GLUT32FILES@,$GLUT32FILES,;t t
Francois Gouget6f670b12002-10-10 17:54:27 +000021131s,@NASLIBS@,$NASLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021132s,@CURSESLIBS@,$CURSESLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000021133s,@sane_devel@,$sane_devel,;t t
21134s,@SANELIBS@,$SANELIBS,;t t
21135s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliard4ee82902003-06-20 21:38:10 +000021136s,@ICULIBS@,$ICULIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021137s,@ft_devel@,$ft_devel,;t t
21138s,@ft_devel2@,$ft_devel2,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021139s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000021140s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21141s,@ARTSLIBS@,$ARTSLIBS,;t t
21142s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000021143s,@ALSALIBS@,$ALSALIBS,;t t
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000021144s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000021145s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
Alexandre Julliardfc094232003-04-14 21:46:41 +000021146s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000021147s,@DLLEXT@,$DLLEXT,;t t
21148s,@DLLFLAGS@,$DLLFLAGS,;t t
21149s,@DLLIBS@,$DLLIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000021150s,@LDSHARED@,$LDSHARED,;t t
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000021151s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
Alexandre Julliardada5e652002-12-12 22:03:14 +000021152s,@LIBEXT@,$LIBEXT,;t t
21153s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21154s,@DLLTOOL@,$DLLTOOL,;t t
21155s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021156s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021157s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliard4d52d372003-03-24 19:33:20 +000021158s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000021159s,@CROSSTEST@,$CROSSTEST,;t t
21160s,@CROSSCC@,$CROSSCC,;t t
Alexandre Julliard21ee3292003-04-21 22:52:31 +000021161s,@CROSSWINDRES@,$CROSSWINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021162s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000021163s,@CRTLIBS@,$CRTLIBS,;t t
Alexandre Julliard546839f2003-11-11 00:48:21 +000021164s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21165s,@MAIN_BINARY@,$MAIN_BINARY,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000021166s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021167s,@ALLOCA@,$ALLOCA,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021168s,@LIBOBJS@,$LIBOBJS,;t t
21169s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021170/@MAKE_RULES@/r $MAKE_RULES
21171s,@MAKE_RULES@,,;t t
21172/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21173s,@MAKE_DLL_RULES@,,;t t
Alexandre Julliardedeee892002-08-09 01:22:40 +000021174/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21175s,@MAKE_TEST_RULES@,,;t t
Alexandre Julliard117436e2003-05-01 00:39:29 +000021176/@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21177s,@MAKE_LIB_RULES@,,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021178/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21179s,@MAKE_PROG_RULES@,,;t t
21180CEOF
21181
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021182_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021183
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021184 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021185 # Split the substitutions into bite-sized pieces for seds with
21186 # small command number limits, like on Digital OSF/1 and HP-UX.
21187 ac_max_sed_lines=48
21188 ac_sed_frag=1 # Number of current file.
21189 ac_beg=1 # First line for current file.
21190 ac_end=$ac_max_sed_lines # Line after last line for current file.
21191 ac_more_lines=:
21192 ac_sed_cmds=
21193 while $ac_more_lines; do
21194 if test $ac_beg -gt 1; then
21195 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21196 else
21197 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21198 fi
21199 if test ! -s $tmp/subs.frag; then
21200 ac_more_lines=false
21201 else
21202 # The purpose of the label and of the branching condition is to
21203 # speed up the sed processing (if there are no `@' at all, there
21204 # is no need to browse any of the substitutions).
21205 # These are the two extra sed commands mentioned above.
21206 (echo ':t
21207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21208 if test -z "$ac_sed_cmds"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +000021209 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021210 else
Alexandre Julliard875927f2004-01-02 01:55:29 +000021211 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021212 fi
21213 ac_sed_frag=`expr $ac_sed_frag + 1`
21214 ac_beg=$ac_end
21215 ac_end=`expr $ac_end + $ac_max_sed_lines`
21216 fi
21217 done
21218 if test -z "$ac_sed_cmds"; then
21219 ac_sed_cmds=cat
21220 fi
21221fi # test -n "$CONFIG_FILES"
21222
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021223_ACEOF
21224cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021225for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21226 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21227 case $ac_file in
21228 - | *:- | *:-:* ) # input from stdin
Alexandre Julliard875927f2004-01-02 01:55:29 +000021229 cat >$tmp/stdin
21230 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21231 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021232 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021233 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021234 * ) ac_file_in=$ac_file.in ;;
21235 esac
21236
21237 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021238 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21239$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021240 X"$ac_file" : 'X\(//\)[^/]' \| \
21241 X"$ac_file" : 'X\(//\)$' \| \
21242 X"$ac_file" : 'X\(/\)' \| \
21243 . : '\(.\)' 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021244echo X"$ac_file" |
21245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21247 /^X\(\/\/\)$/{ s//\1/; q; }
21248 /^X\(\/\).*/{ s//\1/; q; }
21249 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021250 { if $as_mkdir_p; then
21251 mkdir -p "$ac_dir"
21252 else
21253 as_dir="$ac_dir"
21254 as_dirs=
21255 while test ! -d "$as_dir"; do
21256 as_dirs="$as_dir $as_dirs"
21257 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21258$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021259 X"$as_dir" : 'X\(//\)[^/]' \| \
21260 X"$as_dir" : 'X\(//\)$' \| \
21261 X"$as_dir" : 'X\(/\)' \| \
21262 . : '\(.\)' 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021263echo X"$as_dir" |
21264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21266 /^X\(\/\/\)$/{ s//\1/; q; }
21267 /^X\(\/\).*/{ s//\1/; q; }
21268 s/.*/./; q'`
21269 done
21270 test ! -n "$as_dirs" || mkdir $as_dirs
21271 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21272echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21273 { (exit 1); exit 1; }; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021274
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021275 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021276
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021277if test "$ac_dir" != .; then
21278 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21279 # A "../" for each directory in $ac_dir_suffix.
21280 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21281else
21282 ac_dir_suffix= ac_top_builddir=
21283fi
21284
21285case $srcdir in
21286 .) # No --srcdir option. We are building in place.
21287 ac_srcdir=.
21288 if test -z "$ac_top_builddir"; then
21289 ac_top_srcdir=.
21290 else
21291 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21292 fi ;;
21293 [\\/]* | ?:[\\/]* ) # Absolute path.
21294 ac_srcdir=$srcdir$ac_dir_suffix;
21295 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021296 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021297 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21298 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21299esac
Alexandre Julliard875927f2004-01-02 01:55:29 +000021300
21301# Do not use `cd foo && pwd` to compute absolute paths, because
21302# the directories may not exist.
21303case `pwd` in
21304.) ac_abs_builddir="$ac_dir";;
21305*)
21306 case "$ac_dir" in
21307 .) ac_abs_builddir=`pwd`;;
21308 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21309 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21310 esac;;
21311esac
21312case $ac_abs_builddir in
21313.) ac_abs_top_builddir=${ac_top_builddir}.;;
21314*)
21315 case ${ac_top_builddir}. in
21316 .) ac_abs_top_builddir=$ac_abs_builddir;;
21317 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21318 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21319 esac;;
21320esac
21321case $ac_abs_builddir in
21322.) ac_abs_srcdir=$ac_srcdir;;
21323*)
21324 case $ac_srcdir in
21325 .) ac_abs_srcdir=$ac_abs_builddir;;
21326 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21327 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21328 esac;;
21329esac
21330case $ac_abs_builddir in
21331.) ac_abs_top_srcdir=$ac_top_srcdir;;
21332*)
21333 case $ac_top_srcdir in
21334 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21335 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21336 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21337 esac;;
21338esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021339
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021340
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021341 case $INSTALL in
21342 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021343 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000021344 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000021345
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021346 # Let's still pretend it is `configure' which instantiates (i.e., don't
21347 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021348 # /* config.h. Generated by config.status. */
21349 if test x"$ac_file" = x-; then
21350 configure_input=
21351 else
21352 configure_input="$ac_file. "
21353 fi
21354 configure_input=$configure_input"Generated from `echo $ac_file_in |
Alexandre Julliard875927f2004-01-02 01:55:29 +000021355 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000021356
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021357 # First look for the input files in the build tree, otherwise in the
21358 # src tree.
21359 ac_file_inputs=`IFS=:
21360 for f in $ac_file_in; do
21361 case $f in
21362 -) echo $tmp/stdin ;;
21363 [\\/$]*)
Alexandre Julliard875927f2004-01-02 01:55:29 +000021364 # Absolute (can't be DOS-style, as IFS=:)
21365 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021366echo "$as_me: error: cannot find input file: $f" >&2;}
21367 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021368 echo "$f";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021369 *) # Relative
Alexandre Julliard875927f2004-01-02 01:55:29 +000021370 if test -f "$f"; then
21371 # Build tree
21372 echo "$f"
21373 elif test -f "$srcdir/$f"; then
21374 # Source tree
21375 echo "$srcdir/$f"
21376 else
21377 # /dev/null tree
21378 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021379echo "$as_me: error: cannot find input file: $f" >&2;}
21380 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021381 fi;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021382 esac
21383 done` || { (exit 1); exit 1; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021384
21385 if test x"$ac_file" != x-; then
21386 { echo "$as_me:$LINENO: creating $ac_file" >&5
21387echo "$as_me: creating $ac_file" >&6;}
21388 rm -f "$ac_file"
21389 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021390_ACEOF
21391cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021392 sed "$ac_vpsub
21393$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021394_ACEOF
21395cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021396:t
21397/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21398s,@configure_input@,$configure_input,;t t
21399s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021400s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021401s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021402s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21403s,@builddir@,$ac_builddir,;t t
21404s,@abs_builddir@,$ac_abs_builddir,;t t
21405s,@top_builddir@,$ac_top_builddir,;t t
21406s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021407s,@INSTALL@,$ac_INSTALL,;t t
21408" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21409 rm -f $tmp/stdin
21410 if test x"$ac_file" != x-; then
21411 mv $tmp/out $ac_file
21412 else
21413 cat $tmp/out
21414 rm -f $tmp/out
21415 fi
21416
21417done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021418_ACEOF
21419cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021420
21421#
21422# CONFIG_HEADER section.
21423#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021424
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021425# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21426# NAME is the cpp macro being defined and VALUE is the value it is being given.
21427#
21428# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021429ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21430ac_dB='[ ].*$,\1#\2'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021431ac_dC=' '
21432ac_dD=',;t'
21433# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Alexandre Julliard875927f2004-01-02 01:55:29 +000021434ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021435ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021436ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021437ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021438
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021439for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000021440 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021441 case $ac_file in
21442 - | *:- | *:-:* ) # input from stdin
Alexandre Julliard875927f2004-01-02 01:55:29 +000021443 cat >$tmp/stdin
21444 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21445 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021446 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021448 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021449 esac
21450
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021451 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021452echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021453
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021454 # First look for the input files in the build tree, otherwise in the
21455 # src tree.
21456 ac_file_inputs=`IFS=:
21457 for f in $ac_file_in; do
21458 case $f in
21459 -) echo $tmp/stdin ;;
21460 [\\/$]*)
Alexandre Julliard875927f2004-01-02 01:55:29 +000021461 # Absolute (can't be DOS-style, as IFS=:)
21462 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021463echo "$as_me: error: cannot find input file: $f" >&2;}
21464 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021465 # Do quote $f, to prevent DOS paths from being IFS'd.
21466 echo "$f";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021467 *) # Relative
Alexandre Julliard875927f2004-01-02 01:55:29 +000021468 if test -f "$f"; then
21469 # Build tree
21470 echo "$f"
21471 elif test -f "$srcdir/$f"; then
21472 # Source tree
21473 echo "$srcdir/$f"
21474 else
21475 # /dev/null tree
21476 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021477echo "$as_me: error: cannot find input file: $f" >&2;}
21478 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021479 fi;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021480 esac
21481 done` || { (exit 1); exit 1; }
21482 # Remove the trailing spaces.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021483 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021484
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021485_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021486
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021487# Transform confdefs.h into two sed scripts, `conftest.defines' and
21488# `conftest.undefs', that substitutes the proper values into
21489# config.h.in to produce config.h. The first handles `#define'
21490# templates, and the second `#undef' templates.
21491# And first: Protect against being on the right side of a sed subst in
21492# config.status. Protect against being in an unquoted here document
21493# in config.status.
21494rm -f conftest.defines conftest.undefs
21495# Using a here document instead of a string reduces the quoting nightmare.
21496# Putting comments in sed scripts is not portable.
21497#
21498# `end' is used to avoid that the second main sed command (meant for
21499# 0-ary CPP macros) applies to n-ary macro definitions.
21500# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021501cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021502s/[\\&,]/\\&/g
21503s,[\\$`],\\&,g
21504t clear
21505: clear
Alexandre Julliard875927f2004-01-02 01:55:29 +000021506s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021507t end
Alexandre Julliard875927f2004-01-02 01:55:29 +000021508s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021509: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021510_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021511# If some macros were called several times there might be several times
21512# the same #defines, which is useless. Nevertheless, we may not want to
21513# sort them, since we want the *last* AC-DEFINE to be honored.
21514uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21515sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21516rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021517
21518# This sed command replaces #undef with comments. This is necessary, for
21519# example, in the case of _POSIX_SOURCE, which is predefined and required
21520# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021521cat >>conftest.undefs <<\_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000021522s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021523_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021524
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021525# Break up conftest.defines because some shells have a limit on the size
21526# of here documents, and old seds have small limits too (100 cmds).
21527echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Alexandre Julliard875927f2004-01-02 01:55:29 +000021528echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021529echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21530echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021531rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021532while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021533do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021534 # Write a limited-size here document to $tmp/defines.sed.
21535 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21536 # Speed up: don't consider the non `#define' lines.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021537 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021538 # Work around the forget-to-reset-the-flag bug.
21539 echo 't clr' >>$CONFIG_STATUS
21540 echo ': clr' >>$CONFIG_STATUS
21541 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021542 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021543 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21544 rm -f $tmp/in
21545 mv $tmp/out $tmp/in
21546' >>$CONFIG_STATUS
21547 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21548 rm -f conftest.defines
21549 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021550done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021551rm -f conftest.defines
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021552echo ' fi # grep' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021553echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021554
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021555# Break up conftest.undefs because some shells have a limit on the size
21556# of here documents, and old seds have small limits too (100 cmds).
21557echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21558rm -f conftest.tail
21559while grep . conftest.undefs >/dev/null
21560do
21561 # Write a limited-size here document to $tmp/undefs.sed.
21562 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21563 # Speed up: don't consider the non `#undef'
Alexandre Julliard875927f2004-01-02 01:55:29 +000021564 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021565 # Work around the forget-to-reset-the-flag bug.
21566 echo 't clr' >>$CONFIG_STATUS
21567 echo ': clr' >>$CONFIG_STATUS
21568 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21569 echo 'CEOF
21570 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21571 rm -f $tmp/in
21572 mv $tmp/out $tmp/in
21573' >>$CONFIG_STATUS
21574 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21575 rm -f conftest.undefs
21576 mv conftest.tail conftest.undefs
21577done
21578rm -f conftest.undefs
21579
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021580cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021581 # Let's still pretend it is `configure' which instantiates (i.e., don't
21582 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021583 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021584 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021585 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021586 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021587 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021588 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021589 cat $tmp/in >>$tmp/config.h
21590 rm -f $tmp/in
21591 if test x"$ac_file" != x-; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021592 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021593 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021594echo "$as_me: $ac_file is unchanged" >&6;}
21595 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021596 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21597$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021598 X"$ac_file" : 'X\(//\)[^/]' \| \
21599 X"$ac_file" : 'X\(//\)$' \| \
21600 X"$ac_file" : 'X\(/\)' \| \
21601 . : '\(.\)' 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021602echo X"$ac_file" |
21603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21604 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21605 /^X\(\/\/\)$/{ s//\1/; q; }
21606 /^X\(\/\).*/{ s//\1/; q; }
21607 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021608 { if $as_mkdir_p; then
21609 mkdir -p "$ac_dir"
21610 else
21611 as_dir="$ac_dir"
21612 as_dirs=
21613 while test ! -d "$as_dir"; do
21614 as_dirs="$as_dir $as_dirs"
21615 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21616$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021617 X"$as_dir" : 'X\(//\)[^/]' \| \
21618 X"$as_dir" : 'X\(//\)$' \| \
21619 X"$as_dir" : 'X\(/\)' \| \
21620 . : '\(.\)' 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021621echo X"$as_dir" |
21622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21623 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21624 /^X\(\/\/\)$/{ s//\1/; q; }
21625 /^X\(\/\).*/{ s//\1/; q; }
21626 s/.*/./; q'`
21627 done
21628 test ! -n "$as_dirs" || mkdir $as_dirs
21629 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21630echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21631 { (exit 1); exit 1; }; }; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021632
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021633 rm -f $ac_file
21634 mv $tmp/config.h $ac_file
21635 fi
21636 else
21637 cat $tmp/config.h
21638 rm -f $tmp/config.h
21639 fi
21640done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021641_ACEOF
21642cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021643
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021644#
21645# CONFIG_COMMANDS section.
21646#
21647for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21648 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21649 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021650 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21651$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021652 X"$ac_dest" : 'X\(//\)[^/]' \| \
21653 X"$ac_dest" : 'X\(//\)$' \| \
21654 X"$ac_dest" : 'X\(/\)' \| \
21655 . : '\(.\)' 2>/dev/null ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021656echo X"$ac_dest" |
21657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21659 /^X\(\/\/\)$/{ s//\1/; q; }
21660 /^X\(\/\).*/{ s//\1/; q; }
21661 s/.*/./; q'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021662 { if $as_mkdir_p; then
21663 mkdir -p "$ac_dir"
21664 else
21665 as_dir="$ac_dir"
21666 as_dirs=
21667 while test ! -d "$as_dir"; do
21668 as_dirs="$as_dir $as_dirs"
21669 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21670$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21671 X"$as_dir" : 'X\(//\)[^/]' \| \
21672 X"$as_dir" : 'X\(//\)$' \| \
21673 X"$as_dir" : 'X\(/\)' \| \
21674 . : '\(.\)' 2>/dev/null ||
21675echo X"$as_dir" |
21676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21678 /^X\(\/\/\)$/{ s//\1/; q; }
21679 /^X\(\/\).*/{ s//\1/; q; }
21680 s/.*/./; q'`
21681 done
21682 test ! -n "$as_dirs" || mkdir $as_dirs
21683 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21684echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21685 { (exit 1); exit 1; }; }; }
21686
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021687 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000021688
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021689if test "$ac_dir" != .; then
21690 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21691 # A "../" for each directory in $ac_dir_suffix.
21692 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021693else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021694 ac_dir_suffix= ac_top_builddir=
21695fi
21696
21697case $srcdir in
21698 .) # No --srcdir option. We are building in place.
21699 ac_srcdir=.
21700 if test -z "$ac_top_builddir"; then
21701 ac_top_srcdir=.
21702 else
21703 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21704 fi ;;
21705 [\\/]* | ?:[\\/]* ) # Absolute path.
21706 ac_srcdir=$srcdir$ac_dir_suffix;
21707 ac_top_srcdir=$srcdir ;;
21708 *) # Relative path.
21709 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21710 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21711esac
Alexandre Julliard875927f2004-01-02 01:55:29 +000021712
21713# Do not use `cd foo && pwd` to compute absolute paths, because
21714# the directories may not exist.
21715case `pwd` in
21716.) ac_abs_builddir="$ac_dir";;
21717*)
21718 case "$ac_dir" in
21719 .) ac_abs_builddir=`pwd`;;
21720 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21721 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21722 esac;;
21723esac
21724case $ac_abs_builddir in
21725.) ac_abs_top_builddir=${ac_top_builddir}.;;
21726*)
21727 case ${ac_top_builddir}. in
21728 .) ac_abs_top_builddir=$ac_abs_builddir;;
21729 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21730 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21731 esac;;
21732esac
21733case $ac_abs_builddir in
21734.) ac_abs_srcdir=$ac_srcdir;;
21735*)
21736 case $ac_srcdir in
21737 .) ac_abs_srcdir=$ac_abs_builddir;;
21738 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21739 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21740 esac;;
21741esac
21742case $ac_abs_builddir in
21743.) ac_abs_top_srcdir=$ac_top_srcdir;;
21744*)
21745 case $ac_top_srcdir in
21746 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21747 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21748 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21749 esac;;
21750esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021751
21752
21753 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21754echo "$as_me: executing $ac_dest commands" >&6;}
21755 case $ac_dest in
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000021756 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
21757echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021758 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21759echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21760 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21761echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21762 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21763echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21764 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21765echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21766 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21767echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21768 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21769echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021770 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21771echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21772 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21773echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021774 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21775echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021776 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21777echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21778 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21779echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021780 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21781echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21782 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21783echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000021784 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21785echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000021786 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
21787echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000021788 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21789echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000021790 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21791echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021792 esac
21793done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021794_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021795
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021796cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000021797
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021798{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021799_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021800chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021801ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021802
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021803
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021804# configure is writing to config.log, and then calls config.status.
21805# config.status does its own redirection, appending to config.log.
21806# Unfortunately, on DOS this fails, as config.log is still kept open
21807# by configure, so config.status won't be able to write to it; its
21808# output is simply discarded. So we exec the FD to /dev/null,
21809# effectively closing config.log, so it can be properly (re)opened and
21810# appended to by config.status. When coming back to configure, we
21811# need to make the FD available again.
21812if test "$no_create" != yes; then
21813 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021814 ac_config_status_args=
21815 test "$silent" = yes &&
21816 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021817 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021818 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021819 exec 5>>config.log
21820 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21821 # would make configure fail if this is the last instruction.
21822 $ac_cs_success || { (exit 1); exit 1; }
21823fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021824
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021825
Ove Kaaven8b4431f1999-01-23 13:59:11 +000021826if test "$have_x" = "no"
21827then
21828 echo
21829 echo "*** Warning: X development files not found. Wine will be built without"
21830 echo "*** X support, which currently does not work, and would probably not be"
21831 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000021832 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000021833fi
21834
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000021835if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000021836then
21837 echo
21838 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000021839 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21840fi
21841
Ian Pilcher563598d2001-05-16 20:56:05 +000021842if test "$wine_cv_msg_freetype" = "yes"
21843then
21844 echo
21845 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021846 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21847 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21848 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000021849fi
21850
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021851echo
Steffen Moeller1511bae1999-02-17 15:27:03 +000021852echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021853echo
21854