blob: 3462dacbfd4ae539811037f67bd47870ce039309 [file] [log] [blame]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001#! /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002# Guess values for system-dependent variables and create Makefiles.
Alexandre Julliard8087fca2004-09-14 22:11:36 +00003# Generated by GNU Autoconf 2.59 for Wine 20040914.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004#
Alexandre Julliard875927f2004-01-02 01:55:29 +00005# Report bugs to <wine-devel@winehq.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000018 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000024DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025
Alexandre Julliarddaa28862002-04-11 21:54:01 +000026# Support unset when possible.
Alexandre Julliard875927f2004-01-02 01:55:29 +000027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000028 as_unset=unset
29else
30 as_unset=false
31fi
32
Alexandre Julliard11af04e2002-10-10 03:48:04 +000033
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000041for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000045do
Alexandre Julliard875927f2004-01-02 01:55:29 +000046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000047 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000065
66
Alexandre Julliardf5818d22002-02-14 19:47:29 +000067# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000068as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000069$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
Alexandre Julliard11af04e2002-10-10 03:48:04 +000079
Alexandre Julliarddaa28862002-04-11 21:54:01 +000080# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000090 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000094 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000098 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000099fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
Alexandre Julliard875927f2004-01-02 01:55:29 +0000223 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000224 as_mkdir_p=false
225fi
226
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000227as_executable_p="test -f"
228
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000229# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000231
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000232# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000234
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000243$as_unset CDPATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000244
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000256ac_default_prefix=/usr/local
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000257ac_config_libobj_dir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000258cross_compiling=no
259subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000260MFLAGS=
261MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000269# Identity of this package.
270PACKAGE_NAME='Wine'
271PACKAGE_TARNAME='wine'
Alexandre Julliard8087fca2004-09-14 22:11:36 +0000272PACKAGE_VERSION='20040914'
273PACKAGE_STRING='Wine 20040914'
Alexandre Julliard875927f2004-01-02 01:55:29 +0000274PACKAGE_BUGREPORT='wine-devel@winehq.org'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000275
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000276ac_unique_file="server/atom.c"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000313
Hans Leidekker081b2502004-10-07 19:12:41 +0000314ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN EGREP LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT FONTFORGE LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPELIBS FREETYPEINCL FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDLIBWINEFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
Alexandre Julliard117436e2003-05-01 00:39:29 +0000315ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000316
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000317# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000318ac_init_help=
319ac_init_version=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000320# The variables have the same names as the options, with
321# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000322cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000323exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000324no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000333verbose=
334x_includes=NONE
335x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000354
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000355ac_prev=
356for ac_option
357do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000369 case $ac_option in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000370
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000374 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000375
376 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000377 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000379 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000390
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000395 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000396
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000397 -disable-* | --disable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000399 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000405
406 -enable-* | --enable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000408 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000415 *) ac_optarg=yes ;;
416 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000417 eval "enable_$ac_feature='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000426 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000438
439 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000440 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000441 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000442 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000443
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000449 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000454 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000459 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000466 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000475 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000480 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000481
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000487 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000501 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000502
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000506 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000513 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000520 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000537 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000547 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000558 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000559
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000563 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000568 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000569
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000575 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000576
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000577 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000578 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000580 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000587
588 -with-* | --with-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000590 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000594 ac_package=`echo $ac_package| sed 's/-/_/g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000597 *) ac_optarg=yes ;;
598 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000599 eval "with_$ac_package='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000600
601 -without-* | --without-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000603 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000619 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000626 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000627
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000631 ;;
632
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000643 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000658fi
659
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000662do
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000667 { (exit 1); exit 1; }; };;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000668 esac
669done
670
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Alexandre Julliard875927f2004-01-02 01:55:29 +0000673 localstatedir libdir includedir oldincludedir infodir mandir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000674do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000679 { (exit 1); exit 1; }; };;
680 esac
681done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000682
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000685# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000686build=$build_alias
687host=$host_alias
688target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000689
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000690# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000705
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000706
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +0000713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000733 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000734 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000736 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000737 fi
738fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +0000771ac_env_CXX_set=${CXX+set}
772ac_env_CXX_value=$CXX
773ac_cv_env_CXX_set=${CXX+set}
774ac_cv_env_CXX_value=$CXX
775ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_env_CXXFLAGS_value=$CXXFLAGS
777ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778ac_cv_env_CXXFLAGS_value=$CXXFLAGS
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000783
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000790 cat <<_ACEOF
Alexandre Julliard8087fca2004-09-14 22:11:36 +0000791\`configure' configures Wine 20040914 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE. See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
810
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000811_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000812
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000813 cat <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000814Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliard875927f2004-01-02 01:55:29 +0000816 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliard875927f2004-01-02 01:55:29 +0000818 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000840_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000841
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000842 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000843
844X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
847
848System types:
849 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000851_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000852fi
853
854if test -n "$ac_init_help"; then
855 case $ac_init_help in
Alexandre Julliard8087fca2004-09-14 22:11:36 +0000856 short | recursive ) echo "Configuration of Wine 20040914:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000857 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000858 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000859
860Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +0000863 --disable-win16 do not include Win16 support
864 --disable-debug compile out all debugging messages
865 --disable-trace compile out TRACE messages
Alexandre Julliard2aa8e872004-10-08 23:39:16 +0000866 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
867 binaries)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000868
869Optional Packages:
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Eric Pouech53fa0d52004-02-05 01:27:38 +0000872 --without-opengl do not use OpenGL
873 --without-curses do not use curses
874 --with-wine-tools=<dir> use Wine tools from directory <dir>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000875 --with-x use the X Window System
876
877Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +0000878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +0000884 CXX C++ compiler command
885 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +0000886 CPP C preprocessor
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000887
888Use these variables to override the choices made by `configure' or to help
889it to find libraries and programs with nonstandard names/locations.
890
Alexandre Julliard875927f2004-01-02 01:55:29 +0000891Report bugs to <wine-devel@winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000892_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000893fi
894
895if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
897 ac_popdir=`pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000898 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
899 test -d $ac_dir || continue
900 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000901
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000902if test "$ac_dir" != .; then
903 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
904 # A "../" for each directory in $ac_dir_suffix.
905 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
906else
907 ac_dir_suffix= ac_top_builddir=
908fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000909
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000910case $srcdir in
911 .) # No --srcdir option. We are building in place.
912 ac_srcdir=.
913 if test -z "$ac_top_builddir"; then
914 ac_top_srcdir=.
915 else
916 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
917 fi ;;
918 [\\/]* | ?:[\\/]* ) # Absolute path.
919 ac_srcdir=$srcdir$ac_dir_suffix;
920 ac_top_srcdir=$srcdir ;;
921 *) # Relative path.
922 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
923 ac_top_srcdir=$ac_top_builddir$srcdir ;;
924esac
Alexandre Julliard875927f2004-01-02 01:55:29 +0000925
926# Do not use `cd foo && pwd` to compute absolute paths, because
927# the directories may not exist.
928case `pwd` in
929.) ac_abs_builddir="$ac_dir";;
930*)
931 case "$ac_dir" in
932 .) ac_abs_builddir=`pwd`;;
933 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
934 *) ac_abs_builddir=`pwd`/"$ac_dir";;
935 esac;;
936esac
937case $ac_abs_builddir in
938.) ac_abs_top_builddir=${ac_top_builddir}.;;
939*)
940 case ${ac_top_builddir}. in
941 .) ac_abs_top_builddir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
943 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
944 esac;;
945esac
946case $ac_abs_builddir in
947.) ac_abs_srcdir=$ac_srcdir;;
948*)
949 case $ac_srcdir in
950 .) ac_abs_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
952 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
953 esac;;
954esac
955case $ac_abs_builddir in
956.) ac_abs_top_srcdir=$ac_top_srcdir;;
957*)
958 case $ac_top_srcdir in
959 .) ac_abs_top_srcdir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
961 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
962 esac;;
963esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000964
965 cd $ac_dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000966 # Check for guested configure; otherwise get Cygnus style configure.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000967 if test -f $ac_srcdir/configure.gnu; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000968 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000969 $SHELL $ac_srcdir/configure.gnu --help=recursive
970 elif test -f $ac_srcdir/configure; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000971 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000972 $SHELL $ac_srcdir/configure --help=recursive
973 elif test -f $ac_srcdir/configure.ac ||
Alexandre Julliard875927f2004-01-02 01:55:29 +0000974 test -f $ac_srcdir/configure.in; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000975 echo
976 $ac_configure --help
977 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000978 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000979 fi
Alexandre Julliardccc75702003-09-19 04:36:54 +0000980 cd "$ac_popdir"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000981 done
982fi
983
984test -n "$ac_init_help" && exit 0
985if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000986 cat <<\_ACEOF
Alexandre Julliard8087fca2004-09-14 22:11:36 +0000987Wine configure 20040914
Eric Pouech53fa0d52004-02-05 01:27:38 +0000988generated by GNU Autoconf 2.59
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000989
Alexandre Julliard875927f2004-01-02 01:55:29 +0000990Copyright (C) 2003 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000991This configure script is free software; the Free Software Foundation
992gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000993_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000994 exit 0
995fi
996exec 5>config.log
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000997cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000998This file contains any messages produced by compilers while
999running configure, to aid debugging if configure makes a mistake.
1000
Alexandre Julliard8087fca2004-09-14 22:11:36 +00001001It was created by Wine $as_me 20040914, which was
Eric Pouech53fa0d52004-02-05 01:27:38 +00001002generated by GNU Autoconf 2.59. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001003
1004 $ $0 $@
1005
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001006_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001007{
1008cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001009## --------- ##
1010## Platform. ##
1011## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001012
1013hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017uname -v = `(uname -v) 2>/dev/null || echo unknown`
1018
1019/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1021
1022/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1029
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001030_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001031
1032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1033for as_dir in $PATH
1034do
1035 IFS=$as_save_IFS
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1038done
1039
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001040} >&5
1041
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001042cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001043
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001044
1045## ----------- ##
1046## Core tests. ##
1047## ----------- ##
1048
1049_ACEOF
1050
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001051
1052# Keep a trace of the command line.
1053# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001054# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001055# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001056# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001057ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001058ac_configure_args0=
1059ac_configure_args1=
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001060ac_sep=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001061ac_must_keep_next=false
1062for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001063do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001064 for ac_arg
1065 do
1066 case $ac_arg in
1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 continue ;;
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1073 esac
1074 case $ac_pass in
1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1076 2)
1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001079 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001080 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00001081 case $ac_arg in
1082 *=* | --config-cache | -C | -disable-* | --disable-* \
1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085 | -with-* | --with-* | -without-* | --without-* | --x)
1086 case "$ac_configure_args0 " in
1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1088 esac
1089 ;;
1090 -* ) ac_must_keep_next=true ;;
1091 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001092 fi
1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094 # Get rid of the leading space.
1095 ac_sep=" "
1096 ;;
1097 esac
1098 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001099done
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001100$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001102
1103# When interrupted or exit'd, cleanup temporary files, and complete
1104# config.log. We remove comments because anyway the quotes in there
1105# would cause problems or look ugly.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001106# WARNING: Be sure not to use single quotes in there, as some shells,
1107# such as our DU 5.0 friend, will then `close' the trap.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001108trap 'exit_status=$?
1109 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001110 {
1111 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001112
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001113 cat <<\_ASBOX
1114## ---------------- ##
1115## Cache variables. ##
1116## ---------------- ##
1117_ASBOX
1118 echo
1119 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001120{
1121 (set) 2>&1 |
1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1123 *ac_space=\ *)
1124 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +00001125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001127 ;;
1128 *)
1129 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +00001130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001131 ;;
1132 esac;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001133}
1134 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001135
1136 cat <<\_ASBOX
1137## ----------------- ##
1138## Output variables. ##
1139## ----------------- ##
1140_ASBOX
1141 echo
1142 for ac_var in $ac_subst_vars
1143 do
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1146 done | sort
1147 echo
1148
1149 if test -n "$ac_subst_files"; then
1150 cat <<\_ASBOX
1151## ------------- ##
1152## Output files. ##
1153## ------------- ##
1154_ASBOX
1155 echo
1156 for ac_var in $ac_subst_files
1157 do
1158 eval ac_val=$`echo $ac_var`
Alexandre Julliard875927f2004-01-02 01:55:29 +00001159 echo "$ac_var='"'"'$ac_val'"'"'"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001160 done | sort
1161 echo
1162 fi
1163
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001164 if test -s confdefs.h; then
1165 cat <<\_ASBOX
1166## ----------- ##
1167## confdefs.h. ##
1168## ----------- ##
1169_ASBOX
1170 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001171 sed "/^$/d" confdefs.h | sort
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001172 echo
1173 fi
1174 test "$ac_signal" != 0 &&
1175 echo "$as_me: caught signal $ac_signal"
1176 echo "$as_me: exit $exit_status"
1177 } >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +00001178 rm -f core *.core &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001179 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001180 exit $exit_status
1181 ' 0
1182for ac_signal in 1 2 13 15; do
1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1184done
1185ac_signal=0
1186
1187# confdefs.h avoids OS command line length limits that DEFS can exceed.
1188rm -rf conftest* confdefs.h
1189# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1190echo >confdefs.h
1191
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001192# Predefined preprocessor variables.
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_NAME "$PACKAGE_NAME"
1196_ACEOF
1197
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_VERSION "$PACKAGE_VERSION"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_STRING "$PACKAGE_STRING"
1211_ACEOF
1212
1213
1214cat >>confdefs.h <<_ACEOF
1215#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1216_ACEOF
1217
1218
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001219# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001220# Prefer explicitly selected file to automatically selected ones.
1221if test -z "$CONFIG_SITE"; then
1222 if test "x$prefix" != xNONE; then
1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1224 else
1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226 fi
1227fi
1228for ac_site_file in $CONFIG_SITE; do
1229 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001231echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001232 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001233 . "$ac_site_file"
1234 fi
1235done
1236
1237if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001238 # Some versions of bash will fail to source /dev/null (special
1239 # files actually), so we avoid doing that.
1240 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001242echo "$as_me: loading cache $cache_file" >&6;}
1243 case $cache_file in
1244 [\\/]* | ?:[\\/]* ) . $cache_file;;
1245 *) . ./$cache_file;;
1246 esac
1247 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001248else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001250echo "$as_me: creating cache $cache_file" >&6;}
1251 >$cache_file
1252fi
1253
1254# Check that the precious variables saved in the cache have kept the same
1255# value.
1256ac_cache_corrupted=false
1257for ac_var in `(set) 2>&1 |
Alexandre Julliard875927f2004-01-02 01:55:29 +00001258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260 eval ac_new_set=\$ac_env_${ac_var}_set
1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262 eval ac_new_val="\$ac_env_${ac_var}_value"
1263 case $ac_old_set,$ac_new_set in
1264 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001265 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001266echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001270echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1272 ,);;
1273 *)
1274 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001276echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001278echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001280echo "$as_me: current value: $ac_new_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001281 ac_cache_corrupted=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001282 fi;;
1283 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001284 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001285 if test "$ac_new_set" = set; then
1286 case $ac_new_val in
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 *) ac_arg=$ac_var=$ac_new_val ;;
1290 esac
1291 case " $ac_configure_args " in
1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001294 esac
1295 fi
1296done
1297if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001299echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001301echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001303fi
1304
1305ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001306ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001310
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001336
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001337
1338 ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001339
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001340ac_aux_dir=
1341for ac_dir in tools $srcdir/tools; do
1342 if test -f $ac_dir/install-sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install-sh -c"
1345 break
1346 elif test -f $ac_dir/install.sh; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/install.sh -c"
1349 break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001350 elif test -f $ac_dir/shtool; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001354 fi
1355done
1356if test -z "$ac_aux_dir"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001357 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001358echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1359 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001360fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001361ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Howard Abrams13277481999-07-10 13:16:29 +00001364
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001365
1366
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001367# Check whether --enable-win16 or --disable-win16 was given.
1368if test "${enable_win16+set}" = set; then
1369 enableval="$enable_win16"
1370
1371fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001372# Check whether --enable-debug or --disable-debug was given.
1373if test "${enable_debug+set}" = set; then
1374 enableval="$enable_debug"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001375
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001376fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001377# Check whether --enable-trace or --disable-trace was given.
1378if test "${enable_trace+set}" = set; then
1379 enableval="$enable_trace"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001380
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001381fi;
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001382# Check whether --enable-win64 or --disable-win64 was given.
1383if test "${enable_win64+set}" = set; then
1384 enableval="$enable_win64"
1385
1386fi;
Alexandre Julliardb8074992002-11-21 21:51:24 +00001387
1388
1389# Check whether --with-opengl or --without-opengl was given.
1390if test "${with_opengl+set}" = set; then
1391 withval="$with_opengl"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001392
1393fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001394
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001395# Check whether --with-curses or --without-curses was given.
1396if test "${with_curses+set}" = set; then
1397 withval="$with_curses"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001398
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001399fi;
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001400
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001401# Check whether --with-wine-tools or --without-wine-tools was given.
1402if test "${with_wine_tools+set}" = set; then
1403 withval="$with_wine_tools"
1404
1405fi;
1406
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001407WIN16_FILES="\$(WIN16_FILES)"
1408
1409WIN16_INSTALL="\$(WIN16_INSTALL)"
1410
1411if test "x$enable_win16" = "xno"
1412then
1413 WIN16_FILES=""
1414 WIN16_INSTALL=""
1415fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001416if test "x$enable_debug" = "xno"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001417then
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001418
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001419cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001420#define NO_DEBUG_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001421_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001422
1423fi
1424if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001425then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001426
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001427cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001428#define NO_TRACE_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001429_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001430
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001431fi
1432
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001433
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001434# Make sure we can run config.sub.
1435$ac_config_sub sun4 >/dev/null 2>&1 ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001436 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001437echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1438 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001439
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001440echo "$as_me:$LINENO: checking build system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001441echo $ECHO_N "checking build system type... $ECHO_C" >&6
1442if test "${ac_cv_build+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001444else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001445 ac_cv_build_alias=$build_alias
1446test -z "$ac_cv_build_alias" &&
1447 ac_cv_build_alias=`$ac_config_guess`
1448test -z "$ac_cv_build_alias" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001449 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001450echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1451 { (exit 1); exit 1; }; }
1452ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001453 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1454echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001455 { (exit 1); exit 1; }; }
1456
1457fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001458echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001459echo "${ECHO_T}$ac_cv_build" >&6
1460build=$ac_cv_build
1461build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1462build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1463build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1464
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001465
1466echo "$as_me:$LINENO: checking host system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001467echo $ECHO_N "checking host system type... $ECHO_C" >&6
1468if test "${ac_cv_host+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
1470else
1471 ac_cv_host_alias=$host_alias
1472test -z "$ac_cv_host_alias" &&
1473 ac_cv_host_alias=$ac_cv_build_alias
1474ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001475 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001476echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1477 { (exit 1); exit 1; }; }
1478
1479fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001480echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001481echo "${ECHO_T}$ac_cv_host" >&6
1482host=$ac_cv_host
1483host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1484host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1485host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1486
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001487
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001488case $host in
1489 x86_64*linux*)
1490 if test "x$enable_win64" != "xyes"
1491 then
1492 test -n "$CC" || CC="gcc -m32"
1493 test -n "$LD" || LD="ld -m elf_i386"
1494 test -n "$AS" || AS="as --32"
1495 fi
1496 ;;
1497esac
1498
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001499echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1500echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Alexandre Julliard875927f2004-01-02 01:55:29 +00001501set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001502if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1504else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001505 cat >conftest.make <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001506all:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001507 @echo 'ac_maketemp="$(MAKE)"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001508_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001509# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001510eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001511if test -n "$ac_maketemp"; then
1512 eval ac_cv_prog_make_${ac_make}_set=yes
1513else
1514 eval ac_cv_prog_make_${ac_make}_set=no
1515fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001516rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001517fi
1518if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001519 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001520echo "${ECHO_T}yes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001521 SET_MAKE=
1522else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001523 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001524echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001525 SET_MAKE="MAKE=${MAKE-make}"
1526fi
1527
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001528ac_ext=c
1529ac_cpp='$CPP $CPPFLAGS'
1530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1532ac_compiler_gnu=$ac_cv_c_compiler_gnu
1533if test -n "$ac_tool_prefix"; then
1534 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1535set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001536echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1538if test "${ac_cv_prog_CC+set}" = set; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001540else
1541 if test -n "$CC"; then
1542 ac_cv_prog_CC="$CC" # Let the user override the test.
1543else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545for as_dir in $PATH
1546do
1547 IFS=$as_save_IFS
1548 test -z "$as_dir" && as_dir=.
1549 for ac_exec_ext in '' $ac_executable_extensions; do
1550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1551 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1553 break 2
1554 fi
1555done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001556done
1557
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001558fi
1559fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001560CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001561if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001562 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001563echo "${ECHO_T}$CC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001564else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001565 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001566echo "${ECHO_T}no" >&6
1567fi
1568
1569fi
1570if test -z "$ac_cv_prog_CC"; then
1571 ac_ct_CC=$CC
1572 # Extract the first word of "gcc", so it can be a program name with args.
1573set dummy gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001574echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579 if test -n "$ac_ct_CC"; then
1580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1581else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583for as_dir in $PATH
1584do
1585 IFS=$as_save_IFS
1586 test -z "$as_dir" && as_dir=.
1587 for ac_exec_ext in '' $ac_executable_extensions; do
1588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589 ac_cv_prog_ac_ct_CC="gcc"
1590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591 break 2
1592 fi
1593done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001594done
1595
1596fi
1597fi
1598ac_ct_CC=$ac_cv_prog_ac_ct_CC
1599if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001600 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001601echo "${ECHO_T}$ac_ct_CC" >&6
1602else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001603 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001604echo "${ECHO_T}no" >&6
1605fi
1606
1607 CC=$ac_ct_CC
1608else
1609 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001610fi
1611
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001612if test -z "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001613 if test -n "$ac_tool_prefix"; then
1614 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1615set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001616echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618if test "${ac_cv_prog_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001620else
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1623else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625for as_dir in $PATH
1626do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_CC="${ac_tool_prefix}cc"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 break 2
1634 fi
1635done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001636done
1637
1638fi
1639fi
1640CC=$ac_cv_prog_CC
1641if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001642 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001643echo "${ECHO_T}$CC" >&6
1644else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001645 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001646echo "${ECHO_T}no" >&6
1647fi
1648
1649fi
1650if test -z "$ac_cv_prog_CC"; then
1651 ac_ct_CC=$CC
1652 # Extract the first word of "cc", so it can be a program name with args.
1653set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001654echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659 if test -n "$ac_ct_CC"; then
1660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1661else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_ac_ct_CC="cc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001674done
1675
1676fi
1677fi
1678ac_ct_CC=$ac_cv_prog_ac_ct_CC
1679if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001680 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001681echo "${ECHO_T}$ac_ct_CC" >&6
1682else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001683 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001684echo "${ECHO_T}no" >&6
1685fi
1686
1687 CC=$ac_ct_CC
1688else
1689 CC="$ac_cv_prog_CC"
1690fi
1691
1692fi
1693if test -z "$CC"; then
1694 # Extract the first word of "cc", so it can be a program name with args.
1695set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001696echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701 if test -n "$CC"; then
1702 ac_cv_prog_CC="$CC" # Let the user override the test.
1703else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001704 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1713 ac_prog_rejected=yes
1714 continue
1715 fi
1716 ac_cv_prog_CC="cc"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
1719 fi
1720done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001721done
1722
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001723if test $ac_prog_rejected = yes; then
1724 # We found a bogon in the path, so make sure we never use it.
1725 set dummy $ac_cv_prog_CC
1726 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001727 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001728 # We chose a different compiler from the bogus one.
1729 # However, it has the same basename, so the bogon will be chosen
1730 # first if we set CC to just the basename; use the full file name.
1731 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001732 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001733 fi
1734fi
1735fi
1736fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001737CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001738if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001739 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001740echo "${ECHO_T}$CC" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001741else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001742 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001743echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001744fi
1745
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001746fi
1747if test -z "$CC"; then
1748 if test -n "$ac_tool_prefix"; then
1749 for ac_prog in cl
1750 do
1751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1752set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001753echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755if test "${ac_cv_prog_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001757else
1758 if test -n "$CC"; then
1759 ac_cv_prog_CC="$CC" # Let the user override the test.
1760else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762for as_dir in $PATH
1763do
1764 IFS=$as_save_IFS
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 break 2
1771 fi
1772done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001773done
1774
Eric Pouech18ad24a2000-01-16 22:16:33 +00001775fi
1776fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001777CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00001778if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001779 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001780echo "${ECHO_T}$CC" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001781else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001782 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001783echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001784fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001785
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001786 test -n "$CC" && break
1787 done
1788fi
1789if test -z "$CC"; then
1790 ac_ct_CC=$CC
1791 for ac_prog in cl
1792do
1793 # Extract the first word of "$ac_prog", so it can be a program name with args.
1794set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001795echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799else
1800 if test -n "$ac_ct_CC"; then
1801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1802else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804for as_dir in $PATH
1805do
1806 IFS=$as_save_IFS
1807 test -z "$as_dir" && as_dir=.
1808 for ac_exec_ext in '' $ac_executable_extensions; do
1809 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1810 ac_cv_prog_ac_ct_CC="$ac_prog"
1811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 break 2
1813 fi
1814done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001815done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001816
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001817fi
1818fi
1819ac_ct_CC=$ac_cv_prog_ac_ct_CC
1820if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001821 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001822echo "${ECHO_T}$ac_ct_CC" >&6
1823else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001824 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001825echo "${ECHO_T}no" >&6
1826fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001827
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001828 test -n "$ac_ct_CC" && break
1829done
Eric Pouech18ad24a2000-01-16 22:16:33 +00001830
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001831 CC=$ac_ct_CC
1832fi
1833
1834fi
1835
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001836
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001837test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1838See \`config.log' for more details." >&5
1839echo "$as_me: error: no acceptable C compiler found in \$PATH
1840See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001841 { (exit 1); exit 1; }; }
1842
1843# Provide some information about the compiler.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001844echo "$as_me:$LINENO:" \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001845 "checking for C compiler version" >&5
1846ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001847{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001848 (eval $ac_compiler --version </dev/null >&5) 2>&5
1849 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001851 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001852{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001853 (eval $ac_compiler -v </dev/null >&5) 2>&5
1854 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001856 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001857{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001858 (eval $ac_compiler -V </dev/null >&5) 2>&5
1859 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001861 (exit $ac_status); }
1862
1863cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001864/* confdefs.h. */
1865_ACEOF
1866cat confdefs.h >>conftest.$ac_ext
1867cat >>conftest.$ac_ext <<_ACEOF
1868/* end confdefs.h. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00001869
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001870int
1871main ()
1872{
1873
1874 ;
1875 return 0;
1876}
1877_ACEOF
1878ac_clean_files_save=$ac_clean_files
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001879ac_clean_files="$ac_clean_files a.out a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001880# Try to create an executable without -o first, disregard a.out.
1881# It will help us diagnose broken compilers, and finding out an intuition
1882# of exeext.
Alexandre Julliard875927f2004-01-02 01:55:29 +00001883echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1884echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001885ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001886if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001887 (eval $ac_link_default) 2>&5
1888 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001890 (exit $ac_status); }; then
1891 # Find the output, starting from the most likely. This scheme is
1892# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1893# resort.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001894
1895# Be careful to initialize this variable, since it used to be cached.
1896# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1897ac_cv_exeext=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001898# b.out is created by i960 compilers.
1899for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1900do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001901 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001902 case $ac_file in
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001904 ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001905 conftest.$ac_ext )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001906 # This is the source file.
1907 ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001908 [ab].out )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001909 # We found the default executable, but exeext='' is most
1910 # certainly right.
1911 break;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001912 *.* )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001913 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1914 # FIXME: I believe we export ac_cv_exeext for Libtool,
1915 # but it would be cool to find out if it's true. Does anybody
1916 # maintain Libtool? --akim.
1917 export ac_cv_exeext
1918 break;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001919 * )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001920 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001921 esac
1922done
1923else
1924 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001925sed 's/^/| /' conftest.$ac_ext >&5
1926
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001927{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001928See \`config.log' for more details." >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001929echo "$as_me: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001930See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001931 { (exit 77); exit 77; }; }
1932fi
1933
1934ac_exeext=$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001935echo "$as_me:$LINENO: result: $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001936echo "${ECHO_T}$ac_file" >&6
1937
1938# Check the compiler produces executables we can run. If not, either
1939# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001940echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001941echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1942# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1943# If not cross compiling, check that we can run a simple program.
1944if test "$cross_compiling" != yes; then
1945 if { ac_try='./$ac_file'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001947 (eval $ac_try) 2>&5
1948 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001950 (exit $ac_status); }; }; then
1951 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001952 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001953 if test "$cross_compiling" = maybe; then
1954 cross_compiling=yes
1955 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001956 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001957If you meant to cross compile, use \`--host'.
1958See \`config.log' for more details." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001959echo "$as_me: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001960If you meant to cross compile, use \`--host'.
1961See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001962 { (exit 1); exit 1; }; }
1963 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001964 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001965fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001966echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001967echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001968
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001969rm -f a.out a.exe conftest$ac_cv_exeext b.out
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001970ac_clean_files=$ac_clean_files_save
1971# Check the compiler produces executables we can run. If not, either
1972# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001973echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001974echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001975echo "$as_me:$LINENO: result: $cross_compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001976echo "${ECHO_T}$cross_compiling" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001977
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001978echo "$as_me:$LINENO: checking for suffix of executables" >&5
1979echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001981 (eval $ac_link) 2>&5
1982 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001984 (exit $ac_status); }; then
1985 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1986# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1987# work properly (i.e., refer to `conftest.exe'), while it won't with
1988# `rm'.
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001989for ac_file in conftest.exe conftest conftest.*; do
1990 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001991 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001993 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Alexandre Julliard875927f2004-01-02 01:55:29 +00001994 export ac_cv_exeext
1995 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001996 * ) break;;
1997 esac
1998done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001999else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002000 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2001See \`config.log' for more details." >&5
2002echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2003See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002004 { (exit 1); exit 1; }; }
2005fi
2006
2007rm -f conftest$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002008echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002009echo "${ECHO_T}$ac_cv_exeext" >&6
2010
2011rm -f conftest.$ac_ext
2012EXEEXT=$ac_cv_exeext
2013ac_exeext=$EXEEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002014echo "$as_me:$LINENO: checking for suffix of object files" >&5
2015echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002016if test "${ac_cv_objext+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2018else
2019 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002020/* confdefs.h. */
2021_ACEOF
2022cat confdefs.h >>conftest.$ac_ext
2023cat >>conftest.$ac_ext <<_ACEOF
2024/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002025
2026int
2027main ()
2028{
2029
2030 ;
2031 return 0;
2032}
2033_ACEOF
2034rm -f conftest.o conftest.obj
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002036 (eval $ac_compile) 2>&5
2037 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002039 (exit $ac_status); }; then
2040 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2041 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002043 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2044 break;;
2045 esac
2046done
2047else
2048 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002049sed 's/^/| /' conftest.$ac_ext >&5
2050
2051{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2052See \`config.log' for more details." >&5
2053echo "$as_me: error: cannot compute suffix of object files: cannot compile
2054See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002055 { (exit 1); exit 1; }; }
2056fi
2057
2058rm -f conftest.$ac_cv_objext conftest.$ac_ext
2059fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002060echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002061echo "${ECHO_T}$ac_cv_objext" >&6
2062OBJEXT=$ac_cv_objext
2063ac_objext=$OBJEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002064echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002065echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2066if test "${ac_cv_c_compiler_gnu+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068else
2069 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002070/* confdefs.h. */
2071_ACEOF
2072cat confdefs.h >>conftest.$ac_ext
2073cat >>conftest.$ac_ext <<_ACEOF
2074/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002075
2076int
2077main ()
2078{
2079#ifndef __GNUC__
2080 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002081#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002082
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002083 ;
2084 return 0;
2085}
2086_ACEOF
2087rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002089 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002090 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002091 grep -v '^ *+' conftest.er1 >conftest.err
2092 rm -f conftest.er1
2093 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002095 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 (eval $ac_try) 2>&5
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; } &&
2102 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002104 (eval $ac_try) 2>&5
2105 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002107 (exit $ac_status); }; }; then
2108 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00002109else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002110 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002111sed 's/^/| /' conftest.$ac_ext >&5
2112
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002113ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00002114fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002116ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00002117
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002118fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002119echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002120echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2121GCC=`test $ac_compiler_gnu = yes && echo yes`
2122ac_test_CFLAGS=${CFLAGS+set}
2123ac_save_CFLAGS=$CFLAGS
2124CFLAGS="-g"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002125echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002126echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2127if test "${ac_cv_prog_cc_g+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002129else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002130 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002131/* confdefs.h. */
2132_ACEOF
2133cat confdefs.h >>conftest.$ac_ext
2134cat >>conftest.$ac_ext <<_ACEOF
2135/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002136
2137int
2138main ()
2139{
2140
2141 ;
2142 return 0;
2143}
2144_ACEOF
2145rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002147 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002148 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002149 grep -v '^ *+' conftest.er1 >conftest.err
2150 rm -f conftest.er1
2151 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002153 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156 (eval $ac_try) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }; } &&
2160 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002162 (eval $ac_try) 2>&5
2163 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002165 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002166 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002167else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002168 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002169sed 's/^/| /' conftest.$ac_ext >&5
2170
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002171ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002172fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002174fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002175echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002176echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00002177if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002178 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002179elif test $ac_cv_prog_cc_g = yes; then
2180 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002181 CFLAGS="-g -O2"
2182 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002183 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002184 fi
2185else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002186 if test "$GCC" = yes; then
2187 CFLAGS="-O2"
2188 else
2189 CFLAGS=
2190 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002191fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002192echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2193echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2194if test "${ac_cv_prog_cc_stdc+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
2197 ac_cv_prog_cc_stdc=no
2198ac_save_CC=$CC
2199cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002200/* confdefs.h. */
2201_ACEOF
2202cat confdefs.h >>conftest.$ac_ext
2203cat >>conftest.$ac_ext <<_ACEOF
2204/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002205#include <stdarg.h>
2206#include <stdio.h>
2207#include <sys/types.h>
2208#include <sys/stat.h>
2209/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2210struct buf { int x; };
2211FILE * (*rcsopen) (struct buf *, struct stat *, int);
2212static char *e (p, i)
2213 char **p;
2214 int i;
2215{
2216 return p[i];
2217}
2218static char *f (char * (*g) (char **, int), char **p, ...)
2219{
2220 char *s;
2221 va_list v;
2222 va_start (v,p);
2223 s = g (p, va_arg (v,int));
2224 va_end (v);
2225 return s;
2226}
Alexandre Julliard875927f2004-01-02 01:55:29 +00002227
2228/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2229 function prototypes and stuff, but not '\xHH' hex character constants.
2230 These don't provoke an error unfortunately, instead are silently treated
2231 as 'x'. The following induces an error, until -std1 is added to get
2232 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2233 array size at least. It's necessary to write '\x00'==0 to get something
2234 that's true only with -std1. */
2235int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2236
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002237int test (int i, double x);
2238struct s1 {int (*f) (int a);};
2239struct s2 {int (*f) (double a);};
2240int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2241int argc;
2242char **argv;
2243int
2244main ()
2245{
2246return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2247 ;
2248 return 0;
2249}
2250_ACEOF
2251# Don't try gcc -ansi; that turns off useful extensions and
2252# breaks some systems' header files.
2253# AIX -qlanglvl=ansi
2254# Ultrix and OSF/1 -std1
2255# HP-UX 10.20 and later -Ae
2256# HP-UX older versions -Aa -D_HPUX_SOURCE
2257# SVR4 -Xc -D__EXTENSIONS__
2258for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2259do
2260 CC="$ac_save_CC $ac_arg"
2261 rm -f conftest.$ac_objext
2262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002263 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002264 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002265 grep -v '^ *+' conftest.er1 >conftest.err
2266 rm -f conftest.er1
2267 cat conftest.err >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 (eval $ac_try) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; } &&
2276 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2282 ac_cv_prog_cc_stdc=$ac_arg
2283break
2284else
2285 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002286sed 's/^/| /' conftest.$ac_ext >&5
2287
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002288fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002289rm -f conftest.err conftest.$ac_objext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002290done
2291rm -f conftest.$ac_ext conftest.$ac_objext
2292CC=$ac_save_CC
2293
2294fi
2295
2296case "x$ac_cv_prog_cc_stdc" in
2297 x|xno)
2298 echo "$as_me:$LINENO: result: none needed" >&5
2299echo "${ECHO_T}none needed" >&6 ;;
2300 *)
2301 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2302echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2303 CC="$CC $ac_cv_prog_cc_stdc" ;;
2304esac
2305
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002306# Some people use a C++ compiler to compile C. Since we use `exit',
2307# in C++ we need to declare it. In case someone uses the same compiler
2308# for both compiling C and C++ we need to have the C++ compiler decide
2309# the declaration of exit, since it's the most demanding environment.
2310cat >conftest.$ac_ext <<_ACEOF
2311#ifndef __cplusplus
2312 choke me
2313#endif
2314_ACEOF
2315rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002317 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002318 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002319 grep -v '^ *+' conftest.er1 >conftest.err
2320 rm -f conftest.er1
2321 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002323 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; } &&
2330 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002332 (eval $ac_try) 2>&5
2333 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002335 (exit $ac_status); }; }; then
2336 for ac_declaration in \
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002337 '' \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002338 'extern "C" void std::exit (int) throw (); using std::exit;' \
2339 'extern "C" void std::exit (int); using std::exit;' \
2340 'extern "C" void exit (int) throw ();' \
2341 'extern "C" void exit (int);' \
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002342 'void exit (int);'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002343do
2344 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002345/* confdefs.h. */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002350$ac_declaration
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002351#include <stdlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002352int
2353main ()
2354{
2355exit (42);
2356 ;
2357 return 0;
2358}
2359_ACEOF
2360rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002362 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002363 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002364 grep -v '^ *+' conftest.er1 >conftest.err
2365 rm -f conftest.er1
2366 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002368 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; } &&
2375 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002377 (eval $ac_try) 2>&5
2378 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002380 (exit $ac_status); }; }; then
2381 :
2382else
2383 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002384sed 's/^/| /' conftest.$ac_ext >&5
2385
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002386continue
2387fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002389 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002390/* confdefs.h. */
2391_ACEOF
2392cat confdefs.h >>conftest.$ac_ext
2393cat >>conftest.$ac_ext <<_ACEOF
2394/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002395$ac_declaration
2396int
2397main ()
2398{
2399exit (42);
2400 ;
2401 return 0;
2402}
2403_ACEOF
2404rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002406 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002407 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002408 grep -v '^ *+' conftest.er1 >conftest.err
2409 rm -f conftest.er1
2410 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002412 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415 (eval $ac_try) 2>&5
2416 ac_status=$?
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; } &&
2419 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002421 (eval $ac_try) 2>&5
2422 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002424 (exit $ac_status); }; }; then
2425 break
2426else
2427 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002428sed 's/^/| /' conftest.$ac_ext >&5
2429
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002430fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002432done
2433rm -f conftest*
2434if test -n "$ac_declaration"; then
2435 echo '#ifdef __cplusplus' >>confdefs.h
2436 echo $ac_declaration >>confdefs.h
2437 echo '#endif' >>confdefs.h
2438fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002439
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002440else
2441 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002442sed 's/^/| /' conftest.$ac_ext >&5
2443
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002444fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002446ac_ext=c
2447ac_cpp='$CPP $CPPFLAGS'
2448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002452ac_ext=cc
2453ac_cpp='$CXXCPP $CPPFLAGS'
2454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2457if test -n "$ac_tool_prefix"; then
2458 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2459 do
2460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2461set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2462echo "$as_me:$LINENO: checking for $ac_word" >&5
2463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2464if test "${ac_cv_prog_CXX+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467 if test -n "$CXX"; then
2468 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2469else
2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2477 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2480 fi
2481done
2482done
2483
2484fi
2485fi
2486CXX=$ac_cv_prog_CXX
2487if test -n "$CXX"; then
2488 echo "$as_me:$LINENO: result: $CXX" >&5
2489echo "${ECHO_T}$CXX" >&6
2490else
2491 echo "$as_me:$LINENO: result: no" >&5
2492echo "${ECHO_T}no" >&6
2493fi
2494
2495 test -n "$CXX" && break
2496 done
2497fi
2498if test -z "$CXX"; then
2499 ac_ct_CXX=$CXX
2500 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2501do
2502 # Extract the first word of "$ac_prog", so it can be a program name with args.
2503set dummy $ac_prog; ac_word=$2
2504echo "$as_me:$LINENO: checking for $ac_word" >&5
2505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2506if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509 if test -n "$ac_ct_CXX"; then
2510 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2511else
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519 ac_cv_prog_ac_ct_CXX="$ac_prog"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523done
2524done
2525
2526fi
2527fi
2528ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2529if test -n "$ac_ct_CXX"; then
2530 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2531echo "${ECHO_T}$ac_ct_CXX" >&6
2532else
2533 echo "$as_me:$LINENO: result: no" >&5
2534echo "${ECHO_T}no" >&6
2535fi
2536
2537 test -n "$ac_ct_CXX" && break
2538done
2539test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2540
2541 CXX=$ac_ct_CXX
2542fi
2543
2544
2545# Provide some information about the compiler.
2546echo "$as_me:$LINENO:" \
2547 "checking for C++ compiler version" >&5
2548ac_compiler=`set X $ac_compile; echo $2`
2549{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2550 (eval $ac_compiler --version </dev/null >&5) 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }
2554{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2555 (eval $ac_compiler -v </dev/null >&5) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }
2559{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2560 (eval $ac_compiler -V </dev/null >&5) 2>&5
2561 ac_status=$?
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }
2564
2565echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2566echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2567if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
2570 cat >conftest.$ac_ext <<_ACEOF
2571/* confdefs.h. */
2572_ACEOF
2573cat confdefs.h >>conftest.$ac_ext
2574cat >>conftest.$ac_ext <<_ACEOF
2575/* end confdefs.h. */
2576
2577int
2578main ()
2579{
2580#ifndef __GNUC__
2581 choke me
2582#endif
2583
2584 ;
2585 return 0;
2586}
2587_ACEOF
2588rm -f conftest.$ac_objext
2589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590 (eval $ac_compile) 2>conftest.er1
2591 ac_status=$?
2592 grep -v '^ *+' conftest.er1 >conftest.err
2593 rm -f conftest.er1
2594 cat conftest.err >&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } &&
2597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 (eval $ac_try) 2>&5
2600 ac_status=$?
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; } &&
2603 { ac_try='test -s conftest.$ac_objext'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 (eval $ac_try) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2609 ac_compiler_gnu=yes
2610else
2611 echo "$as_me: failed program was:" >&5
2612sed 's/^/| /' conftest.$ac_ext >&5
2613
2614ac_compiler_gnu=no
2615fi
2616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2617ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2618
2619fi
2620echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2621echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2622GXX=`test $ac_compiler_gnu = yes && echo yes`
2623ac_test_CXXFLAGS=${CXXFLAGS+set}
2624ac_save_CXXFLAGS=$CXXFLAGS
2625CXXFLAGS="-g"
2626echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2627echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2628if test "${ac_cv_prog_cxx_g+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
2631 cat >conftest.$ac_ext <<_ACEOF
2632/* confdefs.h. */
2633_ACEOF
2634cat confdefs.h >>conftest.$ac_ext
2635cat >>conftest.$ac_ext <<_ACEOF
2636/* end confdefs.h. */
2637
2638int
2639main ()
2640{
2641
2642 ;
2643 return 0;
2644}
2645_ACEOF
2646rm -f conftest.$ac_objext
2647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 (eval $ac_try) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; } &&
2661 { ac_try='test -s conftest.$ac_objext'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2667 ac_cv_prog_cxx_g=yes
2668else
2669 echo "$as_me: failed program was:" >&5
2670sed 's/^/| /' conftest.$ac_ext >&5
2671
2672ac_cv_prog_cxx_g=no
2673fi
2674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675fi
2676echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2677echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2678if test "$ac_test_CXXFLAGS" = set; then
2679 CXXFLAGS=$ac_save_CXXFLAGS
2680elif test $ac_cv_prog_cxx_g = yes; then
2681 if test "$GXX" = yes; then
2682 CXXFLAGS="-g -O2"
2683 else
2684 CXXFLAGS="-g"
2685 fi
2686else
2687 if test "$GXX" = yes; then
2688 CXXFLAGS="-O2"
2689 else
2690 CXXFLAGS=
2691 fi
2692fi
2693for ac_declaration in \
2694 '' \
2695 'extern "C" void std::exit (int) throw (); using std::exit;' \
2696 'extern "C" void std::exit (int); using std::exit;' \
2697 'extern "C" void exit (int) throw ();' \
2698 'extern "C" void exit (int);' \
2699 'void exit (int);'
2700do
2701 cat >conftest.$ac_ext <<_ACEOF
2702/* confdefs.h. */
2703_ACEOF
2704cat confdefs.h >>conftest.$ac_ext
2705cat >>conftest.$ac_ext <<_ACEOF
2706/* end confdefs.h. */
2707$ac_declaration
2708#include <stdlib.h>
2709int
2710main ()
2711{
2712exit (42);
2713 ;
2714 return 0;
2715}
2716_ACEOF
2717rm -f conftest.$ac_objext
2718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2720 ac_status=$?
2721 grep -v '^ *+' conftest.er1 >conftest.err
2722 rm -f conftest.er1
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 (eval $ac_try) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 :
2739else
2740 echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743continue
2744fi
2745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 cat >conftest.$ac_ext <<_ACEOF
2747/* confdefs.h. */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h. */
2752$ac_declaration
2753int
2754main ()
2755{
2756exit (42);
2757 ;
2758 return 0;
2759}
2760_ACEOF
2761rm -f conftest.$ac_objext
2762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763 (eval $ac_compile) 2>conftest.er1
2764 ac_status=$?
2765 grep -v '^ *+' conftest.er1 >conftest.err
2766 rm -f conftest.er1
2767 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772 (eval $ac_try) 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }; } &&
2776 { ac_try='test -s conftest.$ac_objext'
2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 (eval $ac_try) 2>&5
2779 ac_status=$?
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }; }; then
2782 break
2783else
2784 echo "$as_me: failed program was:" >&5
2785sed 's/^/| /' conftest.$ac_ext >&5
2786
2787fi
2788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2789done
2790rm -f conftest*
2791if test -n "$ac_declaration"; then
2792 echo '#ifdef __cplusplus' >>confdefs.h
2793 echo $ac_declaration >>confdefs.h
2794 echo '#endif' >>confdefs.h
2795fi
2796
2797ac_ext=c
2798ac_cpp='$CPP $CPPFLAGS'
2799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002803if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2805set dummy ${ac_tool_prefix}cpp; ac_word=$2
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002806echo "$as_me:$LINENO: checking for $ac_word" >&5
2807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002808if test "${ac_cv_prog_CPPBIN+set}" = set; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002809 echo $ECHO_N "(cached) $ECHO_C" >&6
2810else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002811 if test -n "$CPPBIN"; then
2812 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002821 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2824 fi
2825done
2826done
2827
2828fi
2829fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002830CPPBIN=$ac_cv_prog_CPPBIN
2831if test -n "$CPPBIN"; then
2832 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2833echo "${ECHO_T}$CPPBIN" >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002834else
2835 echo "$as_me:$LINENO: result: no" >&5
2836echo "${ECHO_T}no" >&6
2837fi
2838
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002839fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002840if test -z "$ac_cv_prog_CPPBIN"; then
2841 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002842 # Extract the first word of "cpp", so it can be a program name with args.
2843set dummy cpp; ac_word=$2
2844echo "$as_me:$LINENO: checking for $ac_word" >&5
2845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002846if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002849 if test -n "$ac_ct_CPPBIN"; then
2850 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002859 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863done
2864done
2865
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002866 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002867fi
2868fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002869ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2870if test -n "$ac_ct_CPPBIN"; then
2871 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2872echo "${ECHO_T}$ac_ct_CPPBIN" >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002873else
2874 echo "$as_me:$LINENO: result: no" >&5
2875echo "${ECHO_T}no" >&6
2876fi
2877
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002878 CPPBIN=$ac_ct_CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002879else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002880 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002881fi
2882
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002883
2884echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2885echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2886if test "${wine_cv_toolsdir+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else
2889 if test -z "$with_wine_tools"; then
2890 if test "$cross_compiling" = "yes"; then
2891 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2892echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2893 { (exit 1); exit 1; }; }
2894 else
2895 wine_cv_toolsdir="\$(TOPOBJDIR)"
2896 fi
2897 elif test -d "$with_wine_tools/tools/winebuild"; then
2898 case $with_wine_tools in
2899 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2900 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2901 esac
2902 else
2903 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2904echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2905 { (exit 1); exit 1; }; }
2906 fi
2907fi
2908echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2909echo "${ECHO_T}$wine_cv_toolsdir" >&6
2910TOOLSDIR=$wine_cv_toolsdir
2911
2912
2913
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002914ac_ext=c
2915ac_cpp='$CPP $CPPFLAGS'
2916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002919echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002920echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002921# On Suns, sometimes $CPP names a directory.
2922if test -n "$CPP" && test -d "$CPP"; then
2923 CPP=
2924fi
2925if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002926 if test "${ac_cv_prog_CPP+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002928else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002929 # Double quotes because CPP needs to be expanded
2930 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2931 do
2932 ac_preproc_ok=false
2933for ac_c_preproc_warn_flag in '' yes
2934do
2935 # Use a header file that comes with gcc, so configuring glibc
2936 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2938 # <limits.h> exists even on freestanding compilers.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002939 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002940 # not just through cpp. "Syntax error" is here to catch this case.
2941 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002942/* confdefs.h. */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h. */
2947#ifdef __STDC__
2948# include <limits.h>
2949#else
2950# include <assert.h>
2951#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00002952 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002953_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002957 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002958 rm -f conftest.er1
2959 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002961 (exit $ac_status); } >/dev/null; then
2962 if test -s conftest.err; then
2963 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00002964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002965 else
2966 ac_cpp_err=
2967 fi
2968else
2969 ac_cpp_err=yes
2970fi
2971if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002972 :
2973else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002974 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002975sed 's/^/| /' conftest.$ac_ext >&5
2976
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002977 # Broken: fails on valid input.
2978continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002979fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002980rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002981
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002982 # OK, works on sane cases. Now check whether non-existent headers
2983 # can be detected and how.
2984 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002985/* confdefs.h. */
2986_ACEOF
2987cat confdefs.h >>conftest.$ac_ext
2988cat >>conftest.$ac_ext <<_ACEOF
2989/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002990#include <ac_nonexistent.h>
2991_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2994 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002995 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002996 rm -f conftest.er1
2997 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002999 (exit $ac_status); } >/dev/null; then
3000 if test -s conftest.err; then
3001 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003003 else
3004 ac_cpp_err=
3005 fi
3006else
3007 ac_cpp_err=yes
3008fi
3009if test -z "$ac_cpp_err"; then
3010 # Broken: success on invalid input.
3011continue
3012else
3013 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003014sed 's/^/| /' conftest.$ac_ext >&5
3015
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003016 # Passes both tests.
3017ac_preproc_ok=:
3018break
3019fi
3020rm -f conftest.err conftest.$ac_ext
3021
3022done
3023# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3024rm -f conftest.err conftest.$ac_ext
3025if $ac_preproc_ok; then
3026 break
3027fi
3028
3029 done
3030 ac_cv_prog_CPP=$CPP
3031
3032fi
3033 CPP=$ac_cv_prog_CPP
3034else
3035 ac_cv_prog_CPP=$CPP
3036fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003037echo "$as_me:$LINENO: result: $CPP" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003038echo "${ECHO_T}$CPP" >&6
3039ac_preproc_ok=false
3040for ac_c_preproc_warn_flag in '' yes
3041do
3042 # Use a header file that comes with gcc, so configuring glibc
3043 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3045 # <limits.h> exists even on freestanding compilers.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003046 # On the NeXT, cc -E runs the code through the compiler's parser,
3047 # not just through cpp. "Syntax error" is here to catch this case.
3048 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003049/* confdefs.h. */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h. */
3054#ifdef __STDC__
3055# include <limits.h>
3056#else
3057# include <assert.h>
3058#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003059 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003060_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003064 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003065 rm -f conftest.er1
3066 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003068 (exit $ac_status); } >/dev/null; then
3069 if test -s conftest.err; then
3070 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003072 else
3073 ac_cpp_err=
3074 fi
3075else
3076 ac_cpp_err=yes
3077fi
3078if test -z "$ac_cpp_err"; then
3079 :
3080else
3081 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003082sed 's/^/| /' conftest.$ac_ext >&5
3083
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003084 # Broken: fails on valid input.
3085continue
3086fi
3087rm -f conftest.err conftest.$ac_ext
3088
3089 # OK, works on sane cases. Now check whether non-existent headers
3090 # can be detected and how.
3091 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003092/* confdefs.h. */
3093_ACEOF
3094cat confdefs.h >>conftest.$ac_ext
3095cat >>conftest.$ac_ext <<_ACEOF
3096/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003097#include <ac_nonexistent.h>
3098_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3101 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003102 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003103 rm -f conftest.er1
3104 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003106 (exit $ac_status); } >/dev/null; then
3107 if test -s conftest.err; then
3108 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003110 else
3111 ac_cpp_err=
3112 fi
3113else
3114 ac_cpp_err=yes
3115fi
3116if test -z "$ac_cpp_err"; then
3117 # Broken: success on invalid input.
3118continue
3119else
3120 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003121sed 's/^/| /' conftest.$ac_ext >&5
3122
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003123 # Passes both tests.
3124ac_preproc_ok=:
3125break
3126fi
3127rm -f conftest.err conftest.$ac_ext
3128
3129done
3130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3131rm -f conftest.err conftest.$ac_ext
3132if $ac_preproc_ok; then
3133 :
3134else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003135 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3136See \`config.log' for more details." >&5
3137echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3138See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003139 { (exit 1); exit 1; }; }
3140fi
3141
3142ac_ext=c
3143ac_cpp='$CPP $CPPFLAGS'
3144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003148
Eric Pouech800864a2004-04-05 22:21:27 +00003149
3150if test "x$ac_path_x_has_been_run" != xyes; then
3151 echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003152echo $ECHO_N "checking for X... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003153
Eric Pouech800864a2004-04-05 22:21:27 +00003154ac_path_x_has_been_run=yes
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003155
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003156# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003157if test "${with_x+set}" = set; then
3158 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003159
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003160fi;
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003161# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003162if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003163 # The user explicitly disabled X.
3164 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003165else
3166 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003167 # Both variables are already set.
3168 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003169 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003170 if test "${ac_cv_have_x+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003172else
3173 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003174ac_x_includes=no ac_x_libraries=no
3175rm -fr conftest.dir
3176if mkdir conftest.dir; then
3177 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003178 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003179 cat >Imakefile <<'_ACEOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003180acfindx:
3181 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003182_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003183 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003184 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003185 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003186 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3187 for ac_extension in a so sl; do
3188 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003189 test -f $ac_im_libdir/libX11.$ac_extension; then
3190 ac_im_usrlibdir=$ac_im_libdir; break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003191 fi
3192 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003193 # Screen out bogus values from the imake configuration. They are
3194 # bogus both because they are the default anyway, and because
3195 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003196 case $ac_im_incroot in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003197 /usr/include) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003198 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003199 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003200 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003201 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003202 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003203 esac
3204 fi
3205 cd ..
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003206 rm -fr conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003207fi
3208
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003209# Standard set of common directories for X headers.
3210# Check X11 before X11Rn because it is often a symlink to the current release.
3211ac_x_header_dirs='
3212/usr/X11/include
3213/usr/X11R6/include
3214/usr/X11R5/include
3215/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003216
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003217/usr/include/X11
3218/usr/include/X11R6
3219/usr/include/X11R5
3220/usr/include/X11R4
3221
3222/usr/local/X11/include
3223/usr/local/X11R6/include
3224/usr/local/X11R5/include
3225/usr/local/X11R4/include
3226
3227/usr/local/include/X11
3228/usr/local/include/X11R6
3229/usr/local/include/X11R5
3230/usr/local/include/X11R4
3231
3232/usr/X386/include
3233/usr/x386/include
3234/usr/XFree86/include/X11
3235
3236/usr/include
3237/usr/local/include
3238/usr/unsupported/include
3239/usr/athena/include
3240/usr/local/x11r5/include
3241/usr/lpp/Xamples/include
3242
3243/usr/openwin/include
3244/usr/openwin/share/include'
3245
3246if test "$ac_x_includes" = no; then
Eric Pouech800864a2004-04-05 22:21:27 +00003247 # Guess where to find include files, by looking for a specified header file.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003248 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003249 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003250/* confdefs.h. */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003255#include <X11/Intrinsic.h>
3256_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3259 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003260 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003261 rm -f conftest.er1
3262 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003264 (exit $ac_status); } >/dev/null; then
3265 if test -s conftest.err; then
3266 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003268 else
3269 ac_cpp_err=
3270 fi
3271else
3272 ac_cpp_err=yes
3273fi
3274if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003275 # We can compile using X headers with no special include directory.
3276ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003277else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003278 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003279sed 's/^/| /' conftest.$ac_ext >&5
3280
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003281 for ac_dir in $ac_x_header_dirs; do
3282 if test -r "$ac_dir/X11/Intrinsic.h"; then
3283 ac_x_includes=$ac_dir
3284 break
3285 fi
3286done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003287fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003288rm -f conftest.err conftest.$ac_ext
3289fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003290
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003291if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003292 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003293 # See if we find them without any special options.
3294 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003295 ac_save_LIBS=$LIBS
3296 LIBS="-lXt $LIBS"
3297 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003298/* confdefs.h. */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3302/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003303#include <X11/Intrinsic.h>
3304int
3305main ()
3306{
3307XtMalloc (0)
3308 ;
3309 return 0;
3310}
3311_ACEOF
3312rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003314 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003315 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003316 grep -v '^ *+' conftest.er1 >conftest.err
3317 rm -f conftest.er1
3318 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003320 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 (eval $ac_try) 2>&5
3324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; } &&
3327 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003329 (eval $ac_try) 2>&5
3330 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003332 (exit $ac_status); }; }; then
3333 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003334# We can link X programs with no special library path.
3335ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003336else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003337 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003338sed 's/^/| /' conftest.$ac_ext >&5
3339
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003340LIBS=$ac_save_LIBS
3341for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003342do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003343 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003344 for ac_extension in a so sl; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003345 if test -r $ac_dir/libXt.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003346 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003347 break 2
3348 fi
3349 done
3350done
3351fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003352rm -f conftest.err conftest.$ac_objext \
3353 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003354fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003355
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003356if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003357 # Didn't find X anywhere. Cache the known absence of X.
3358 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003359else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003360 # Record where we found X for the cache.
3361 ac_cv_have_x="have_x=yes \
Alexandre Julliard875927f2004-01-02 01:55:29 +00003362 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003363fi
3364fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003365
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003366 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003367 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003368fi # $with_x != no
3369
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003370if test "$have_x" != yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003371 echo "$as_me:$LINENO: result: $have_x" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003372echo "${ECHO_T}$have_x" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003373 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003374else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003375 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003376 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3377 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003378 # Update the cache value to reflect the command line values.
3379 ac_cv_have_x="have_x=yes \
3380 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Eric Pouech800864a2004-04-05 22:21:27 +00003381 # It might be that x_includes is empty (headers are found in the
3382 # standard search path. Then output the corresponding message
3383 ac_out_x_includes=$x_includes
3384 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3385 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3386echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003387fi
3388
Eric Pouech800864a2004-04-05 22:21:27 +00003389fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003390if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003391 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003392
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003393cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003394#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003395_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003396
3397 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003398else
3399 if test -n "$x_includes"; then
3400 X_CFLAGS="$X_CFLAGS -I$x_includes"
3401 fi
3402
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003403 # It would also be nice to do this for all -L options, not just this one.
3404 if test -n "$x_libraries"; then
3405 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003406 # For Solaris; some versions of Sun CC require a space after -R and
3407 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003408 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003409 "SunOS 5"*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003410 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003411echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3412 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3413 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003414/* confdefs.h. */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003419
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003420int
3421main ()
3422{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003423
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003424 ;
3425 return 0;
3426}
3427_ACEOF
3428rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003430 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003431 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003432 grep -v '^ *+' conftest.er1 >conftest.err
3433 rm -f conftest.er1
3434 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003436 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 (eval $ac_try) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; } &&
3443 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003445 (eval $ac_try) 2>&5
3446 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003448 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003449 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003450else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003451 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003452sed 's/^/| /' conftest.$ac_ext >&5
3453
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003454ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003455fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003456rm -f conftest.err conftest.$ac_objext \
3457 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003458 if test $ac_R_nospace = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003459 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003460echo "${ECHO_T}no" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003461 X_LIBS="$X_LIBS -R$x_libraries"
3462 else
3463 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003464 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003465/* confdefs.h. */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
3469/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003470
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003471int
3472main ()
3473{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003474
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003475 ;
3476 return 0;
3477}
3478_ACEOF
3479rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003481 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003482 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003487 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 (eval $ac_try) 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; } &&
3494 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003496 (eval $ac_try) 2>&5
3497 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003499 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003500 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003501else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003502 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003503sed 's/^/| /' conftest.$ac_ext >&5
3504
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003505ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003506fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003507rm -f conftest.err conftest.$ac_objext \
3508 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003509 if test $ac_R_space = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003510 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003511echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003512 X_LIBS="$X_LIBS -R $x_libraries"
3513 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003514 echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003515echo "${ECHO_T}neither works" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003516 fi
3517 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003518 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003519 esac
3520 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003521
3522 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003523 # Do this before checking for the system-independent R6 libraries
3524 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003525
3526 if test "$ISC" = yes; then
3527 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3528 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003529 # Martyn Johnson says this is needed for Ultrix, if the X
3530 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003531 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003532 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3533 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
3538/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003539
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003540/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003541#ifdef __cplusplus
3542extern "C"
3543#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003544/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003545 builtin and then its argument prototype would still apply. */
3546char XOpenDisplay ();
3547int
3548main ()
3549{
3550XOpenDisplay ();
3551 ;
3552 return 0;
3553}
3554_ACEOF
3555rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003557 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003558 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003563 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 (eval $ac_try) 2>&5
3567 ac_status=$?
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; } &&
3570 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003572 (eval $ac_try) 2>&5
3573 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003575 (exit $ac_status); }; }; then
3576 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003577else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003578 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003579sed 's/^/| /' conftest.$ac_ext >&5
3580
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003581echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003582echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3583if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
3585else
3586 ac_check_lib_save_LIBS=$LIBS
3587LIBS="-ldnet $LIBS"
3588cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003589/* confdefs.h. */
3590_ACEOF
3591cat confdefs.h >>conftest.$ac_ext
3592cat >>conftest.$ac_ext <<_ACEOF
3593/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003594
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003595/* Override any gcc2 internal prototype to avoid an error. */
3596#ifdef __cplusplus
3597extern "C"
3598#endif
3599/* We use char because int might match the return type of a gcc2
3600 builtin and then its argument prototype would still apply. */
3601char dnet_ntoa ();
3602int
3603main ()
3604{
3605dnet_ntoa ();
3606 ;
3607 return 0;
3608}
3609_ACEOF
3610rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003612 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003613 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003618 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 (eval $ac_try) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; } &&
3625 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003627 (eval $ac_try) 2>&5
3628 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003630 (exit $ac_status); }; }; then
3631 ac_cv_lib_dnet_dnet_ntoa=yes
3632else
3633 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003634sed 's/^/| /' conftest.$ac_ext >&5
3635
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003636ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003637fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003638rm -f conftest.err conftest.$ac_objext \
3639 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003640LIBS=$ac_check_lib_save_LIBS
3641fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003642echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003643echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3644if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003645 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003646fi
3647
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003648 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003649 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003650echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3651if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003653else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003654 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003655LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003656cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003657/* confdefs.h. */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003662
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003663/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003664#ifdef __cplusplus
3665extern "C"
3666#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003667/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003668 builtin and then its argument prototype would still apply. */
3669char dnet_ntoa ();
3670int
3671main ()
3672{
3673dnet_ntoa ();
3674 ;
3675 return 0;
3676}
3677_ACEOF
3678rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003680 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003681 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003682 grep -v '^ *+' conftest.er1 >conftest.err
3683 rm -f conftest.er1
3684 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003686 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689 (eval $ac_try) 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; } &&
3693 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003695 (eval $ac_try) 2>&5
3696 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003698 (exit $ac_status); }; }; then
3699 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003700else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003701 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003702sed 's/^/| /' conftest.$ac_ext >&5
3703
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003704ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003705fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003706rm -f conftest.err conftest.$ac_objext \
3707 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003708LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003709fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003710echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003711echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3712if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003713 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003714fi
3715
3716 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003717fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003718rm -f conftest.err conftest.$ac_objext \
3719 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003720 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003721
3722 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3723 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003724 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003725 # needs -lnsl.
3726 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003727 # on Irix 5.2, according to T.E. Dickey.
3728 # The functions gethostbyname, getservbyname, and inet_addr are
3729 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003730 echo "$as_me:$LINENO: checking for gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003731echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3732if test "${ac_cv_func_gethostbyname+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003734else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003735 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003736/* confdefs.h. */
3737_ACEOF
3738cat confdefs.h >>conftest.$ac_ext
3739cat >>conftest.$ac_ext <<_ACEOF
3740/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003741/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3743#define gethostbyname innocuous_gethostbyname
3744
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003745/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003746 which can conflict with char gethostbyname (); below.
3747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3748 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003749
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003750#ifdef __STDC__
3751# include <limits.h>
3752#else
3753# include <assert.h>
3754#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003755
3756#undef gethostbyname
3757
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003758/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003759#ifdef __cplusplus
3760extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003761{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003762#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003763/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003764 builtin and then its argument prototype would still apply. */
3765char gethostbyname ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003766/* The GNU C library defines this for functions which it implements
3767 to always fail with ENOSYS. Some functions are actually named
3768 something starting with __ and the normal name is an alias. */
3769#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3770choke me
3771#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003772char (*f) () = gethostbyname;
3773#endif
3774#ifdef __cplusplus
3775}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003776#endif
3777
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003778int
3779main ()
3780{
3781return f != gethostbyname;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003782 ;
3783 return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003788 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003789 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003794 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797 (eval $ac_try) 2>&5
3798 ac_status=$?
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; } &&
3801 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003803 (eval $ac_try) 2>&5
3804 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003806 (exit $ac_status); }; }; then
3807 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003808else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003809 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003810sed 's/^/| /' conftest.$ac_ext >&5
3811
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003812ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003813fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003814rm -f conftest.err conftest.$ac_objext \
3815 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003816fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003817echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003818echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003819
3820 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003821 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003822echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3823if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003825else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003826 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003827LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003828cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003829/* confdefs.h. */
3830_ACEOF
3831cat confdefs.h >>conftest.$ac_ext
3832cat >>conftest.$ac_ext <<_ACEOF
3833/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003834
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003835/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003836#ifdef __cplusplus
3837extern "C"
3838#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003839/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003840 builtin and then its argument prototype would still apply. */
3841char gethostbyname ();
3842int
3843main ()
3844{
3845gethostbyname ();
3846 ;
3847 return 0;
3848}
3849_ACEOF
3850rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003852 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003853 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003858 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 (eval $ac_try) 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; } &&
3865 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003867 (eval $ac_try) 2>&5
3868 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003870 (exit $ac_status); }; }; then
3871 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003872else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003873 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003874sed 's/^/| /' conftest.$ac_ext >&5
3875
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003876ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003877fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003878rm -f conftest.err conftest.$ac_objext \
3879 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003880LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003881fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003882echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003883echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3884if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003885 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003886fi
3887
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003888 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00003889 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003890echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3891if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893else
3894 ac_check_lib_save_LIBS=$LIBS
3895LIBS="-lbsd $LIBS"
3896cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003897/* confdefs.h. */
3898_ACEOF
3899cat confdefs.h >>conftest.$ac_ext
3900cat >>conftest.$ac_ext <<_ACEOF
3901/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003902
3903/* Override any gcc2 internal prototype to avoid an error. */
3904#ifdef __cplusplus
3905extern "C"
3906#endif
3907/* We use char because int might match the return type of a gcc2
3908 builtin and then its argument prototype would still apply. */
3909char gethostbyname ();
3910int
3911main ()
3912{
3913gethostbyname ();
3914 ;
3915 return 0;
3916}
3917_ACEOF
3918rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003920 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003921 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003922 grep -v '^ *+' conftest.er1 >conftest.err
3923 rm -f conftest.er1
3924 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003926 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 (eval $ac_try) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; } &&
3933 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003935 (eval $ac_try) 2>&5
3936 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003938 (exit $ac_status); }; }; then
3939 ac_cv_lib_bsd_gethostbyname=yes
3940else
3941 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003942sed 's/^/| /' conftest.$ac_ext >&5
3943
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003944ac_cv_lib_bsd_gethostbyname=no
3945fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003946rm -f conftest.err conftest.$ac_objext \
3947 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003948LIBS=$ac_check_lib_save_LIBS
3949fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003950echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003951echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3952if test $ac_cv_lib_bsd_gethostbyname = yes; then
3953 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3954fi
3955
3956 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003957 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003958
3959 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003960 # socket/setsockopt and other routines are undefined under SCO ODT
3961 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003962 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003963 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003964 # must be given before -lnsl if both are needed. We assume that
3965 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003966 echo "$as_me:$LINENO: checking for connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003967echo $ECHO_N "checking for connect... $ECHO_C" >&6
3968if test "${ac_cv_func_connect+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003970else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003971 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003972/* confdefs.h. */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003977/* Define connect to an innocuous variant, in case <limits.h> declares connect.
3978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3979#define connect innocuous_connect
3980
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003981/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003982 which can conflict with char connect (); below.
3983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3984 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003985
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003986#ifdef __STDC__
3987# include <limits.h>
3988#else
3989# include <assert.h>
3990#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003991
3992#undef connect
3993
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003994/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003995#ifdef __cplusplus
3996extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003997{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003998#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003999/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004000 builtin and then its argument prototype would still apply. */
4001char connect ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004002/* The GNU C library defines this for functions which it implements
4003 to always fail with ENOSYS. Some functions are actually named
4004 something starting with __ and the normal name is an alias. */
4005#if defined (__stub_connect) || defined (__stub___connect)
4006choke me
4007#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004008char (*f) () = connect;
4009#endif
4010#ifdef __cplusplus
4011}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004012#endif
4013
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004014int
4015main ()
4016{
4017return f != connect;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004018 ;
4019 return 0;
4020}
4021_ACEOF
4022rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004024 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004025 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004030 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004039 (eval $ac_try) 2>&5
4040 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004042 (exit $ac_status); }; }; then
4043 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004044else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004045 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004046sed 's/^/| /' conftest.$ac_ext >&5
4047
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004048ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004049fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004050rm -f conftest.err conftest.$ac_objext \
4051 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004052fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004053echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004054echo "${ECHO_T}$ac_cv_func_connect" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004055
4056 if test $ac_cv_func_connect = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004057 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004058echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4059if test "${ac_cv_lib_socket_connect+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004061else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004062 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004063LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004064cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004065/* confdefs.h. */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
4069/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004070
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004071/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004072#ifdef __cplusplus
4073extern "C"
4074#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004075/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004076 builtin and then its argument prototype would still apply. */
4077char connect ();
4078int
4079main ()
4080{
4081connect ();
4082 ;
4083 return 0;
4084}
4085_ACEOF
4086rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004088 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004089 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004094 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097 (eval $ac_try) 2>&5
4098 ac_status=$?
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; } &&
4101 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004103 (eval $ac_try) 2>&5
4104 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004106 (exit $ac_status); }; }; then
4107 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004108else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004109 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004110sed 's/^/| /' conftest.$ac_ext >&5
4111
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004112ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004113fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004114rm -f conftest.err conftest.$ac_objext \
4115 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004116LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004117fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004118echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004119echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4120if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004121 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004122fi
4123
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004124 fi
4125
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004126 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004127 echo "$as_me:$LINENO: checking for remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004128echo $ECHO_N "checking for remove... $ECHO_C" >&6
4129if test "${ac_cv_func_remove+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004131else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004132 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004133/* confdefs.h. */
4134_ACEOF
4135cat confdefs.h >>conftest.$ac_ext
4136cat >>conftest.$ac_ext <<_ACEOF
4137/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004138/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4140#define remove innocuous_remove
4141
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004142/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004143 which can conflict with char remove (); below.
4144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4145 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004146
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004147#ifdef __STDC__
4148# include <limits.h>
4149#else
4150# include <assert.h>
4151#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004152
4153#undef remove
4154
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004155/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004156#ifdef __cplusplus
4157extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004158{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004159#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004160/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004161 builtin and then its argument prototype would still apply. */
4162char remove ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004163/* The GNU C library defines this for functions which it implements
4164 to always fail with ENOSYS. Some functions are actually named
4165 something starting with __ and the normal name is an alias. */
4166#if defined (__stub_remove) || defined (__stub___remove)
4167choke me
4168#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004169char (*f) () = remove;
4170#endif
4171#ifdef __cplusplus
4172}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004173#endif
4174
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004175int
4176main ()
4177{
4178return f != remove;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004179 ;
4180 return 0;
4181}
4182_ACEOF
4183rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004185 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004186 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004187 grep -v '^ *+' conftest.er1 >conftest.err
4188 rm -f conftest.er1
4189 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004191 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 (eval $ac_try) 2>&5
4195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; } &&
4198 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004200 (eval $ac_try) 2>&5
4201 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004203 (exit $ac_status); }; }; then
4204 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004205else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004206 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004207sed 's/^/| /' conftest.$ac_ext >&5
4208
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004209ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004210fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004211rm -f conftest.err conftest.$ac_objext \
4212 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004213fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004214echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004215echo "${ECHO_T}$ac_cv_func_remove" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004216
4217 if test $ac_cv_func_remove = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004218 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004219echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4220if test "${ac_cv_lib_posix_remove+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004222else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004223 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004224LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004225cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004226/* confdefs.h. */
4227_ACEOF
4228cat confdefs.h >>conftest.$ac_ext
4229cat >>conftest.$ac_ext <<_ACEOF
4230/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004231
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004232/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004233#ifdef __cplusplus
4234extern "C"
4235#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004236/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004237 builtin and then its argument prototype would still apply. */
4238char remove ();
4239int
4240main ()
4241{
4242remove ();
4243 ;
4244 return 0;
4245}
4246_ACEOF
4247rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004249 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004250 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004255 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004264 (eval $ac_try) 2>&5
4265 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004267 (exit $ac_status); }; }; then
4268 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004269else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004270 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004271sed 's/^/| /' conftest.$ac_ext >&5
4272
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004273ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004274fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004275rm -f conftest.err conftest.$ac_objext \
4276 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004277LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004278fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004279echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004280echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4281if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004282 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004283fi
4284
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004285 fi
4286
4287 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004288 echo "$as_me:$LINENO: checking for shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004289echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4290if test "${ac_cv_func_shmat+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004292else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004293 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004294/* confdefs.h. */
4295_ACEOF
4296cat confdefs.h >>conftest.$ac_ext
4297cat >>conftest.$ac_ext <<_ACEOF
4298/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004299/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4301#define shmat innocuous_shmat
4302
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004303/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004304 which can conflict with char shmat (); below.
4305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4306 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004307
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004308#ifdef __STDC__
4309# include <limits.h>
4310#else
4311# include <assert.h>
4312#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004313
4314#undef shmat
4315
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004316/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004317#ifdef __cplusplus
4318extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004319{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004320#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004321/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004322 builtin and then its argument prototype would still apply. */
4323char shmat ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004324/* The GNU C library defines this for functions which it implements
4325 to always fail with ENOSYS. Some functions are actually named
4326 something starting with __ and the normal name is an alias. */
4327#if defined (__stub_shmat) || defined (__stub___shmat)
4328choke me
4329#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004330char (*f) () = shmat;
4331#endif
4332#ifdef __cplusplus
4333}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004334#endif
4335
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004336int
4337main ()
4338{
4339return f != shmat;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004340 ;
4341 return 0;
4342}
4343_ACEOF
4344rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004346 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004347 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004352 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004361 (eval $ac_try) 2>&5
4362 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004364 (exit $ac_status); }; }; then
4365 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004366else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004367 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004368sed 's/^/| /' conftest.$ac_ext >&5
4369
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004370ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004371fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004372rm -f conftest.err conftest.$ac_objext \
4373 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004374fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004375echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004376echo "${ECHO_T}$ac_cv_func_shmat" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004377
4378 if test $ac_cv_func_shmat = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004379 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004380echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4381if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004383else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004384 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004385LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004386cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004387/* confdefs.h. */
4388_ACEOF
4389cat confdefs.h >>conftest.$ac_ext
4390cat >>conftest.$ac_ext <<_ACEOF
4391/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004392
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004393/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004394#ifdef __cplusplus
4395extern "C"
4396#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004397/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004398 builtin and then its argument prototype would still apply. */
4399char shmat ();
4400int
4401main ()
4402{
4403shmat ();
4404 ;
4405 return 0;
4406}
4407_ACEOF
4408rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004410 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004411 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004412 grep -v '^ *+' conftest.er1 >conftest.err
4413 rm -f conftest.er1
4414 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004416 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004425 (eval $ac_try) 2>&5
4426 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004428 (exit $ac_status); }; }; then
4429 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004430else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004431 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004432sed 's/^/| /' conftest.$ac_ext >&5
4433
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004434ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004435fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004436rm -f conftest.err conftest.$ac_objext \
4437 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004438LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004439fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004440echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004441echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4442if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004444fi
4445
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004446 fi
4447 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004448
4449 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004450 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004451 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4452 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4453 # check for ICE first), but we must link in the order -lSM -lICE or
4454 # we get undefined symbols. So assume we have SM if we have ICE.
4455 # These have to be linked with before -lX11, unlike the other
4456 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004457 # John Interrante, Karl Berry
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004458 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004459echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4460if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4461 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004462else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004463 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00004464LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004465cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004466/* confdefs.h. */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004471
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004472/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004473#ifdef __cplusplus
4474extern "C"
4475#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004476/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004477 builtin and then its argument prototype would still apply. */
4478char IceConnectionNumber ();
4479int
4480main ()
4481{
4482IceConnectionNumber ();
4483 ;
4484 return 0;
4485}
4486_ACEOF
4487rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004489 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004490 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004495 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; } &&
4502 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004504 (eval $ac_try) 2>&5
4505 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004507 (exit $ac_status); }; }; then
4508 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004509else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004510 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004511sed 's/^/| /' conftest.$ac_ext >&5
4512
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004513ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004514fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004515rm -f conftest.err conftest.$ac_objext \
4516 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004517LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004518fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004519echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004520echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4521if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004522 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004523fi
4524
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004525 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004526
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004527fi
4528
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004529for ac_prog in flex lex
4530do
4531 # Extract the first word of "$ac_prog", so it can be a program name with args.
4532set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004533echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4535if test "${ac_cv_prog_LEX+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004537else
4538 if test -n "$LEX"; then
4539 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4540else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542for as_dir in $PATH
4543do
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4548 ac_cv_prog_LEX="$ac_prog"
4549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4551 fi
4552done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004553done
4554
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004555fi
4556fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004557LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004558if test -n "$LEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004559 echo "$as_me:$LINENO: result: $LEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004560echo "${ECHO_T}$LEX" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004561else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004562 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004563echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004564fi
4565
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004566 test -n "$LEX" && break
4567done
4568test -n "$LEX" || LEX=":"
4569
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004570if test -z "$LEXLIB"
4571then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004572 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004573echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4574if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004576else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004577 ac_check_lib_save_LIBS=$LIBS
4578LIBS="-lfl $LIBS"
4579cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004580/* confdefs.h. */
4581_ACEOF
4582cat confdefs.h >>conftest.$ac_ext
4583cat >>conftest.$ac_ext <<_ACEOF
4584/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004585
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004586/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004587#ifdef __cplusplus
4588extern "C"
4589#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004590/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004591 builtin and then its argument prototype would still apply. */
4592char yywrap ();
4593int
4594main ()
4595{
4596yywrap ();
4597 ;
4598 return 0;
4599}
4600_ACEOF
4601rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004603 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004604 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004605 grep -v '^ *+' conftest.er1 >conftest.err
4606 rm -f conftest.er1
4607 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004609 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; } &&
4616 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004618 (eval $ac_try) 2>&5
4619 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004621 (exit $ac_status); }; }; then
4622 ac_cv_lib_fl_yywrap=yes
4623else
4624 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004625sed 's/^/| /' conftest.$ac_ext >&5
4626
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004627ac_cv_lib_fl_yywrap=no
4628fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004629rm -f conftest.err conftest.$ac_objext \
4630 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004631LIBS=$ac_check_lib_save_LIBS
4632fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004633echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004634echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4635if test $ac_cv_lib_fl_yywrap = yes; then
4636 LEXLIB="-lfl"
4637else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004638 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004639echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4640if test "${ac_cv_lib_l_yywrap+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642else
4643 ac_check_lib_save_LIBS=$LIBS
4644LIBS="-ll $LIBS"
4645cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004646/* confdefs.h. */
4647_ACEOF
4648cat confdefs.h >>conftest.$ac_ext
4649cat >>conftest.$ac_ext <<_ACEOF
4650/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004651
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004652/* Override any gcc2 internal prototype to avoid an error. */
4653#ifdef __cplusplus
4654extern "C"
4655#endif
4656/* We use char because int might match the return type of a gcc2
4657 builtin and then its argument prototype would still apply. */
4658char yywrap ();
4659int
4660main ()
4661{
4662yywrap ();
4663 ;
4664 return 0;
4665}
4666_ACEOF
4667rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004669 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004670 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004671 grep -v '^ *+' conftest.er1 >conftest.err
4672 rm -f conftest.er1
4673 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004675 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4678 (eval $ac_try) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; } &&
4682 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004684 (eval $ac_try) 2>&5
4685 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004687 (exit $ac_status); }; }; then
4688 ac_cv_lib_l_yywrap=yes
4689else
4690 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004691sed 's/^/| /' conftest.$ac_ext >&5
4692
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004693ac_cv_lib_l_yywrap=no
4694fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004695rm -f conftest.err conftest.$ac_objext \
4696 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004697LIBS=$ac_check_lib_save_LIBS
4698fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004699echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004700echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4701if test $ac_cv_lib_l_yywrap = yes; then
4702 LEXLIB="-ll"
4703fi
4704
4705fi
4706
4707fi
4708
4709if test "x$LEX" != "x:"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004710 echo "$as_me:$LINENO: checking lex output file root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004711echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4712if test "${ac_cv_prog_lex_root+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
4715 # The minimal lex program is just a single line: %%. But some broken lexes
4716# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004717cat >conftest.l <<_ACEOF
4718%%
4719%%
4720_ACEOF
4721{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4722 (eval $LEX conftest.l) 2>&5
4723 ac_status=$?
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004726if test -f lex.yy.c; then
4727 ac_cv_prog_lex_root=lex.yy
4728elif test -f lexyy.c; then
4729 ac_cv_prog_lex_root=lexyy
4730else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004731 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004732echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4733 { (exit 1); exit 1; }; }
4734fi
4735fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004736echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004737echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004738rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004739LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4740
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004741echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004742echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4743if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746 # POSIX says lex can declare yytext either as a pointer or an array; the
4747# default is implementation-dependent. Figure out which it is, since
4748# not all implementations provide the %pointer and %array declarations.
4749ac_cv_prog_lex_yytext_pointer=no
4750echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4751ac_save_LIBS=$LIBS
4752LIBS="$LIBS $LEXLIB"
4753cat >conftest.$ac_ext <<_ACEOF
4754`cat $LEX_OUTPUT_ROOT.c`
4755_ACEOF
4756rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004758 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004759 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004764 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767 (eval $ac_try) 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; } &&
4771 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004773 (eval $ac_try) 2>&5
4774 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004776 (exit $ac_status); }; }; then
4777 ac_cv_prog_lex_yytext_pointer=yes
4778else
4779 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004780sed 's/^/| /' conftest.$ac_ext >&5
4781
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004782fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004783rm -f conftest.err conftest.$ac_objext \
4784 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004785LIBS=$ac_save_LIBS
4786rm -f "${LEX_OUTPUT_ROOT}.c"
4787
4788fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004789echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004790echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4791if test $ac_cv_prog_lex_yytext_pointer = yes; then
4792
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004793cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004794#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004795_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004796
4797fi
4798
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004799fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004800
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004801for ac_prog in $LEX flex lex
4802do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004803 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004804set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004805echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4807if test "${ac_cv_prog_XLEX+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004809else
4810 if test -n "$XLEX"; then
4811 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4812else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814for as_dir in $PATH
4815do
4816 IFS=$as_save_IFS
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4820 ac_cv_prog_XLEX="$ac_prog"
4821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4822 break 2
4823 fi
4824done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004825done
4826
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004827fi
4828fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004829XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004830if test -n "$XLEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004831 echo "$as_me:$LINENO: result: $XLEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004832echo "${ECHO_T}$XLEX" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004833else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004834 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004835echo "${ECHO_T}no" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004836fi
4837
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004838 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004839done
4840test -n "$XLEX" || XLEX="none"
4841
4842if test "$XLEX" = "none"
4843then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004844 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004845echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4846 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004847fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004848
Mike McCormackc068f672004-03-16 03:11:39 +00004849for ac_prog in bison
4850do
4851 # Extract the first word of "$ac_prog", so it can be a program name with args.
4852set dummy $ac_prog; ac_word=$2
4853echo "$as_me:$LINENO: checking for $ac_word" >&5
4854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4855if test "${ac_cv_prog_BISON+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857else
4858 if test -n "$BISON"; then
4859 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_prog_BISON="$ac_prog"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872done
4873done
4874
4875fi
4876fi
4877BISON=$ac_cv_prog_BISON
4878if test -n "$BISON"; then
4879 echo "$as_me:$LINENO: result: $BISON" >&5
4880echo "${ECHO_T}$BISON" >&6
4881else
4882 echo "$as_me:$LINENO: result: no" >&5
4883echo "${ECHO_T}no" >&6
4884fi
4885
4886 test -n "$BISON" && break
4887done
4888test -n "$BISON" || BISON="none"
4889
4890if test "$BISON" = "none"
4891then
4892 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4893echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4894 { (exit 1); exit 1; }; }
4895fi
4896
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004897if test -n "$ac_tool_prefix"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004898 for ac_prog in gas as
4899 do
4900 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4901set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Marcus Meissner1d4db782003-01-09 00:46:54 +00004902echo "$as_me:$LINENO: checking for $ac_word" >&5
4903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4904if test "${ac_cv_prog_AS+set}" = set; then
4905 echo $ECHO_N "(cached) $ECHO_C" >&6
4906else
4907 if test -n "$AS"; then
4908 ac_cv_prog_AS="$AS" # Let the user override the test.
4909else
4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004917 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00004918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921done
4922done
4923
4924fi
4925fi
4926AS=$ac_cv_prog_AS
4927if test -n "$AS"; then
4928 echo "$as_me:$LINENO: result: $AS" >&5
4929echo "${ECHO_T}$AS" >&6
4930else
4931 echo "$as_me:$LINENO: result: no" >&5
4932echo "${ECHO_T}no" >&6
4933fi
4934
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004935 test -n "$AS" && break
4936 done
Marcus Meissner1d4db782003-01-09 00:46:54 +00004937fi
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004938if test -z "$AS"; then
Marcus Meissner1d4db782003-01-09 00:46:54 +00004939 ac_ct_AS=$AS
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004940 for ac_prog in gas as
4941do
4942 # Extract the first word of "$ac_prog", so it can be a program name with args.
4943set dummy $ac_prog; ac_word=$2
Marcus Meissner1d4db782003-01-09 00:46:54 +00004944echo "$as_me:$LINENO: checking for $ac_word" >&5
4945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4946if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948else
4949 if test -n "$ac_ct_AS"; then
4950 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4951else
4952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953for as_dir in $PATH
4954do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004959 ac_cv_prog_ac_ct_AS="$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00004960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4962 fi
4963done
4964done
4965
Marcus Meissner1d4db782003-01-09 00:46:54 +00004966fi
4967fi
4968ac_ct_AS=$ac_cv_prog_ac_ct_AS
4969if test -n "$ac_ct_AS"; then
4970 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4971echo "${ECHO_T}$ac_ct_AS" >&6
4972else
4973 echo "$as_me:$LINENO: result: no" >&5
4974echo "${ECHO_T}no" >&6
4975fi
4976
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004977 test -n "$ac_ct_AS" && break
4978done
4979test -n "$ac_ct_AS" || ac_ct_AS="as"
4980
Marcus Meissner1d4db782003-01-09 00:46:54 +00004981 AS=$ac_ct_AS
Marcus Meissner1d4db782003-01-09 00:46:54 +00004982fi
4983
4984if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00004985 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4986set dummy ${ac_tool_prefix}ld; ac_word=$2
4987echo "$as_me:$LINENO: checking for $ac_word" >&5
4988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4989if test "${ac_cv_prog_LD+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991else
4992 if test -n "$LD"; then
4993 ac_cv_prog_LD="$LD" # Let the user override the test.
4994else
4995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996for as_dir in $PATH
4997do
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002 ac_cv_prog_LD="${ac_tool_prefix}ld"
5003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 break 2
5005 fi
5006done
5007done
5008
5009fi
5010fi
5011LD=$ac_cv_prog_LD
5012if test -n "$LD"; then
5013 echo "$as_me:$LINENO: result: $LD" >&5
5014echo "${ECHO_T}$LD" >&6
5015else
5016 echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6
5018fi
5019
5020fi
5021if test -z "$ac_cv_prog_LD"; then
5022 ac_ct_LD=$LD
5023 # Extract the first word of "ld", so it can be a program name with args.
5024set dummy ld; ac_word=$2
5025echo "$as_me:$LINENO: checking for $ac_word" >&5
5026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5027if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030 if test -n "$ac_ct_LD"; then
5031 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5032else
5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_prog_ac_ct_LD="ld"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044done
5045done
5046
5047 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5048fi
5049fi
5050ac_ct_LD=$ac_cv_prog_ac_ct_LD
5051if test -n "$ac_ct_LD"; then
5052 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5053echo "${ECHO_T}$ac_ct_LD" >&6
5054else
5055 echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
5057fi
5058
5059 LD=$ac_ct_LD
5060else
5061 LD="$ac_cv_prog_LD"
5062fi
5063
5064if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005065 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5066set dummy ${ac_tool_prefix}ar; ac_word=$2
5067echo "$as_me:$LINENO: checking for $ac_word" >&5
5068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5069if test "${ac_cv_prog_AR+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071else
5072 if test -n "$AR"; then
5073 ac_cv_prog_AR="$AR" # Let the user override the test.
5074else
5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_prog_AR="${ac_tool_prefix}ar"
5083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5085 fi
5086done
5087done
5088
5089fi
5090fi
5091AR=$ac_cv_prog_AR
5092if test -n "$AR"; then
5093 echo "$as_me:$LINENO: result: $AR" >&5
5094echo "${ECHO_T}$AR" >&6
5095else
5096 echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6
5098fi
5099
5100fi
5101if test -z "$ac_cv_prog_AR"; then
5102 ac_ct_AR=$AR
5103 # Extract the first word of "ar", so it can be a program name with args.
5104set dummy ar; ac_word=$2
5105echo "$as_me:$LINENO: checking for $ac_word" >&5
5106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5107if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109else
5110 if test -n "$ac_ct_AR"; then
5111 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5112else
5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114for as_dir in $PATH
5115do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_ac_ct_AR="ar"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124done
5125done
5126
5127 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5128fi
5129fi
5130ac_ct_AR=$ac_cv_prog_ac_ct_AR
5131if test -n "$ac_ct_AR"; then
5132 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5133echo "${ECHO_T}$ac_ct_AR" >&6
5134else
5135 echo "$as_me:$LINENO: result: no" >&5
5136echo "${ECHO_T}no" >&6
5137fi
5138
5139 AR=$ac_ct_AR
5140else
5141 AR="$ac_cv_prog_AR"
5142fi
5143
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005144if test -n "$ac_tool_prefix"; then
5145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5146set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005147echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5149if test "${ac_cv_prog_RANLIB+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005151else
5152 if test -n "$RANLIB"; then
5153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5154else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH
5157do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005167done
5168
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005169fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005170fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005171RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005172if test -n "$RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005173 echo "$as_me:$LINENO: result: $RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005174echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005175else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005176 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005177echo "${ECHO_T}no" >&6
5178fi
5179
5180fi
5181if test -z "$ac_cv_prog_RANLIB"; then
5182 ac_ct_RANLIB=$RANLIB
5183 # Extract the first word of "ranlib", so it can be a program name with args.
5184set dummy ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005185echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5187if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
5190 if test -n "$ac_ct_RANLIB"; then
5191 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5192else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_ac_ct_RANLIB="ranlib"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5203 fi
5204done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005205done
5206
5207 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5208fi
5209fi
5210ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5211if test -n "$ac_ct_RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005212 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005213echo "${ECHO_T}$ac_ct_RANLIB" >&6
5214else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005215 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005216echo "${ECHO_T}no" >&6
5217fi
5218
5219 RANLIB=$ac_ct_RANLIB
5220else
5221 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005222fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005223
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005224if test -n "$ac_tool_prefix"; then
5225 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5226set dummy ${ac_tool_prefix}strip; ac_word=$2
5227echo "$as_me:$LINENO: checking for $ac_word" >&5
5228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229if test "${ac_cv_prog_STRIP+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231else
5232 if test -n "$STRIP"; then
5233 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5234else
5235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236for as_dir in $PATH
5237do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5245 fi
5246done
5247done
5248
5249fi
5250fi
5251STRIP=$ac_cv_prog_STRIP
5252if test -n "$STRIP"; then
5253 echo "$as_me:$LINENO: result: $STRIP" >&5
5254echo "${ECHO_T}$STRIP" >&6
5255else
5256 echo "$as_me:$LINENO: result: no" >&5
5257echo "${ECHO_T}no" >&6
5258fi
5259
5260fi
5261if test -z "$ac_cv_prog_STRIP"; then
5262 ac_ct_STRIP=$STRIP
5263 # Extract the first word of "strip", so it can be a program name with args.
5264set dummy strip; ac_word=$2
5265echo "$as_me:$LINENO: checking for $ac_word" >&5
5266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5267if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
5270 if test -n "$ac_ct_STRIP"; then
5271 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5272else
5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274for as_dir in $PATH
5275do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280 ac_cv_prog_ac_ct_STRIP="strip"
5281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284done
5285done
5286
5287 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5288fi
5289fi
5290ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5291if test -n "$ac_ct_STRIP"; then
5292 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5293echo "${ECHO_T}$ac_ct_STRIP" >&6
5294else
5295 echo "$as_me:$LINENO: result: no" >&5
5296echo "${ECHO_T}no" >&6
5297fi
5298
5299 STRIP=$ac_ct_STRIP
5300else
5301 STRIP="$ac_cv_prog_STRIP"
5302fi
5303
5304if test -n "$ac_tool_prefix"; then
5305 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5306set dummy ${ac_tool_prefix}windres; ac_word=$2
5307echo "$as_me:$LINENO: checking for $ac_word" >&5
5308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5309if test "${ac_cv_prog_WINDRES+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312 if test -n "$WINDRES"; then
5313 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5314else
5315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316for as_dir in $PATH
5317do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5322 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5325 fi
5326done
5327done
5328
5329fi
5330fi
5331WINDRES=$ac_cv_prog_WINDRES
5332if test -n "$WINDRES"; then
5333 echo "$as_me:$LINENO: result: $WINDRES" >&5
5334echo "${ECHO_T}$WINDRES" >&6
5335else
5336 echo "$as_me:$LINENO: result: no" >&5
5337echo "${ECHO_T}no" >&6
5338fi
5339
5340fi
5341if test -z "$ac_cv_prog_WINDRES"; then
5342 ac_ct_WINDRES=$WINDRES
5343 # Extract the first word of "windres", so it can be a program name with args.
5344set dummy windres; ac_word=$2
5345echo "$as_me:$LINENO: checking for $ac_word" >&5
5346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5347if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349else
5350 if test -n "$ac_ct_WINDRES"; then
5351 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5352else
5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_ac_ct_WINDRES="windres"
5361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5363 fi
5364done
5365done
5366
5367 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5368fi
5369fi
5370ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5371if test -n "$ac_ct_WINDRES"; then
5372 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5373echo "${ECHO_T}$ac_ct_WINDRES" >&6
5374else
5375 echo "$as_me:$LINENO: result: no" >&5
5376echo "${ECHO_T}no" >&6
5377fi
5378
5379 WINDRES=$ac_ct_WINDRES
5380else
5381 WINDRES="$ac_cv_prog_WINDRES"
5382fi
5383
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005384echo "$as_me:$LINENO: checking whether ln -s works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005385echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5386LN_S=$as_ln_s
5387if test "$LN_S" = "ln -s"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005388 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005389echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00005390else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005391 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005392echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00005393fi
5394
Alexandre Julliarddf234a92002-05-22 02:10:39 +00005395echo "$as_me:$LINENO: checking whether ln works" >&5
5396echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5397rm -f conf$$ conf$$.file
5398echo >conf$$.file
5399if ln conf$$.file conf$$ 2>/dev/null; then
5400 LN=ln
5401
5402 echo "$as_me:$LINENO: result: yes" >&5
5403echo "${ECHO_T}yes" >&6
5404else
5405 LN="cp -p"
5406
5407 echo "$as_me:$LINENO: result: no, using $LN" >&5
5408echo "${ECHO_T}no, using $LN" >&6
5409fi
5410rm -f conf$$ conf$$.file
Alexandre Julliardc6264912004-08-16 20:09:37 +00005411echo "$as_me:$LINENO: checking for egrep" >&5
5412echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5413if test "${ac_cv_prog_egrep+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415else
5416 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5417 then ac_cv_prog_egrep='grep -E'
5418 else ac_cv_prog_egrep='egrep'
5419 fi
5420fi
5421echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5422echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5423 EGREP=$ac_cv_prog_egrep
5424
5425
James Juranffe6b761999-06-12 08:21:57 +00005426# Extract the first word of "ldconfig", so it can be a program name with args.
5427set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005428echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5430if test "${ac_cv_path_LDCONFIG+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00005432else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005433 case $LDCONFIG in
5434 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00005435 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5436 ;;
5437 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00005439for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005440do
5441 IFS=$as_save_IFS
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447 break 2
5448 fi
5449done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005450done
5451
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005452 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00005453 ;;
5454esac
5455fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005456LDCONFIG=$ac_cv_path_LDCONFIG
5457
James Juranffe6b761999-06-12 08:21:57 +00005458if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005459 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005460echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00005461else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005462 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005463echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00005464fi
5465
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005466# Find a good install program. We prefer a C program (faster),
5467# so one script is as good as another. But avoid the broken or
5468# incompatible versions:
5469# SysV /etc/install, /usr/sbin/install
5470# SunOS /usr/etc/install
5471# IRIX /sbin/install
5472# AIX /bin/install
5473# AmigaOS /C/install, which installs bootblocks on floppy discs
5474# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5475# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5476# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00005477# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005478# ./install, which can be erroneously created by make from ./install.sh.
5479echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5480echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5481if test -z "$INSTALL"; then
5482if test "${ac_cv_path_install+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH
5487do
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 # Account for people who put trailing slashes in PATH elements.
5491case $as_dir/ in
5492 ./ | .// | /cC/* | \
5493 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005494 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005495 /usr/ucb/* ) ;;
5496 *)
5497 # OSF1 and SCO ODT 3.0 have their own names for install.
5498 # Don't use installbsd from OSF since it installs stuff as root
5499 # by default.
5500 for ac_prog in ginstall scoinst install; do
5501 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliard875927f2004-01-02 01:55:29 +00005502 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5503 if test $ac_prog = install &&
5504 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5505 # AIX install. It has an incompatible calling convention.
5506 :
5507 elif test $ac_prog = install &&
5508 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5509 # program-specific install script used by HP pwplus--don't use.
5510 :
5511 else
5512 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5513 break 3
5514 fi
5515 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005516 done
5517 done
5518 ;;
5519esac
5520done
5521
5522
5523fi
5524 if test "${ac_cv_path_install+set}" = set; then
5525 INSTALL=$ac_cv_path_install
5526 else
5527 # As a last resort, use the slow shell script. We don't cache a
5528 # path for INSTALL within a source directory, because that will
5529 # break other packages using the cache if that directory is
5530 # removed, or if the path is relative.
5531 INSTALL=$ac_install_sh
5532 fi
5533fi
5534echo "$as_me:$LINENO: result: $INSTALL" >&5
5535echo "${ECHO_T}$INSTALL" >&6
5536
5537# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5538# It thinks the first close brace ends the variable substitution.
5539test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5540
5541test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5542
5543test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5544
5545case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00005546 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005547 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5548esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005549
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005550for ac_prog in lclint lint
5551do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005552 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005553set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005554echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5556if test "${ac_cv_prog_LINT+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005558else
5559 if test -n "$LINT"; then
5560 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5561else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_prog_LINT="$ac_prog"
5570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5572 fi
5573done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005574done
5575
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005576fi
5577fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005578LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005579if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005580 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005581echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005582else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005583 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005584echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005585fi
5586
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005587 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005588done
5589
5590if test "$LINT" = "lint"
5591then
5592 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5593 fi
5594
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005595
5596
Vincent BĂ©ron1d8cb6e2002-11-23 01:20:02 +00005597for ac_prog in docbook2html db2html
5598do
5599 # Extract the first word of "$ac_prog", so it can be a program name with args.
5600set dummy $ac_prog; ac_word=$2
5601echo "$as_me:$LINENO: checking for $ac_word" >&5
5602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5603if test "${ac_cv_prog_DB2HTML+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605else
5606 if test -n "$DB2HTML"; then
5607 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5608else
5609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610for as_dir in $PATH
5611do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_DB2HTML="$ac_prog"
5617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620done
5621done
5622
5623fi
5624fi
5625DB2HTML=$ac_cv_prog_DB2HTML
5626if test -n "$DB2HTML"; then
5627 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5628echo "${ECHO_T}$DB2HTML" >&6
5629else
5630 echo "$as_me:$LINENO: result: no" >&5
5631echo "${ECHO_T}no" >&6
5632fi
5633
5634 test -n "$DB2HTML" && break
5635done
5636test -n "$DB2HTML" || DB2HTML="false"
5637
Vincent BĂ©ron1d8cb6e2002-11-23 01:20:02 +00005638for ac_prog in docbook2pdf db2pdf
5639do
5640 # Extract the first word of "$ac_prog", so it can be a program name with args.
5641set dummy $ac_prog; ac_word=$2
5642echo "$as_me:$LINENO: checking for $ac_word" >&5
5643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5644if test "${ac_cv_prog_DB2PDF+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646else
5647 if test -n "$DB2PDF"; then
5648 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5649else
5650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651for as_dir in $PATH
5652do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_DB2PDF="$ac_prog"
5658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 break 2
5660 fi
5661done
5662done
5663
5664fi
5665fi
5666DB2PDF=$ac_cv_prog_DB2PDF
5667if test -n "$DB2PDF"; then
5668 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5669echo "${ECHO_T}$DB2PDF" >&6
5670else
5671 echo "$as_me:$LINENO: result: no" >&5
5672echo "${ECHO_T}no" >&6
5673fi
5674
5675 test -n "$DB2PDF" && break
5676done
5677test -n "$DB2PDF" || DB2PDF="false"
5678
Vincent BĂ©ron1d8cb6e2002-11-23 01:20:02 +00005679for ac_prog in docbook2ps db2ps
5680do
5681 # Extract the first word of "$ac_prog", so it can be a program name with args.
5682set dummy $ac_prog; ac_word=$2
5683echo "$as_me:$LINENO: checking for $ac_word" >&5
5684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5685if test "${ac_cv_prog_DB2PS+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5687else
5688 if test -n "$DB2PS"; then
5689 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5690else
5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698 ac_cv_prog_DB2PS="$ac_prog"
5699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5701 fi
5702done
5703done
5704
5705fi
5706fi
5707DB2PS=$ac_cv_prog_DB2PS
5708if test -n "$DB2PS"; then
5709 echo "$as_me:$LINENO: result: $DB2PS" >&5
5710echo "${ECHO_T}$DB2PS" >&6
5711else
5712 echo "$as_me:$LINENO: result: no" >&5
5713echo "${ECHO_T}no" >&6
5714fi
5715
5716 test -n "$DB2PS" && break
5717done
5718test -n "$DB2PS" || DB2PS="false"
5719
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005720for ac_prog in docbook2txt db2txt
5721do
5722 # Extract the first word of "$ac_prog", so it can be a program name with args.
5723set dummy $ac_prog; ac_word=$2
5724echo "$as_me:$LINENO: checking for $ac_word" >&5
5725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5726if test "${ac_cv_prog_DB2TXT+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728else
5729 if test -n "$DB2TXT"; then
5730 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5731else
5732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733for as_dir in $PATH
5734do
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_prog_DB2TXT="$ac_prog"
5740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5742 fi
5743done
5744done
5745
5746fi
5747fi
5748DB2TXT=$ac_cv_prog_DB2TXT
5749if test -n "$DB2TXT"; then
5750 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5751echo "${ECHO_T}$DB2TXT" >&6
5752else
5753 echo "$as_me:$LINENO: result: no" >&5
5754echo "${ECHO_T}no" >&6
5755fi
5756
5757 test -n "$DB2TXT" && break
5758done
5759test -n "$DB2TXT" || DB2TXT="false"
5760
Huw Davies00acb5f2004-08-17 22:33:14 +00005761for ac_prog in fontforge
5762do
5763 # Extract the first word of "$ac_prog", so it can be a program name with args.
5764set dummy $ac_prog; ac_word=$2
5765echo "$as_me:$LINENO: checking for $ac_word" >&5
5766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5767if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769else
5770 if test -n "$FONTFORGE"; then
5771 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5772else
5773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780 ac_cv_prog_FONTFORGE="$ac_prog"
5781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 break 2
5783 fi
5784done
5785done
5786
5787fi
5788fi
5789FONTFORGE=$ac_cv_prog_FONTFORGE
5790if test -n "$FONTFORGE"; then
5791 echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5792echo "${ECHO_T}$FONTFORGE" >&6
5793else
5794 echo "$as_me:$LINENO: result: no" >&5
5795echo "${ECHO_T}no" >&6
5796fi
5797
5798 test -n "$FONTFORGE" && break
5799done
5800test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005801
5802
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005803
5804
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005805echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005806echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5807if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005809else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005810 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005811LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005812cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005813/* confdefs.h. */
5814_ACEOF
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005818
Alexandre Julliard59730ae1996-03-24 16:20:51 +00005819/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005820#ifdef __cplusplus
5821extern "C"
5822#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005823/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005824 builtin and then its argument prototype would still apply. */
5825char i386_set_ldt ();
5826int
5827main ()
5828{
5829i386_set_ldt ();
5830 ;
5831 return 0;
5832}
5833_ACEOF
5834rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005836 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005837 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005838 grep -v '^ *+' conftest.er1 >conftest.err
5839 rm -f conftest.er1
5840 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005842 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 (eval $ac_try) 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; } &&
5849 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005851 (eval $ac_try) 2>&5
5852 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005854 (exit $ac_status); }; }; then
5855 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005856else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005857 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005858sed 's/^/| /' conftest.$ac_ext >&5
5859
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005860ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005861fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005862rm -f conftest.err conftest.$ac_objext \
5863 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005864LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005865fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005866echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005867echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5868if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005869 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005870#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005871_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005872
5873 LIBS="-li386 $LIBS"
5874
Alexandre Julliard02e90081998-01-04 17:49:09 +00005875fi
5876
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005877
5878echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005879echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5880if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5881 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005882else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005883 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005884LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005885cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005886/* confdefs.h. */
5887_ACEOF
5888cat confdefs.h >>conftest.$ac_ext
5889cat >>conftest.$ac_ext <<_ACEOF
5890/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005891
Todd Vierlingecc76691998-12-15 17:49:02 +00005892/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005893#ifdef __cplusplus
5894extern "C"
5895#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00005896/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005897 builtin and then its argument prototype would still apply. */
5898char _oss_ioctl ();
5899int
5900main ()
5901{
5902_oss_ioctl ();
5903 ;
5904 return 0;
5905}
5906_ACEOF
5907rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005909 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005910 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005915 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 (eval $ac_try) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005924 (eval $ac_try) 2>&5
5925 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005927 (exit $ac_status); }; }; then
5928 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005929else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005930 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005931sed 's/^/| /' conftest.$ac_ext >&5
5932
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005933ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005934fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005935rm -f conftest.err conftest.$ac_objext \
5936 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005937LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005938fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005939echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005940echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5941if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005942 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005943#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005944_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005945
5946 LIBS="-lossaudio $LIBS"
5947
Todd Vierlingecc76691998-12-15 17:49:02 +00005948fi
5949
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005950
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005951for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00005952do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005954echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5956if eval "test \"\${$as_ac_var+set}\" = set"; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005958else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005959 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005960/* confdefs.h. */
5961_ACEOF
5962cat confdefs.h >>conftest.$ac_ext
5963cat >>conftest.$ac_ext <<_ACEOF
5964/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5967#define $ac_func innocuous_$ac_func
5968
Patrik Stridvallea584721998-11-01 16:22:07 +00005969/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005970 which can conflict with char $ac_func (); below.
5971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5972 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005973
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005974#ifdef __STDC__
5975# include <limits.h>
5976#else
5977# include <assert.h>
5978#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00005979
5980#undef $ac_func
5981
Patrik Stridvallea584721998-11-01 16:22:07 +00005982/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005983#ifdef __cplusplus
5984extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005985{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005986#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005987/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005988 builtin and then its argument prototype would still apply. */
5989char $ac_func ();
Patrik Stridvallea584721998-11-01 16:22:07 +00005990/* The GNU C library defines this for functions which it implements
5991 to always fail with ENOSYS. Some functions are actually named
5992 something starting with __ and the normal name is an alias. */
5993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5994choke me
5995#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005996char (*f) () = $ac_func;
5997#endif
5998#ifdef __cplusplus
5999}
Patrik Stridvallea584721998-11-01 16:22:07 +00006000#endif
6001
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006002int
6003main ()
6004{
6005return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006006 ;
6007 return 0;
6008}
6009_ACEOF
6010rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006012 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006013 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006018 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 (eval $ac_try) 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; } &&
6025 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006027 (eval $ac_try) 2>&5
6028 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006030 (exit $ac_status); }; }; then
6031 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006032else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006033 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006034sed 's/^/| /' conftest.$ac_ext >&5
6035
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006036eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006037fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006038rm -f conftest.err conftest.$ac_objext \
6039 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006040fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006042echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6043if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006044 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006046_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006047
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006048else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006049
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006050echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006051echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
6052if test "${ac_cv_lib_w_iswalnum+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006054else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006055 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006056LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006057cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006058/* confdefs.h. */
6059_ACEOF
6060cat confdefs.h >>conftest.$ac_ext
6061cat >>conftest.$ac_ext <<_ACEOF
6062/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006063
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006064/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006065#ifdef __cplusplus
6066extern "C"
6067#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006068/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006069 builtin and then its argument prototype would still apply. */
6070char iswalnum ();
6071int
6072main ()
6073{
6074iswalnum ();
6075 ;
6076 return 0;
6077}
6078_ACEOF
6079rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006081 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006082 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006087 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090 (eval $ac_try) 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; } &&
6094 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006096 (eval $ac_try) 2>&5
6097 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006099 (exit $ac_status); }; }; then
6100 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006101else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006102 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006103sed 's/^/| /' conftest.$ac_ext >&5
6104
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006105ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006106fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006107rm -f conftest.err conftest.$ac_objext \
6108 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006109LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006110fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006111echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006112echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6113if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006114 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006115#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006116_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006117
6118 LIBS="-lw $LIBS"
6119
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006120fi
6121
6122fi
6123done
6124
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006125
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006126for ac_func in gethostbyname
6127do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006129echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6131if eval "test \"\${$as_ac_var+set}\" = set"; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006133else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006134 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006135/* confdefs.h. */
6136_ACEOF
6137cat confdefs.h >>conftest.$ac_ext
6138cat >>conftest.$ac_ext <<_ACEOF
6139/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6142#define $ac_func innocuous_$ac_func
6143
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006144/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006145 which can conflict with char $ac_func (); below.
6146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6147 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006148
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006149#ifdef __STDC__
6150# include <limits.h>
6151#else
6152# include <assert.h>
6153#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006154
6155#undef $ac_func
6156
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006157/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006158#ifdef __cplusplus
6159extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006160{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006161#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006162/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006163 builtin and then its argument prototype would still apply. */
6164char $ac_func ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006165/* The GNU C library defines this for functions which it implements
6166 to always fail with ENOSYS. Some functions are actually named
6167 something starting with __ and the normal name is an alias. */
6168#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6169choke me
6170#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006171char (*f) () = $ac_func;
6172#endif
6173#ifdef __cplusplus
6174}
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006175#endif
6176
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006177int
6178main ()
6179{
6180return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006181 ;
6182 return 0;
6183}
6184_ACEOF
6185rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006187 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006188 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006193 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; } &&
6200 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006202 (eval $ac_try) 2>&5
6203 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006205 (exit $ac_status); }; }; then
6206 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00006207else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006208 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006209sed 's/^/| /' conftest.$ac_ext >&5
6210
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006211eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00006212fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006213rm -f conftest.err conftest.$ac_objext \
6214 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00006215fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006217echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6218if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006219 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006220#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006221_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00006222
Patrik Stridvallea584721998-11-01 16:22:07 +00006223else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006224
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006225echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006226echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6227if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00006229else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006230 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006231LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006232cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006233/* confdefs.h. */
6234_ACEOF
6235cat confdefs.h >>conftest.$ac_ext
6236cat >>conftest.$ac_ext <<_ACEOF
6237/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006238
Patrik Stridvallea584721998-11-01 16:22:07 +00006239/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006240#ifdef __cplusplus
6241extern "C"
6242#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00006243/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006244 builtin and then its argument prototype would still apply. */
6245char gethostbyname ();
6246int
6247main ()
6248{
6249gethostbyname ();
6250 ;
6251 return 0;
6252}
6253_ACEOF
6254rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006256 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006257 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006258 grep -v '^ *+' conftest.er1 >conftest.err
6259 rm -f conftest.er1
6260 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006262 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; } &&
6269 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006271 (eval $ac_try) 2>&5
6272 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006274 (exit $ac_status); }; }; then
6275 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00006276else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006277 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006278sed 's/^/| /' conftest.$ac_ext >&5
6279
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006280ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00006281fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006282rm -f conftest.err conftest.$ac_objext \
6283 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006284LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00006285fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006286echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006287echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6288if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006289 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006290#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006291_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00006292
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006293 LIBS="-lnsl $LIBS"
6294
Ron Recorde977d6c1999-09-05 12:32:05 +00006295fi
6296
Patrik Stridvallea584721998-11-01 16:22:07 +00006297fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00006298done
6299
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006300
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006301for ac_func in connect
6302do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006304echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6306if eval "test \"\${$as_ac_var+set}\" = set"; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006308else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006309 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006310/* confdefs.h. */
6311_ACEOF
6312cat confdefs.h >>conftest.$ac_ext
6313cat >>conftest.$ac_ext <<_ACEOF
6314/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6317#define $ac_func innocuous_$ac_func
6318
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006319/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006320 which can conflict with char $ac_func (); below.
6321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6322 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006323
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006324#ifdef __STDC__
6325# include <limits.h>
6326#else
6327# include <assert.h>
6328#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006329
6330#undef $ac_func
6331
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006332/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006333#ifdef __cplusplus
6334extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006335{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006336#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006337/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006338 builtin and then its argument prototype would still apply. */
6339char $ac_func ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006340/* The GNU C library defines this for functions which it implements
6341 to always fail with ENOSYS. Some functions are actually named
6342 something starting with __ and the normal name is an alias. */
6343#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6344choke me
6345#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006346char (*f) () = $ac_func;
6347#endif
6348#ifdef __cplusplus
6349}
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006350#endif
6351
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006352int
6353main ()
6354{
6355return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006356 ;
6357 return 0;
6358}
6359_ACEOF
6360rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006362 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006363 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006364 grep -v '^ *+' conftest.er1 >conftest.err
6365 rm -f conftest.er1
6366 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006368 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; } &&
6375 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006377 (eval $ac_try) 2>&5
6378 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006380 (exit $ac_status); }; }; then
6381 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006382else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006383 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006384sed 's/^/| /' conftest.$ac_ext >&5
6385
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006386eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006387fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006388rm -f conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006390fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006392echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6393if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006394 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006396_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006397
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006398else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006399
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006400echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006401echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6402if test "${ac_cv_lib_socket_connect+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006404else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006405 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006406LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006407cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006408/* confdefs.h. */
6409_ACEOF
6410cat confdefs.h >>conftest.$ac_ext
6411cat >>conftest.$ac_ext <<_ACEOF
6412/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006413
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006414/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006415#ifdef __cplusplus
6416extern "C"
6417#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006418/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006419 builtin and then its argument prototype would still apply. */
6420char connect ();
6421int
6422main ()
6423{
6424connect ();
6425 ;
6426 return 0;
6427}
6428_ACEOF
6429rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006431 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006432 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006437 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006446 (eval $ac_try) 2>&5
6447 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006449 (exit $ac_status); }; }; then
6450 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006451else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006452 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006453sed 's/^/| /' conftest.$ac_ext >&5
6454
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006455ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006456fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006457rm -f conftest.err conftest.$ac_objext \
6458 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006459LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006460fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006461echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006462echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6463if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006464 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006465#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006466_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006467
6468 LIBS="-lsocket $LIBS"
6469
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006470fi
6471
6472fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00006473done
6474
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006475
Alexandre Julliardc5552742002-04-03 20:24:44 +00006476for ac_func in inet_aton
6477do
6478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006479echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6481if eval "test \"\${$as_ac_var+set}\" = set"; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483else
6484 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006485/* confdefs.h. */
6486_ACEOF
6487cat confdefs.h >>conftest.$ac_ext
6488cat >>conftest.$ac_ext <<_ACEOF
6489/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6492#define $ac_func innocuous_$ac_func
6493
Alexandre Julliardc5552742002-04-03 20:24:44 +00006494/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006495 which can conflict with char $ac_func (); below.
6496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6497 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006498
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006499#ifdef __STDC__
6500# include <limits.h>
6501#else
6502# include <assert.h>
6503#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006504
6505#undef $ac_func
6506
Alexandre Julliardc5552742002-04-03 20:24:44 +00006507/* Override any gcc2 internal prototype to avoid an error. */
6508#ifdef __cplusplus
6509extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006510{
Alexandre Julliardc5552742002-04-03 20:24:44 +00006511#endif
6512/* We use char because int might match the return type of a gcc2
6513 builtin and then its argument prototype would still apply. */
6514char $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00006515/* The GNU C library defines this for functions which it implements
6516 to always fail with ENOSYS. Some functions are actually named
6517 something starting with __ and the normal name is an alias. */
6518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6519choke me
6520#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006521char (*f) () = $ac_func;
6522#endif
6523#ifdef __cplusplus
6524}
Alexandre Julliardc5552742002-04-03 20:24:44 +00006525#endif
6526
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006527int
6528main ()
6529{
6530return f != $ac_func;
Alexandre Julliardc5552742002-04-03 20:24:44 +00006531 ;
6532 return 0;
6533}
6534_ACEOF
6535rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006537 (eval $ac_link) 2>conftest.er1
Alexandre Julliardc5552742002-04-03 20:24:44 +00006538 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006543 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; } &&
6550 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006552 (eval $ac_try) 2>&5
6553 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006555 (exit $ac_status); }; }; then
6556 eval "$as_ac_var=yes"
6557else
6558 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006559sed 's/^/| /' conftest.$ac_ext >&5
6560
Alexandre Julliardc5552742002-04-03 20:24:44 +00006561eval "$as_ac_var=no"
6562fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006563rm -f conftest.err conftest.$ac_objext \
6564 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc5552742002-04-03 20:24:44 +00006565fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006567echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6568if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006569 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00006570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006571_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00006572
6573else
6574
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006575echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006576echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6577if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580 ac_check_lib_save_LIBS=$LIBS
6581LIBS="-lresolv $LIBS"
6582cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006583/* confdefs.h. */
6584_ACEOF
6585cat confdefs.h >>conftest.$ac_ext
6586cat >>conftest.$ac_ext <<_ACEOF
6587/* end confdefs.h. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00006588
6589/* Override any gcc2 internal prototype to avoid an error. */
6590#ifdef __cplusplus
6591extern "C"
6592#endif
6593/* We use char because int might match the return type of a gcc2
6594 builtin and then its argument prototype would still apply. */
6595char inet_aton ();
6596int
6597main ()
6598{
6599inet_aton ();
6600 ;
6601 return 0;
6602}
6603_ACEOF
6604rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006606 (eval $ac_link) 2>conftest.er1
Francois Gouget3b943bc2002-04-01 21:05:15 +00006607 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006608 grep -v '^ *+' conftest.er1 >conftest.err
6609 rm -f conftest.er1
6610 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006612 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 (eval $ac_try) 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; } &&
6619 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006621 (eval $ac_try) 2>&5
6622 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006624 (exit $ac_status); }; }; then
6625 ac_cv_lib_resolv_inet_aton=yes
6626else
6627 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006628sed 's/^/| /' conftest.$ac_ext >&5
6629
Francois Gouget3b943bc2002-04-01 21:05:15 +00006630ac_cv_lib_resolv_inet_aton=no
6631fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006632rm -f conftest.err conftest.$ac_objext \
6633 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3b943bc2002-04-01 21:05:15 +00006634LIBS=$ac_check_lib_save_LIBS
6635fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006636echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006637echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6638if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006639 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00006640#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006641_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00006642
6643 LIBS="-lresolv $LIBS"
6644
6645fi
6646
Alexandre Julliardc5552742002-04-03 20:24:44 +00006647fi
6648done
6649
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006650
6651echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006652echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6653if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6654 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006655else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006656 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006657LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006658cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006659/* confdefs.h. */
6660_ACEOF
6661cat confdefs.h >>conftest.$ac_ext
6662cat >>conftest.$ac_ext <<_ACEOF
6663/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006664
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006665/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006666#ifdef __cplusplus
6667extern "C"
6668#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006669/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006670 builtin and then its argument prototype would still apply. */
6671char _xpg4_setrunelocale ();
6672int
6673main ()
6674{
6675_xpg4_setrunelocale ();
6676 ;
6677 return 0;
6678}
6679_ACEOF
6680rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006682 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006683 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006684 grep -v '^ *+' conftest.er1 >conftest.err
6685 rm -f conftest.er1
6686 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006688 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 (eval $ac_try) 2>&5
6692 ac_status=$?
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006697 (eval $ac_try) 2>&5
6698 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006700 (exit $ac_status); }; }; then
6701 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006702else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006703 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006704sed 's/^/| /' conftest.$ac_ext >&5
6705
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006706ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006707fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006708rm -f conftest.err conftest.$ac_objext \
6709 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006710LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006711fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006712echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006713echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6714if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006715 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006716#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006717_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006718
6719 LIBS="-lxpg4 $LIBS"
6720
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006721fi
6722
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006723
6724echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6725echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6726if test "${ac_cv_lib_poll_poll+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6728else
6729 ac_check_lib_save_LIBS=$LIBS
6730LIBS="-lpoll $LIBS"
6731cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006732/* confdefs.h. */
6733_ACEOF
6734cat confdefs.h >>conftest.$ac_ext
6735cat >>conftest.$ac_ext <<_ACEOF
6736/* end confdefs.h. */
6737
6738/* Override any gcc2 internal prototype to avoid an error. */
6739#ifdef __cplusplus
6740extern "C"
6741#endif
6742/* We use char because int might match the return type of a gcc2
6743 builtin and then its argument prototype would still apply. */
6744char poll ();
6745int
6746main ()
6747{
6748poll ();
6749 ;
6750 return 0;
6751}
6752_ACEOF
6753rm -f conftest.$ac_objext conftest$ac_exeext
6754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006755 (eval $ac_link) 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006756 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006757 grep -v '^ *+' conftest.er1 >conftest.err
6758 rm -f conftest.er1
6759 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 (eval $ac_try) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; } &&
6768 { ac_try='test -s conftest$ac_exeext'
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006769 { (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); }; }; then
6774 ac_cv_lib_poll_poll=yes
6775else
6776 echo "$as_me: failed program was:" >&5
6777sed 's/^/| /' conftest.$ac_ext >&5
6778
6779ac_cv_lib_poll_poll=no
6780fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006781rm -f conftest.err conftest.$ac_objext \
6782 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006783LIBS=$ac_check_lib_save_LIBS
6784fi
6785echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6786echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6787if test $ac_cv_lib_poll_poll = yes; then
6788 cat >>confdefs.h <<_ACEOF
6789#define HAVE_LIBPOLL 1
6790_ACEOF
6791
6792 LIBS="-lpoll $LIBS"
6793
6794fi
6795
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00006796
6797echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6798echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6799if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801else
6802 ac_check_lib_save_LIBS=$LIBS
6803LIBS="-lresolv $LIBS"
6804cat >conftest.$ac_ext <<_ACEOF
6805/* confdefs.h. */
6806_ACEOF
6807cat confdefs.h >>conftest.$ac_ext
6808cat >>conftest.$ac_ext <<_ACEOF
6809/* end confdefs.h. */
6810
6811/* Override any gcc2 internal prototype to avoid an error. */
6812#ifdef __cplusplus
6813extern "C"
6814#endif
6815/* We use char because int might match the return type of a gcc2
6816 builtin and then its argument prototype would still apply. */
6817char res_9_init ();
6818int
6819main ()
6820{
6821res_9_init ();
6822 ;
6823 return 0;
6824}
6825_ACEOF
6826rm -f conftest.$ac_objext conftest$ac_exeext
6827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6828 (eval $ac_link) 2>conftest.er1
6829 ac_status=$?
6830 grep -v '^ *+' conftest.er1 >conftest.err
6831 rm -f conftest.er1
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } &&
6835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 (eval $ac_try) 2>&5
6838 ac_status=$?
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; } &&
6841 { ac_try='test -s conftest$ac_exeext'
6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 (eval $ac_try) 2>&5
6844 ac_status=$?
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); }; }; then
6847 ac_cv_lib_resolv_res_9_init=yes
6848else
6849 echo "$as_me: failed program was:" >&5
6850sed 's/^/| /' conftest.$ac_ext >&5
6851
6852ac_cv_lib_resolv_res_9_init=no
6853fi
6854rm -f conftest.err conftest.$ac_objext \
6855 conftest$ac_exeext conftest.$ac_ext
6856LIBS=$ac_check_lib_save_LIBS
6857fi
6858echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6859echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6860if test $ac_cv_lib_resolv_res_9_init = yes; then
6861 cat >>confdefs.h <<_ACEOF
6862#define HAVE_LIBRESOLV 1
6863_ACEOF
6864
6865 LIBS="-lresolv $LIBS"
6866
6867fi
6868
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006869echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6870echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6871if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006872 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006873else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006874 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006875LIBS="-lpthread $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006876cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006877/* confdefs.h. */
6878_ACEOF
6879cat confdefs.h >>conftest.$ac_ext
6880cat >>conftest.$ac_ext <<_ACEOF
6881/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006882
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006883/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006884#ifdef __cplusplus
6885extern "C"
6886#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006887/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006888 builtin and then its argument prototype would still apply. */
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006889char pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006890int
6891main ()
6892{
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006893pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006894 ;
6895 return 0;
6896}
6897_ACEOF
6898rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006900 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006901 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006902 grep -v '^ *+' conftest.er1 >conftest.err
6903 rm -f conftest.er1
6904 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006906 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909 (eval $ac_try) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; } &&
6913 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006915 (eval $ac_try) 2>&5
6916 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006918 (exit $ac_status); }; }; then
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006919 ac_cv_lib_pthread_pthread_create=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006920else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006921 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006922sed 's/^/| /' conftest.$ac_ext >&5
6923
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006924ac_cv_lib_pthread_pthread_create=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006925fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006926rm -f conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006928LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006929fi
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006930echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6931echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6932if test $ac_cv_lib_pthread_pthread_create = yes; then
6933 LIBPTHREAD="-lpthread"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006934
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006935fi
6936
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006937
Alexandre Julliard562089b2001-12-31 22:28:35 +00006938
Huw Daviese82dfab2004-08-04 19:10:26 +00006939
6940XFILES=""
6941
6942OPENGLFILES=""
6943
6944GLU32FILES=""
6945
6946OPENGL_LIBS=""
6947if test "$have_x" = "yes"
6948then
6949 XLIB="-lXext -lX11"
6950 ac_save_CPPFLAGS="$CPPFLAGS"
6951 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6952
Alexandre Julliardc6264912004-08-16 20:09:37 +00006953 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006954echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6955if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006956 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00006957else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006958 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006959/* confdefs.h. */
6960_ACEOF
6961cat confdefs.h >>conftest.$ac_ext
6962cat >>conftest.$ac_ext <<_ACEOF
6963/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006964#include <stdlib.h>
6965#include <stdarg.h>
6966#include <string.h>
6967#include <float.h>
6968
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006969int
6970main ()
6971{
6972
6973 ;
6974 return 0;
6975}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006976_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006977rm -f conftest.$ac_objext
6978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006979 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006980 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006985 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 (eval $ac_try) 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; } &&
6992 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006998 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006999else
7000 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007001sed 's/^/| /' conftest.$ac_ext >&5
7002
7003ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00007004fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007006
7007if test $ac_cv_header_stdc = yes; then
7008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7009 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007010/* confdefs.h. */
7011_ACEOF
7012cat confdefs.h >>conftest.$ac_ext
7013cat >>conftest.$ac_ext <<_ACEOF
7014/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007015#include <string.h>
7016
7017_ACEOF
7018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007019 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007020 :
7021else
7022 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00007023fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007024rm -f conftest*
7025
7026fi
7027
7028if test $ac_cv_header_stdc = yes; then
7029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7030 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007031/* confdefs.h. */
7032_ACEOF
7033cat confdefs.h >>conftest.$ac_ext
7034cat >>conftest.$ac_ext <<_ACEOF
7035/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007036#include <stdlib.h>
7037
7038_ACEOF
7039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007040 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007041 :
7042else
7043 ac_cv_header_stdc=no
7044fi
7045rm -f conftest*
7046
7047fi
7048
7049if test $ac_cv_header_stdc = yes; then
7050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7051 if test "$cross_compiling" = yes; then
7052 :
7053else
7054 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007055/* confdefs.h. */
7056_ACEOF
7057cat confdefs.h >>conftest.$ac_ext
7058cat >>conftest.$ac_ext <<_ACEOF
7059/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007060#include <ctype.h>
7061#if ((' ' & 0x0FF) == 0x020)
7062# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7063# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7064#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007065# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007066 (('a' <= (c) && (c) <= 'i') \
7067 || ('j' <= (c) && (c) <= 'r') \
7068 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007069# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7070#endif
7071
7072#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7073int
7074main ()
7075{
7076 int i;
7077 for (i = 0; i < 256; i++)
7078 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00007079 || toupper (i) != TOUPPER (i))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007080 exit(2);
7081 exit (0);
7082}
7083_ACEOF
7084rm -f conftest$ac_exeext
7085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7086 (eval $ac_link) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091 (eval $ac_try) 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7095 :
7096else
7097 echo "$as_me: program exited with status $ac_status" >&5
7098echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007099sed 's/^/| /' conftest.$ac_ext >&5
7100
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007101( exit $ac_status )
7102ac_cv_header_stdc=no
7103fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +00007104rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007105fi
7106fi
7107fi
7108echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7109echo "${ECHO_T}$ac_cv_header_stdc" >&6
7110if test $ac_cv_header_stdc = yes; then
7111
7112cat >>confdefs.h <<\_ACEOF
7113#define STDC_HEADERS 1
7114_ACEOF
7115
7116fi
7117
7118# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007129 inttypes.h stdint.h unistd.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007130do
7131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7132echo "$as_me:$LINENO: checking for $ac_header" >&5
7133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7134if eval "test \"\${$as_ac_Header+set}\" = set"; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136else
7137 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007138/* confdefs.h. */
7139_ACEOF
7140cat confdefs.h >>conftest.$ac_ext
7141cat >>conftest.$ac_ext <<_ACEOF
7142/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007143$ac_includes_default
7144
7145#include <$ac_header>
7146_ACEOF
7147rm -f conftest.$ac_objext
7148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007149 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007150 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007151 grep -v '^ *+' conftest.er1 >conftest.err
7152 rm -f conftest.er1
7153 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 (eval $ac_try) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; } &&
7162 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7164 (eval $ac_try) 2>&5
7165 ac_status=$?
7166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167 (exit $ac_status); }; }; then
7168 eval "$as_ac_Header=yes"
7169else
7170 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007171sed 's/^/| /' conftest.$ac_ext >&5
7172
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007173eval "$as_ac_Header=no"
7174fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007176fi
7177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007178echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7179if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007180 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007182_ACEOF
7183
7184fi
7185
7186done
7187
7188
7189
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007190for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007191do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007193if eval "test \"\${$as_ac_Header+set}\" = set"; then
7194 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7196if eval "test \"\${$as_ac_Header+set}\" = set"; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007198fi
7199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007201else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007202 # Is the header compilable?
7203echo "$as_me:$LINENO: checking $ac_header usability" >&5
7204echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7205cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007206/* confdefs.h. */
7207_ACEOF
7208cat confdefs.h >>conftest.$ac_ext
7209cat >>conftest.$ac_ext <<_ACEOF
7210/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007211$ac_includes_default
7212#include <$ac_header>
7213_ACEOF
7214rm -f conftest.$ac_objext
7215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007216 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007217 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007218 grep -v '^ *+' conftest.er1 >conftest.err
7219 rm -f conftest.er1
7220 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; } &&
7229 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 (eval $ac_try) 2>&5
7232 ac_status=$?
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7235 ac_header_compiler=yes
7236else
7237 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007238sed 's/^/| /' conftest.$ac_ext >&5
7239
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007240ac_header_compiler=no
7241fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007243echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7244echo "${ECHO_T}$ac_header_compiler" >&6
7245
7246# Is the header present?
7247echo "$as_me:$LINENO: checking $ac_header presence" >&5
7248echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7249cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007250/* confdefs.h. */
7251_ACEOF
7252cat confdefs.h >>conftest.$ac_ext
7253cat >>conftest.$ac_ext <<_ACEOF
7254/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007255#include <$ac_header>
7256_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7259 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007260 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007261 rm -f conftest.er1
7262 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007264 (exit $ac_status); } >/dev/null; then
7265 if test -s conftest.err; then
7266 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00007267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007268 else
7269 ac_cpp_err=
7270 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007271else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007272 ac_cpp_err=yes
7273fi
7274if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007275 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007276else
7277 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007278sed 's/^/| /' conftest.$ac_ext >&5
7279
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007280 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007281fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007282rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007283echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7284echo "${ECHO_T}$ac_header_preproc" >&6
7285
7286# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007287case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7288 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7290echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7292echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7293 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007294 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00007295 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7297echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7299echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7301echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7303echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007305echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7307echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007308 (
7309 cat <<\_ASBOX
7310## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00007311## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007312## ------------------------------------ ##
7313_ASBOX
7314 ) |
7315 sed "s/^/$as_me: WARNING: /" >&2
7316 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007317esac
7318echo "$as_me:$LINENO: checking for $ac_header" >&5
7319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7320if eval "test \"\${$as_ac_Header+set}\" = set"; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322else
Alexandre Julliard875927f2004-01-02 01:55:29 +00007323 eval "$as_ac_Header=\$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007324fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007326echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007327
7328fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007329if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007330 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007332_ACEOF
7333
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007334
Alexandre Julliard255b4862003-10-15 04:09:55 +00007335
7336
7337
7338
7339
7340
7341
7342
Aric Stewart2eebf3c2004-01-09 00:03:00 +00007343
Alexandre Julliard255b4862003-10-15 04:09:55 +00007344for ac_header in X11/XKBlib.h \
7345 X11/Xutil.h \
7346 X11/extensions/shape.h \
Aric Stewart2eebf3c2004-01-09 00:03:00 +00007347 X11/extensions/XInput.h \
Alexandre Julliard255b4862003-10-15 04:09:55 +00007348 X11/extensions/XShm.h \
7349 X11/extensions/Xrandr.h \
7350 X11/extensions/Xrender.h \
7351 X11/extensions/Xvlib.h \
7352 X11/extensions/xf86dga.h \
7353 X11/extensions/xf86vmode.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007354do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007355as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007356echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7358if eval "test \"\${$as_ac_Header+set}\" = set"; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007360else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007361 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007362/* confdefs.h. */
7363_ACEOF
7364cat confdefs.h >>conftest.$ac_ext
7365cat >>conftest.$ac_ext <<_ACEOF
7366/* end confdefs.h. */
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007367#include <X11/Xlib.h>
Alexandre Julliard255b4862003-10-15 04:09:55 +00007368 #ifdef HAVE_X11_XUTIL_H
7369 # include <X11/Xutil.h>
7370 #endif
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007371
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007372#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
Alexandre Julliarddaa28862002-04-11 21:54:01 +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
Alexandre Julliarddaa28862002-04-11 21:54:01 +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'
Alexandre Julliarddaa28862002-04-11 21:54:01 +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
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007395 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007396else
7397 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007398sed 's/^/| /' conftest.$ac_ext >&5
7399
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007400eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007401fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007403fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7406if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007407 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007408#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007409_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00007410
7411fi
7412
7413done
7414
7415
7416 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7417 then
7418 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007419echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7420if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007422else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007423 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00007424LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007425cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007426/* confdefs.h. */
7427_ACEOF
7428cat confdefs.h >>conftest.$ac_ext
7429cat >>conftest.$ac_ext <<_ACEOF
7430/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007431
Patrik Stridvall24110281999-02-04 10:09:54 +00007432/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007433#ifdef __cplusplus
7434extern "C"
7435#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007436/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007437 builtin and then its argument prototype would still apply. */
7438char XkbQueryExtension ();
7439int
7440main ()
7441{
7442XkbQueryExtension ();
7443 ;
7444 return 0;
7445}
7446_ACEOF
7447rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007449 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007450 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007455 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; } &&
7462 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007464 (eval $ac_try) 2>&5
7465 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007467 (exit $ac_status); }; }; then
7468 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007469else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007470 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007471sed 's/^/| /' conftest.$ac_ext >&5
7472
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007473ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007474fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007475rm -f conftest.err conftest.$ac_objext \
7476 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007477LIBS=$ac_check_lib_save_LIBS
7478fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007479echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007480echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7481if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007482
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007483cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007484#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007485_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007486
Patrik Stridvall24110281999-02-04 10:09:54 +00007487fi
7488
Alexandre Julliard255b4862003-10-15 04:09:55 +00007489 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007490
Alexandre Julliard255b4862003-10-15 04:09:55 +00007491 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7492 then
7493 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007494echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7495if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00007497else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007498 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00007499LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007500cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007501/* confdefs.h. */
7502_ACEOF
7503cat confdefs.h >>conftest.$ac_ext
7504cat >>conftest.$ac_ext <<_ACEOF
7505/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007506
Francois Jacques5b6879c2000-07-28 23:04:54 +00007507/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007508#ifdef __cplusplus
7509extern "C"
7510#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00007511/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007512 builtin and then its argument prototype would still apply. */
7513char XShmQueryExtension ();
7514int
7515main ()
7516{
7517XShmQueryExtension ();
7518 ;
7519 return 0;
7520}
7521_ACEOF
7522rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007524 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +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
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007530 (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'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007539 (eval $ac_try) 2>&5
7540 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007542 (exit $ac_status); }; }; then
7543 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00007544else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007545 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007546sed 's/^/| /' conftest.$ac_ext >&5
7547
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007548ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00007549fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007550rm -f conftest.err conftest.$ac_objext \
7551 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007552LIBS=$ac_check_lib_save_LIBS
7553fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007554echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007555echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7556if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00007557
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007558cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007559#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007560_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00007561
Francois Jacques5b6879c2000-07-28 23:04:54 +00007562fi
7563
Alexandre Julliard255b4862003-10-15 04:09:55 +00007564 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007565
Alexandre Julliard255b4862003-10-15 04:09:55 +00007566 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7567 then
7568 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007569echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7570if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00007572else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007573 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00007574LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007575cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007576/* confdefs.h. */
7577_ACEOF
7578cat confdefs.h >>conftest.$ac_ext
7579cat >>conftest.$ac_ext <<_ACEOF
7580/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007581
Ove Kaavenc90fb252001-01-02 22:39:14 +00007582/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007583#ifdef __cplusplus
7584extern "C"
7585#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00007586/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007587 builtin and then its argument prototype would still apply. */
7588char XShapeQueryExtension ();
7589int
7590main ()
7591{
7592XShapeQueryExtension ();
7593 ;
7594 return 0;
7595}
7596_ACEOF
7597rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007599 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007600 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007605 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608 (eval $ac_try) 2>&5
7609 ac_status=$?
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); }; } &&
7612 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007614 (eval $ac_try) 2>&5
7615 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007617 (exit $ac_status); }; }; then
7618 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00007619else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007620 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007621sed 's/^/| /' conftest.$ac_ext >&5
7622
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007623ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00007624fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007625rm -f conftest.err conftest.$ac_objext \
7626 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007627LIBS=$ac_check_lib_save_LIBS
7628fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007629echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007630echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7631if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00007632
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007633cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007634#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007635_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007636
Ove Kaavenc90fb252001-01-02 22:39:14 +00007637fi
7638
Alexandre Julliard255b4862003-10-15 04:09:55 +00007639 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007640
Alexandre Julliard255b4862003-10-15 04:09:55 +00007641 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7642 then
7643 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007644echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7645if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007647else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007648 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00007649LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007650cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007651/* confdefs.h. */
7652_ACEOF
7653cat confdefs.h >>conftest.$ac_ext
7654cat >>conftest.$ac_ext <<_ACEOF
7655/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007656
Patrik Stridvall24110281999-02-04 10:09:54 +00007657/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007658#ifdef __cplusplus
7659extern "C"
7660#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007661/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007662 builtin and then its argument prototype would still apply. */
7663char XDGAQueryExtension ();
7664int
7665main ()
7666{
7667XDGAQueryExtension ();
7668 ;
7669 return 0;
7670}
7671_ACEOF
7672rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007674 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007675 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007676 grep -v '^ *+' conftest.er1 >conftest.err
7677 rm -f conftest.er1
7678 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007680 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683 (eval $ac_try) 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; } &&
7687 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007689 (eval $ac_try) 2>&5
7690 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007692 (exit $ac_status); }; }; then
7693 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007694else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007695 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007696sed 's/^/| /' conftest.$ac_ext >&5
7697
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007698ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007699fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007700rm -f conftest.err conftest.$ac_objext \
7701 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007702LIBS=$ac_check_lib_save_LIBS
7703fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007704echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007705echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7706if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007707
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007708cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007709#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007710_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007711
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007712 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007713
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007714else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007715 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007716echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7717if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007719else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007720 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007721LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7722 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007723cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007724/* confdefs.h. */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007729
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007730/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007731#ifdef __cplusplus
7732extern "C"
7733#endif
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007734/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007735 builtin and then its argument prototype would still apply. */
7736char XF86DGAQueryExtension ();
7737int
7738main ()
7739{
7740XF86DGAQueryExtension ();
7741 ;
7742 return 0;
7743}
7744_ACEOF
7745rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007747 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007748 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007749 grep -v '^ *+' conftest.er1 >conftest.err
7750 rm -f conftest.er1
7751 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007753 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 (eval $ac_try) 2>&5
7757 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } &&
7760 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007762 (eval $ac_try) 2>&5
7763 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007765 (exit $ac_status); }; }; then
7766 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007767else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007768 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007769sed 's/^/| /' conftest.$ac_ext >&5
7770
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007771ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007772fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007773rm -f conftest.err conftest.$ac_objext \
7774 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007775LIBS=$ac_check_lib_save_LIBS
7776fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007777echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007778echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7779if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007780
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007781cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007782#define HAVE_LIBXXF86DGA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007783_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007784
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007785 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007786
Patrik Stridvall24110281999-02-04 10:09:54 +00007787fi
7788
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007789
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007790fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007791
Alexandre Julliard255b4862003-10-15 04:09:55 +00007792 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007793
Alexandre Julliard255b4862003-10-15 04:09:55 +00007794 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7795 then
7796 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007797echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7798if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007800else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007801 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00007802LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007803cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007804/* confdefs.h. */
7805_ACEOF
7806cat confdefs.h >>conftest.$ac_ext
7807cat >>conftest.$ac_ext <<_ACEOF
7808/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007809
Patrik Stridvall24110281999-02-04 10:09:54 +00007810/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007811#ifdef __cplusplus
7812extern "C"
7813#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007814/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007815 builtin and then its argument prototype would still apply. */
7816char XF86VidModeQueryExtension ();
7817int
7818main ()
7819{
7820XF86VidModeQueryExtension ();
7821 ;
7822 return 0;
7823}
7824_ACEOF
7825rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007827 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007828 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007833 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 (eval $ac_try) 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; } &&
7840 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007842 (eval $ac_try) 2>&5
7843 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007845 (exit $ac_status); }; }; then
7846 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007847else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007848 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007849sed 's/^/| /' conftest.$ac_ext >&5
7850
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007851ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007852fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007853rm -f conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007855LIBS=$ac_check_lib_save_LIBS
7856fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007857echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007858echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7859if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007860
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007861cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007862#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007863_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007864
7865 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007866
Patrik Stridvall24110281999-02-04 10:09:54 +00007867fi
7868
Alexandre Julliard255b4862003-10-15 04:09:55 +00007869 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007870
Alexandre Julliard255b4862003-10-15 04:09:55 +00007871 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7872 then
Mike McCormackc7c9f932004-04-07 03:57:35 +00007873 cat >conftest.$ac_ext <<_ACEOF
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007874/* confdefs.h. */
7875_ACEOF
7876cat confdefs.h >>conftest.$ac_ext
7877cat >>conftest.$ac_ext <<_ACEOF
7878/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00007879#include <X11/Xlib.h>
7880#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007881int
7882main ()
7883{
Mike McCormackc7c9f932004-04-07 03:57:35 +00007884static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007885 ;
7886 return 0;
7887}
7888_ACEOF
Mike McCormackc7c9f932004-04-07 03:57:35 +00007889rm -f conftest.$ac_objext
7890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7891 (eval $ac_compile) 2>conftest.er1
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007892 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 (eval $ac_try) 2>&5
7901 ac_status=$?
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); }; } &&
Mike McCormackc7c9f932004-04-07 03:57:35 +00007904 { ac_try='test -s conftest.$ac_objext'
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 (eval $ac_try) 2>&5
7907 ac_status=$?
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); }; }; then
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007910
7911cat >>confdefs.h <<\_ACEOF
7912#define HAVE_LIBXRANDR 1
7913_ACEOF
7914
Mike McCormackc7c9f932004-04-07 03:57:35 +00007915else
7916 echo "$as_me: failed program was:" >&5
7917sed 's/^/| /' conftest.$ac_ext >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007918
7919fi
Mike McCormackc7c9f932004-04-07 03:57:35 +00007920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00007921 fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00007922
Alexandre Julliard255b4862003-10-15 04:09:55 +00007923 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
7924 then
7925 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007926echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7927if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007929else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007930 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00007931LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007932cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007933/* confdefs.h. */
7934_ACEOF
7935cat confdefs.h >>conftest.$ac_ext
7936cat >>conftest.$ac_ext <<_ACEOF
7937/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007938
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007939/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007940#ifdef __cplusplus
7941extern "C"
7942#endif
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007943/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007944 builtin and then its argument prototype would still apply. */
7945char XvShmCreateImage ();
7946int
7947main ()
7948{
7949XvShmCreateImage ();
7950 ;
7951 return 0;
7952}
7953_ACEOF
7954rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007956 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007957 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007958 grep -v '^ *+' conftest.er1 >conftest.err
7959 rm -f conftest.er1
7960 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007962 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 (eval $ac_try) 2>&5
7966 ac_status=$?
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); }; } &&
7969 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007971 (eval $ac_try) 2>&5
7972 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007974 (exit $ac_status); }; }; then
7975 ac_cv_lib_Xv_XvShmCreateImage=yes
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007976else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007977 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007978sed 's/^/| /' conftest.$ac_ext >&5
7979
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007980ac_cv_lib_Xv_XvShmCreateImage=no
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007981fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007982rm -f conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007984LIBS=$ac_check_lib_save_LIBS
7985fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007986echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007987echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7988if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007989
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007990cat >>confdefs.h <<\_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007991#define HAVE_XVIDEO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007992_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007993
7994 X_PRE_LIBS="$X_PRE_LIBS -lXv"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007995
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007996fi
7997
Alexandre Julliard255b4862003-10-15 04:09:55 +00007998 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007999
8000
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008001fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008002
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008003done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008004
Alexandre Julliardb8074992002-11-21 21:51:24 +00008005 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008006 then
Francois Gouget42dcd972002-01-29 17:52:28 +00008007 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008008 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008009 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008010This prevents linking to OpenGL. Delete the file and restart configure." >&5
8011echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8012This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8013 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008014 fi
8015
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008016
8017
8018for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008019do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008021if eval "test \"\${$as_ac_Header+set}\" = set"; then
8022 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8024if eval "test \"\${$as_ac_Header+set}\" = set"; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008026fi
8027echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8028echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008029else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008030 # Is the header compilable?
8031echo "$as_me:$LINENO: checking $ac_header usability" >&5
8032echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8033cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008034/* confdefs.h. */
8035_ACEOF
8036cat confdefs.h >>conftest.$ac_ext
8037cat >>conftest.$ac_ext <<_ACEOF
8038/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008039$ac_includes_default
8040#include <$ac_header>
8041_ACEOF
8042rm -f conftest.$ac_objext
8043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008044 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008045 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008046 grep -v '^ *+' conftest.er1 >conftest.err
8047 rm -f conftest.er1
8048 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 (eval $ac_try) 2>&5
8054 ac_status=$?
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; } &&
8057 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 (eval $ac_try) 2>&5
8060 ac_status=$?
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); }; }; then
8063 ac_header_compiler=yes
8064else
8065 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008066sed 's/^/| /' conftest.$ac_ext >&5
8067
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008068ac_header_compiler=no
8069fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8072echo "${ECHO_T}$ac_header_compiler" >&6
8073
8074# Is the header present?
8075echo "$as_me:$LINENO: checking $ac_header presence" >&5
8076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8077cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008078/* confdefs.h. */
8079_ACEOF
8080cat confdefs.h >>conftest.$ac_ext
8081cat >>conftest.$ac_ext <<_ACEOF
8082/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008083#include <$ac_header>
8084_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8087 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008088 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008089 rm -f conftest.er1
8090 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008092 (exit $ac_status); } >/dev/null; then
8093 if test -s conftest.err; then
8094 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00008095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008096 else
8097 ac_cpp_err=
8098 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008099else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008100 ac_cpp_err=yes
8101fi
8102if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008103 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008104else
8105 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008106sed 's/^/| /' conftest.$ac_ext >&5
8107
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008108 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008109fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008110rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8112echo "${ECHO_T}$ac_header_preproc" >&6
8113
8114# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8116 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8121 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008122 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00008123 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8127echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8131echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008136 (
8137 cat <<\_ASBOX
8138## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00008139## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008140## ------------------------------------ ##
8141_ASBOX
8142 ) |
8143 sed "s/^/$as_me: WARNING: /" >&2
8144 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008145esac
8146echo "$as_me:$LINENO: checking for $ac_header" >&5
8147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8148if eval "test \"\${$as_ac_Header+set}\" = set"; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8150else
Alexandre Julliard875927f2004-01-02 01:55:29 +00008151 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00008152fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008155
Patrik Stridvall24110281999-02-04 10:09:54 +00008156fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008157if test `eval echo '${'$as_ac_Header'}'` = yes; then
8158 cat >>confdefs.h <<_ACEOF
8159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8160_ACEOF
8161
8162fi
8163
Patrik Stridvall24110281999-02-04 10:09:54 +00008164done
8165
Marcus Meissner22a969b2000-08-08 20:46:50 +00008166 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008167 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008168
8169for ac_header in GL/glext.h
8170do
8171as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8172echo "$as_me:$LINENO: checking for $ac_header" >&5
8173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8174if eval "test \"\${$as_ac_Header+set}\" = set"; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008178/* confdefs.h. */
8179_ACEOF
8180cat confdefs.h >>conftest.$ac_ext
8181cat >>conftest.$ac_ext <<_ACEOF
8182/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008183#include <GL/glx.h>
8184
8185#include <$ac_header>
8186_ACEOF
8187rm -f conftest.$ac_objext
8188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008189 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008190 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008191 grep -v '^ *+' conftest.er1 >conftest.err
8192 rm -f conftest.er1
8193 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 (eval $ac_try) 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; } &&
8202 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 (eval $ac_try) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8208 eval "$as_ac_Header=yes"
8209else
8210 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008211sed 's/^/| /' conftest.$ac_ext >&5
8212
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008213eval "$as_ac_Header=no"
8214fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008216fi
8217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8219if test `eval echo '${'$as_ac_Header'}'` = yes; then
8220 cat >>confdefs.h <<_ACEOF
8221#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8222_ACEOF
8223
8224fi
8225
8226done
8227
8228 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008229echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8230if test "${wine_cv_opengl_version_OK+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008232else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008233 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008234/* confdefs.h. */
8235_ACEOF
8236cat confdefs.h >>conftest.$ac_ext
8237cat >>conftest.$ac_ext <<_ACEOF
8238/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008239#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008240int
8241main ()
8242{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008243GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008244 ;
8245 return 0;
8246}
8247_ACEOF
8248rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008250 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008251 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008252 grep -v '^ *+' conftest.er1 >conftest.err
8253 rm -f conftest.er1
8254 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008256 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; } &&
8263 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008265 (eval $ac_try) 2>&5
8266 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008268 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008269 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008270else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008271 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008272sed 's/^/| /' conftest.$ac_ext >&5
8273
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008274wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008275
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008276fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00008278
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008279fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008280echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008281echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8282
Alexandre Julliardb8074992002-11-21 21:51:24 +00008283 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008284 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008285 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008286echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8287if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008289else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008290 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00008291LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008292cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008293/* confdefs.h. */
8294_ACEOF
8295cat confdefs.h >>conftest.$ac_ext
8296cat >>conftest.$ac_ext <<_ACEOF
8297/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008298
Patrik Stridvall24110281999-02-04 10:09:54 +00008299/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008300#ifdef __cplusplus
8301extern "C"
8302#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00008303/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008304 builtin and then its argument prototype would still apply. */
8305char glXCreateContext ();
8306int
8307main ()
8308{
8309glXCreateContext ();
8310 ;
8311 return 0;
8312}
8313_ACEOF
8314rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008316 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008317 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008318 grep -v '^ *+' conftest.er1 >conftest.err
8319 rm -f conftest.er1
8320 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008322 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; } &&
8329 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008331 (eval $ac_try) 2>&5
8332 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008334 (exit $ac_status); }; }; then
8335 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008336else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008337 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008338sed 's/^/| /' conftest.$ac_ext >&5
8339
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008340ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008341fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008342rm -f conftest.err conftest.$ac_objext \
8343 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008344LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008345fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008346echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008347echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8348if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008349 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00008350
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008351fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008352
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008353
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008354 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008355 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008356 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008357
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008358cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008359#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008360_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008361
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008362
8363 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008364echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8365if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008367else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008368 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008369LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008370cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008371/* confdefs.h. */
8372_ACEOF
8373cat confdefs.h >>conftest.$ac_ext
8374cat >>conftest.$ac_ext <<_ACEOF
8375/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008376
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008377/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008378#ifdef __cplusplus
8379extern "C"
8380#endif
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008381/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008382 builtin and then its argument prototype would still apply. */
8383char glXGetProcAddressARB ();
8384int
8385main ()
8386{
8387glXGetProcAddressARB ();
8388 ;
8389 return 0;
8390}
8391_ACEOF
8392rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008394 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008395 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008396 grep -v '^ *+' conftest.er1 >conftest.err
8397 rm -f conftest.er1
8398 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008400 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; } &&
8407 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008409 (eval $ac_try) 2>&5
8410 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008412 (exit $ac_status); }; }; then
8413 ac_cv_lib_GL_glXGetProcAddressARB=yes
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008414else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008415 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008416sed 's/^/| /' conftest.$ac_ext >&5
8417
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008418ac_cv_lib_GL_glXGetProcAddressARB=no
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008419fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008420rm -f conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008422LIBS=$ac_check_lib_save_LIBS
8423fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008424echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008425echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8426if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008427
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008428cat >>confdefs.h <<\_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008429#define HAVE_GLX_GETPROCADDRESS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008430_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008431
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008432fi
8433
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008434
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008435 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008436 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008437 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008438echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8439if test "${wine_cv_extension_prototypes+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer1434d872000-07-23 14:23:31 +00008441else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008442 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008443/* confdefs.h. */
8444_ACEOF
8445cat confdefs.h >>conftest.$ac_ext
8446cat >>conftest.$ac_ext <<_ACEOF
8447/* end confdefs.h. */
Lionel Ulmer1434d872000-07-23 14:23:31 +00008448#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008449 #ifdef HAVE_GL_GLEXT_H
8450 # include <GL/glext.h>
8451 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008452
8453int
8454main ()
8455{
Lionel Ulmer1434d872000-07-23 14:23:31 +00008456PFNGLCOLORTABLEEXTPROC test_proc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008457 ;
8458 return 0;
8459}
8460_ACEOF
8461rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008463 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008464 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008465 grep -v '^ *+' conftest.er1 >conftest.err
8466 rm -f conftest.er1
8467 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008469 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 (eval $ac_try) 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; } &&
8476 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008478 (eval $ac_try) 2>&5
8479 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008481 (exit $ac_status); }; }; then
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008482 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00008483else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008484 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008485sed 's/^/| /' conftest.$ac_ext >&5
8486
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008487wine_cv_extension_prototypes="no"
Lionel Ulmer1434d872000-07-23 14:23:31 +00008488
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008489fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008491
8492fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008493echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008494echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008495 if test "$wine_cv_extension_prototypes" = "yes"
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008496 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008497
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008498cat >>confdefs.h <<\_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008499#define HAVE_GLEXT_PROTOTYPES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008500_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008501
8502 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008503 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00008504
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008505 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008506 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008507echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8508if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8509 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008510else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008511 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008512LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008513 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008514cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008515/* confdefs.h. */
8516_ACEOF
8517cat confdefs.h >>conftest.$ac_ext
8518cat >>conftest.$ac_ext <<_ACEOF
8519/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008520
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008521/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008522#ifdef __cplusplus
8523extern "C"
8524#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008525/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008526 builtin and then its argument prototype would still apply. */
8527char gluLookAt ();
8528int
8529main ()
8530{
8531gluLookAt ();
8532 ;
8533 return 0;
8534}
8535_ACEOF
8536rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008538 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008539 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008544 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008553 (eval $ac_try) 2>&5
8554 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008556 (exit $ac_status); }; }; then
8557 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008558else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008559 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008560sed 's/^/| /' conftest.$ac_ext >&5
8561
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008562ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008563fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008564rm -f conftest.err conftest.$ac_objext \
8565 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008566LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008567fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008568echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008569echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8570if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008571 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008572 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008573
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008574fi
8575
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008576 fi
Jacek Cabanef799c42003-12-02 04:11:09 +00008577
8578 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8579echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8580if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582else
8583 ac_check_lib_save_LIBS=$LIBS
Jacek Caban5e69f112003-12-03 20:26:43 +00008584LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
Jacek Cabanef799c42003-12-02 04:11:09 +00008585cat >conftest.$ac_ext <<_ACEOF
Jacek Cabanef799c42003-12-02 04:11:09 +00008586/* confdefs.h. */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h. */
8591
8592/* Override any gcc2 internal prototype to avoid an error. */
8593#ifdef __cplusplus
8594extern "C"
8595#endif
8596/* We use char because int might match the return type of a gcc2
8597 builtin and then its argument prototype would still apply. */
8598char glutMainLoop ();
8599int
8600main ()
8601{
8602glutMainLoop ();
8603 ;
8604 return 0;
8605}
8606_ACEOF
8607rm -f conftest.$ac_objext conftest$ac_exeext
8608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008609 (eval $ac_link) 2>conftest.er1
Jacek Cabanef799c42003-12-02 04:11:09 +00008610 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
Jacek Cabanef799c42003-12-02 04:11:09 +00008614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try='test -s conftest$ac_exeext'
Jacek Cabanef799c42003-12-02 04:11:09 +00008623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 (eval $ac_try) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
8628 ac_cv_lib_glut_glutMainLoop=yes
8629else
8630 echo "$as_me: failed program was:" >&5
8631sed 's/^/| /' conftest.$ac_ext >&5
8632
8633ac_cv_lib_glut_glutMainLoop=no
8634fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008635rm -f conftest.err conftest.$ac_objext \
8636 conftest$ac_exeext conftest.$ac_ext
Jacek Cabanef799c42003-12-02 04:11:09 +00008637LIBS=$ac_check_lib_save_LIBS
8638fi
8639echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8640echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8641if test $ac_cv_lib_glut_glutMainLoop = yes; then
Jacek Caban5e69f112003-12-03 20:26:43 +00008642 GLUT_LIBS="-lglut -lXmu -lXi"
Jacek Cabanef799c42003-12-02 04:11:09 +00008643
8644 GLUT32FILES='$(GLUT32FILES)'
8645
8646fi
8647
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008648 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008649 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008650
Francois Gouget6f670b12002-10-10 17:54:27 +00008651 NASLIBS=""
8652
8653
8654for ac_header in audio/audiolib.h
8655do
8656as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658 echo "$as_me:$LINENO: checking for $ac_header" >&5
8659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8660if eval "test \"\${$as_ac_Header+set}\" = set"; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662fi
8663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8665else
8666 # Is the header compilable?
8667echo "$as_me:$LINENO: checking $ac_header usability" >&5
8668echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8669cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008670/* confdefs.h. */
8671_ACEOF
8672cat confdefs.h >>conftest.$ac_ext
8673cat >>conftest.$ac_ext <<_ACEOF
8674/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008675$ac_includes_default
8676#include <$ac_header>
8677_ACEOF
8678rm -f conftest.$ac_objext
8679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008680 (eval $ac_compile) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00008681 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008682 grep -v '^ *+' conftest.er1 >conftest.err
8683 rm -f conftest.er1
8684 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00008685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; } &&
8693 { ac_try='test -s conftest.$ac_objext'
Francois Gouget6f670b12002-10-10 17:54:27 +00008694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695 (eval $ac_try) 2>&5
8696 ac_status=$?
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_header_compiler=yes
8700else
8701 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008702sed 's/^/| /' conftest.$ac_ext >&5
8703
Francois Gouget6f670b12002-10-10 17:54:27 +00008704ac_header_compiler=no
8705fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008707echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8708echo "${ECHO_T}$ac_header_compiler" >&6
8709
8710# Is the header present?
8711echo "$as_me:$LINENO: checking $ac_header presence" >&5
8712echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8713cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008714/* confdefs.h. */
8715_ACEOF
8716cat confdefs.h >>conftest.$ac_ext
8717cat >>conftest.$ac_ext <<_ACEOF
8718/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008719#include <$ac_header>
8720_ACEOF
8721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } >/dev/null; then
8729 if test -s conftest.err; then
8730 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00008731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Francois Gouget6f670b12002-10-10 17:54:27 +00008732 else
8733 ac_cpp_err=
8734 fi
8735else
8736 ac_cpp_err=yes
8737fi
8738if test -z "$ac_cpp_err"; then
8739 ac_header_preproc=yes
8740else
8741 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008742sed 's/^/| /' conftest.$ac_ext >&5
8743
Francois Gouget6f670b12002-10-10 17:54:27 +00008744 ac_header_preproc=no
8745fi
8746rm -f conftest.err conftest.$ac_ext
8747echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8748echo "${ECHO_T}$ac_header_preproc" >&6
8749
8750# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008751case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8752 yes:no: )
Francois Gouget6f670b12002-10-10 17:54:27 +00008753 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8754echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8756echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8757 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008758 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00008759 no:yes:* )
Francois Gouget6f670b12002-10-10 17:54:27 +00008760 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8761echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008762 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8763echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8765echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8767echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Francois Gouget6f670b12002-10-10 17:54:27 +00008768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008769echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008770 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8771echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008772 (
8773 cat <<\_ASBOX
8774## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00008775## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008776## ------------------------------------ ##
8777_ASBOX
8778 ) |
8779 sed "s/^/$as_me: WARNING: /" >&2
8780 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00008781esac
8782echo "$as_me:$LINENO: checking for $ac_header" >&5
8783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8784if eval "test \"\${$as_ac_Header+set}\" = set"; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8786else
Alexandre Julliard875927f2004-01-02 01:55:29 +00008787 eval "$as_ac_Header=\$ac_header_preproc"
Francois Gouget6f670b12002-10-10 17:54:27 +00008788fi
8789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8791
8792fi
8793if test `eval echo '${'$as_ac_Header'}'` = yes; then
8794 cat >>confdefs.h <<_ACEOF
8795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8796_ACEOF
8797
8798for ac_header in audio/soundlib.h
8799do
8800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8801echo "$as_me:$LINENO: checking for $ac_header" >&5
8802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8803if eval "test \"\${$as_ac_Header+set}\" = set"; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8805else
8806 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008807/* confdefs.h. */
8808_ACEOF
8809cat confdefs.h >>conftest.$ac_ext
8810cat >>conftest.$ac_ext <<_ACEOF
8811/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008812#include <audio/audiolib.h>
8813
8814#include <$ac_header>
8815_ACEOF
8816rm -f conftest.$ac_objext
8817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008818 (eval $ac_compile) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00008819 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00008823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827 (eval $ac_try) 2>&5
8828 ac_status=$?
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); }; } &&
8831 { ac_try='test -s conftest.$ac_objext'
Francois Gouget6f670b12002-10-10 17:54:27 +00008832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 (eval $ac_try) 2>&5
8834 ac_status=$?
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8837 eval "$as_ac_Header=yes"
8838else
8839 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008840sed 's/^/| /' conftest.$ac_ext >&5
8841
Francois Gouget6f670b12002-10-10 17:54:27 +00008842eval "$as_ac_Header=no"
8843fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008845fi
8846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8847echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8848if test `eval echo '${'$as_ac_Header'}'` = yes; then
8849 cat >>confdefs.h <<_ACEOF
8850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8851_ACEOF
8852
8853fi
8854
8855done
8856
8857 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8858echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8859if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8861else
8862 ac_check_lib_save_LIBS=$LIBS
8863LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8864cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008865/* confdefs.h. */
8866_ACEOF
8867cat confdefs.h >>conftest.$ac_ext
8868cat >>conftest.$ac_ext <<_ACEOF
8869/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008870
8871/* Override any gcc2 internal prototype to avoid an error. */
8872#ifdef __cplusplus
8873extern "C"
8874#endif
8875/* We use char because int might match the return type of a gcc2
8876 builtin and then its argument prototype would still apply. */
8877char AuCreateFlow ();
8878int
8879main ()
8880{
8881AuCreateFlow ();
8882 ;
8883 return 0;
8884}
8885_ACEOF
8886rm -f conftest.$ac_objext conftest$ac_exeext
8887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008888 (eval $ac_link) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00008889 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00008893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 (eval $ac_try) 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; } &&
8901 { ac_try='test -s conftest$ac_exeext'
Francois Gouget6f670b12002-10-10 17:54:27 +00008902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903 (eval $ac_try) 2>&5
8904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; }; then
8907 ac_cv_lib_audio_AuCreateFlow=yes
8908else
8909 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008910sed 's/^/| /' conftest.$ac_ext >&5
8911
Francois Gouget6f670b12002-10-10 17:54:27 +00008912ac_cv_lib_audio_AuCreateFlow=no
8913fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008914rm -f conftest.err conftest.$ac_objext \
8915 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008916LIBS=$ac_check_lib_save_LIBS
8917fi
8918echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8919echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8920if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8921
8922cat >>confdefs.h <<\_ACEOF
8923#define HAVE_NAS 1
8924_ACEOF
8925
8926 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8927fi
8928
8929fi
8930
8931done
8932
8933
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008934 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00008935 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00008936else
8937 XLIB=""
8938 X_CFLAGS=""
8939 X_LIBS=""
8940fi
Alexandre Julliard902da691995-11-05 14:39:02 +00008941
Alexandre Julliard48957682001-12-26 23:08:31 +00008942CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008943if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00008944then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008945
8946for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008947do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008948as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008949if eval "test \"\${$as_ac_Header+set}\" = set"; then
8950 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8952if eval "test \"\${$as_ac_Header+set}\" = set"; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008954fi
8955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8956echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008957else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008958 # Is the header compilable?
8959echo "$as_me:$LINENO: checking $ac_header usability" >&5
8960echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8961cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008962/* confdefs.h. */
8963_ACEOF
8964cat confdefs.h >>conftest.$ac_ext
8965cat >>conftest.$ac_ext <<_ACEOF
8966/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008967$ac_includes_default
8968#include <$ac_header>
8969_ACEOF
8970rm -f conftest.$ac_objext
8971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008972 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008973 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008974 grep -v '^ *+' conftest.er1 >conftest.err
8975 rm -f conftest.er1
8976 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; } &&
8985 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 (eval $ac_try) 2>&5
8988 ac_status=$?
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 (exit $ac_status); }; }; then
8991 ac_header_compiler=yes
8992else
8993 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008994sed 's/^/| /' conftest.$ac_ext >&5
8995
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008996ac_header_compiler=no
8997fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008999echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9000echo "${ECHO_T}$ac_header_compiler" >&6
9001
9002# Is the header present?
9003echo "$as_me:$LINENO: checking $ac_header presence" >&5
9004echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9005cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009006/* confdefs.h. */
9007_ACEOF
9008cat confdefs.h >>conftest.$ac_ext
9009cat >>conftest.$ac_ext <<_ACEOF
9010/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009011#include <$ac_header>
9012_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9015 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009016 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009017 rm -f conftest.er1
9018 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009020 (exit $ac_status); } >/dev/null; then
9021 if test -s conftest.err; then
9022 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009024 else
9025 ac_cpp_err=
9026 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009027else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009028 ac_cpp_err=yes
9029fi
9030if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009031 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009032else
9033 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009034sed 's/^/| /' conftest.$ac_ext >&5
9035
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009036 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009037fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009038rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009039echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9040echo "${ECHO_T}$ac_header_preproc" >&6
9041
9042# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9044 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009045 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9046echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9048echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9049 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009050 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009051 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009052 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9053echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009054 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9055echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9056 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9057echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9058 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9059echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009061echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009062 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9063echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009064 (
9065 cat <<\_ASBOX
9066## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009067## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009068## ------------------------------------ ##
9069_ASBOX
9070 ) |
9071 sed "s/^/$as_me: WARNING: /" >&2
9072 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009073esac
9074echo "$as_me:$LINENO: checking for $ac_header" >&5
9075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9076if eval "test \"\${$as_ac_Header+set}\" = set"; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009079 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00009080fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009083
9084fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009085if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009086 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009088_ACEOF
9089 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009090echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9091if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009093else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009094 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009095LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009096cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009097/* confdefs.h. */
9098_ACEOF
9099cat confdefs.h >>conftest.$ac_ext
9100cat >>conftest.$ac_ext <<_ACEOF
9101/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009102
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009103/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009104#ifdef __cplusplus
9105extern "C"
9106#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009107/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009108 builtin and then its argument prototype would still apply. */
9109char waddch ();
9110int
9111main ()
9112{
9113waddch ();
9114 ;
9115 return 0;
9116}
9117_ACEOF
9118rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009120 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009121 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009122 grep -v '^ *+' conftest.er1 >conftest.err
9123 rm -f conftest.er1
9124 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009126 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; } &&
9133 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009135 (eval $ac_try) 2>&5
9136 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009138 (exit $ac_status); }; }; then
9139 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009140else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009141 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009142sed 's/^/| /' conftest.$ac_ext >&5
9143
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009144ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009145fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009146rm -f conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009148LIBS=$ac_check_lib_save_LIBS
9149fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009150echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009151echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9152if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009153
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009154cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00009155#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009156_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009157
Alexandre Julliard48957682001-12-26 23:08:31 +00009158 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00009159else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009160
9161for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00009162do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009164if eval "test \"\${$as_ac_Header+set}\" = set"; then
9165 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9167if eval "test \"\${$as_ac_Header+set}\" = set"; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009169fi
9170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9171echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009172else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009173 # Is the header compilable?
9174echo "$as_me:$LINENO: checking $ac_header usability" >&5
9175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9176cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009177/* confdefs.h. */
9178_ACEOF
9179cat confdefs.h >>conftest.$ac_ext
9180cat >>conftest.$ac_ext <<_ACEOF
9181/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009182$ac_includes_default
9183#include <$ac_header>
9184_ACEOF
9185rm -f conftest.$ac_objext
9186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009187 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009188 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009189 grep -v '^ *+' conftest.er1 >conftest.err
9190 rm -f conftest.er1
9191 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 (eval $ac_try) 2>&5
9197 ac_status=$?
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; } &&
9200 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 (eval $ac_try) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
9206 ac_header_compiler=yes
9207else
9208 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009209sed 's/^/| /' conftest.$ac_ext >&5
9210
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009211ac_header_compiler=no
9212fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009214echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9215echo "${ECHO_T}$ac_header_compiler" >&6
9216
9217# Is the header present?
9218echo "$as_me:$LINENO: checking $ac_header presence" >&5
9219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9220cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009221/* confdefs.h. */
9222_ACEOF
9223cat confdefs.h >>conftest.$ac_ext
9224cat >>conftest.$ac_ext <<_ACEOF
9225/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009226#include <$ac_header>
9227_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009228if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9230 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009231 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009232 rm -f conftest.er1
9233 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009235 (exit $ac_status); } >/dev/null; then
9236 if test -s conftest.err; then
9237 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009239 else
9240 ac_cpp_err=
9241 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009242else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009243 ac_cpp_err=yes
9244fi
9245if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009246 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009247else
9248 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009249sed 's/^/| /' conftest.$ac_ext >&5
9250
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009251 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009252fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009253rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009254echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9255echo "${ECHO_T}$ac_header_preproc" >&6
9256
9257# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009258case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9259 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9261echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9263echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9264 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009265 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009266 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9268echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9270echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9272echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9274echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009276echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9278echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009279 (
9280 cat <<\_ASBOX
9281## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009282## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009283## ------------------------------------ ##
9284_ASBOX
9285 ) |
9286 sed "s/^/$as_me: WARNING: /" >&2
9287 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009288esac
9289echo "$as_me:$LINENO: checking for $ac_header" >&5
9290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9291if eval "test \"\${$as_ac_Header+set}\" = set"; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9293else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009294 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00009295fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009298
9299fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009300if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009301 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009302#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009303_ACEOF
9304 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009305echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9306if test "${ac_cv_lib_curses_waddch+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009308else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009309 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009310LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009311cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009312/* confdefs.h. */
9313_ACEOF
9314cat confdefs.h >>conftest.$ac_ext
9315cat >>conftest.$ac_ext <<_ACEOF
9316/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009317
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009318/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009319#ifdef __cplusplus
9320extern "C"
9321#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009322/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009323 builtin and then its argument prototype would still apply. */
9324char waddch ();
9325int
9326main ()
9327{
9328waddch ();
9329 ;
9330 return 0;
9331}
9332_ACEOF
9333rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009335 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009336 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009337 grep -v '^ *+' conftest.er1 >conftest.err
9338 rm -f conftest.er1
9339 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009341 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; } &&
9348 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009350 (eval $ac_try) 2>&5
9351 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009353 (exit $ac_status); }; }; then
9354 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009355else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009356 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009357sed 's/^/| /' conftest.$ac_ext >&5
9358
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009359ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009360fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009361rm -f conftest.err conftest.$ac_objext \
9362 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009363LIBS=$ac_check_lib_save_LIBS
9364fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009365echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009366echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9367if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009368
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009369cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00009370#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009371_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009372
Alexandre Julliard48957682001-12-26 23:08:31 +00009373 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009374fi
9375
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009376fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009377
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009378done
9379
9380fi
Alexandre Julliard48957682001-12-26 23:08:31 +00009381
Alexandre Julliard48957682001-12-26 23:08:31 +00009382fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009383
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009384done
9385
Alexandre Julliard48957682001-12-26 23:08:31 +00009386 saved_libs="$LIBS"
9387 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009388
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009389
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009390for ac_func in getbkgd resizeterm
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009391do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009392as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009393echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009394echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9395if eval "test \"\${$as_ac_var+set}\" = set"; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard638f1691999-01-17 16:32:32 +00009397else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009398 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009399/* confdefs.h. */
9400_ACEOF
9401cat confdefs.h >>conftest.$ac_ext
9402cat >>conftest.$ac_ext <<_ACEOF
9403/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00009404/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9406#define $ac_func innocuous_$ac_func
9407
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009408/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009409 which can conflict with char $ac_func (); below.
9410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9411 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00009412
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009413#ifdef __STDC__
9414# include <limits.h>
9415#else
9416# include <assert.h>
9417#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00009418
9419#undef $ac_func
9420
Alexandre Julliard638f1691999-01-17 16:32:32 +00009421/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009422#ifdef __cplusplus
9423extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009424{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009425#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00009426/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009427 builtin and then its argument prototype would still apply. */
9428char $ac_func ();
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009429/* The GNU C library defines this for functions which it implements
9430 to always fail with ENOSYS. Some functions are actually named
9431 something starting with __ and the normal name is an alias. */
9432#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9433choke me
9434#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009435char (*f) () = $ac_func;
9436#endif
9437#ifdef __cplusplus
9438}
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009439#endif
9440
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009441int
9442main ()
9443{
9444return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009445 ;
9446 return 0;
9447}
9448_ACEOF
9449rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009451 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009452 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009457 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 (eval $ac_try) 2>&5
9461 ac_status=$?
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; } &&
9464 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009466 (eval $ac_try) 2>&5
9467 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009469 (exit $ac_status); }; }; then
9470 eval "$as_ac_var=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00009471else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009472 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009473sed 's/^/| /' conftest.$ac_ext >&5
9474
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009475eval "$as_ac_var=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00009476fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009477rm -f conftest.err conftest.$ac_objext \
9478 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard638f1691999-01-17 16:32:32 +00009479fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009481echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9482if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009483 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009485_ACEOF
Alexandre Julliard638f1691999-01-17 16:32:32 +00009486
Alexandre Julliard638f1691999-01-17 16:32:32 +00009487fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009488done
Alexandre Julliard638f1691999-01-17 16:32:32 +00009489
Alexandre Julliard48957682001-12-26 23:08:31 +00009490 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009491fi
9492
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009493
Shi Quan He6b0720f2002-03-21 02:58:39 +00009494# Extract the first word of "sane-config", so it can be a program name with args.
9495set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009496echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9498if test "${ac_cv_prog_sane_devel+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500else
9501 if test -n "$sane_devel"; then
9502 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9503else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9505for as_dir in $PATH
9506do
9507 IFS=$as_save_IFS
9508 test -z "$as_dir" && as_dir=.
9509 for ac_exec_ext in '' $ac_executable_extensions; do
9510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9511 ac_cv_prog_sane_devel="sane-config"
9512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9513 break 2
9514 fi
9515done
Shi Quan He6b0720f2002-03-21 02:58:39 +00009516done
9517
9518 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9519fi
9520fi
9521sane_devel=$ac_cv_prog_sane_devel
9522if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009523 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009524echo "${ECHO_T}$sane_devel" >&6
9525else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009526 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009527echo "${ECHO_T}no" >&6
9528fi
9529
9530if test "$sane_devel" = "no"
9531then
9532 SANELIBS=""
9533 SANEINCL=""
9534else
9535 SANELIBS="`$sane_devel --libs`"
9536 SANEINCL="`$sane_devel --cflags`"
9537 ac_save_CPPFLAGS="$CPPFLAGS"
9538 ac_save_LIBS="$LIBS"
9539 CPPFLAGS="$CPPFLAGS $SANEINCL"
9540 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009541 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9542 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009543echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9544if test "${ac_cv_header_sane_sane_h+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009546fi
9547echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9548echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009549else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009550 # Is the header compilable?
9551echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9552echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9553cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009554/* confdefs.h. */
9555_ACEOF
9556cat confdefs.h >>conftest.$ac_ext
9557cat >>conftest.$ac_ext <<_ACEOF
9558/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009559$ac_includes_default
9560#include <sane/sane.h>
9561_ACEOF
9562rm -f conftest.$ac_objext
9563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009564 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009565 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009566 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1
9568 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573 (eval $ac_try) 2>&5
9574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; } &&
9577 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579 (eval $ac_try) 2>&5
9580 ac_status=$?
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; }; then
9583 ac_header_compiler=yes
9584else
9585 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009586sed 's/^/| /' conftest.$ac_ext >&5
9587
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009588ac_header_compiler=no
9589fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009591echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9592echo "${ECHO_T}$ac_header_compiler" >&6
9593
9594# Is the header present?
9595echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9596echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9597cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009598/* confdefs.h. */
9599_ACEOF
9600cat confdefs.h >>conftest.$ac_ext
9601cat >>conftest.$ac_ext <<_ACEOF
9602/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009603#include <sane/sane.h>
9604_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009605if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9607 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009608 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +00009609 rm -f conftest.er1
9610 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009612 (exit $ac_status); } >/dev/null; then
9613 if test -s conftest.err; then
9614 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Shi Quan He6b0720f2002-03-21 02:58:39 +00009616 else
9617 ac_cpp_err=
9618 fi
9619else
9620 ac_cpp_err=yes
9621fi
9622if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009623 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +00009624else
9625 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009626sed 's/^/| /' conftest.$ac_ext >&5
9627
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009628 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +00009629fi
9630rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009631echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9632echo "${ECHO_T}$ac_header_preproc" >&6
9633
9634# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9636 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009637 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9638echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009639 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9640echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9641 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009642 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009643 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009644 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9645echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009646 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9647echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9649echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9650 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
9651echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009652 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009653echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009654 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9655echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009656 (
9657 cat <<\_ASBOX
9658## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009659## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009660## ------------------------------------ ##
9661_ASBOX
9662 ) |
9663 sed "s/^/$as_me: WARNING: /" >&2
9664 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009665esac
9666echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9667echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9668if test "${ac_cv_header_sane_sane_h+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9670else
9671 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +00009672fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009673echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009674echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009675
9676fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009677if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009678 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009679echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9680if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9682else
9683 ac_check_lib_save_LIBS=$LIBS
9684LIBS="-lsane $LIBS"
9685cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009686/* confdefs.h. */
9687_ACEOF
9688cat confdefs.h >>conftest.$ac_ext
9689cat >>conftest.$ac_ext <<_ACEOF
9690/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009691
9692/* Override any gcc2 internal prototype to avoid an error. */
9693#ifdef __cplusplus
9694extern "C"
9695#endif
9696/* We use char because int might match the return type of a gcc2
9697 builtin and then its argument prototype would still apply. */
9698char sane_open ();
9699int
9700main ()
9701{
9702sane_open ();
9703 ;
9704 return 0;
9705}
9706_ACEOF
9707rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009709 (eval $ac_link) 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +00009710 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009715 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 (eval $ac_try) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; } &&
9722 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009724 (eval $ac_try) 2>&5
9725 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009727 (exit $ac_status); }; }; then
9728 ac_cv_lib_sane_sane_open=yes
9729else
9730 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009731sed 's/^/| /' conftest.$ac_ext >&5
9732
Shi Quan He6b0720f2002-03-21 02:58:39 +00009733ac_cv_lib_sane_sane_open=no
9734fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009735rm -f conftest.err conftest.$ac_objext \
9736 conftest$ac_exeext conftest.$ac_ext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009737LIBS=$ac_check_lib_save_LIBS
9738fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009739echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009740echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9741if test $ac_cv_lib_sane_sane_open = yes; then
9742
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009743cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009744#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009745_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009746
9747else
9748 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +00009749 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009750fi
9751
Alexandre Julliard96328b32002-03-31 19:23:41 +00009752else
9753 SANELIBS=""
9754 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009755fi
9756
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009757
Shi Quan He6b0720f2002-03-21 02:58:39 +00009758 LIBS="$ac_save_LIBS"
9759 CPPFLAGS="$ac_save_CPPFLAGS"
9760fi
9761
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009762
9763
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009764
9765for ac_header in unicode/ubidi.h
9766do
9767as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9768if eval "test \"\${$as_ac_Header+set}\" = set"; then
9769 echo "$as_me:$LINENO: checking for $ac_header" >&5
9770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9771if eval "test \"\${$as_ac_Header+set}\" = set"; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773fi
9774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9776else
9777 # Is the header compilable?
9778echo "$as_me:$LINENO: checking $ac_header usability" >&5
9779echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9780cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009781/* confdefs.h. */
9782_ACEOF
9783cat confdefs.h >>conftest.$ac_ext
9784cat >>conftest.$ac_ext <<_ACEOF
9785/* end confdefs.h. */
9786$ac_includes_default
9787#include <$ac_header>
9788_ACEOF
9789rm -f conftest.$ac_objext
9790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009791 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009792 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009793 grep -v '^ *+' conftest.er1 >conftest.err
9794 rm -f conftest.er1
9795 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 (eval $ac_try) 2>&5
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 (eval $ac_try) 2>&5
9807 ac_status=$?
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 ac_header_compiler=yes
9811else
9812 echo "$as_me: failed program was:" >&5
9813sed 's/^/| /' conftest.$ac_ext >&5
9814
9815ac_header_compiler=no
9816fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9819echo "${ECHO_T}$ac_header_compiler" >&6
9820
9821# Is the header present?
9822echo "$as_me:$LINENO: checking $ac_header presence" >&5
9823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9824cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009825/* confdefs.h. */
9826_ACEOF
9827cat confdefs.h >>conftest.$ac_ext
9828cat >>conftest.$ac_ext <<_ACEOF
9829/* end confdefs.h. */
9830#include <$ac_header>
9831_ACEOF
9832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } >/dev/null; then
9840 if test -s conftest.err; then
9841 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009843 else
9844 ac_cpp_err=
9845 fi
9846else
9847 ac_cpp_err=yes
9848fi
9849if test -z "$ac_cpp_err"; then
9850 ac_header_preproc=yes
9851else
9852 echo "$as_me: failed program was:" >&5
9853sed 's/^/| /' conftest.$ac_ext >&5
9854
9855 ac_header_preproc=no
9856fi
9857rm -f conftest.err conftest.$ac_ext
9858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9859echo "${ECHO_T}$ac_header_preproc" >&6
9860
9861# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9863 yes:no: )
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9867echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9868 ac_header_preproc=yes
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009869 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009870 no:yes:* )
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9872echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9874echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9876echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9878echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9882echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009883 (
9884 cat <<\_ASBOX
9885## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009886## Report this to wine-devel@winehq.org ##
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009887## ------------------------------------ ##
9888_ASBOX
9889 ) |
9890 sed "s/^/$as_me: WARNING: /" >&2
9891 ;;
9892esac
9893echo "$as_me:$LINENO: checking for $ac_header" >&5
9894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9895if eval "test \"\${$as_ac_Header+set}\" = set"; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009898 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009899fi
9900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9901echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9902
9903fi
9904if test `eval echo '${'$as_ac_Header'}'` = yes; then
9905 cat >>confdefs.h <<_ACEOF
9906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9907_ACEOF
9908
9909fi
9910
9911done
9912
9913if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9914then
Marcus Meissnerbc624582004-01-18 22:15:46 +00009915 saved_libs="$LIBS"
9916 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
Shachar Shemesh9f2627e2004-04-06 20:13:21 +00009917 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
9918 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
9919 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
9920echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +00009921 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9922 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009923/* confdefs.h. */
9924_ACEOF
9925cat confdefs.h >>conftest.$ac_ext
9926cat >>conftest.$ac_ext <<_ACEOF
9927/* end confdefs.h. */
9928#include <unicode/ubidi.h>
9929int
9930main ()
9931{
9932ubidi_open()
9933 ;
9934 return 0;
9935}
9936_ACEOF
9937rm -f conftest.$ac_objext conftest$ac_exeext
9938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009939 (eval $ac_link) 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009940 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 (eval $ac_try) 2>&5
9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; } &&
9952 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954 (eval $ac_try) 2>&5
9955 ac_status=$?
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009958
9959cat >>confdefs.h <<\_ACEOF
9960#define HAVE_ICU 1
9961_ACEOF
9962
Marcus Meissnerbc624582004-01-18 22:15:46 +00009963 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009964
Shachar Shemesh9f2627e2004-04-06 20:13:21 +00009965 echo "$as_me:$LINENO: result: yes" >&5
9966echo "${ECHO_T}yes" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +00009967else
9968 echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
Shachar Shemesh9f2627e2004-04-06 20:13:21 +00009971echo "$as_me:$LINENO: result: no" >&5
9972echo "${ECHO_T}no" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +00009973fi
9974rm -f conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 LIBS="$saved_libs"
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009977fi
9978
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009979echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009980echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9981if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009983else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009984 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00009985LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009986cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009987/* confdefs.h. */
9988_ACEOF
9989cat confdefs.h >>conftest.$ac_ext
9990cat >>conftest.$ac_ext <<_ACEOF
9991/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009992
Ian Pilcher563598d2001-05-16 20:56:05 +00009993/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009994#ifdef __cplusplus
9995extern "C"
9996#endif
Ian Pilcher563598d2001-05-16 20:56:05 +00009997/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009998 builtin and then its argument prototype would still apply. */
9999char FT_Init_FreeType ();
10000int
10001main ()
10002{
10003FT_Init_FreeType ();
10004 ;
10005 return 0;
10006}
10007_ACEOF
10008rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010010 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010011 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010016 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010025 (eval $ac_try) 2>&5
10026 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010028 (exit $ac_status); }; }; then
10029 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010030else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010031 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010032sed 's/^/| /' conftest.$ac_ext >&5
10033
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010034ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010035fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010036rm -f conftest.err conftest.$ac_objext \
10037 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010038LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010039fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010040echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010041echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10042if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +000010043 ft_lib=yes
10044else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010045 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010046fi
10047
10048if test "$ft_lib" = "no"
10049then
Huw Davies00acb5f2004-08-17 22:33:14 +000010050 FREETYPELIBS=""
Ian Pilcher563598d2001-05-16 20:56:05 +000010051 FREETYPEINCL=""
10052 wine_cv_msg_freetype=no
10053else
10054 # Extract the first word of "freetype-config", so it can be a program name with args.
10055set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010056echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10058if test "${ac_cv_prog_ft_devel+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010060else
10061 if test -n "$ft_devel"; then
10062 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10063else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065for as_dir in $PATH
10066do
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10071 ac_cv_prog_ft_devel="freetype-config"
10072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10073 break 2
10074 fi
10075done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010076done
10077
Ian Pilcher563598d2001-05-16 20:56:05 +000010078 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10079fi
10080fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010081ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +000010082if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010083 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010084echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010085else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010086 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010087echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010088fi
10089
10090 if test "$ft_devel" = "no"
10091 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010092 # Extract the first word of "freetype2-config", so it can be a program name with args.
10093set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010094echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10096if test "${ac_cv_prog_ft_devel2+set}" = set; then
10097 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010098else
10099 if test -n "$ft_devel2"; then
10100 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10101else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103for as_dir in $PATH
10104do
10105 IFS=$as_save_IFS
10106 test -z "$as_dir" && as_dir=.
10107 for ac_exec_ext in '' $ac_executable_extensions; do
10108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10109 ac_cv_prog_ft_devel2="freetype2-config"
10110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10111 break 2
10112 fi
10113done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010114done
10115
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010116 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10117fi
10118fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010119ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010120if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010121 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010122echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010123else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010124 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010125echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010126fi
10127
10128 if test "$ft_devel2" = "freetype2-config"
10129 then
10130 ft_devel=$ft_devel2
10131 fi
10132 fi
10133 if test "$ft_devel" = "no"
10134 then
Huw Davies00acb5f2004-08-17 22:33:14 +000010135 FREETYPELIBS=""
Ian Pilcher563598d2001-05-16 20:56:05 +000010136 FREETYPEINCL=""
10137 wine_cv_msg_freetype=yes
10138 else
Huw Davies00acb5f2004-08-17 22:33:14 +000010139 FREETYPELIBS=`$ft_devel --libs`
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010140 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +000010141 ac_save_CPPFLAGS="$CPPFLAGS"
10142 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010143
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010144
10145
10146
10147
10148
10149
10150
Rein Klazese617a9c2003-11-19 02:18:13 +000010151
Huw Daviesc2217182004-06-16 20:06:26 +000010152
Rein Klazese617a9c2003-11-19 02:18:13 +000010153for ac_header in ft2build.h \
10154 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010155 freetype/ftglyph.h \
10156 freetype/tttables.h \
10157 freetype/ftnames.h \
10158 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010159 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010160 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010161 freetype/ftwinfnt.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010162 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +000010163do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010164as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Rein Klazes9c269172003-11-20 04:17:33 +000010165echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10167if eval "test \"\${$as_ac_Header+set}\" = set"; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010169else
Rein Klazes9c269172003-11-20 04:17:33 +000010170 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010171/* confdefs.h. */
10172_ACEOF
10173cat confdefs.h >>conftest.$ac_ext
10174cat >>conftest.$ac_ext <<_ACEOF
10175/* end confdefs.h. */
Rein Klazes9c269172003-11-20 04:17:33 +000010176#if HAVE_FT2BUILD_H
10177 #include <ft2build.h>
10178 #endif
10179
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010180#include <$ac_header>
10181_ACEOF
10182rm -f conftest.$ac_objext
10183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010184 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010185 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010186 grep -v '^ *+' conftest.er1 >conftest.err
10187 rm -f conftest.er1
10188 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; } &&
10197 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199 (eval $ac_try) 2>&5
10200 ac_status=$?
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; }; then
Rein Klazes9c269172003-11-20 04:17:33 +000010203 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010204else
10205 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010206sed 's/^/| /' conftest.$ac_ext >&5
10207
Rein Klazes9c269172003-11-20 04:17:33 +000010208eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010209fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010211fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010213echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010214if test `eval echo '${'$as_ac_Header'}'` = yes; then
10215 cat >>confdefs.h <<_ACEOF
10216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10217_ACEOF
10218
10219fi
10220
Ian Pilcher40432fe2001-06-06 21:05:23 +000010221done
10222
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010223 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010224/* confdefs.h. */
10225_ACEOF
10226cat confdefs.h >>conftest.$ac_ext
10227cat >>conftest.$ac_ext <<_ACEOF
10228/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010229#include <ft2build.h>
10230 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010231_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010232if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10234 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010235 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010236 rm -f conftest.er1
10237 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010239 (exit $ac_status); } >/dev/null; then
10240 if test -s conftest.err; then
10241 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010243 else
10244 ac_cpp_err=
10245 fi
10246else
10247 ac_cpp_err=yes
10248fi
10249if test -z "$ac_cpp_err"; then
10250
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010251cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000010252#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010253_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000010254
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010255 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010256else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010257 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010258sed 's/^/| /' conftest.$ac_ext >&5
10259
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010260 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010261fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010262rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +000010263 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010264 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010265 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010266
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010267cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010268#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010269_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010270
10271 wine_cv_msg_freetype=no
10272 else
Huw Davies00acb5f2004-08-17 22:33:14 +000010273 FREETYPELIBS=""
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010274 FREETYPEINCL=""
10275 wine_cv_msg_freetype=yes
10276 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010277 fi
10278fi
10279
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010280
Huw Davies00acb5f2004-08-17 22:33:14 +000010281
10282if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10283then
10284 FONTSSUBDIRS="fonts"
10285
10286fi
10287
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010288echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010289echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10290if test "${ac_cv_c_ppdev+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010292else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010293 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010294/* confdefs.h. */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010299#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010300int
10301main ()
10302{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010303ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010304 ;
10305 return 0;
10306}
10307_ACEOF
10308rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010310 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010311 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010312 grep -v '^ *+' conftest.er1 >conftest.err
10313 rm -f conftest.er1
10314 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010316 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010325 (eval $ac_try) 2>&5
10326 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010328 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010329 ac_cv_c_ppdev="yes"
10330else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010331 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010332sed 's/^/| /' conftest.$ac_ext >&5
10333
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010334ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010335fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010337
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010338fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010339echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010340echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010341if test "$ac_cv_c_ppdev" = "yes"
10342then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010343
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010344cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010345#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010346_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010347
10348fi
10349
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010350echo "$as_me:$LINENO: checking for va_copy" >&5
10351echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10352if test "${ac_cv_c_va_copy+set}" = set; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10354else
10355 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010356/* confdefs.h. */
10357_ACEOF
10358cat confdefs.h >>conftest.$ac_ext
10359cat >>conftest.$ac_ext <<_ACEOF
10360/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010361#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010362int
10363main ()
10364{
10365va_list ap1, ap2;
10366 va_copy(ap1,ap2);
10367
10368 ;
10369 return 0;
10370}
10371_ACEOF
10372rm -f conftest.$ac_objext conftest$ac_exeext
10373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010374 (eval $ac_link) 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010375 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; } &&
10387 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; }; then
10393 ac_cv_c_va_copy="yes"
10394else
10395 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010396sed 's/^/| /' conftest.$ac_ext >&5
10397
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010398ac_cv_c_va_copy="no"
10399fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010400rm -f conftest.err conftest.$ac_objext \
10401 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010402
10403fi
10404echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10405echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10406if test "$ac_cv_c_va_copy" = "yes"
10407then
10408
10409cat >>confdefs.h <<\_ACEOF
10410#define HAVE_VA_COPY 1
10411_ACEOF
10412
10413fi
10414echo "$as_me:$LINENO: checking for __va_copy" >&5
10415echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10416if test "${ac_cv_c___va_copy+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
10418else
10419 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010420/* confdefs.h. */
10421_ACEOF
10422cat confdefs.h >>conftest.$ac_ext
10423cat >>conftest.$ac_ext <<_ACEOF
10424/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010425#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010426int
10427main ()
10428{
10429va_list ap1, ap2;
10430 __va_copy(ap1,ap2);
10431
10432 ;
10433 return 0;
10434}
10435_ACEOF
10436rm -f conftest.$ac_objext conftest$ac_exeext
10437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010438 (eval $ac_link) 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010439 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; } &&
10451 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 ac_cv_c___va_copy="yes"
10458else
10459 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010460sed 's/^/| /' conftest.$ac_ext >&5
10461
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010462ac_cv_c___va_copy="no"
10463fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010464rm -f conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010466
10467fi
10468echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10469echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10470if test "$ac_cv_c___va_copy" = "yes"
10471then
10472
10473cat >>confdefs.h <<\_ACEOF
10474#define HAVE___VA_COPY 1
10475_ACEOF
10476
10477fi
10478
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010479echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10480echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10481if test "${ac_cv_c_sigsetjmp+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10483else
10484 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010485/* confdefs.h. */
10486_ACEOF
10487cat confdefs.h >>conftest.$ac_ext
10488cat >>conftest.$ac_ext <<_ACEOF
10489/* end confdefs.h. */
10490#include <setjmp.h>
10491int
10492main ()
10493{
10494sigjmp_buf buf;
10495 sigsetjmp( buf, 1 );
10496 siglongjmp( buf, 1 );
10497 ;
10498 return 0;
10499}
10500_ACEOF
10501rm -f conftest.$ac_objext conftest$ac_exeext
10502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010503 (eval $ac_link) 2>conftest.er1
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010504 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010505 grep -v '^ *+' conftest.er1 >conftest.err
10506 rm -f conftest.er1
10507 cat conftest.err >&5
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; } &&
10516 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_cv_c_sigsetjmp="yes"
10523else
10524 echo "$as_me: failed program was:" >&5
10525sed 's/^/| /' conftest.$ac_ext >&5
10526
10527ac_cv_c_sigsetjmp="no"
10528fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010529rm -f conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010531
10532fi
10533echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10534echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10535if test "$ac_cv_c_sigsetjmp" = "yes"
10536then
10537
10538cat >>confdefs.h <<\_ACEOF
10539#define HAVE_SIGSETJMP 1
10540_ACEOF
10541
10542fi
10543
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010544echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10545echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10546if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10548else
10549 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010550/* confdefs.h. */
10551_ACEOF
10552cat confdefs.h >>conftest.$ac_ext
10553cat >>conftest.$ac_ext <<_ACEOF
10554/* end confdefs.h. */
10555#define _GNU_SOURCE
10556#include <pthread.h>
10557
10558int
10559main ()
10560{
10561if ((pthread_rwlock_t *) 0)
10562 return 0;
10563if (sizeof (pthread_rwlock_t))
10564 return 0;
10565 ;
10566 return 0;
10567}
10568_ACEOF
10569rm -f conftest.$ac_objext
10570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010571 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010572 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010573 grep -v '^ *+' conftest.er1 >conftest.err
10574 rm -f conftest.er1
10575 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_cv_type_pthread_rwlock_t=yes
10591else
10592 echo "$as_me: failed program was:" >&5
10593sed 's/^/| /' conftest.$ac_ext >&5
10594
10595ac_cv_type_pthread_rwlock_t=no
10596fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010598fi
10599echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10600echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10601if test $ac_cv_type_pthread_rwlock_t = yes; then
10602
10603cat >>confdefs.h <<_ACEOF
10604#define HAVE_PTHREAD_RWLOCK_T 1
10605_ACEOF
10606
10607
10608fi
10609echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10610echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10611if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10612 echo $ECHO_N "(cached) $ECHO_C" >&6
10613else
10614 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010615/* confdefs.h. */
10616_ACEOF
10617cat confdefs.h >>conftest.$ac_ext
10618cat >>conftest.$ac_ext <<_ACEOF
10619/* end confdefs.h. */
10620#define _GNU_SOURCE
10621#include <pthread.h>
10622
10623int
10624main ()
10625{
10626if ((pthread_rwlockattr_t *) 0)
10627 return 0;
10628if (sizeof (pthread_rwlockattr_t))
10629 return 0;
10630 ;
10631 return 0;
10632}
10633_ACEOF
10634rm -f conftest.$ac_objext
10635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010636 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010637 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645 (eval $ac_try) 2>&5
10646 ac_status=$?
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; } &&
10649 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_cv_type_pthread_rwlockattr_t=yes
10656else
10657 echo "$as_me: failed program was:" >&5
10658sed 's/^/| /' conftest.$ac_ext >&5
10659
10660ac_cv_type_pthread_rwlockattr_t=no
10661fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010663fi
10664echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10665echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10666if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10667
10668cat >>confdefs.h <<_ACEOF
10669#define HAVE_PTHREAD_RWLOCKATTR_T 1
10670_ACEOF
10671
10672
10673fi
10674
10675
Alexandre Julliard821ab862003-11-12 22:44:56 +000010676ac_save_LIBS="$LIBS"
10677LIBS="$LIBS $LIBPTHREAD"
10678
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010679
10680
10681for ac_func in \
10682 pthread_getattr_np \
10683 pthread_get_stackaddr_np \
10684 pthread_get_stacksize_np \
10685
Alexandre Julliard821ab862003-11-12 22:44:56 +000010686do
10687as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10688echo "$as_me:$LINENO: checking for $ac_func" >&5
10689echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10690if eval "test \"\${$as_ac_var+set}\" = set"; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10692else
10693 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard821ab862003-11-12 22:44:56 +000010694/* confdefs.h. */
10695_ACEOF
10696cat confdefs.h >>conftest.$ac_ext
10697cat >>conftest.$ac_ext <<_ACEOF
10698/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000010699/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10701#define $ac_func innocuous_$ac_func
10702
Alexandre Julliard821ab862003-11-12 22:44:56 +000010703/* System header to define __stub macros and hopefully few prototypes,
10704 which can conflict with char $ac_func (); below.
10705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10706 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000010707
Alexandre Julliard821ab862003-11-12 22:44:56 +000010708#ifdef __STDC__
10709# include <limits.h>
10710#else
10711# include <assert.h>
10712#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000010713
10714#undef $ac_func
10715
Alexandre Julliard821ab862003-11-12 22:44:56 +000010716/* Override any gcc2 internal prototype to avoid an error. */
10717#ifdef __cplusplus
10718extern "C"
10719{
10720#endif
10721/* We use char because int might match the return type of a gcc2
10722 builtin and then its argument prototype would still apply. */
10723char $ac_func ();
10724/* The GNU C library defines this for functions which it implements
10725 to always fail with ENOSYS. Some functions are actually named
10726 something starting with __ and the normal name is an alias. */
10727#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10728choke me
10729#else
10730char (*f) () = $ac_func;
10731#endif
10732#ifdef __cplusplus
10733}
10734#endif
10735
10736int
10737main ()
10738{
10739return f != $ac_func;
10740 ;
10741 return 0;
10742}
10743_ACEOF
10744rm -f conftest.$ac_objext conftest$ac_exeext
10745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010746 (eval $ac_link) 2>conftest.er1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010747 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000010751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; } &&
10759 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard821ab862003-11-12 22:44:56 +000010760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 eval "$as_ac_var=yes"
10766else
10767 echo "$as_me: failed program was:" >&5
10768sed 's/^/| /' conftest.$ac_ext >&5
10769
10770eval "$as_ac_var=no"
10771fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010772rm -f conftest.err conftest.$ac_objext \
10773 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard821ab862003-11-12 22:44:56 +000010774fi
10775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10776echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10777if test `eval echo '${'$as_ac_var'}'` = yes; then
10778 cat >>confdefs.h <<_ACEOF
10779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10780_ACEOF
10781
10782fi
10783done
10784
10785LIBS="$ac_save_LIBS"
10786
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010787
10788
10789
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010790for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010791do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010793if eval "test \"\${$as_ac_Header+set}\" = set"; then
10794 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10796if eval "test \"\${$as_ac_Header+set}\" = set"; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010798fi
10799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010801else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010802 # Is the header compilable?
10803echo "$as_me:$LINENO: checking $ac_header usability" >&5
10804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10805cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010806/* confdefs.h. */
10807_ACEOF
10808cat confdefs.h >>conftest.$ac_ext
10809cat >>conftest.$ac_ext <<_ACEOF
10810/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010811$ac_includes_default
10812#include <$ac_header>
10813_ACEOF
10814rm -f conftest.$ac_objext
10815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010816 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010817 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825 (eval $ac_try) 2>&5
10826 ac_status=$?
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); }; } &&
10829 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10831 (eval $ac_try) 2>&5
10832 ac_status=$?
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); }; }; then
10835 ac_header_compiler=yes
10836else
10837 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010838sed 's/^/| /' conftest.$ac_ext >&5
10839
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010840ac_header_compiler=no
10841fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010843echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10844echo "${ECHO_T}$ac_header_compiler" >&6
10845
10846# Is the header present?
10847echo "$as_me:$LINENO: checking $ac_header presence" >&5
10848echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10849cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010850/* confdefs.h. */
10851_ACEOF
10852cat confdefs.h >>conftest.$ac_ext
10853cat >>conftest.$ac_ext <<_ACEOF
10854/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010855#include <$ac_header>
10856_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010857if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10859 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010860 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010861 rm -f conftest.er1
10862 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010864 (exit $ac_status); } >/dev/null; then
10865 if test -s conftest.err; then
10866 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010868 else
10869 ac_cpp_err=
10870 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010871else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010872 ac_cpp_err=yes
10873fi
10874if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010875 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010876else
10877 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010878sed 's/^/| /' conftest.$ac_ext >&5
10879
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010880 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010881fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010882rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010883echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10884echo "${ECHO_T}$ac_header_preproc" >&6
10885
10886# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10888 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10890echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10892echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10893 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010894 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000010895 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10897echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10899echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10901echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10903echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010905echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10907echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010908 (
10909 cat <<\_ASBOX
10910## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000010911## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010912## ------------------------------------ ##
10913_ASBOX
10914 ) |
10915 sed "s/^/$as_me: WARNING: /" >&2
10916 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010917esac
10918echo "$as_me:$LINENO: checking for $ac_header" >&5
10919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10920if eval "test \"\${$as_ac_Header+set}\" = set"; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10922else
Alexandre Julliard875927f2004-01-02 01:55:29 +000010923 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010924fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010927
10928fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010929if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010930 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010932_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +000010933 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010934fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010935
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010936done
10937
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010938
10939echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010940echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10941if test "${ac_cv_c_opensoundsystem+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010943else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010944 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010945/* confdefs.h. */
10946_ACEOF
10947cat confdefs.h >>conftest.$ac_ext
10948cat >>conftest.$ac_ext <<_ACEOF
10949/* end confdefs.h. */
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010950
Todd Vierlingecc76691998-12-15 17:49:02 +000010951 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010952 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +000010953 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010954 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +000010955 #elif defined(HAVE_SOUNDCARD_H)
10956 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010957 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010958
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010959int
10960main ()
10961{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010962
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010963
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000010964/* check for one of the Open Sound System specific SNDCTL_ defines */
10965#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010966#error No open sound system
10967#endif
10968
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010969 ;
10970 return 0;
10971}
10972_ACEOF
10973rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010975 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010976 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010977 grep -v '^ *+' conftest.er1 >conftest.err
10978 rm -f conftest.er1
10979 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010981 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; } &&
10988 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010990 (eval $ac_try) 2>&5
10991 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010993 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010994 ac_cv_c_opensoundsystem="yes"
10995else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010996 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010997sed 's/^/| /' conftest.$ac_ext >&5
10998
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010999ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011000fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011002fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011003echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011004echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011005
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000011006if test "$ac_cv_c_opensoundsystem" = "yes"
11007then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011008
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011009cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000011010#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011011_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000011012
11013fi
11014
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011015echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011016echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11017if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000011019else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011020 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011021/* confdefs.h. */
11022_ACEOF
11023cat confdefs.h >>conftest.$ac_ext
11024cat >>conftest.$ac_ext <<_ACEOF
11025/* end confdefs.h. */
Eric Pouech338d3b21999-05-22 18:52:21 +000011026
11027 #if defined(HAVE_SYS_SOUNDCARD_H)
11028 #include <sys/soundcard.h>
11029 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11030 #include <machine/soundcard.h>
11031 #elif defined(HAVE_SOUNDCARD_H)
11032 #include <soundcard.h>
11033 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +000011034
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011035int
11036main ()
11037{
Eric Pouech338d3b21999-05-22 18:52:21 +000011038
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011039
Eric Pouech338d3b21999-05-22 18:52:21 +000011040/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11041#if !defined(SNDCTL_SEQ_SYNC)
11042#error No open sound system MIDI interface
11043#endif
11044
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011045 ;
11046 return 0;
11047}
11048_ACEOF
11049rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011051 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011052 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011057 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; } &&
11064 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011066 (eval $ac_try) 2>&5
11067 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011069 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +000011070 ac_cv_c_opensoundsystem_midi="yes"
11071else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011072 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011073sed 's/^/| /' conftest.$ac_ext >&5
11074
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011075ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +000011076fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +000011078fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011079echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011080echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000011081
11082if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11083then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011084
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011085cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000011086#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011087_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000011088
11089fi
11090
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011091# Extract the first word of "artsc-config", so it can be a program name with args.
11092set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011093echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11095if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097else
11098 case $ARTSCCONFIG in
11099 [\\/]* | ?:[\\/]*)
11100 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11101 ;;
11102 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11104for as_dir in $PATH
11105do
11106 IFS=$as_save_IFS
11107 test -z "$as_dir" && as_dir=.
11108 for ac_exec_ext in '' $ac_executable_extensions; do
11109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11110 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11112 break 2
11113 fi
11114done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011115done
11116
11117 ;;
11118esac
11119fi
11120ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11121
11122if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011123 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011124echo "${ECHO_T}$ARTSCCONFIG" >&6
11125else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011126 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011127echo "${ECHO_T}no" >&6
11128fi
11129
Marcus Meissnerbc624582004-01-18 22:15:46 +000011130if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11131then
Alexandre Julliardb3b12cf2004-02-24 01:24:20 +000011132 ARTSC_CFLAGS=""
11133 for i in `$ARTSCCONFIG --cflags`
11134 do
11135 case "$i" in
11136 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11137 esac
11138 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000011139 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11140 save_CFLAGS="$CFLAGS"
11141 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11142 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011143/* confdefs.h. */
11144_ACEOF
11145cat confdefs.h >>conftest.$ac_ext
11146cat >>conftest.$ac_ext <<_ACEOF
11147/* end confdefs.h. */
Marcus Meissnerbc624582004-01-18 22:15:46 +000011148#include <artsc.h>
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011149int
11150main ()
11151{
Marcus Meissnerbc624582004-01-18 22:15:46 +000011152arts_stream_t stream;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011153 ;
11154 return 0;
11155}
11156_ACEOF
11157rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011159 (eval $ac_compile) 2>conftest.er1
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011160 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011161 grep -v '^ *+' conftest.er1 >conftest.err
11162 rm -f conftest.er1
11163 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011165 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011174 (eval $ac_try) 2>&5
11175 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011177 (exit $ac_status); }; }; then
Marcus Meissnerbc624582004-01-18 22:15:46 +000011178 ARTSLIBS=$ARTSC_LIBS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011179
Marcus Meissnerbc624582004-01-18 22:15:46 +000011180 ARTSINCL=$ARTSC_CFLAGS
11181
11182
11183cat >>confdefs.h <<\_ACEOF
11184#define HAVE_ARTS 1
11185_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011186
11187else
11188 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011189sed 's/^/| /' conftest.$ac_ext >&5
11190
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011191fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissnerbc624582004-01-18 22:15:46 +000011193 CFLAGS="$save_CFLAGS"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011194fi
11195
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011196ALSALIBS=""
11197
11198
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011199
11200for ac_header in alsa/asoundlib.h sys/asoundlib.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011201do
11202as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11203if eval "test \"\${$as_ac_Header+set}\" = set"; then
11204 echo "$as_me:$LINENO: checking for $ac_header" >&5
11205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11206if eval "test \"\${$as_ac_Header+set}\" = set"; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208fi
11209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11211else
11212 # Is the header compilable?
11213echo "$as_me:$LINENO: checking $ac_header usability" >&5
11214echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11215cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011216/* confdefs.h. */
11217_ACEOF
11218cat confdefs.h >>conftest.$ac_ext
11219cat >>conftest.$ac_ext <<_ACEOF
11220/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011221$ac_includes_default
11222#include <$ac_header>
11223_ACEOF
11224rm -f conftest.$ac_objext
11225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011226 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011227 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_header_compiler=yes
11246else
11247 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011248sed 's/^/| /' conftest.$ac_ext >&5
11249
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011250ac_header_compiler=no
11251fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011253echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11254echo "${ECHO_T}$ac_header_compiler" >&6
11255
11256# Is the header present?
11257echo "$as_me:$LINENO: checking $ac_header presence" >&5
11258echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11259cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011260/* confdefs.h. */
11261_ACEOF
11262cat confdefs.h >>conftest.$ac_ext
11263cat >>conftest.$ac_ext <<_ACEOF
11264/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011265#include <$ac_header>
11266_ACEOF
11267if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11269 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011270 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } >/dev/null; then
11275 if test -s conftest.err; then
11276 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011278 else
11279 ac_cpp_err=
11280 fi
11281else
11282 ac_cpp_err=yes
11283fi
11284if test -z "$ac_cpp_err"; then
11285 ac_header_preproc=yes
11286else
11287 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011288sed 's/^/| /' conftest.$ac_ext >&5
11289
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011290 ac_header_preproc=no
11291fi
11292rm -f conftest.err conftest.$ac_ext
11293echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11294echo "${ECHO_T}$ac_header_preproc" >&6
11295
11296# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011297case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11298 yes:no: )
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11300echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11302echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11303 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011304 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011305 no:yes:* )
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11307echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11309echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11311echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11313echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011315echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11317echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011318 (
11319 cat <<\_ASBOX
11320## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011321## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011322## ------------------------------------ ##
11323_ASBOX
11324 ) |
11325 sed "s/^/$as_me: WARNING: /" >&2
11326 ;;
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011327esac
11328echo "$as_me:$LINENO: checking for $ac_header" >&5
11329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11330if eval "test \"\${$as_ac_Header+set}\" = set"; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11332else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011333 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011334fi
11335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11337
11338fi
11339if test `eval echo '${'$as_ac_Header'}'` = yes; then
11340 cat >>confdefs.h <<_ACEOF
11341#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11342_ACEOF
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011343 break
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011344fi
11345
11346done
11347
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011348if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011349then
11350 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11351echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11352if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354else
11355 ac_check_lib_save_LIBS=$LIBS
11356LIBS="-lasound $LIBS"
11357cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011358/* confdefs.h. */
11359_ACEOF
11360cat confdefs.h >>conftest.$ac_ext
11361cat >>conftest.$ac_ext <<_ACEOF
11362/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011363
11364/* Override any gcc2 internal prototype to avoid an error. */
11365#ifdef __cplusplus
11366extern "C"
11367#endif
11368/* We use char because int might match the return type of a gcc2
11369 builtin and then its argument prototype would still apply. */
11370char snd_pcm_open ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011371int
11372main ()
11373{
11374snd_pcm_open ();
11375 ;
11376 return 0;
11377}
11378_ACEOF
11379rm -f conftest.$ac_objext conftest$ac_exeext
11380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011381 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011382 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011383 grep -v '^ *+' conftest.er1 >conftest.err
11384 rm -f conftest.er1
11385 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; } &&
11394 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 ac_cv_lib_asound_snd_pcm_open=yes
11401else
11402 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011403sed 's/^/| /' conftest.$ac_ext >&5
11404
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011405ac_cv_lib_asound_snd_pcm_open=no
11406fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011407rm -f conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011409LIBS=$ac_check_lib_save_LIBS
11410fi
11411echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11412echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11413if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11414
11415cat >>confdefs.h <<\_ACEOF
11416#define HAVE_ALSA 1
11417_ACEOF
11418
11419 ALSALIBS="-lasound"
11420fi
11421
11422fi
11423
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011424
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011425AUDIOIOLIBS=""
11426
11427
11428for ac_header in libaudioio.h
11429do
11430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11431if eval "test \"\${$as_ac_Header+set}\" = set"; then
11432 echo "$as_me:$LINENO: checking for $ac_header" >&5
11433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11434if eval "test \"\${$as_ac_Header+set}\" = set"; then
11435 echo $ECHO_N "(cached) $ECHO_C" >&6
11436fi
11437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11439else
11440 # Is the header compilable?
11441echo "$as_me:$LINENO: checking $ac_header usability" >&5
11442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11443cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011444/* confdefs.h. */
11445_ACEOF
11446cat confdefs.h >>conftest.$ac_ext
11447cat >>conftest.$ac_ext <<_ACEOF
11448/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011449$ac_includes_default
11450#include <$ac_header>
11451_ACEOF
11452rm -f conftest.$ac_objext
11453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011454 (eval $ac_compile) 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011455 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011456 grep -v '^ *+' conftest.er1 >conftest.err
11457 rm -f conftest.er1
11458 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; } &&
11467 { ac_try='test -s conftest.$ac_objext'
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
11473 ac_header_compiler=yes
11474else
11475 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011476sed 's/^/| /' conftest.$ac_ext >&5
11477
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011478ac_header_compiler=no
11479fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011481echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11482echo "${ECHO_T}$ac_header_compiler" >&6
11483
11484# Is the header present?
11485echo "$as_me:$LINENO: checking $ac_header presence" >&5
11486echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11487cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011488/* confdefs.h. */
11489_ACEOF
11490cat confdefs.h >>conftest.$ac_ext
11491cat >>conftest.$ac_ext <<_ACEOF
11492/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011493#include <$ac_header>
11494_ACEOF
11495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11497 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011498 grep -v '^ *+' conftest.er1 >conftest.err
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } >/dev/null; then
11503 if test -s conftest.err; then
11504 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011506 else
11507 ac_cpp_err=
11508 fi
11509else
11510 ac_cpp_err=yes
11511fi
11512if test -z "$ac_cpp_err"; then
11513 ac_header_preproc=yes
11514else
11515 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011516sed 's/^/| /' conftest.$ac_ext >&5
11517
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011518 ac_header_preproc=no
11519fi
11520rm -f conftest.err conftest.$ac_ext
11521echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11522echo "${ECHO_T}$ac_header_preproc" >&6
11523
11524# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11526 yes:no: )
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11528echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11530echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11531 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011532 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011533 no:yes:* )
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11535echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11537echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11539echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11541echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011543echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11545echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011546 (
11547 cat <<\_ASBOX
11548## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011549## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011550## ------------------------------------ ##
11551_ASBOX
11552 ) |
11553 sed "s/^/$as_me: WARNING: /" >&2
11554 ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011555esac
11556echo "$as_me:$LINENO: checking for $ac_header" >&5
11557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11558if eval "test \"\${$as_ac_Header+set}\" = set"; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11560else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011561 eval "$as_ac_Header=\$ac_header_preproc"
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011562fi
11563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11565
11566fi
11567if test `eval echo '${'$as_ac_Header'}'` = yes; then
11568 cat >>confdefs.h <<_ACEOF
11569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11570_ACEOF
11571 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11572echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11573if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576 ac_check_lib_save_LIBS=$LIBS
11577LIBS="-laudioio $LIBS"
11578cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011579/* confdefs.h. */
11580_ACEOF
11581cat confdefs.h >>conftest.$ac_ext
11582cat >>conftest.$ac_ext <<_ACEOF
11583/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011584
11585/* Override any gcc2 internal prototype to avoid an error. */
11586#ifdef __cplusplus
11587extern "C"
11588#endif
11589/* We use char because int might match the return type of a gcc2
11590 builtin and then its argument prototype would still apply. */
11591char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011592int
11593main ()
11594{
11595AudioIOGetVersion ();
11596 ;
11597 return 0;
11598}
11599_ACEOF
11600rm -f conftest.$ac_objext conftest$ac_exeext
11601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011602 (eval $ac_link) 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011603 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011604 grep -v '^ *+' conftest.er1 >conftest.err
11605 rm -f conftest.er1
11606 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11612 ac_status=$?
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; } &&
11615 { ac_try='test -s conftest$ac_exeext'
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; }; then
11621 ac_cv_lib_audioio_AudioIOGetVersion=yes
11622else
11623 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011624sed 's/^/| /' conftest.$ac_ext >&5
11625
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011626ac_cv_lib_audioio_AudioIOGetVersion=no
11627fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011628rm -f conftest.err conftest.$ac_objext \
11629 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011630LIBS=$ac_check_lib_save_LIBS
11631fi
11632echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11633echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11634if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11635 AUDIOIOLIBS="-laudioio"
11636
11637cat >>confdefs.h <<\_ACEOF
11638#define HAVE_LIBAUDIOIO 1
11639_ACEOF
11640
11641fi
11642
11643fi
11644
11645done
11646
11647
11648
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011649
11650for ac_header in capi20.h
11651do
11652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11653if eval "test \"\${$as_ac_Header+set}\" = set"; then
11654 echo "$as_me:$LINENO: checking for $ac_header" >&5
11655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11656if eval "test \"\${$as_ac_Header+set}\" = set"; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658fi
11659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11661else
11662 # Is the header compilable?
11663echo "$as_me:$LINENO: checking $ac_header usability" >&5
11664echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11665cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011666/* confdefs.h. */
11667_ACEOF
11668cat confdefs.h >>conftest.$ac_ext
11669cat >>conftest.$ac_ext <<_ACEOF
11670/* end confdefs.h. */
11671$ac_includes_default
11672#include <$ac_header>
11673_ACEOF
11674rm -f conftest.$ac_objext
11675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011676 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011677 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; } &&
11689 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11692 ac_status=$?
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }; then
11695 ac_header_compiler=yes
11696else
11697 echo "$as_me: failed program was:" >&5
11698sed 's/^/| /' conftest.$ac_ext >&5
11699
11700ac_header_compiler=no
11701fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011703echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11704echo "${ECHO_T}$ac_header_compiler" >&6
11705
11706# Is the header present?
11707echo "$as_me:$LINENO: checking $ac_header presence" >&5
11708echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11709cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715#include <$ac_header>
11716_ACEOF
11717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11719 ac_status=$?
11720 grep -v '^ *+' conftest.er1 >conftest.err
11721 rm -f conftest.er1
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } >/dev/null; then
11725 if test -s conftest.err; then
11726 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011728 else
11729 ac_cpp_err=
11730 fi
11731else
11732 ac_cpp_err=yes
11733fi
11734if test -z "$ac_cpp_err"; then
11735 ac_header_preproc=yes
11736else
11737 echo "$as_me: failed program was:" >&5
11738sed 's/^/| /' conftest.$ac_ext >&5
11739
11740 ac_header_preproc=no
11741fi
11742rm -f conftest.err conftest.$ac_ext
11743echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11744echo "${ECHO_T}$ac_header_preproc" >&6
11745
11746# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11748 yes:no: )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11750echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11752echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11753 ac_header_preproc=yes
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011754 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011755 no:yes:* )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11757echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11759echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11761echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11763echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11765echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11767echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011768 (
11769 cat <<\_ASBOX
11770## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011771## Report this to wine-devel@winehq.org ##
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011772## ------------------------------------ ##
11773_ASBOX
11774 ) |
11775 sed "s/^/$as_me: WARNING: /" >&2
11776 ;;
11777esac
11778echo "$as_me:$LINENO: checking for $ac_header" >&5
11779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11780if eval "test \"\${$as_ac_Header+set}\" = set"; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011783 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011784fi
11785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11787
11788fi
11789if test `eval echo '${'$as_ac_Header'}'` = yes; then
11790 cat >>confdefs.h <<_ACEOF
11791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11792_ACEOF
11793
11794
11795for ac_header in linux/capi.h
11796do
11797as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11798if eval "test \"\${$as_ac_Header+set}\" = set"; then
11799 echo "$as_me:$LINENO: checking for $ac_header" >&5
11800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11801if eval "test \"\${$as_ac_Header+set}\" = set"; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11803fi
11804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11806else
11807 # Is the header compilable?
11808echo "$as_me:$LINENO: checking $ac_header usability" >&5
11809echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11810cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011811/* confdefs.h. */
11812_ACEOF
11813cat confdefs.h >>conftest.$ac_ext
11814cat >>conftest.$ac_ext <<_ACEOF
11815/* end confdefs.h. */
11816$ac_includes_default
11817#include <$ac_header>
11818_ACEOF
11819rm -f conftest.$ac_objext
11820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011821 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011822 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; } &&
11834 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 ac_header_compiler=yes
11841else
11842 echo "$as_me: failed program was:" >&5
11843sed 's/^/| /' conftest.$ac_ext >&5
11844
11845ac_header_compiler=no
11846fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011848echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11849echo "${ECHO_T}$ac_header_compiler" >&6
11850
11851# Is the header present?
11852echo "$as_me:$LINENO: checking $ac_header presence" >&5
11853echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11854cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011855/* confdefs.h. */
11856_ACEOF
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
11860#include <$ac_header>
11861_ACEOF
11862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } >/dev/null; then
11870 if test -s conftest.err; then
11871 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011873 else
11874 ac_cpp_err=
11875 fi
11876else
11877 ac_cpp_err=yes
11878fi
11879if test -z "$ac_cpp_err"; then
11880 ac_header_preproc=yes
11881else
11882 echo "$as_me: failed program was:" >&5
11883sed 's/^/| /' conftest.$ac_ext >&5
11884
11885 ac_header_preproc=no
11886fi
11887rm -f conftest.err conftest.$ac_ext
11888echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11889echo "${ECHO_T}$ac_header_preproc" >&6
11890
11891# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11893 yes:no: )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11895echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11897echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11898 ac_header_preproc=yes
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011899 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011900 no:yes:* )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11904echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11906echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11908echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11912echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011913 (
11914 cat <<\_ASBOX
11915## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011916## Report this to wine-devel@winehq.org ##
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011917## ------------------------------------ ##
11918_ASBOX
11919 ) |
11920 sed "s/^/$as_me: WARNING: /" >&2
11921 ;;
11922esac
11923echo "$as_me:$LINENO: checking for $ac_header" >&5
11924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11925if eval "test \"\${$as_ac_Header+set}\" = set"; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011928 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011929fi
11930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11932
11933fi
11934if test `eval echo '${'$as_ac_Header'}'` = yes; then
11935 cat >>confdefs.h <<_ACEOF
11936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11937_ACEOF
11938
11939 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
11940echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
11941if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11943else
11944 ac_check_lib_save_LIBS=$LIBS
11945LIBS="-lcapi20 $LIBS"
11946cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011947/* confdefs.h. */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h. */
11952
11953/* Override any gcc2 internal prototype to avoid an error. */
11954#ifdef __cplusplus
11955extern "C"
11956#endif
11957/* We use char because int might match the return type of a gcc2
11958 builtin and then its argument prototype would still apply. */
11959char capi20_register ();
11960int
11961main ()
11962{
11963capi20_register ();
11964 ;
11965 return 0;
11966}
11967_ACEOF
11968rm -f conftest.$ac_objext conftest$ac_exeext
11969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011970 (eval $ac_link) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011971 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
11989 ac_cv_lib_capi20_capi20_register=yes
11990else
11991 echo "$as_me: failed program was:" >&5
11992sed 's/^/| /' conftest.$ac_ext >&5
11993
11994ac_cv_lib_capi20_capi20_register=no
11995fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011996rm -f conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011998LIBS=$ac_check_lib_save_LIBS
11999fi
12000echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12001echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12002if test $ac_cv_lib_capi20_capi20_register = yes; then
12003
12004
12005cat >>confdefs.h <<\_ACEOF
12006#define HAVE_CAPI4LINUX 1
12007_ACEOF
12008
12009 CAPI4LINUXLIBS="-lcapi20"
12010
12011
12012fi
12013
12014
12015fi
12016
12017done
12018
12019
12020fi
12021
12022done
12023
12024
12025
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012026echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012027echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12028if test "${ac_cv_mmap64_works+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012030else
12031 if test "$cross_compiling" = yes; then
12032 ac_cv_mmap64_works="no"
12033else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012034 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012035/* confdefs.h. */
12036_ACEOF
12037cat confdefs.h >>conftest.$ac_ext
12038cat >>conftest.$ac_ext <<_ACEOF
12039/* end confdefs.h. */
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012040
12041 #define _FILE_OFFSET_BITS 64
12042 #include <stdio.h>
12043 #include <unistd.h>
12044 #include <fcntl.h>
12045 #include <sys/mman.h>
12046 #include <errno.h>
12047
12048 int main(int argc,char **argv) {
12049 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12050 if (fd == -1) exit(1);
12051
12052 unlink("conftest.map");
12053
12054 write(fd,"test",4);
12055
12056 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12057 (errno == EINVAL)
12058 ) {
12059 exit(1);
12060 }
12061 close(fd);
12062 fprintf(stderr,"success!\n");
12063 exit(0);
12064 }
12065
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012066
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012067_ACEOF
12068rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012070 (eval $ac_link) 2>&5
12071 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012075 (eval $ac_try) 2>&5
12076 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012078 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012079 ac_cv_mmap64_works="yes"
12080else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012081 echo "$as_me: program exited with status $ac_status" >&5
12082echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012083sed 's/^/| /' conftest.$ac_ext >&5
12084
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012085( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012086ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012087fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012088rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012089fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012090fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012091echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012092echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012093
12094if test "$ac_cv_mmap64_works" = "yes"
12095then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012096
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012097cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012098#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012099_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012100
12101fi
12102
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012103
Alexandre Julliardfc094232003-04-14 21:46:41 +000012104EXTRACFLAGS=""
12105
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012106if test "x${GCC}" = "xyes"
12107then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000012108 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000012109
12110 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012111echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12112if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012114else
12115 if test "$cross_compiling" = yes; then
12116 ac_cv_c_gcc_strength_bug="yes"
12117else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012118 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012119/* confdefs.h. */
12120_ACEOF
12121cat confdefs.h >>conftest.$ac_ext
12122cat >>conftest.$ac_ext <<_ACEOF
12123/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012124
Eric Pouech5aee80f2000-11-11 00:31:39 +000012125int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012126int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012127 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012128 unsigned int B = 3;
12129 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012130 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000012131 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12132 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012133
Eric Pouech5aee80f2000-11-11 00:31:39 +000012134 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012135}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012136_ACEOF
12137rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012139 (eval $ac_link) 2>&5
12140 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012144 (eval $ac_try) 2>&5
12145 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012147 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012148 ac_cv_c_gcc_strength_bug="no"
12149else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012150 echo "$as_me: program exited with status $ac_status" >&5
12151echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012152sed 's/^/| /' conftest.$ac_ext >&5
12153
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012154( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012155ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012156fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012157rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012158fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012159fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012160echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012161echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012162 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12163 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012164 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012165 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012166
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000012167 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12168echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12169if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12171else
12172 ac_wine_try_cflags_saved=$CFLAGS
12173CFLAGS="$CFLAGS -fshort-wchar"
12174cat >conftest.$ac_ext <<_ACEOF
12175/* confdefs.h. */
12176_ACEOF
12177cat confdefs.h >>conftest.$ac_ext
12178cat >>conftest.$ac_ext <<_ACEOF
12179/* end confdefs.h. */
12180
12181int
12182main ()
12183{
12184
12185 ;
12186 return 0;
12187}
12188_ACEOF
12189rm -f conftest.$ac_objext conftest$ac_exeext
12190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12191 (eval $ac_link) 2>conftest.er1
12192 ac_status=$?
12193 grep -v '^ *+' conftest.er1 >conftest.err
12194 rm -f conftest.er1
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200 (eval $ac_try) 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; } &&
12204 { ac_try='test -s conftest$ac_exeext'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; }; then
12210 ac_cv_c_gcc_fshort_wchar="yes"
12211else
12212 echo "$as_me: failed program was:" >&5
12213sed 's/^/| /' conftest.$ac_ext >&5
12214
12215ac_cv_c_gcc_fshort_wchar="no"
12216fi
12217rm -f conftest.err conftest.$ac_objext \
12218 conftest$ac_exeext conftest.$ac_ext
12219CFLAGS=$ac_wine_try_cflags_saved
12220fi
12221echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12222echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12223 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12224 then
12225
12226cat >>confdefs.h <<\_ACEOF
12227#define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12228_ACEOF
12229
12230 fi
12231
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012232 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012233echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12234if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012236else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012237 ac_wine_try_cflags_saved=$CFLAGS
12238CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12239cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012240/* confdefs.h. */
12241_ACEOF
12242cat confdefs.h >>conftest.$ac_ext
12243cat >>conftest.$ac_ext <<_ACEOF
12244/* end confdefs.h. */
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012245
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012246int
12247main ()
12248{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012249
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012250 ;
12251 return 0;
12252}
12253_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012254rm -f conftest.$ac_objext conftest$ac_exeext
12255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012256 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012257 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012258 grep -v '^ *+' conftest.er1 >conftest.err
12259 rm -f conftest.er1
12260 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012262 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; } &&
12269 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012271 (eval $ac_try) 2>&5
12272 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012274 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012275 ac_cv_c_gcc_stack_boundary="yes"
12276else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012277 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012278sed 's/^/| /' conftest.$ac_ext >&5
12279
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012280ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012281fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012282rm -f conftest.err conftest.$ac_objext \
12283 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012284CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012285fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012286echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012287echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012288 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12289 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012290 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012291 fi
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012292
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012293 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12294echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12295if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12297else
12298 ac_wine_try_cflags_saved=$CFLAGS
12299CFLAGS="$CFLAGS -fno-strict-aliasing"
12300cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
12306
12307int
12308main ()
12309{
12310
12311 ;
12312 return 0;
12313}
12314_ACEOF
12315rm -f conftest.$ac_objext conftest$ac_exeext
12316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012317 (eval $ac_link) 2>conftest.er1
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012318 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; } &&
12330 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12336 ac_cv_c_gcc_no_strict_aliasing="yes"
12337else
12338 echo "$as_me: failed program was:" >&5
12339sed 's/^/| /' conftest.$ac_ext >&5
12340
12341ac_cv_c_gcc_no_strict_aliasing="no"
12342fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012343rm -f conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012345CFLAGS=$ac_wine_try_cflags_saved
12346fi
12347echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12348echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12349 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12350 then
12351 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12352 fi
12353
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012354 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12355echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12356if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12358else
12359 ac_wine_try_cflags_saved=$CFLAGS
12360CFLAGS="$CFLAGS -gstabs+"
12361cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012362/* confdefs.h. */
12363_ACEOF
12364cat confdefs.h >>conftest.$ac_ext
12365cat >>conftest.$ac_ext <<_ACEOF
12366/* end confdefs.h. */
12367
12368int
12369main ()
12370{
12371
12372 ;
12373 return 0;
12374}
12375_ACEOF
12376rm -f conftest.$ac_objext conftest$ac_exeext
12377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012378 (eval $ac_link) 2>conftest.er1
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012379 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
12397 ac_cv_c_gcc_gstabs="yes"
12398else
12399 echo "$as_me: failed program was:" >&5
12400sed 's/^/| /' conftest.$ac_ext >&5
12401
12402ac_cv_c_gcc_gstabs="no"
12403fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012404rm -f conftest.err conftest.$ac_objext \
12405 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012406CFLAGS=$ac_wine_try_cflags_saved
12407fi
12408echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12409echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12410 if test "$ac_cv_c_gcc_gstabs" = "yes"
12411 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012412 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012413 fi
Mike McCormackc509bc42003-02-25 04:01:58 +000012414
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012415 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012416 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12417 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12418echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12419if test "${ac_cv_c_string_h_warnings+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12421else
12422 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackc509bc42003-02-25 04:01:58 +000012423/* confdefs.h. */
12424_ACEOF
12425cat confdefs.h >>conftest.$ac_ext
12426cat >>conftest.$ac_ext <<_ACEOF
12427/* end confdefs.h. */
12428#include <string.h>
12429int
12430main ()
12431{
12432
12433 ;
12434 return 0;
12435}
12436_ACEOF
12437rm -f conftest.$ac_objext
12438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012439 (eval $ac_compile) 2>conftest.er1
Mike McCormackc509bc42003-02-25 04:01:58 +000012440 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012441 grep -v '^ *+' conftest.er1 >conftest.err
12442 rm -f conftest.er1
12443 cat conftest.err >&5
Mike McCormackc509bc42003-02-25 04:01:58 +000012444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; } &&
12452 { ac_try='test -s conftest.$ac_objext'
Mike McCormackc509bc42003-02-25 04:01:58 +000012453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
12458 ac_cv_c_string_h_warnings=no
12459else
12460 echo "$as_me: failed program was:" >&5
12461sed 's/^/| /' conftest.$ac_ext >&5
12462
12463ac_cv_c_string_h_warnings=yes
12464fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012466fi
12467echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12468echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012469 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012470 if test "$ac_cv_c_string_h_warnings" = "no"
12471 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012472 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000012473 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012474fi
12475
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012476
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012477echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12478echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12479if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012480 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012481else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012482 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012483/* confdefs.h. */
12484_ACEOF
12485cat confdefs.h >>conftest.$ac_ext
12486cat >>conftest.$ac_ext <<_ACEOF
12487/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012488void 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 +000012489
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012490int
12491main ()
12492{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012493
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012494 ;
12495 return 0;
12496}
12497_ACEOF
12498rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012500 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012501 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012502 grep -v '^ *+' conftest.er1 >conftest.err
12503 rm -f conftest.er1
12504 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012506 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; } &&
12513 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012515 (eval $ac_try) 2>&5
12516 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012518 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012519 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012520else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012521 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012522sed 's/^/| /' conftest.$ac_ext >&5
12523
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012524cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012525/* confdefs.h. */
12526_ACEOF
12527cat confdefs.h >>conftest.$ac_ext
12528cat >>conftest.$ac_ext <<_ACEOF
12529/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012530void 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 +000012531
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012532int
12533main ()
12534{
12535
12536 ;
12537 return 0;
12538}
12539_ACEOF
12540rm -f conftest.$ac_objext conftest$ac_exeext
12541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012542 (eval $ac_link) 2>conftest.er1
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012543 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; } &&
12555 { ac_try='test -s conftest$ac_exeext'
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12558 ac_status=$?
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012561 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012562else
12563 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012564sed 's/^/| /' conftest.$ac_ext >&5
12565
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012566cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012567/* confdefs.h. */
12568_ACEOF
12569cat confdefs.h >>conftest.$ac_ext
12570cat >>conftest.$ac_ext <<_ACEOF
12571/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012572void 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 +000012573
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012574int
12575main ()
12576{
12577
12578 ;
12579 return 0;
12580}
12581_ACEOF
12582rm -f conftest.$ac_objext conftest$ac_exeext
12583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012584 (eval $ac_link) 2>conftest.er1
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012585 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012586 grep -v '^ *+' conftest.er1 >conftest.err
12587 rm -f conftest.er1
12588 cat conftest.err >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; } &&
12597 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; }; then
12603 ac_cv_asm_func_def=".type 2"
12604else
12605 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012606sed 's/^/| /' conftest.$ac_ext >&5
12607
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012608ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012609fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012610rm -f conftest.err conftest.$ac_objext \
12611 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012612fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012613rm -f conftest.err conftest.$ac_objext \
12614 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012615fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012616rm -f conftest.err conftest.$ac_objext \
12617 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012618fi
12619echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12620echo "${ECHO_T}$ac_cv_asm_func_def" >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012621
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012622
12623
12624case "$ac_cv_asm_func_def" in
12625 ".def")
12626 cat >>confdefs.h <<\_ACEOF
12627#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012628_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012629 ;;
12630 ".type @function")
12631 cat >>confdefs.h <<\_ACEOF
12632#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12633_ACEOF
12634 ;;
12635 ".type 2")
12636 cat >>confdefs.h <<\_ACEOF
12637#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12638_ACEOF
12639 ;;
12640 *)
12641 cat >>confdefs.h <<\_ACEOF
12642#define __ASM_FUNC(name) ""
12643_ACEOF
12644 ;;
12645esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012646
12647
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012648echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012649echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12650if test "${ac_cv_c_extern_prefix+set}" = set; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012652else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012653 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012654/* confdefs.h. */
12655_ACEOF
12656cat confdefs.h >>conftest.$ac_ext
12657cat >>conftest.$ac_ext <<_ACEOF
12658/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012659void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012660extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012661int
12662main ()
12663{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012664if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012665 ;
12666 return 0;
12667}
12668_ACEOF
12669rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012671 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012672 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012677 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; } &&
12684 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012686 (eval $ac_try) 2>&5
12687 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012689 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012690 ac_cv_c_extern_prefix="yes"
12691else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012692 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012693sed 's/^/| /' conftest.$ac_ext >&5
12694
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012695ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012696fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012697rm -f conftest.err conftest.$ac_objext \
12698 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012699fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012700echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012701echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012702
12703
12704
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012705if test "$ac_cv_c_extern_prefix" = "yes"
12706then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012707 cat >>confdefs.h <<\_ACEOF
12708#define __ASM_NAME(name) "_" name
12709_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012710
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012711else
12712 cat >>confdefs.h <<\_ACEOF
12713#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012714_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012715
12716fi
12717
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012718
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012719echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
12720echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012721if test "${ac_cv_c_asm_string+set}" = set; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012723else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012724 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012725/* confdefs.h. */
12726_ACEOF
12727cat confdefs.h >>conftest.$ac_ext
12728cat >>conftest.$ac_ext <<_ACEOF
12729/* end confdefs.h. */
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012730void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012731
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012732int
12733main ()
12734{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012735
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012736 ;
12737 return 0;
12738}
12739_ACEOF
12740rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012742 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012743 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012744 grep -v '^ *+' conftest.er1 >conftest.err
12745 rm -f conftest.er1
12746 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012748 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12752 ac_status=$?
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; } &&
12755 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012757 (eval $ac_try) 2>&5
12758 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012760 (exit $ac_status); }; }; then
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012761 ac_cv_c_asm_string=".string"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012762else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012763 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012764sed 's/^/| /' conftest.$ac_ext >&5
12765
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012766cat >conftest.$ac_ext <<_ACEOF
12767/* confdefs.h. */
12768_ACEOF
12769cat confdefs.h >>conftest.$ac_ext
12770cat >>conftest.$ac_ext <<_ACEOF
12771/* end confdefs.h. */
12772void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
12773
12774int
12775main ()
12776{
12777
12778 ;
12779 return 0;
12780}
12781_ACEOF
12782rm -f conftest.$ac_objext conftest$ac_exeext
12783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12784 (eval $ac_link) 2>conftest.er1
12785 ac_status=$?
12786 grep -v '^ *+' conftest.er1 >conftest.err
12787 rm -f conftest.er1
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } &&
12791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; } &&
12797 { ac_try='test -s conftest$ac_exeext'
12798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799 (eval $ac_try) 2>&5
12800 ac_status=$?
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); }; }; then
12803 ac_cv_c_asm_string=".asciz"
12804else
12805 echo "$as_me: failed program was:" >&5
12806sed 's/^/| /' conftest.$ac_ext >&5
12807
12808cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
12815
12816int
12817main ()
12818{
12819
12820 ;
12821 return 0;
12822}
12823_ACEOF
12824rm -f conftest.$ac_objext conftest$ac_exeext
12825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12826 (eval $ac_link) 2>conftest.er1
12827 ac_status=$?
12828 grep -v '^ *+' conftest.er1 >conftest.err
12829 rm -f conftest.er1
12830 cat conftest.err >&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); } &&
12833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12835 (eval $ac_try) 2>&5
12836 ac_status=$?
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); }; } &&
12839 { ac_try='test -s conftest$ac_exeext'
12840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12841 (eval $ac_try) 2>&5
12842 ac_status=$?
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; }; then
12845 ac_cv_c_asm_string=".ascii"
12846else
12847 echo "$as_me: failed program was:" >&5
12848sed 's/^/| /' conftest.$ac_ext >&5
12849
12850{ { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
12851echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
12852 { (exit 1); exit 1; }; }
12853fi
12854rm -f conftest.err conftest.$ac_objext \
12855 conftest$ac_exeext conftest.$ac_ext
12856fi
12857rm -f conftest.err conftest.$ac_objext \
12858 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012859fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012860rm -f conftest.err conftest.$ac_objext \
12861 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012862fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012863echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012864echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012865
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012866
12867cat >>confdefs.h <<_ACEOF
12868#define __ASM_STRING "$ac_cv_c_asm_string"
Christian Costaf814cf82003-03-23 00:18:26 +000012869_ACEOF
12870
Christian Costaf814cf82003-03-23 00:18:26 +000012871
12872
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012873echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
12874echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
Christian Costaf814cf82003-03-23 00:18:26 +000012875if test "${ac_cv_c_asm_short+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12877else
12878 cat >conftest.$ac_ext <<_ACEOF
Christian Costaf814cf82003-03-23 00:18:26 +000012879/* confdefs.h. */
12880_ACEOF
12881cat confdefs.h >>conftest.$ac_ext
12882cat >>conftest.$ac_ext <<_ACEOF
12883/* end confdefs.h. */
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012884void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
Christian Costaf814cf82003-03-23 00:18:26 +000012885
12886int
12887main ()
12888{
12889
12890 ;
12891 return 0;
12892}
12893_ACEOF
12894rm -f conftest.$ac_objext conftest$ac_exeext
12895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012896 (eval $ac_link) 2>conftest.er1
Christian Costaf814cf82003-03-23 00:18:26 +000012897 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012898 grep -v '^ *+' conftest.er1 >conftest.err
12899 rm -f conftest.er1
12900 cat conftest.err >&5
Christian Costaf814cf82003-03-23 00:18:26 +000012901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12904 { (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); }; } &&
12909 { ac_try='test -s conftest$ac_exeext'
Christian Costaf814cf82003-03-23 00:18:26 +000012910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012915 ac_cv_c_asm_short=".short"
Christian Costaf814cf82003-03-23 00:18:26 +000012916else
12917 echo "$as_me: failed program was:" >&5
12918sed 's/^/| /' conftest.$ac_ext >&5
12919
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012920cat >conftest.$ac_ext <<_ACEOF
12921/* confdefs.h. */
12922_ACEOF
12923cat confdefs.h >>conftest.$ac_ext
12924cat >>conftest.$ac_ext <<_ACEOF
12925/* end confdefs.h. */
12926void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
12927
12928int
12929main ()
12930{
12931
12932 ;
12933 return 0;
12934}
12935_ACEOF
12936rm -f conftest.$ac_objext conftest$ac_exeext
12937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12938 (eval $ac_link) 2>conftest.er1
12939 ac_status=$?
12940 grep -v '^ *+' conftest.er1 >conftest.err
12941 rm -f conftest.er1
12942 cat conftest.err >&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } &&
12945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; } &&
12951 { ac_try='test -s conftest$ac_exeext'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
12957 ac_cv_c_asm_short=".half"
12958else
12959 echo "$as_me: failed program was:" >&5
12960sed 's/^/| /' conftest.$ac_ext >&5
12961
12962{ { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
12963echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
12964 { (exit 1); exit 1; }; }
12965fi
12966rm -f conftest.err conftest.$ac_objext \
12967 conftest$ac_exeext conftest.$ac_ext
Christian Costaf814cf82003-03-23 00:18:26 +000012968fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012969rm -f conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
Christian Costaf814cf82003-03-23 00:18:26 +000012971fi
12972echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
12973echo "${ECHO_T}$ac_cv_c_asm_short" >&6
Christian Costaf814cf82003-03-23 00:18:26 +000012974
Wim Lewis8cbb94c2004-01-07 00:46:10 +000012975
12976cat >>confdefs.h <<_ACEOF
12977#define __ASM_SHORT "$ac_cv_c_asm_short"
Christian Costaf814cf82003-03-23 00:18:26 +000012978_ACEOF
12979
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000012980
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012981
Pierre d'Herbemont68467db2004-06-18 19:36:26 +000012982echo "$as_me:$LINENO: checking for .size in assembler" >&5
12983echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
12984if test "${ac_cv_c_asm_size+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986else
12987 cat >conftest.$ac_ext <<_ACEOF
12988/* confdefs.h. */
12989_ACEOF
12990cat confdefs.h >>conftest.$ac_ext
12991cat >>conftest.$ac_ext <<_ACEOF
12992/* end confdefs.h. */
12993void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
12994
12995int
12996main ()
12997{
12998
12999 ;
13000 return 0;
13001}
13002_ACEOF
13003rm -f conftest.$ac_objext conftest$ac_exeext
13004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13005 (eval $ac_link) 2>conftest.er1
13006 ac_status=$?
13007 grep -v '^ *+' conftest.er1 >conftest.err
13008 rm -f conftest.er1
13009 cat conftest.err >&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } &&
13012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try='test -s conftest$ac_exeext'
13019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020 (eval $ac_try) 2>&5
13021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
13024 ac_cv_c_asm_size="yes"
13025else
13026 echo "$as_me: failed program was:" >&5
13027sed 's/^/| /' conftest.$ac_ext >&5
13028
13029ac_cv_c_asm_size="no"
13030fi
13031rm -f conftest.err conftest.$ac_objext \
13032 conftest$ac_exeext conftest.$ac_ext
13033fi
13034echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13035echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13036
13037if test "$ac_cv_c_asm_size" = "yes"
13038then
13039
13040cat >>confdefs.h <<\_ACEOF
13041#define HAVE_ASM_DOT_SIZE 1
13042_ACEOF
13043
13044fi
13045
13046
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013047DLLEXT=""
13048
Alexandre Julliardfc094232003-04-14 21:46:41 +000013049DLLFLAGS="-D_REENTRANT"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013050
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013051DLLIBS=""
13052
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013053LDSHARED=""
13054
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013055LDDLLFLAGS=""
Alexandre Julliard6ac34ac2003-10-11 01:05:18 +000013056
Alexandre Julliardada5e652002-12-12 22:03:14 +000013057LIBEXT="so"
13058
13059IMPLIBEXT="def"
13060
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013061
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013062case $host_os in
13063 cygwin*|mingw32*)
13064 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000013065 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13066set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13067echo "$as_me:$LINENO: checking for $ac_word" >&5
13068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13069if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13071else
13072 if test -n "$DLLTOOL"; then
13073 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13074else
13075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076for as_dir in $PATH
13077do
13078 IFS=$as_save_IFS
13079 test -z "$as_dir" && as_dir=.
13080 for ac_exec_ext in '' $ac_executable_extensions; do
13081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13082 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13084 break 2
13085 fi
13086done
13087done
13088
13089fi
13090fi
13091DLLTOOL=$ac_cv_prog_DLLTOOL
13092if test -n "$DLLTOOL"; then
13093 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13094echo "${ECHO_T}$DLLTOOL" >&6
13095else
13096 echo "$as_me:$LINENO: result: no" >&5
13097echo "${ECHO_T}no" >&6
13098fi
13099
13100fi
13101if test -z "$ac_cv_prog_DLLTOOL"; then
13102 ac_ct_DLLTOOL=$DLLTOOL
13103 # Extract the first word of "dlltool", so it can be a program name with args.
13104set dummy dlltool; ac_word=$2
13105echo "$as_me:$LINENO: checking for $ac_word" >&5
13106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13107if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13109else
13110 if test -n "$ac_ct_DLLTOOL"; then
13111 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13112else
13113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114for as_dir in $PATH
13115do
13116 IFS=$as_save_IFS
13117 test -z "$as_dir" && as_dir=.
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13120 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13122 break 2
13123 fi
13124done
13125done
13126
13127 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13128fi
13129fi
13130ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13131if test -n "$ac_ct_DLLTOOL"; then
13132 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13133echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13134else
13135 echo "$as_me:$LINENO: result: no" >&5
13136echo "${ECHO_T}no" >&6
13137fi
13138
13139 DLLTOOL=$ac_ct_DLLTOOL
13140else
13141 DLLTOOL="$ac_cv_prog_DLLTOOL"
13142fi
13143
13144 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013145 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13146set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +000013147echo "$as_me:$LINENO: checking for $ac_word" >&5
13148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13149if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151else
13152 if test -n "$DLLWRAP"; then
13153 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13154else
13155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156for as_dir in $PATH
13157do
13158 IFS=$as_save_IFS
13159 test -z "$as_dir" && as_dir=.
13160 for ac_exec_ext in '' $ac_executable_extensions; do
13161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013162 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000013163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 break 2
13165 fi
13166done
13167done
13168
Alexandre Julliard466ae142002-05-07 18:33:47 +000013169fi
13170fi
13171DLLWRAP=$ac_cv_prog_DLLWRAP
13172if test -n "$DLLWRAP"; then
13173 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13174echo "${ECHO_T}$DLLWRAP" >&6
13175else
13176 echo "$as_me:$LINENO: result: no" >&5
13177echo "${ECHO_T}no" >&6
13178fi
13179
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013180fi
13181if test -z "$ac_cv_prog_DLLWRAP"; then
13182 ac_ct_DLLWRAP=$DLLWRAP
13183 # Extract the first word of "dllwrap", so it can be a program name with args.
13184set dummy dllwrap; ac_word=$2
13185echo "$as_me:$LINENO: checking for $ac_word" >&5
13186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13187if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189else
13190 if test -n "$ac_ct_DLLWRAP"; then
13191 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13192else
13193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194for as_dir in $PATH
13195do
13196 IFS=$as_save_IFS
13197 test -z "$as_dir" && as_dir=.
13198 for ac_exec_ext in '' $ac_executable_extensions; do
13199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13200 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13202 break 2
13203 fi
13204done
13205done
13206
13207 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13208fi
13209fi
13210ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13211if test -n "$ac_ct_DLLWRAP"; then
13212 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13213echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13214else
13215 echo "$as_me:$LINENO: result: no" >&5
13216echo "${ECHO_T}no" >&6
13217fi
13218
13219 DLLWRAP=$ac_ct_DLLWRAP
13220else
13221 DLLWRAP="$ac_cv_prog_DLLWRAP"
13222fi
13223
13224 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013225 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013226 else
13227 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013228 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000013229 IMPLIBEXT="a"
Alexandre Julliard56a4a762004-08-12 03:27:50 +000013230 WIN16_FILES=""
13231 WIN16_INSTALL=""
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013232 ;;
13233 *)
13234
13235for ac_header in dlfcn.h
13236do
13237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13238if eval "test \"\${$as_ac_Header+set}\" = set"; then
13239 echo "$as_me:$LINENO: checking for $ac_header" >&5
13240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13241if eval "test \"\${$as_ac_Header+set}\" = set"; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13243fi
13244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13246else
13247 # Is the header compilable?
13248echo "$as_me:$LINENO: checking $ac_header usability" >&5
13249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13250cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013251/* confdefs.h. */
13252_ACEOF
13253cat confdefs.h >>conftest.$ac_ext
13254cat >>conftest.$ac_ext <<_ACEOF
13255/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013256$ac_includes_default
13257#include <$ac_header>
13258_ACEOF
13259rm -f conftest.$ac_objext
13260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013261 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013262 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013263 grep -v '^ *+' conftest.er1 >conftest.err
13264 rm -f conftest.er1
13265 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 ac_header_compiler=yes
13281else
13282 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013283sed 's/^/| /' conftest.$ac_ext >&5
13284
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013285ac_header_compiler=no
13286fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013288echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13289echo "${ECHO_T}$ac_header_compiler" >&6
13290
13291# Is the header present?
13292echo "$as_me:$LINENO: checking $ac_header presence" >&5
13293echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13294cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013295/* confdefs.h. */
13296_ACEOF
13297cat confdefs.h >>conftest.$ac_ext
13298cat >>conftest.$ac_ext <<_ACEOF
13299/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013300#include <$ac_header>
13301_ACEOF
13302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13304 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013305 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013306 rm -f conftest.er1
13307 cat conftest.err >&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } >/dev/null; then
13310 if test -s conftest.err; then
13311 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000013312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013313 else
13314 ac_cpp_err=
13315 fi
13316else
13317 ac_cpp_err=yes
13318fi
13319if test -z "$ac_cpp_err"; then
13320 ac_header_preproc=yes
13321else
13322 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013323sed 's/^/| /' conftest.$ac_ext >&5
13324
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013325 ac_header_preproc=no
13326fi
13327rm -f conftest.err conftest.$ac_ext
13328echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13329echo "${ECHO_T}$ac_header_preproc" >&6
13330
13331# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13333 yes:no: )
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13335echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13337echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13338 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013339 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000013340 no:yes:* )
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13342echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13344echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13346echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13348echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13352echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013353 (
13354 cat <<\_ASBOX
13355## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000013356## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013357## ------------------------------------ ##
13358_ASBOX
13359 ) |
13360 sed "s/^/$as_me: WARNING: /" >&2
13361 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013362esac
13363echo "$as_me:$LINENO: checking for $ac_header" >&5
13364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13365if eval "test \"\${$as_ac_Header+set}\" = set"; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367else
Alexandre Julliard875927f2004-01-02 01:55:29 +000013368 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013369fi
13370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13372
13373fi
13374if test `eval echo '${'$as_ac_Header'}'` = yes; then
13375 cat >>confdefs.h <<_ACEOF
13376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13377_ACEOF
13378
13379for ac_func in dlopen
13380do
13381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13382echo "$as_me:$LINENO: checking for $ac_func" >&5
13383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13384if eval "test \"\${$as_ac_var+set}\" = set"; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13386else
13387 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013388/* confdefs.h. */
13389_ACEOF
13390cat confdefs.h >>conftest.$ac_ext
13391cat >>conftest.$ac_ext <<_ACEOF
13392/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13395#define $ac_func innocuous_$ac_func
13396
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013397/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013398 which can conflict with char $ac_func (); below.
13399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13400 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013401
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013402#ifdef __STDC__
13403# include <limits.h>
13404#else
13405# include <assert.h>
13406#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000013407
13408#undef $ac_func
13409
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013410/* Override any gcc2 internal prototype to avoid an error. */
13411#ifdef __cplusplus
13412extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013413{
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013414#endif
13415/* We use char because int might match the return type of a gcc2
13416 builtin and then its argument prototype would still apply. */
13417char $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013418/* The GNU C library defines this for functions which it implements
13419 to always fail with ENOSYS. Some functions are actually named
13420 something starting with __ and the normal name is an alias. */
13421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13422choke me
13423#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013424char (*f) () = $ac_func;
13425#endif
13426#ifdef __cplusplus
13427}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013428#endif
13429
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013430int
13431main ()
13432{
13433return f != $ac_func;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013434 ;
13435 return 0;
13436}
13437_ACEOF
13438rm -f conftest.$ac_objext conftest$ac_exeext
13439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013440 (eval $ac_link) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013441 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013442 grep -v '^ *+' conftest.er1 >conftest.err
13443 rm -f conftest.er1
13444 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; } &&
13453 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
13459 eval "$as_ac_var=yes"
13460else
13461 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013462sed 's/^/| /' conftest.$ac_ext >&5
13463
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013464eval "$as_ac_var=no"
13465fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013466rm -f conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013468fi
13469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13470echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13471if test `eval echo '${'$as_ac_var'}'` = yes; then
13472 cat >>confdefs.h <<_ACEOF
13473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13474_ACEOF
13475
13476else
13477 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13478echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13479if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13480 echo $ECHO_N "(cached) $ECHO_C" >&6
13481else
13482 ac_check_lib_save_LIBS=$LIBS
13483LIBS="-ldl $LIBS"
13484cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013485/* confdefs.h. */
13486_ACEOF
13487cat confdefs.h >>conftest.$ac_ext
13488cat >>conftest.$ac_ext <<_ACEOF
13489/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013490
13491/* Override any gcc2 internal prototype to avoid an error. */
13492#ifdef __cplusplus
13493extern "C"
13494#endif
13495/* We use char because int might match the return type of a gcc2
13496 builtin and then its argument prototype would still apply. */
13497char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013498int
13499main ()
13500{
13501dlopen ();
13502 ;
13503 return 0;
13504}
13505_ACEOF
13506rm -f conftest.$ac_objext conftest$ac_exeext
13507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013508 (eval $ac_link) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013509 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013510 grep -v '^ *+' conftest.er1 >conftest.err
13511 rm -f conftest.er1
13512 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_cv_lib_dl_dlopen=yes
13528else
13529 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013530sed 's/^/| /' conftest.$ac_ext >&5
13531
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013532ac_cv_lib_dl_dlopen=no
13533fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013534rm -f conftest.err conftest.$ac_objext \
13535 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013536LIBS=$ac_check_lib_save_LIBS
13537fi
13538echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13539echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13540if test $ac_cv_lib_dl_dlopen = yes; then
13541
13542cat >>confdefs.h <<\_ACEOF
13543#define HAVE_DLOPEN 1
13544_ACEOF
13545
13546 DLLIBS="-ldl"
13547else
13548 LIBEXT="a"
13549fi
13550
13551fi
13552done
13553
13554else
13555 LIBEXT="a"
13556fi
13557
13558done
13559
13560
13561 if test "$LIBEXT" = "so"
13562 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000013563 DLLFLAGS="$DLLFLAGS -fPIC"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013564 DLLEXT=".so"
Alexandre Julliard466ae142002-05-07 18:33:47 +000013565 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013566echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13567if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13568 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013569else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013570 ac_wine_try_cflags_saved=$CFLAGS
13571CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13572cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000013573void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013574_ACEOF
13575rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013577 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013578 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013583 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013592 (eval $ac_try) 2>&5
13593 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013595 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000013596 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013597else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013598 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013599sed 's/^/| /' conftest.$ac_ext >&5
13600
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013601ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013602fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013603rm -f conftest.err conftest.$ac_objext \
13604 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013605CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013606fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013607echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013608echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000013609 if test "$ac_cv_c_dll_gnuelf" = "yes"
13610 then
13611 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013612 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013613 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13614echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13615if test "${ac_cv_c_dll_zdefs+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13617else
13618 ac_wine_try_cflags_saved=$CFLAGS
13619CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13620cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013621/* confdefs.h. */
13622_ACEOF
13623cat confdefs.h >>conftest.$ac_ext
13624cat >>conftest.$ac_ext <<_ACEOF
13625/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013626
13627int
13628main ()
13629{
13630
13631 ;
13632 return 0;
13633}
13634_ACEOF
13635rm -f conftest.$ac_objext conftest$ac_exeext
13636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013637 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013638 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; } &&
13650 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13653 ac_status=$?
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 ac_cv_c_dll_zdefs="yes"
13657else
13658 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013659sed 's/^/| /' conftest.$ac_ext >&5
13660
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013661ac_cv_c_dll_zdefs="no"
13662fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013663rm -f conftest.err conftest.$ac_objext \
13664 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013665CFLAGS=$ac_wine_try_cflags_saved
13666fi
13667echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13668echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13669 if test "$ac_cv_c_dll_zdefs" = "yes"
13670 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013671 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013672 fi
Alexandre Julliard4d52d372003-03-24 19:33:20 +000013673
Alexandre Julliard36048242004-01-08 03:36:53 +000013674 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13675echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13676if test "${ac_cv_c_dll_init_fini+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678else
13679 ac_wine_try_cflags_saved=$CFLAGS
13680CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13681cat >conftest.$ac_ext <<_ACEOF
13682/* confdefs.h. */
13683_ACEOF
13684cat confdefs.h >>conftest.$ac_ext
13685cat >>conftest.$ac_ext <<_ACEOF
13686/* end confdefs.h. */
13687
13688int
13689main ()
13690{
13691
13692 ;
13693 return 0;
13694}
13695_ACEOF
13696rm -f conftest.$ac_objext conftest$ac_exeext
13697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13698 (eval $ac_link) 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest$ac_exeext'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; }; then
13717 ac_cv_c_dll_init_fini="yes"
13718else
13719 echo "$as_me: failed program was:" >&5
13720sed 's/^/| /' conftest.$ac_ext >&5
13721
13722ac_cv_c_dll_init_fini="no"
13723fi
13724rm -f conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726CFLAGS=$ac_wine_try_cflags_saved
13727fi
13728echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13729echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13730 if test "$ac_cv_c_dll_init_fini" = "yes"
13731 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013732 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard36048242004-01-08 03:36:53 +000013733 fi
13734
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000013735 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13736echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13737if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13739else
13740 echo '{ global: *; };' >conftest.map
13741 ac_wine_try_cflags_saved=$CFLAGS
13742CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13743cat >conftest.$ac_ext <<_ACEOF
13744/* confdefs.h. */
13745_ACEOF
13746cat confdefs.h >>conftest.$ac_ext
13747cat >>conftest.$ac_ext <<_ACEOF
13748/* end confdefs.h. */
13749
13750int
13751main ()
13752{
13753
13754 ;
13755 return 0;
13756}
13757_ACEOF
13758rm -f conftest.$ac_objext conftest$ac_exeext
13759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13760 (eval $ac_link) 2>conftest.er1
13761 ac_status=$?
13762 grep -v '^ *+' conftest.er1 >conftest.err
13763 rm -f conftest.er1
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; } &&
13773 { ac_try='test -s conftest$ac_exeext'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 ac_cv_c_ld_version_scripts="yes"
13780else
13781 echo "$as_me: failed program was:" >&5
13782sed 's/^/| /' conftest.$ac_ext >&5
13783
13784ac_cv_c_ld_version_scripts="no"
13785fi
13786rm -f conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
13788CFLAGS=$ac_wine_try_cflags_saved
13789 rm -f conftest.map
13790fi
13791echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13792echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13793 if test "$ac_cv_c_ld_version_scripts" = "yes"
13794 then
13795 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13796 fi
13797
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013798 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13799echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13800if test "${ac_cv_c_export_dynamic+set}" = set; then
13801 echo $ECHO_N "(cached) $ECHO_C" >&6
13802else
13803 ac_wine_try_cflags_saved=$CFLAGS
13804CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13805cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013806/* confdefs.h. */
13807_ACEOF
13808cat confdefs.h >>conftest.$ac_ext
13809cat >>conftest.$ac_ext <<_ACEOF
13810/* end confdefs.h. */
13811
13812int
13813main ()
13814{
13815
13816 ;
13817 return 0;
13818}
13819_ACEOF
13820rm -f conftest.$ac_objext conftest$ac_exeext
13821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013822 (eval $ac_link) 2>conftest.er1
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013823 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013824 grep -v '^ *+' conftest.er1 >conftest.err
13825 rm -f conftest.er1
13826 cat conftest.err >&5
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; } &&
13835 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }; then
13841 ac_cv_c_export_dynamic="yes"
13842else
13843 echo "$as_me: failed program was:" >&5
13844sed 's/^/| /' conftest.$ac_ext >&5
13845
13846ac_cv_c_export_dynamic="no"
13847fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013848rm -f conftest.err conftest.$ac_objext \
13849 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013850CFLAGS=$ac_wine_try_cflags_saved
13851fi
13852echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13853echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13854 if test "$ac_cv_c_export_dynamic" = "yes"
13855 then
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013856 LDEXECFLAGS="-Wl,--export-dynamic"
13857
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013858 fi
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013859
13860 case $host_cpu in
13861 *i[3456789]86*)
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013862 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
13863echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013864if test "${ac_cv_ld_reloc_exec+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013867 ac_wine_try_cflags_saved=$CFLAGS
13868CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
13869cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013870/* confdefs.h. */
13871_ACEOF
13872cat confdefs.h >>conftest.$ac_ext
13873cat >>conftest.$ac_ext <<_ACEOF
13874/* end confdefs.h. */
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013875
13876int
13877main ()
13878{
13879
13880 ;
13881 return 0;
13882}
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013883_ACEOF
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013884rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013886 (eval $ac_link) 2>conftest.er1
13887 ac_status=$?
13888 grep -v '^ *+' conftest.er1 >conftest.err
13889 rm -f conftest.er1
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } &&
13893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013898 (exit $ac_status); }; } &&
13899 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13902 ac_status=$?
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; }; then
13905 ac_cv_ld_reloc_exec="yes"
13906else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013907 echo "$as_me: failed program was:" >&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013908sed 's/^/| /' conftest.$ac_ext >&5
13909
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013910ac_cv_ld_reloc_exec="no"
13911fi
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013912rm -f conftest.err conftest.$ac_objext \
13913 conftest$ac_exeext conftest.$ac_ext
13914CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013915fi
13916echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13917echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13918 if test "$ac_cv_ld_reloc_exec" = "yes"
13919 then
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013920 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013921 fi
13922 ;;
13923 esac
13924
Alexandre Julliard466ae142002-05-07 18:33:47 +000013925 else
13926 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013927echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13928if test "${ac_cv_c_dll_unixware+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000013930else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013931 ac_wine_try_cflags_saved=$CFLAGS
13932CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13933cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000013934void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013935_ACEOF
13936rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013938 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013939 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013940 grep -v '^ *+' conftest.er1 >conftest.err
13941 rm -f conftest.er1
13942 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013944 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13948 ac_status=$?
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; } &&
13951 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013953 (eval $ac_try) 2>&5
13954 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013956 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000013957 ac_cv_c_dll_unixware="yes"
13958else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013959 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013960sed 's/^/| /' conftest.$ac_ext >&5
13961
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013962ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000013963fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013964rm -f conftest.err conftest.$ac_objext \
13965 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013966CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013967fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013968echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013969echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000013970 if test "$ac_cv_c_dll_unixware" = "yes"
13971 then
13972 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013973 LDDLLFLAGS="-Wl,-G,-B,symbolic"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013974
13975 else
13976 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13977echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13978if test "${ac_cv_c_dll_macho+set}" = set; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13980else
13981 ac_wine_try_cflags_saved=$CFLAGS
13982CFLAGS="$CFLAGS -bundle"
13983cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000013984void myfunc() {}
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013985_ACEOF
13986rm -f conftest.$ac_objext conftest$ac_exeext
13987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013988 (eval $ac_link) 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013989 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; } &&
14001 { ac_try='test -s conftest$ac_exeext'
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003 (eval $ac_try) 2>&5
14004 ac_status=$?
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }; }; then
14007 ac_cv_c_dll_macho="yes"
14008else
14009 echo "$as_me: failed program was:" >&5
14010sed 's/^/| /' conftest.$ac_ext >&5
14011
14012ac_cv_c_dll_macho="no"
14013fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014014rm -f conftest.err conftest.$ac_objext \
14015 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014016CFLAGS=$ac_wine_try_cflags_saved
14017fi
14018echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14019echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14020 if test "$ac_cv_c_dll_macho" = "yes"
14021 then
14022 LIBEXT="dylib"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014023 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014024 LDSHARED="\$(CC) -dynamiclib"
14025 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014026 STRIP="$STRIP -u -r"
Emmanuel Maillard46718f82004-07-22 19:48:41 +000014027 LDEXECFLAGS="-seg1addr 0x120000"
14028
14029 LDLIBWINEFLAGS="-seg1addr 0x140000"
14030
Emmanuel Maillard2300ce62004-08-19 01:20:45 +000014031 COREFOUNDATIONLIB="-framework CoreFoundation"
14032
14033 IOKITLIB="-framework IOKit"
14034
14035 IOKITLIB = "$IOKITLIB $COREFOUNDATIONLIB"
Warren Baird421e8b92004-09-22 19:17:55 +000014036 else
14037 echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
14038echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
14039if test "${ac_cv_c_dll_hpux+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14041else
14042 ac_wine_try_cflags_saved=$CFLAGS
14043CFLAGS="$CFLAGS -shared"
14044cat >conftest.$ac_ext <<_ACEOF
14045void myfunc() {}
14046_ACEOF
14047rm -f conftest.$ac_objext conftest$ac_exeext
14048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14049 (eval $ac_link) 2>conftest.er1
14050 ac_status=$?
14051 grep -v '^ *+' conftest.er1 >conftest.err
14052 rm -f conftest.er1
14053 cat conftest.err >&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } &&
14056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; } &&
14062 { ac_try='test -s conftest$ac_exeext'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14065 ac_status=$?
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
14068 ac_cv_c_dll_hpux="yes"
14069else
14070 echo "$as_me: failed program was:" >&5
14071sed 's/^/| /' conftest.$ac_ext >&5
14072
14073ac_cv_c_dll_hpux="no"
14074fi
14075rm -f conftest.err conftest.$ac_objext \
14076 conftest$ac_exeext conftest.$ac_ext
14077CFLAGS=$ac_wine_try_cflags_saved
14078fi
14079echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
14080echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
14081 if test "$ac_cv_c_dll_hpux" = "yes"
14082 then
14083 LIBEXT="sl"
14084 LDDLLFLAGS="-shared"
14085 LDSHARED="\$(CC) -shared"
14086 fi
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014087 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000014088 fi
14089 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014090 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014091
14092 CROSSTEST=""
14093
14094 if test "$cross_compiling" = "no"
14095 then
Kevin Koltzaud3444562004-04-15 00:01:05 +000014096 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014097do
14098 # Extract the first word of "$ac_prog", so it can be a program name with args.
14099set dummy $ac_prog; ac_word=$2
14100echo "$as_me:$LINENO: checking for $ac_word" >&5
14101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14102if test "${ac_cv_prog_CROSSCC+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104else
14105 if test -n "$CROSSCC"; then
14106 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14107else
14108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14109for as_dir in $PATH
14110do
14111 IFS=$as_save_IFS
14112 test -z "$as_dir" && as_dir=.
14113 for ac_exec_ext in '' $ac_executable_extensions; do
14114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14115 ac_cv_prog_CROSSCC="$ac_prog"
14116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14117 break 2
14118 fi
14119done
14120done
14121
14122fi
14123fi
14124CROSSCC=$ac_cv_prog_CROSSCC
14125if test -n "$CROSSCC"; then
14126 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14127echo "${ECHO_T}$CROSSCC" >&6
14128else
14129 echo "$as_me:$LINENO: result: no" >&5
14130echo "${ECHO_T}no" >&6
14131fi
14132
14133 test -n "$CROSSCC" && break
14134done
14135test -n "$CROSSCC" || CROSSCC="false"
14136
Kevin Koltzaud3444562004-04-15 00:01:05 +000014137 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014138do
14139 # Extract the first word of "$ac_prog", so it can be a program name with args.
14140set dummy $ac_prog; ac_word=$2
14141echo "$as_me:$LINENO: checking for $ac_word" >&5
14142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14143if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14145else
14146 if test -n "$DLLTOOL"; then
14147 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14148else
14149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150for as_dir in $PATH
14151do
14152 IFS=$as_save_IFS
14153 test -z "$as_dir" && as_dir=.
14154 for ac_exec_ext in '' $ac_executable_extensions; do
14155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14156 ac_cv_prog_DLLTOOL="$ac_prog"
14157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14158 break 2
14159 fi
14160done
14161done
14162
14163fi
14164fi
14165DLLTOOL=$ac_cv_prog_DLLTOOL
14166if test -n "$DLLTOOL"; then
14167 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14168echo "${ECHO_T}$DLLTOOL" >&6
14169else
14170 echo "$as_me:$LINENO: result: no" >&5
14171echo "${ECHO_T}no" >&6
14172fi
14173
14174 test -n "$DLLTOOL" && break
14175done
14176test -n "$DLLTOOL" || DLLTOOL="false"
14177
Kevin Koltzaud3444562004-04-15 00:01:05 +000014178 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
Alexandre Julliard21ee3292003-04-21 22:52:31 +000014179do
14180 # Extract the first word of "$ac_prog", so it can be a program name with args.
14181set dummy $ac_prog; ac_word=$2
14182echo "$as_me:$LINENO: checking for $ac_word" >&5
14183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14184if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14185 echo $ECHO_N "(cached) $ECHO_C" >&6
14186else
14187 if test -n "$CROSSWINDRES"; then
14188 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14189else
14190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191for as_dir in $PATH
14192do
14193 IFS=$as_save_IFS
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14197 ac_cv_prog_CROSSWINDRES="$ac_prog"
14198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14199 break 2
14200 fi
14201done
14202done
14203
14204fi
14205fi
14206CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14207if test -n "$CROSSWINDRES"; then
14208 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14209echo "${ECHO_T}$CROSSWINDRES" >&6
14210else
14211 echo "$as_me:$LINENO: result: no" >&5
14212echo "${ECHO_T}no" >&6
14213fi
14214
14215 test -n "$CROSSWINDRES" && break
14216done
14217test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14218
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014219 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14220 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014221 ;;
14222esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014223
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000014224if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014225 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014226It is currently not possible to build Wine without shared library
14227(.so) support to allow transparent switch between .so and .dll files.
14228If you are using Linux, you will need a newer binutils.
14229" >&5
14230echo "$as_me: error: could not find a way to build shared libraries.
14231It is currently not possible to build Wine without shared library
14232(.so) support to allow transparent switch between .so and .dll files.
14233If you are using Linux, you will need a newer binutils.
14234" >&2;}
14235 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000014236fi
14237
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014238case $build_os in
14239 cygwin*|mingw32*)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000014240 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014241 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014242 darwin*|macosx*)
14243 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14244 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014245 *)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000014246 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014247 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014248esac
14249
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014250case $host_os in
14251 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000014252 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000014253
14254 SOCKETLIBS="-lws2_32"
14255
14256 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000014257esac
14258
14259case $host_os in
14260 linux*)
Vincent BĂ©ron4bf9d982004-10-14 00:30:59 +000014261 case $host_cpu in
14262 *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14263 ;;
14264 *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14265 ;;
14266 esac
Alexandre Julliarda628c132003-11-12 03:28:21 +000014267 MAIN_BINARY="wine-glibc"
Alexandre Julliard546839f2003-11-11 00:48:21 +000014268
Alexandre Julliard546839f2003-11-11 00:48:21 +000014269 ;;
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000014270 darwin*)
14271 WINE_BINARIES="wine-pthread"
14272
14273 MAIN_BINARY="wine-pthread"
14274
14275 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000014276 *)
14277 WINE_BINARIES="wine-kthread"
14278
14279 MAIN_BINARY="wine-kthread"
14280
14281 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014282esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014283
14284
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014285if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014286then
14287 # Extract the first word of "ldd", so it can be a program name with args.
14288set dummy ldd; ac_word=$2
14289echo "$as_me:$LINENO: checking for $ac_word" >&5
14290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14291if test "${ac_cv_path_LDD+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14293else
14294 case $LDD in
14295 [\\/]* | ?:[\\/]*)
14296 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14297 ;;
14298 *)
14299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014300as_dummy="/sbin:/usr/sbin:$PATH"
14301for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014302do
14303 IFS=$as_save_IFS
14304 test -z "$as_dir" && as_dir=.
14305 for ac_exec_ext in '' $ac_executable_extensions; do
14306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14307 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14309 break 2
14310 fi
14311done
14312done
14313
14314 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14315 ;;
14316esac
14317fi
14318LDD=$ac_cv_path_LDD
14319
14320if test -n "$LDD"; then
14321 echo "$as_me:$LINENO: result: $LDD" >&5
14322echo "${ECHO_T}$LDD" >&6
14323else
14324 echo "$as_me:$LINENO: result: no" >&5
14325echo "${ECHO_T}no" >&6
14326fi
14327
14328
14329echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14330echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14331if test "${ac_cv_lib_soname_X11+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14333else
14334 ac_get_soname_save_LIBS=$LIBS
14335LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14336 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014337/* confdefs.h. */
14338_ACEOF
14339cat confdefs.h >>conftest.$ac_ext
14340cat >>conftest.$ac_ext <<_ACEOF
14341/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014342
14343/* Override any gcc2 internal prototype to avoid an error. */
14344#ifdef __cplusplus
14345extern "C"
14346#endif
14347/* We use char because int might match the return type of a gcc2
14348 builtin and then its argument prototype would still apply. */
14349char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014350int
14351main ()
14352{
14353XCreateWindow ();
14354 ;
14355 return 0;
14356}
14357_ACEOF
14358rm -f conftest.$ac_objext conftest$ac_exeext
14359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014360 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014361 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014362 grep -v '^ *+' conftest.er1 >conftest.err
14363 rm -f conftest.er1
14364 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14369 (eval $ac_try) 2>&5
14370 ac_status=$?
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); }; } &&
14373 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014379 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 +000014380 if test "x$ac_cv_lib_soname_X11" = "x"
14381 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014382 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014383 fi
14384else
14385 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014386sed 's/^/| /' conftest.$ac_ext >&5
14387
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014388ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014389fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014390rm -f conftest.err conftest.$ac_objext \
14391 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014392 LIBS=$ac_get_soname_save_LIBS
14393fi
14394echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14395echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14396if test "x$ac_cv_lib_soname_X11" != xNONE
14397then
14398cat >>confdefs.h <<_ACEOF
14399#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14400_ACEOF
14401fi
14402
14403echo "$as_me:$LINENO: checking for -lXext soname" >&5
14404echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14405if test "${ac_cv_lib_soname_Xext+set}" = set; then
14406 echo $ECHO_N "(cached) $ECHO_C" >&6
14407else
14408 ac_get_soname_save_LIBS=$LIBS
14409LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14410 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014411/* confdefs.h. */
14412_ACEOF
14413cat confdefs.h >>conftest.$ac_ext
14414cat >>conftest.$ac_ext <<_ACEOF
14415/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014416
14417/* Override any gcc2 internal prototype to avoid an error. */
14418#ifdef __cplusplus
14419extern "C"
14420#endif
14421/* We use char because int might match the return type of a gcc2
14422 builtin and then its argument prototype would still apply. */
14423char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014424int
14425main ()
14426{
14427XextCreateExtension ();
14428 ;
14429 return 0;
14430}
14431_ACEOF
14432rm -f conftest.$ac_objext conftest$ac_exeext
14433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014434 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014435 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443 (eval $ac_try) 2>&5
14444 ac_status=$?
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); }; } &&
14447 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14450 ac_status=$?
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014453 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 +000014454 if test "x$ac_cv_lib_soname_Xext" = "x"
14455 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014456 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014457 fi
14458else
14459 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014460sed 's/^/| /' conftest.$ac_ext >&5
14461
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014462ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014463fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014464rm -f conftest.err conftest.$ac_objext \
14465 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014466 LIBS=$ac_get_soname_save_LIBS
14467fi
14468echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14469echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14470if test "x$ac_cv_lib_soname_Xext" != xNONE
14471then
14472cat >>confdefs.h <<_ACEOF
14473#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14474_ACEOF
14475fi
14476
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014477echo "$as_me:$LINENO: checking for -lXi soname" >&5
14478echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14479if test "${ac_cv_lib_soname_Xi+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14481else
14482 ac_get_soname_save_LIBS=$LIBS
14483LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14484 cat >conftest.$ac_ext <<_ACEOF
14485/* confdefs.h. */
14486_ACEOF
14487cat confdefs.h >>conftest.$ac_ext
14488cat >>conftest.$ac_ext <<_ACEOF
14489/* end confdefs.h. */
14490
14491/* Override any gcc2 internal prototype to avoid an error. */
14492#ifdef __cplusplus
14493extern "C"
14494#endif
14495/* We use char because int might match the return type of a gcc2
14496 builtin and then its argument prototype would still apply. */
14497char XOpenDevice ();
14498int
14499main ()
14500{
14501XOpenDevice ();
14502 ;
14503 return 0;
14504}
14505_ACEOF
14506rm -f conftest.$ac_objext conftest$ac_exeext
14507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14508 (eval $ac_link) 2>conftest.er1
14509 ac_status=$?
14510 grep -v '^ *+' conftest.er1 >conftest.err
14511 rm -f conftest.er1
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } &&
14515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; } &&
14521 { ac_try='test -s conftest$ac_exeext'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14524 ac_status=$?
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014527 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 +000014528 if test "x$ac_cv_lib_soname_Xi" = "x"
14529 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014530 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014531 fi
14532else
14533 echo "$as_me: failed program was:" >&5
14534sed 's/^/| /' conftest.$ac_ext >&5
14535
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014536ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014537fi
14538rm -f conftest.err conftest.$ac_objext \
14539 conftest$ac_exeext conftest.$ac_ext
14540 LIBS=$ac_get_soname_save_LIBS
14541fi
14542echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14543echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14544if test "x$ac_cv_lib_soname_Xi" != xNONE
14545then
14546cat >>confdefs.h <<_ACEOF
14547#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14548_ACEOF
14549fi
14550
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014551echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14552echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14553if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14554 echo $ECHO_N "(cached) $ECHO_C" >&6
14555else
14556 ac_get_soname_save_LIBS=$LIBS
14557LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14558 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014559/* confdefs.h. */
14560_ACEOF
14561cat confdefs.h >>conftest.$ac_ext
14562cat >>conftest.$ac_ext <<_ACEOF
14563/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014564
14565/* Override any gcc2 internal prototype to avoid an error. */
14566#ifdef __cplusplus
14567extern "C"
14568#endif
14569/* We use char because int might match the return type of a gcc2
14570 builtin and then its argument prototype would still apply. */
14571char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014572int
14573main ()
14574{
14575XRenderQueryExtension ();
14576 ;
14577 return 0;
14578}
14579_ACEOF
14580rm -f conftest.$ac_objext conftest$ac_exeext
14581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014582 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014583 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014584 grep -v '^ *+' conftest.er1 >conftest.err
14585 rm -f conftest.er1
14586 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591 (eval $ac_try) 2>&5
14592 ac_status=$?
14593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594 (exit $ac_status); }; } &&
14595 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14598 ac_status=$?
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014601 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 +000014602 if test "x$ac_cv_lib_soname_Xrender" = "x"
14603 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014604 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014605 fi
14606else
14607 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014608sed 's/^/| /' conftest.$ac_ext >&5
14609
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014610ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014611fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014612rm -f conftest.err conftest.$ac_objext \
14613 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014614 LIBS=$ac_get_soname_save_LIBS
14615fi
14616echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14617echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14618if test "x$ac_cv_lib_soname_Xrender" != xNONE
14619then
14620cat >>confdefs.h <<_ACEOF
14621#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14622_ACEOF
14623fi
14624
Mike McCormackc7c9f932004-04-07 03:57:35 +000014625echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14626echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14627if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14629else
14630 ac_get_soname_save_LIBS=$LIBS
14631LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14632 cat >conftest.$ac_ext <<_ACEOF
14633/* confdefs.h. */
14634_ACEOF
14635cat confdefs.h >>conftest.$ac_ext
14636cat >>conftest.$ac_ext <<_ACEOF
14637/* end confdefs.h. */
14638
14639/* Override any gcc2 internal prototype to avoid an error. */
14640#ifdef __cplusplus
14641extern "C"
14642#endif
14643/* We use char because int might match the return type of a gcc2
14644 builtin and then its argument prototype would still apply. */
14645char XRRQueryExtension ();
14646int
14647main ()
14648{
14649XRRQueryExtension ();
14650 ;
14651 return 0;
14652}
14653_ACEOF
14654rm -f conftest.$ac_objext conftest$ac_exeext
14655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14656 (eval $ac_link) 2>conftest.er1
14657 ac_status=$?
14658 grep -v '^ *+' conftest.er1 >conftest.err
14659 rm -f conftest.er1
14660 cat conftest.err >&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } &&
14663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665 (eval $ac_try) 2>&5
14666 ac_status=$?
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; } &&
14669 { ac_try='test -s conftest$ac_exeext'
14670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671 (eval $ac_try) 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014675 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 +000014676 if test "x$ac_cv_lib_soname_Xrandr" = "x"
14677 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014678 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000014679 fi
14680else
14681 echo "$as_me: failed program was:" >&5
14682sed 's/^/| /' conftest.$ac_ext >&5
14683
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014684ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000014685fi
14686rm -f conftest.err conftest.$ac_objext \
14687 conftest$ac_exeext conftest.$ac_ext
14688 LIBS=$ac_get_soname_save_LIBS
14689fi
14690echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14691echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14692if test "x$ac_cv_lib_soname_Xrandr" != xNONE
14693then
14694cat >>confdefs.h <<_ACEOF
14695#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14696_ACEOF
14697fi
14698
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014699echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14700echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14701if test "${ac_cv_lib_soname_freetype+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14703else
14704 ac_get_soname_save_LIBS=$LIBS
14705LIBS="-lfreetype $X_LIBS $LIBS"
14706 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014707/* confdefs.h. */
14708_ACEOF
14709cat confdefs.h >>conftest.$ac_ext
14710cat >>conftest.$ac_ext <<_ACEOF
14711/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014712
14713/* Override any gcc2 internal prototype to avoid an error. */
14714#ifdef __cplusplus
14715extern "C"
14716#endif
14717/* We use char because int might match the return type of a gcc2
14718 builtin and then its argument prototype would still apply. */
14719char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014720int
14721main ()
14722{
14723FT_Init_FreeType ();
14724 ;
14725 return 0;
14726}
14727_ACEOF
14728rm -f conftest.$ac_objext conftest$ac_exeext
14729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014730 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014731 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014732 grep -v '^ *+' conftest.er1 >conftest.err
14733 rm -f conftest.er1
14734 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; } &&
14743 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014749 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 +000014750 if test "x$ac_cv_lib_soname_freetype" = "x"
14751 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014752 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014753 fi
14754else
14755 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014756sed 's/^/| /' conftest.$ac_ext >&5
14757
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014758ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014759fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014760rm -f conftest.err conftest.$ac_objext \
14761 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014762 LIBS=$ac_get_soname_save_LIBS
14763fi
14764echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14765echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14766if test "x$ac_cv_lib_soname_freetype" != xNONE
14767then
14768cat >>confdefs.h <<_ACEOF
14769#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14770_ACEOF
14771fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000014772
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014773echo "$as_me:$LINENO: checking for -lGL soname" >&5
14774echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14775if test "${ac_cv_lib_soname_GL+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14777else
14778 ac_get_soname_save_LIBS=$LIBS
14779LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14780 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014781/* confdefs.h. */
14782_ACEOF
14783cat confdefs.h >>conftest.$ac_ext
14784cat >>conftest.$ac_ext <<_ACEOF
14785/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014786
14787/* Override any gcc2 internal prototype to avoid an error. */
14788#ifdef __cplusplus
14789extern "C"
14790#endif
14791/* We use char because int might match the return type of a gcc2
14792 builtin and then its argument prototype would still apply. */
14793char glXQueryExtension ();
14794int
14795main ()
14796{
14797glXQueryExtension ();
14798 ;
14799 return 0;
14800}
14801_ACEOF
14802rm -f conftest.$ac_objext conftest$ac_exeext
14803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014804 (eval $ac_link) 2>conftest.er1
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014805 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014806 grep -v '^ *+' conftest.er1 >conftest.err
14807 rm -f conftest.er1
14808 cat conftest.err >&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; } &&
14817 { ac_try='test -s conftest$ac_exeext'
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014823 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 +000014824 if test "x$ac_cv_lib_soname_GL" = "x"
14825 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014826 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014827 fi
14828else
14829 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014830sed 's/^/| /' conftest.$ac_ext >&5
14831
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014832ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014833fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014834rm -f conftest.err conftest.$ac_objext \
14835 conftest$ac_exeext conftest.$ac_ext
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014836 LIBS=$ac_get_soname_save_LIBS
14837fi
14838echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14839echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14840if test "x$ac_cv_lib_soname_GL" != xNONE
14841then
14842cat >>confdefs.h <<_ACEOF
14843#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14844_ACEOF
14845fi
14846
Christian Costaeac96b52004-07-30 18:54:32 +000014847echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14848echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
14849if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14851else
14852 ac_get_soname_save_LIBS=$LIBS
14853LIBS="-ltxc_dxtn $LIBS"
14854 cat >conftest.$ac_ext <<_ACEOF
14855/* confdefs.h. */
14856_ACEOF
14857cat confdefs.h >>conftest.$ac_ext
14858cat >>conftest.$ac_ext <<_ACEOF
14859/* end confdefs.h. */
14860
14861/* Override any gcc2 internal prototype to avoid an error. */
14862#ifdef __cplusplus
14863extern "C"
14864#endif
14865/* We use char because int might match the return type of a gcc2
14866 builtin and then its argument prototype would still apply. */
14867char fetch_2d_texel_rgba_dxt1 ();
14868int
14869main ()
14870{
14871fetch_2d_texel_rgba_dxt1 ();
14872 ;
14873 return 0;
14874}
14875_ACEOF
14876rm -f conftest.$ac_objext conftest$ac_exeext
14877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878 (eval $ac_link) 2>conftest.er1
14879 ac_status=$?
14880 grep -v '^ *+' conftest.er1 >conftest.err
14881 rm -f conftest.er1
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } &&
14885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; } &&
14891 { ac_try='test -s conftest$ac_exeext'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"`
14898 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
14899 then
14900 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14901 fi
14902else
14903 echo "$as_me: failed program was:" >&5
14904sed 's/^/| /' conftest.$ac_ext >&5
14905
14906ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14907fi
14908rm -f conftest.err conftest.$ac_objext \
14909 conftest$ac_exeext conftest.$ac_ext
14910 LIBS=$ac_get_soname_save_LIBS
14911fi
14912echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
14913echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
14914if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
14915then
14916cat >>confdefs.h <<_ACEOF
14917#define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
14918_ACEOF
14919fi
14920
Marcus Meissnerf061f762002-11-12 02:22:24 +000014921echo "$as_me:$LINENO: checking for -lcups soname" >&5
14922echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14923if test "${ac_cv_lib_soname_cups+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14925else
14926 ac_get_soname_save_LIBS=$LIBS
14927LIBS="-lcups $LIBS"
14928 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014929/* confdefs.h. */
14930_ACEOF
14931cat confdefs.h >>conftest.$ac_ext
14932cat >>conftest.$ac_ext <<_ACEOF
14933/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000014934
14935/* Override any gcc2 internal prototype to avoid an error. */
14936#ifdef __cplusplus
14937extern "C"
14938#endif
14939/* We use char because int might match the return type of a gcc2
14940 builtin and then its argument prototype would still apply. */
14941char cupsGetDefault ();
14942int
14943main ()
14944{
14945cupsGetDefault ();
14946 ;
14947 return 0;
14948}
14949_ACEOF
14950rm -f conftest.$ac_objext conftest$ac_exeext
14951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014952 (eval $ac_link) 2>conftest.er1
Marcus Meissnerf061f762002-11-12 02:22:24 +000014953 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000014957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; } &&
14965 { ac_try='test -s conftest$ac_exeext'
Marcus Meissnerf061f762002-11-12 02:22:24 +000014966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014971 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 +000014972 if test "x$ac_cv_lib_soname_cups" = "x"
14973 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014974 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000014975 fi
14976else
14977 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014978sed 's/^/| /' conftest.$ac_ext >&5
14979
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014980ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000014981fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014982rm -f conftest.err conftest.$ac_objext \
14983 conftest$ac_exeext conftest.$ac_ext
Marcus Meissnerf061f762002-11-12 02:22:24 +000014984 LIBS=$ac_get_soname_save_LIBS
14985fi
14986echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14987echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14988if test "x$ac_cv_lib_soname_cups" != xNONE
14989then
14990cat >>confdefs.h <<_ACEOF
14991#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14992_ACEOF
14993fi
Chris Morgan4691b182002-12-13 02:26:18 +000014994
14995echo "$as_me:$LINENO: checking for -ljack soname" >&5
14996echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
14997if test "${ac_cv_lib_soname_jack+set}" = set; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
14999else
15000 ac_get_soname_save_LIBS=$LIBS
15001LIBS="-ljack $LIBS"
15002 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015003/* confdefs.h. */
15004_ACEOF
15005cat confdefs.h >>conftest.$ac_ext
15006cat >>conftest.$ac_ext <<_ACEOF
15007/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000015008
15009/* Override any gcc2 internal prototype to avoid an error. */
15010#ifdef __cplusplus
15011extern "C"
15012#endif
15013/* We use char because int might match the return type of a gcc2
15014 builtin and then its argument prototype would still apply. */
15015char jack_client_new ();
15016int
15017main ()
15018{
15019jack_client_new ();
15020 ;
15021 return 0;
15022}
15023_ACEOF
15024rm -f conftest.$ac_objext conftest$ac_exeext
15025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015026 (eval $ac_link) 2>conftest.er1
Chris Morgan4691b182002-12-13 02:26:18 +000015027 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015028 grep -v '^ *+' conftest.er1 >conftest.err
15029 rm -f conftest.er1
15030 cat conftest.err >&5
Chris Morgan4691b182002-12-13 02:26:18 +000015031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; } &&
15039 { ac_try='test -s conftest$ac_exeext'
Chris Morgan4691b182002-12-13 02:26:18 +000015040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015045 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 +000015046 if test "x$ac_cv_lib_soname_jack" = "x"
15047 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015048 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000015049 fi
15050else
15051 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015052sed 's/^/| /' conftest.$ac_ext >&5
15053
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015054ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000015055fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015056rm -f conftest.err conftest.$ac_objext \
15057 conftest$ac_exeext conftest.$ac_ext
Chris Morgan4691b182002-12-13 02:26:18 +000015058 LIBS=$ac_get_soname_save_LIBS
15059fi
15060echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15061echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15062if test "x$ac_cv_lib_soname_jack" != xNONE
15063then
15064cat >>confdefs.h <<_ACEOF
15065#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15066_ACEOF
15067fi
David Hammerton852c7ae2003-06-20 23:26:56 +000015068
Huw Davies6e128072003-11-09 00:30:13 +000015069echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15070echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15071if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073else
15074 ac_get_soname_save_LIBS=$LIBS
15075LIBS="-lfontconfig $LIBS"
15076 cat >conftest.$ac_ext <<_ACEOF
Huw Davies6e128072003-11-09 00:30:13 +000015077/* confdefs.h. */
15078_ACEOF
15079cat confdefs.h >>conftest.$ac_ext
15080cat >>conftest.$ac_ext <<_ACEOF
15081/* end confdefs.h. */
15082
15083/* Override any gcc2 internal prototype to avoid an error. */
15084#ifdef __cplusplus
15085extern "C"
15086#endif
15087/* We use char because int might match the return type of a gcc2
15088 builtin and then its argument prototype would still apply. */
15089char FcInit ();
15090int
15091main ()
15092{
15093FcInit ();
15094 ;
15095 return 0;
15096}
15097_ACEOF
15098rm -f conftest.$ac_objext conftest$ac_exeext
15099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015100 (eval $ac_link) 2>conftest.er1
Huw Davies6e128072003-11-09 00:30:13 +000015101 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
Huw Davies6e128072003-11-09 00:30:13 +000015105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; } &&
15113 { ac_try='test -s conftest$ac_exeext'
Huw Davies6e128072003-11-09 00:30:13 +000015114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15116 ac_status=$?
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015119 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 +000015120 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15121 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015122 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000015123 fi
15124else
15125 echo "$as_me: failed program was:" >&5
15126sed 's/^/| /' conftest.$ac_ext >&5
15127
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015128ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000015129fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015130rm -f conftest.err conftest.$ac_objext \
15131 conftest$ac_exeext conftest.$ac_ext
Huw Davies6e128072003-11-09 00:30:13 +000015132 LIBS=$ac_get_soname_save_LIBS
15133fi
15134echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15135echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15136if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15137then
15138cat >>confdefs.h <<_ACEOF
15139#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15140_ACEOF
Alexandre Julliard79994692003-11-13 20:58:55 +000015141fi
Huw Davies6e128072003-11-09 00:30:13 +000015142
David Hammerton852c7ae2003-06-20 23:26:56 +000015143echo "$as_me:$LINENO: checking for -lssl soname" >&5
15144echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15145if test "${ac_cv_lib_soname_ssl+set}" = set; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15147else
15148 ac_get_soname_save_LIBS=$LIBS
15149LIBS="-lssl $LIBS"
15150 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000015151/* confdefs.h. */
15152_ACEOF
15153cat confdefs.h >>conftest.$ac_ext
15154cat >>conftest.$ac_ext <<_ACEOF
15155/* end confdefs.h. */
15156
15157/* Override any gcc2 internal prototype to avoid an error. */
15158#ifdef __cplusplus
15159extern "C"
15160#endif
15161/* We use char because int might match the return type of a gcc2
15162 builtin and then its argument prototype would still apply. */
15163char SSL_library_init ();
15164int
15165main ()
15166{
15167SSL_library_init ();
15168 ;
15169 return 0;
15170}
15171_ACEOF
15172rm -f conftest.$ac_objext conftest$ac_exeext
15173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015174 (eval $ac_link) 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000015175 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015176 grep -v '^ *+' conftest.er1 >conftest.err
15177 rm -f conftest.er1
15178 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000015179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try='test -s conftest$ac_exeext'
David Hammerton852c7ae2003-06-20 23:26:56 +000015188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015193 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 +000015194 if test "x$ac_cv_lib_soname_ssl" = "x"
15195 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015196 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015197 fi
15198else
15199 echo "$as_me: failed program was:" >&5
15200sed 's/^/| /' conftest.$ac_ext >&5
15201
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015202ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015203fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015204rm -f conftest.err conftest.$ac_objext \
15205 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000015206 LIBS=$ac_get_soname_save_LIBS
15207fi
15208echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15209echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15210if test "x$ac_cv_lib_soname_ssl" != xNONE
15211then
15212cat >>confdefs.h <<_ACEOF
15213#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15214_ACEOF
15215fi
15216
15217echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15218echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15219if test "${ac_cv_lib_soname_crypto+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15221else
15222 ac_get_soname_save_LIBS=$LIBS
15223LIBS="-lcrypto $LIBS"
15224 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000015225/* confdefs.h. */
15226_ACEOF
15227cat confdefs.h >>conftest.$ac_ext
15228cat >>conftest.$ac_ext <<_ACEOF
15229/* end confdefs.h. */
15230
15231/* Override any gcc2 internal prototype to avoid an error. */
15232#ifdef __cplusplus
15233extern "C"
15234#endif
15235/* We use char because int might match the return type of a gcc2
15236 builtin and then its argument prototype would still apply. */
15237char BIO_new_socket ();
15238int
15239main ()
15240{
15241BIO_new_socket ();
15242 ;
15243 return 0;
15244}
15245_ACEOF
15246rm -f conftest.$ac_objext conftest$ac_exeext
15247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015248 (eval $ac_link) 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000015249 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015250 grep -v '^ *+' conftest.er1 >conftest.err
15251 rm -f conftest.er1
15252 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000015253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; } &&
15261 { ac_try='test -s conftest$ac_exeext'
David Hammerton852c7ae2003-06-20 23:26:56 +000015262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15263 (eval $ac_try) 2>&5
15264 ac_status=$?
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015267 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 +000015268 if test "x$ac_cv_lib_soname_crypto" = "x"
15269 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015270 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015271 fi
15272else
15273 echo "$as_me: failed program was:" >&5
15274sed 's/^/| /' conftest.$ac_ext >&5
15275
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015276ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015277fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015278rm -f conftest.err conftest.$ac_objext \
15279 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000015280 LIBS=$ac_get_soname_save_LIBS
15281fi
15282echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15283echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15284if test "x$ac_cv_lib_soname_crypto" != xNONE
15285then
15286cat >>confdefs.h <<_ACEOF
15287#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15288_ACEOF
15289fi
Mike McCormack9557d1b2003-08-20 04:19:01 +000015290
15291echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15292echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15293if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15295else
15296 ac_get_soname_save_LIBS=$LIBS
15297LIBS="-lncurses $LIBS"
15298 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000015299/* confdefs.h. */
15300_ACEOF
15301cat confdefs.h >>conftest.$ac_ext
15302cat >>conftest.$ac_ext <<_ACEOF
15303/* end confdefs.h. */
15304
15305/* Override any gcc2 internal prototype to avoid an error. */
15306#ifdef __cplusplus
15307extern "C"
15308#endif
15309/* We use char because int might match the return type of a gcc2
15310 builtin and then its argument prototype would still apply. */
15311char waddch ();
15312int
15313main ()
15314{
15315waddch ();
15316 ;
15317 return 0;
15318}
15319_ACEOF
15320rm -f conftest.$ac_objext conftest$ac_exeext
15321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015322 (eval $ac_link) 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000015323 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015324 grep -v '^ *+' conftest.er1 >conftest.err
15325 rm -f conftest.er1
15326 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000015327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15332 ac_status=$?
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); }; } &&
15335 { ac_try='test -s conftest$ac_exeext'
Mike McCormack9557d1b2003-08-20 04:19:01 +000015336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337 (eval $ac_try) 2>&5
15338 ac_status=$?
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015341 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 +000015342 if test "x$ac_cv_lib_soname_ncurses" = "x"
15343 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015344 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015345 fi
15346else
15347 echo "$as_me: failed program was:" >&5
15348sed 's/^/| /' conftest.$ac_ext >&5
15349
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015350ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015351fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015352rm -f conftest.err conftest.$ac_objext \
15353 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000015354 LIBS=$ac_get_soname_save_LIBS
15355fi
15356echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15357echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15358if test "x$ac_cv_lib_soname_ncurses" != xNONE
15359then
15360cat >>confdefs.h <<_ACEOF
15361#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15362_ACEOF
15363fi
15364
15365echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15366echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15367if test "${ac_cv_lib_soname_curses+set}" = set; then
15368 echo $ECHO_N "(cached) $ECHO_C" >&6
15369else
15370 ac_get_soname_save_LIBS=$LIBS
15371LIBS="-lcurses $LIBS"
15372 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000015373/* confdefs.h. */
15374_ACEOF
15375cat confdefs.h >>conftest.$ac_ext
15376cat >>conftest.$ac_ext <<_ACEOF
15377/* end confdefs.h. */
15378
15379/* Override any gcc2 internal prototype to avoid an error. */
15380#ifdef __cplusplus
15381extern "C"
15382#endif
15383/* We use char because int might match the return type of a gcc2
15384 builtin and then its argument prototype would still apply. */
15385char waddch ();
15386int
15387main ()
15388{
15389waddch ();
15390 ;
15391 return 0;
15392}
15393_ACEOF
15394rm -f conftest.$ac_objext conftest$ac_exeext
15395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015396 (eval $ac_link) 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000015397 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000015401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15406 ac_status=$?
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; } &&
15409 { ac_try='test -s conftest$ac_exeext'
Mike McCormack9557d1b2003-08-20 04:19:01 +000015410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411 (eval $ac_try) 2>&5
15412 ac_status=$?
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015415 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 +000015416 if test "x$ac_cv_lib_soname_curses" = "x"
15417 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015418 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015419 fi
15420else
15421 echo "$as_me: failed program was:" >&5
15422sed 's/^/| /' conftest.$ac_ext >&5
15423
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015424ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015425fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015426rm -f conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000015428 LIBS=$ac_get_soname_save_LIBS
15429fi
15430echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15431echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15432if test "x$ac_cv_lib_soname_curses" != xNONE
15433then
15434cat >>confdefs.h <<_ACEOF
15435#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15436_ACEOF
15437fi
Huw Daviese82dfab2004-08-04 19:10:26 +000015438
15439echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15440echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15441if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15442 echo $ECHO_N "(cached) $ECHO_C" >&6
15443else
15444 ac_get_soname_save_LIBS=$LIBS
15445LIBS="-ljpeg $LIBS"
15446 cat >conftest.$ac_ext <<_ACEOF
15447/* confdefs.h. */
15448_ACEOF
15449cat confdefs.h >>conftest.$ac_ext
15450cat >>conftest.$ac_ext <<_ACEOF
15451/* end confdefs.h. */
15452
15453/* Override any gcc2 internal prototype to avoid an error. */
15454#ifdef __cplusplus
15455extern "C"
15456#endif
15457/* We use char because int might match the return type of a gcc2
15458 builtin and then its argument prototype would still apply. */
15459char jpeg_start_decompress ();
15460int
15461main ()
15462{
15463jpeg_start_decompress ();
15464 ;
15465 return 0;
15466}
15467_ACEOF
15468rm -f conftest.$ac_objext conftest$ac_exeext
15469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15470 (eval $ac_link) 2>conftest.er1
15471 ac_status=$?
15472 grep -v '^ *+' conftest.er1 >conftest.err
15473 rm -f conftest.er1
15474 cat conftest.err >&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } &&
15477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; } &&
15483 { ac_try='test -s conftest$ac_exeext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"`
15490 if test "x$ac_cv_lib_soname_jpeg" = "x"
15491 then
15492 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15493 fi
15494else
15495 echo "$as_me: failed program was:" >&5
15496sed 's/^/| /' conftest.$ac_ext >&5
15497
15498ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15499fi
15500rm -f conftest.err conftest.$ac_objext \
15501 conftest$ac_exeext conftest.$ac_ext
15502 LIBS=$ac_get_soname_save_LIBS
15503fi
15504echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15505echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15506if test "x$ac_cv_lib_soname_jpeg" != xNONE
15507then
15508cat >>confdefs.h <<_ACEOF
15509#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15510_ACEOF
15511fi
15512
15513echo "$as_me:$LINENO: checking for -lungif soname" >&5
15514echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15515if test "${ac_cv_lib_soname_ungif+set}" = set; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15517else
15518 ac_get_soname_save_LIBS=$LIBS
15519LIBS="-lungif $LIBS"
15520 cat >conftest.$ac_ext <<_ACEOF
15521/* confdefs.h. */
15522_ACEOF
15523cat confdefs.h >>conftest.$ac_ext
15524cat >>conftest.$ac_ext <<_ACEOF
15525/* end confdefs.h. */
15526
15527/* Override any gcc2 internal prototype to avoid an error. */
15528#ifdef __cplusplus
15529extern "C"
15530#endif
15531/* We use char because int might match the return type of a gcc2
15532 builtin and then its argument prototype would still apply. */
15533char DGifOpen ();
15534int
15535main ()
15536{
15537DGifOpen ();
15538 ;
15539 return 0;
15540}
15541_ACEOF
15542rm -f conftest.$ac_objext conftest$ac_exeext
15543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15544 (eval $ac_link) 2>conftest.er1
15545 ac_status=$?
15546 grep -v '^ *+' conftest.er1 >conftest.err
15547 rm -f conftest.er1
15548 cat conftest.err >&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } &&
15551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; } &&
15557 { ac_try='test -s conftest$ac_exeext'
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15560 ac_status=$?
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; }; then
15563 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"`
15564 if test "x$ac_cv_lib_soname_ungif" = "x"
15565 then
15566 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15567 fi
15568else
15569 echo "$as_me: failed program was:" >&5
15570sed 's/^/| /' conftest.$ac_ext >&5
15571
15572ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15573fi
15574rm -f conftest.err conftest.$ac_objext \
15575 conftest$ac_exeext conftest.$ac_ext
15576 LIBS=$ac_get_soname_save_LIBS
15577fi
15578echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15579echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15580if test "x$ac_cv_lib_soname_ungif" != xNONE
15581then
15582cat >>confdefs.h <<_ACEOF
15583#define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15584_ACEOF
15585fi
Marcus Meissner00cf13a2004-09-14 19:27:58 +000015586
15587echo "$as_me:$LINENO: checking for -lgif soname" >&5
15588echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15589if test "${ac_cv_lib_soname_gif+set}" = set; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15591else
15592 ac_get_soname_save_LIBS=$LIBS
15593LIBS="-lgif $LIBS"
15594 cat >conftest.$ac_ext <<_ACEOF
15595/* confdefs.h. */
15596_ACEOF
15597cat confdefs.h >>conftest.$ac_ext
15598cat >>conftest.$ac_ext <<_ACEOF
15599/* end confdefs.h. */
15600
15601/* Override any gcc2 internal prototype to avoid an error. */
15602#ifdef __cplusplus
15603extern "C"
15604#endif
15605/* We use char because int might match the return type of a gcc2
15606 builtin and then its argument prototype would still apply. */
15607char DGifOpen ();
15608int
15609main ()
15610{
15611DGifOpen ();
15612 ;
15613 return 0;
15614}
15615_ACEOF
15616rm -f conftest.$ac_objext conftest$ac_exeext
15617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15618 (eval $ac_link) 2>conftest.er1
15619 ac_status=$?
15620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; } &&
15631 { ac_try='test -s conftest$ac_exeext'
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15634 ac_status=$?
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15637 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"`
15638 if test "x$ac_cv_lib_soname_gif" = "x"
15639 then
15640 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15641 fi
15642else
15643 echo "$as_me: failed program was:" >&5
15644sed 's/^/| /' conftest.$ac_ext >&5
15645
15646ac_cv_lib_soname_gif="libgif.$LIBEXT"
15647fi
15648rm -f conftest.err conftest.$ac_objext \
15649 conftest$ac_exeext conftest.$ac_ext
15650 LIBS=$ac_get_soname_save_LIBS
15651fi
15652echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
15653echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
15654if test "x$ac_cv_lib_soname_gif" != xNONE
15655then
15656cat >>confdefs.h <<_ACEOF
15657#define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
15658_ACEOF
15659fi
Hans Leidekker081b2502004-10-07 19:12:41 +000015660
15661echo "$as_me:$LINENO: checking for -llcms soname" >&5
15662echo $ECHO_N "checking for -llcms soname... $ECHO_C" >&6
15663if test "${ac_cv_lib_soname_lcms+set}" = set; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15665else
15666 ac_get_soname_save_LIBS=$LIBS
15667LIBS="-llcms $LIBS"
15668 cat >conftest.$ac_ext <<_ACEOF
15669/* confdefs.h. */
15670_ACEOF
15671cat confdefs.h >>conftest.$ac_ext
15672cat >>conftest.$ac_ext <<_ACEOF
15673/* end confdefs.h. */
15674
15675/* Override any gcc2 internal prototype to avoid an error. */
15676#ifdef __cplusplus
15677extern "C"
15678#endif
15679/* We use char because int might match the return type of a gcc2
15680 builtin and then its argument prototype would still apply. */
15681char cmsOpenProfileFromFile ();
15682int
15683main ()
15684{
15685cmsOpenProfileFromFile ();
15686 ;
15687 return 0;
15688}
15689_ACEOF
15690rm -f conftest.$ac_objext conftest$ac_exeext
15691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15692 (eval $ac_link) 2>conftest.er1
15693 ac_status=$?
15694 grep -v '^ *+' conftest.er1 >conftest.err
15695 rm -f conftest.er1
15696 cat conftest.err >&5
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); } &&
15699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15702 ac_status=$?
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; } &&
15705 { ac_try='test -s conftest$ac_exeext'
15706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15707 (eval $ac_try) 2>&5
15708 ac_status=$?
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); }; }; then
15711 ac_cv_lib_soname_lcms=`$ac_cv_path_LDD conftest$ac_exeext | grep liblcms\\.$LIBEXT | sed "s/^.*\(liblcms\.$LIBEXT[^ ]*\).*$/\1/"`
15712 if test "x$ac_cv_lib_soname_lcms" = "x"
15713 then
15714 ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15715 fi
15716else
15717 echo "$as_me: failed program was:" >&5
15718sed 's/^/| /' conftest.$ac_ext >&5
15719
15720ac_cv_lib_soname_lcms="liblcms.$LIBEXT"
15721fi
15722rm -f conftest.err conftest.$ac_objext \
15723 conftest$ac_exeext conftest.$ac_ext
15724 LIBS=$ac_get_soname_save_LIBS
15725fi
15726echo "$as_me:$LINENO: result: $ac_cv_lib_soname_lcms" >&5
15727echo "${ECHO_T}$ac_cv_lib_soname_lcms" >&6
15728if test "x$ac_cv_lib_soname_lcms" != xNONE
15729then
15730cat >>confdefs.h <<_ACEOF
15731#define SONAME_LIBLCMS "$ac_cv_lib_soname_lcms"
15732_ACEOF
15733fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015734fi
15735
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015736
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015737
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015738# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15739# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015740echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015741echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15742if test "${ac_cv_working_alloca_h+set}" = set; then
15743 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015744else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015745 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015746/* confdefs.h. */
15747_ACEOF
15748cat confdefs.h >>conftest.$ac_ext
15749cat >>conftest.$ac_ext <<_ACEOF
15750/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015751#include <alloca.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015752int
15753main ()
15754{
15755char *p = (char *) alloca (2 * sizeof (int));
15756 ;
15757 return 0;
15758}
15759_ACEOF
15760rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015762 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015763 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015764 grep -v '^ *+' conftest.er1 >conftest.err
15765 rm -f conftest.er1
15766 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015768 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; } &&
15775 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015777 (eval $ac_try) 2>&5
15778 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015780 (exit $ac_status); }; }; then
15781 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015782else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015783 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015784sed 's/^/| /' conftest.$ac_ext >&5
15785
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015786ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015787fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015788rm -f conftest.err conftest.$ac_objext \
15789 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015790fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015791echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015792echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15793if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000015794
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015795cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015796#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015797_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015798
15799fi
15800
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015801echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015802echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15803if test "${ac_cv_func_alloca_works+set}" = set; then
15804 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015805else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015806 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015807/* confdefs.h. */
15808_ACEOF
15809cat confdefs.h >>conftest.$ac_ext
15810cat >>conftest.$ac_ext <<_ACEOF
15811/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015812#ifdef __GNUC__
15813# define alloca __builtin_alloca
15814#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015815# ifdef _MSC_VER
15816# include <malloc.h>
15817# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015818# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015819# if HAVE_ALLOCA_H
15820# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015821# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015822# ifdef _AIX
15823 #pragma alloca
15824# else
15825# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015826char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000015827# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015828# endif
15829# endif
15830# endif
15831#endif
15832
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015833int
15834main ()
15835{
15836char *p = (char *) alloca (1);
15837 ;
15838 return 0;
15839}
15840_ACEOF
15841rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015843 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015844 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015849 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852 (eval $ac_try) 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; } &&
15856 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015858 (eval $ac_try) 2>&5
15859 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015861 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015862 ac_cv_func_alloca_works=yes
15863else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015864 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015865sed 's/^/| /' conftest.$ac_ext >&5
15866
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015867ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015868fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015869rm -f conftest.err conftest.$ac_objext \
15870 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015871fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015872echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015873echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015874
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015875if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015876
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015877cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015878#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015879_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015880
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015881else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015882 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015883# that cause trouble. Some versions do not even contain alloca or
15884# contain a buggy version. If you still want to use their alloca,
15885# use ar to extract alloca.o from them instead of compiling alloca.c.
15886
15887ALLOCA=alloca.$ac_objext
15888
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015889cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015890#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015891_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015892
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015893
15894echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015895echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15896if test "${ac_cv_os_cray+set}" = set; then
15897 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015898else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015899 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015900/* confdefs.h. */
15901_ACEOF
15902cat confdefs.h >>conftest.$ac_ext
15903cat >>conftest.$ac_ext <<_ACEOF
15904/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015905#if defined(CRAY) && ! defined(CRAY2)
15906webecray
15907#else
15908wenotbecray
15909#endif
15910
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015911_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015913 $EGREP "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015914 ac_cv_os_cray=yes
15915else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015916 ac_cv_os_cray=no
15917fi
15918rm -f conftest*
15919
15920fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015921echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015922echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015923if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015924 for ac_func in _getb67 GETB67 getb67; do
15925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015926echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015927echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15928if eval "test \"\${$as_ac_var+set}\" = set"; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015930else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015931 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015932/* confdefs.h. */
15933_ACEOF
15934cat confdefs.h >>conftest.$ac_ext
15935cat >>conftest.$ac_ext <<_ACEOF
15936/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000015937/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15939#define $ac_func innocuous_$ac_func
15940
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015941/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015942 which can conflict with char $ac_func (); below.
15943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15944 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000015945
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015946#ifdef __STDC__
15947# include <limits.h>
15948#else
15949# include <assert.h>
15950#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000015951
15952#undef $ac_func
15953
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015954/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015955#ifdef __cplusplus
15956extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015957{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015958#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000015959/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015960 builtin and then its argument prototype would still apply. */
15961char $ac_func ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015962/* The GNU C library defines this for functions which it implements
15963 to always fail with ENOSYS. Some functions are actually named
15964 something starting with __ and the normal name is an alias. */
15965#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15966choke me
15967#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015968char (*f) () = $ac_func;
15969#endif
15970#ifdef __cplusplus
15971}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015972#endif
15973
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015974int
15975main ()
15976{
15977return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015978 ;
15979 return 0;
15980}
15981_ACEOF
15982rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015984 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015985 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015986 grep -v '^ *+' conftest.er1 >conftest.err
15987 rm -f conftest.er1
15988 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015990 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15994 ac_status=$?
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; } &&
15997 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015999 (eval $ac_try) 2>&5
16000 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016002 (exit $ac_status); }; }; then
16003 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016004else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016005 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016006sed 's/^/| /' conftest.$ac_ext >&5
16007
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016008eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016009fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016010rm -f conftest.err conftest.$ac_objext \
16011 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016012fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016014echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16015if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016016
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016017cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016018#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016019_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016020
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016021 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016022fi
16023
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016024 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016025fi
16026
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016027echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016028echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16029if test "${ac_cv_c_stack_direction+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016031else
16032 if test "$cross_compiling" = yes; then
16033 ac_cv_c_stack_direction=0
16034else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016035 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016036/* confdefs.h. */
16037_ACEOF
16038cat confdefs.h >>conftest.$ac_ext
16039cat >>conftest.$ac_ext <<_ACEOF
16040/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016041int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016042find_stack_direction ()
16043{
16044 static char *addr = 0;
16045 auto char dummy;
16046 if (addr == 0)
16047 {
16048 addr = &dummy;
16049 return find_stack_direction ();
16050 }
16051 else
16052 return (&dummy > addr) ? 1 : -1;
16053}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016054
16055int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016056main ()
16057{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016058 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016059}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016060_ACEOF
16061rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016063 (eval $ac_link) 2>&5
16064 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016068 (eval $ac_try) 2>&5
16069 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016071 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016072 ac_cv_c_stack_direction=1
16073else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016074 echo "$as_me: program exited with status $ac_status" >&5
16075echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016076sed 's/^/| /' conftest.$ac_ext >&5
16077
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016078( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016079ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016080fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000016081rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016082fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016083fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016084echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016085echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016086
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016087cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016088#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016089_ACEOF
16090
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016091
16092fi
16093
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
Steven Edwardsb9627c12002-05-05 21:03:44 +000016136
16137
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016138
16139
Alexandre Julliard142dab82002-07-01 18:17:30 +000016140
Patrik Stridvall6caeb722002-11-25 21:12:26 +000016141
16142
16143
Pavel Roskin7add08a2003-09-24 18:54:40 +000016144
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000016145
Alexandre Julliarde2930742004-01-08 05:07:05 +000016146
Alexandre Julliard13af4892004-03-05 21:03:46 +000016147
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000016148
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000016149
16150
Alexandre Julliard969f57c2004-09-23 04:48:24 +000016151
Steven Edwardse7c3ab12004-10-04 20:45:49 +000016152
Jeremy White08c0f692004-10-09 02:26:29 +000016153
Hans Leidekkerbed38422004-10-14 03:08:57 +000016154
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016155for ac_func in \
16156 _lwp_create \
Alexandre Julliard6f7a2042003-04-01 04:39:35 +000016157 _lwp_self \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016158 _pclose \
16159 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016160 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000016161 _spawnvp \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016162 _stricmp \
16163 _strnicmp \
Steven Edwardsbe514b92003-01-14 19:35:03 +000016164 _vsnprintf \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016165 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016166 clone \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000016167 epoll_create \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000016168 finite \
Hans Leidekkerbed38422004-10-14 03:08:57 +000016169 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000016170 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000016171 fstatfs \
16172 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016173 ftruncate \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000016174 ftruncate64 \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000016175 futimes \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016176 getnetbyaddr \
16177 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000016178 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016179 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016180 getprotobyname \
16181 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000016182 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016183 getservbyport \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000016184 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000016185 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000016186 getuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016187 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000016188 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000016189 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016190 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000016191 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016192 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016193 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016194 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000016195 pwrite \
Alexandre Julliarde2930742004-01-08 05:07:05 +000016196 readlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016197 rfork \
Jeremy White08c0f692004-10-09 02:26:29 +000016198 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016199 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016200 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016201 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016202 sigaltstack \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016203 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000016204 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016205 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000016206 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000016207 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016208 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000016209 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016210 tcgetattr \
16211 timegm \
16212 usleep \
16213 vfscanf \
Steven Edwardsbe514b92003-01-14 19:35:03 +000016214 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016215 wait4 \
16216 waitpid \
16217
16218do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016220echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16222if eval "test \"\${$as_ac_var+set}\" = set"; then
16223 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016224else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016225 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016226/* confdefs.h. */
16227_ACEOF
16228cat confdefs.h >>conftest.$ac_ext
16229cat >>conftest.$ac_ext <<_ACEOF
16230/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16233#define $ac_func innocuous_$ac_func
16234
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016235/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016236 which can conflict with char $ac_func (); below.
16237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16238 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016239
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016240#ifdef __STDC__
16241# include <limits.h>
16242#else
16243# include <assert.h>
16244#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000016245
16246#undef $ac_func
16247
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016248/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016249#ifdef __cplusplus
16250extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016251{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016252#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016253/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016254 builtin and then its argument prototype would still apply. */
16255char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016256/* The GNU C library defines this for functions which it implements
16257 to always fail with ENOSYS. Some functions are actually named
16258 something starting with __ and the normal name is an alias. */
16259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16260choke me
16261#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016262char (*f) () = $ac_func;
16263#endif
16264#ifdef __cplusplus
16265}
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016266#endif
16267
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016268int
16269main ()
16270{
16271return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016272 ;
16273 return 0;
16274}
16275_ACEOF
16276rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016278 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016279 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016280 grep -v '^ *+' conftest.er1 >conftest.err
16281 rm -f conftest.er1
16282 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016284 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; } &&
16291 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016293 (eval $ac_try) 2>&5
16294 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016296 (exit $ac_status); }; }; then
16297 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016298else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016299 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016300sed 's/^/| /' conftest.$ac_ext >&5
16301
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016302eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016303fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016304rm -f conftest.err conftest.$ac_objext \
16305 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016306fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016308echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16309if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016310 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016311#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016312_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016313
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016314fi
16315done
16316
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
Laurent Pinchart0314a652002-05-01 22:01:30 +000016378
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016379
16380
16381
Alexandre Julliard127ec922002-05-07 01:51:30 +000016382
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000016383
Patrik Stridvall57bf4502002-08-26 21:53:24 +000016384
16385
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000016386
Chris Morgan4691b182002-12-13 02:26:18 +000016387
Alexandre Julliardb6938952003-01-13 18:41:40 +000016388
Alexandre Julliardc44555b2003-04-02 01:42:06 +000016389
Juan Lang38fa5ad2003-05-13 03:32:20 +000016390
Yorick Hardyc26b7db2003-05-19 21:46:09 +000016391
Yorick Hardyb1334542003-05-20 17:48:40 +000016392
David Hammerton852c7ae2003-06-20 23:26:56 +000016393
Pavel Roskin6ce05692003-10-03 04:31:49 +000016394
Rein Klazesc6c404d2003-10-07 22:49:22 +000016395
Alexandre Julliard0b1a82a2003-10-14 01:27:31 +000016396
Dmitry Timoshkov2581db82003-10-14 05:27:43 +000016397
Huw Davies6e128072003-11-09 00:30:13 +000016398
Eric Pouech53fa0d52004-02-05 01:27:38 +000016399
16400
Alexandre Julliarde8a339c2004-03-01 21:32:02 +000016401
Alexandre Julliard13af4892004-03-05 21:03:46 +000016402
Alexandre Julliardffcc67a2004-04-29 20:04:48 +000016403
Huw Daviese82dfab2004-08-04 19:10:26 +000016404
16405
Rein Klazesd1993fb2004-09-07 22:44:34 +000016406
Alexandre Julliard969f57c2004-09-23 04:48:24 +000016407
Hans Leidekker081b2502004-10-07 19:12:41 +000016408
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016409for ac_header in \
Patrik Stridvall96336321999-10-24 22:13:47 +000016410 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016411 arpa/nameser.h \
Marcus Meissnerf061f762002-11-12 02:22:24 +000016412 cups/cups.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016413 direct.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016414 elf.h \
16415 float.h \
Huw Davies6e128072003-11-09 00:30:13 +000016416 fontconfig/fontconfig.h \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000016417 getopt.h \
Huw Daviese82dfab2004-08-04 19:10:26 +000016418 gif_lib.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +000016419 ieeefp.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016420 io.h \
Chris Morgan4691b182002-12-13 02:26:18 +000016421 jack/jack.h \
Huw Daviese82dfab2004-08-04 19:10:26 +000016422 jpeglib.h \
Hans Leidekker081b2502004-10-07 19:12:41 +000016423 lcms.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016424 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +000016425 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016426 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016427 linux/cdrom.h \
Rein Klazesd1993fb2004-09-07 22:44:34 +000016428 linux/compiler.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016429 linux/hdreg.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +000016430 linux/input.h \
Alexandre Julliarde8a339c2004-03-01 21:32:02 +000016431 linux/ioctl.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +000016432 linux/joystick.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016433 linux/major.h \
Laurent Pinchart0314a652002-05-01 22:01:30 +000016434 linux/param.h \
Lawson Whitney533e7ee2002-02-19 18:41:56 +000016435 linux/serial.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016436 linux/ucdrom.h \
Yorick Hardyb1334542003-05-20 17:48:40 +000016437 machine/cpu.h \
Alexandre Julliardffcc67a2004-04-29 20:04:48 +000016438 mntent.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +000016439 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016440 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000016441 netinet/in_systm.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016442 netinet/tcp.h \
Juan Lang38fa5ad2003-05-13 03:32:20 +000016443 netinet/tcp_fsm.h \
David Hammerton852c7ae2003-06-20 23:26:56 +000016444 openssl/ssl.h \
Dmitry Timoshkov2581db82003-10-14 05:27:43 +000016445 process.h \
Alexandre Julliard0b1a82a2003-10-14 01:27:31 +000016446 pthread.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +000016447 pty.h \
Steven Edwardsff4525c2002-06-24 23:00:25 +000016448 pwd.h \
Alexandre Julliardb6938952003-01-13 18:41:40 +000016449 regex.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016450 sched.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016451 scsi/sg.h \
Rein Klazesc6c404d2003-10-07 22:49:22 +000016452 scsi/scsi.h \
Pavel Roskin6ce05692003-10-03 04:31:49 +000016453 scsi/scsi_ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016454 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +000016455 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016456 strings.h \
16457 sys/cdio.h \
Eric Pouech53fa0d52004-02-05 01:27:38 +000016458 sys/elf32.h \
Howard Abrams13277481999-07-10 13:16:29 +000016459 sys/errno.h \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000016460 sys/epoll.h \
Eric Pouech53fa0d52004-02-05 01:27:38 +000016461 sys/exec_elf.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016462 sys/file.h \
16463 sys/filio.h \
Michal Pasternak60983992002-03-29 18:04:43 +000016464 sys/inttypes.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000016465 sys/ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016466 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +000016467 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016468 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +000016469 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016470 sys/modem.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016471 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016472 sys/param.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000016473 sys/poll.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000016474 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +000016475 sys/reg.h \
Yorick Hardyc26b7db2003-05-19 21:46:09 +000016476 sys/scsiio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016477 sys/shm.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016478 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016479 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016480 sys/sockio.h \
16481 sys/statfs.h \
Alexandre Julliard13af4892004-03-05 21:03:46 +000016482 sys/statvfs.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016483 sys/strtio.h \
16484 sys/syscall.h \
Alexandre Julliard127ec922002-05-07 01:51:30 +000016485 sys/sysctl.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016486 sys/time.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000016487 sys/times.h \
Steven Edwards45e56812002-10-31 03:41:56 +000016488 sys/uio.h \
16489 sys/un.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016490 sys/v86.h \
16491 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016492 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000016493 sys/vm86.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000016494 sys/wait.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016495 syscall.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000016496 termios.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016497 unistd.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000016498 utime.h \
Alexandre Julliardc44555b2003-04-02 01:42:06 +000016499 valgrind/memcheck.h
Alexandre Julliard2487cce1999-04-18 14:43:16 +000016500
Alexandre Julliard02e90081998-01-04 17:49:09 +000016501do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016503if eval "test \"\${$as_ac_Header+set}\" = set"; then
16504 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16506if eval "test \"\${$as_ac_Header+set}\" = set"; then
16507 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016508fi
16509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16510echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliard02e90081998-01-04 17:49:09 +000016511else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016512 # Is the header compilable?
16513echo "$as_me:$LINENO: checking $ac_header usability" >&5
16514echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16515cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016516/* confdefs.h. */
16517_ACEOF
16518cat confdefs.h >>conftest.$ac_ext
16519cat >>conftest.$ac_ext <<_ACEOF
16520/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016521$ac_includes_default
16522#include <$ac_header>
16523_ACEOF
16524rm -f conftest.$ac_objext
16525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016526 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016527 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016528 grep -v '^ *+' conftest.er1 >conftest.err
16529 rm -f conftest.er1
16530 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535 (eval $ac_try) 2>&5
16536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; } &&
16539 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
16545 ac_header_compiler=yes
16546else
16547 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016548sed 's/^/| /' conftest.$ac_ext >&5
16549
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016550ac_header_compiler=no
16551fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016553echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16554echo "${ECHO_T}$ac_header_compiler" >&6
16555
16556# Is the header present?
16557echo "$as_me:$LINENO: checking $ac_header presence" >&5
16558echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16559cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016560/* confdefs.h. */
16561_ACEOF
16562cat confdefs.h >>conftest.$ac_ext
16563cat >>conftest.$ac_ext <<_ACEOF
16564/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016565#include <$ac_header>
16566_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16569 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016570 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016571 rm -f conftest.er1
16572 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016574 (exit $ac_status); } >/dev/null; then
16575 if test -s conftest.err; then
16576 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000016577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016578 else
16579 ac_cpp_err=
16580 fi
Alexandre Julliard02e90081998-01-04 17:49:09 +000016581else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016582 ac_cpp_err=yes
16583fi
16584if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016585 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016586else
16587 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016588sed 's/^/| /' conftest.$ac_ext >&5
16589
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016590 ac_header_preproc=no
Alexandre Julliard02e90081998-01-04 17:49:09 +000016591fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016592rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016593echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16594echo "${ECHO_T}$ac_header_preproc" >&6
16595
16596# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16598 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16600echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000016601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16602echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16603 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016604 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000016605 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000016608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16609echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16611echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16613echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016615echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000016616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16617echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016618 (
16619 cat <<\_ASBOX
16620## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000016621## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016622## ------------------------------------ ##
16623_ASBOX
16624 ) |
16625 sed "s/^/$as_me: WARNING: /" >&2
16626 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016627esac
16628echo "$as_me:$LINENO: checking for $ac_header" >&5
16629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16630if eval "test \"\${$as_ac_Header+set}\" = set"; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632else
Alexandre Julliard875927f2004-01-02 01:55:29 +000016633 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard02e90081998-01-04 17:49:09 +000016634fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016637
Alexandre Julliard02e90081998-01-04 17:49:09 +000016638fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016639if test `eval echo '${'$as_ac_Header'}'` = yes; then
16640 cat >>confdefs.h <<_ACEOF
16641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16642_ACEOF
16643
16644fi
16645
Alexandre Julliard02e90081998-01-04 17:49:09 +000016646done
16647
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016648echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016649echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16650if test "${ac_cv_header_stat_broken+set}" = set; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016652else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016653 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016654/* confdefs.h. */
16655_ACEOF
16656cat confdefs.h >>conftest.$ac_ext
16657cat >>conftest.$ac_ext <<_ACEOF
16658/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016659#include <sys/types.h>
16660#include <sys/stat.h>
16661
16662#if defined(S_ISBLK) && defined(S_IFDIR)
16663# if S_ISBLK (S_IFDIR)
16664You lose.
16665# endif
16666#endif
16667
16668#if defined(S_ISBLK) && defined(S_IFCHR)
16669# if S_ISBLK (S_IFCHR)
16670You lose.
16671# endif
16672#endif
16673
16674#if defined(S_ISLNK) && defined(S_IFREG)
16675# if S_ISLNK (S_IFREG)
16676You lose.
16677# endif
16678#endif
16679
16680#if defined(S_ISSOCK) && defined(S_IFREG)
16681# if S_ISSOCK (S_IFREG)
16682You lose.
16683# endif
16684#endif
16685
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016686_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016688 $EGREP "You lose" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016689 ac_cv_header_stat_broken=yes
16690else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016691 ac_cv_header_stat_broken=no
16692fi
16693rm -f conftest*
16694
16695fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016696echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016697echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016698if test $ac_cv_header_stat_broken = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016699
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016700cat >>confdefs.h <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016701#define STAT_MACROS_BROKEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016702_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016703
16704fi
16705
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016706
16707
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016708
16709
16710for ac_header in sys/mount.h sys/user.h
16711do
16712as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16713echo "$as_me:$LINENO: checking for $ac_header" >&5
16714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16715if eval "test \"\${$as_ac_Header+set}\" = set"; then
16716 echo $ECHO_N "(cached) $ECHO_C" >&6
16717else
16718 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016719/* confdefs.h. */
16720_ACEOF
16721cat confdefs.h >>conftest.$ac_ext
16722cat >>conftest.$ac_ext <<_ACEOF
16723/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000016724#include <sys/types.h>
16725 #if HAVE_SYS_PARAM_H
16726 # include <sys/param.h>
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016727 #endif
16728
16729#include <$ac_header>
16730_ACEOF
16731rm -f conftest.$ac_objext
16732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016733 (eval $ac_compile) 2>conftest.er1
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016734 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016735 grep -v '^ *+' conftest.er1 >conftest.err
16736 rm -f conftest.er1
16737 cat conftest.err >&5
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16743 ac_status=$?
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; } &&
16746 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748 (eval $ac_try) 2>&5
16749 ac_status=$?
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 eval "$as_ac_Header=yes"
16753else
16754 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016755sed 's/^/| /' conftest.$ac_ext >&5
16756
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016757eval "$as_ac_Header=no"
16758fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016760fi
16761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16763if test `eval echo '${'$as_ac_Header'}'` = yes; then
16764 cat >>confdefs.h <<_ACEOF
16765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16766_ACEOF
16767
16768fi
16769
16770done
16771
16772
16773
Juan Lang38fa5ad2003-05-13 03:32:20 +000016774
16775
16776
16777
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016778for 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 +000016779do
16780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16781echo "$as_me:$LINENO: checking for $ac_header" >&5
16782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16783if eval "test \"\${$as_ac_Header+set}\" = set"; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16785else
16786 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016787/* confdefs.h. */
16788_ACEOF
16789cat confdefs.h >>conftest.$ac_ext
16790cat >>conftest.$ac_ext <<_ACEOF
16791/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000016792#include <sys/types.h>
Gerald Pfeifer87c369d2002-07-23 02:02:02 +000016793 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016794 # include <sys/socket.h>
16795 #endif
16796
16797#include <$ac_header>
16798_ACEOF
16799rm -f conftest.$ac_objext
16800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016801 (eval $ac_compile) 2>conftest.er1
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016802 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016803 grep -v '^ *+' conftest.er1 >conftest.err
16804 rm -f conftest.er1
16805 cat conftest.err >&5
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest.$ac_objext'
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16820 eval "$as_ac_Header=yes"
16821else
16822 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016823sed 's/^/| /' conftest.$ac_ext >&5
16824
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016825eval "$as_ac_Header=no"
16826fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016828fi
16829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16831if test `eval echo '${'$as_ac_Header'}'` = yes; then
16832 cat >>confdefs.h <<_ACEOF
16833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16834_ACEOF
16835
16836fi
16837
16838done
16839
16840
16841
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016842for ac_header in resolv.h
16843do
16844as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16845echo "$as_me:$LINENO: checking for $ac_header" >&5
16846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16847if eval "test \"\${$as_ac_Header+set}\" = set"; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16849else
16850 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016851/* confdefs.h. */
16852_ACEOF
16853cat confdefs.h >>conftest.$ac_ext
16854cat >>conftest.$ac_ext <<_ACEOF
16855/* end confdefs.h. */
16856#include <sys/types.h>
16857 #if HAVE_SYS_SOCKET_H
16858 # include <sys/socket.h>
16859 #endif
16860 #if HAVE_NETINET_IN_H
16861 # include <netinet/in.h>
16862 #endif
Pierre d'Herbemontae8ca362003-10-27 21:55:00 +000016863 #if HAVE_ARPA_NAMESER_H
16864 # include <arpa/nameser.h>
16865 #endif
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016866
16867#include <$ac_header>
16868_ACEOF
16869rm -f conftest.$ac_objext
16870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016871 (eval $ac_compile) 2>conftest.er1
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016872 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016873 grep -v '^ *+' conftest.er1 >conftest.err
16874 rm -f conftest.er1
16875 cat conftest.err >&5
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; } &&
16884 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 eval "$as_ac_Header=yes"
16891else
16892 echo "$as_me: failed program was:" >&5
16893sed 's/^/| /' conftest.$ac_ext >&5
16894
16895eval "$as_ac_Header=no"
16896fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016898fi
16899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16901if test `eval echo '${'$as_ac_Header'}'` = yes; then
16902 cat >>confdefs.h <<_ACEOF
16903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16904_ACEOF
16905
16906fi
16907
16908done
16909
16910
16911
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016912for ac_header in netinet/ip.h
16913do
16914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16915echo "$as_me:$LINENO: checking for $ac_header" >&5
16916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16917if eval "test \"\${$as_ac_Header+set}\" = set"; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16919else
16920 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016921/* confdefs.h. */
16922_ACEOF
16923cat confdefs.h >>conftest.$ac_ext
16924cat >>conftest.$ac_ext <<_ACEOF
16925/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000016926#include <sys/types.h>
16927 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016928 # include <sys/socket.h>
16929 #endif
16930 #if HAVE_NETINET_IN_SYSTM_H
16931 # include <netinet/in_systm.h>
16932 #endif
16933
16934#include <$ac_header>
16935_ACEOF
16936rm -f conftest.$ac_objext
16937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016938 (eval $ac_compile) 2>conftest.er1
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016939 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; } &&
16951 { ac_try='test -s conftest.$ac_objext'
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; }; then
16957 eval "$as_ac_Header=yes"
16958else
16959 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016960sed 's/^/| /' conftest.$ac_ext >&5
16961
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016962eval "$as_ac_Header=no"
16963fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016965fi
16966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16968if test `eval echo '${'$as_ac_Header'}'` = yes; then
16969 cat >>confdefs.h <<_ACEOF
16970#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16971_ACEOF
16972
16973fi
16974
16975done
16976
16977
16978
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016979for ac_header in ucontext.h
16980do
16981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16982echo "$as_me:$LINENO: checking for $ac_header" >&5
16983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16984if eval "test \"\${$as_ac_Header+set}\" = set"; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16986else
16987 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016988/* confdefs.h. */
16989_ACEOF
16990cat confdefs.h >>conftest.$ac_ext
16991cat >>conftest.$ac_ext <<_ACEOF
16992/* end confdefs.h. */
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016993#include <signal.h>
16994
16995#include <$ac_header>
16996_ACEOF
16997rm -f conftest.$ac_objext
16998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016999 (eval $ac_compile) 2>conftest.er1
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017000 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017001 grep -v '^ *+' conftest.er1 >conftest.err
17002 rm -f conftest.er1
17003 cat conftest.err >&5
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17008 (eval $ac_try) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); }; } &&
17012 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17014 (eval $ac_try) 2>&5
17015 ac_status=$?
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); }; }; then
17018 eval "$as_ac_Header=yes"
17019else
17020 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017021sed 's/^/| /' conftest.$ac_ext >&5
17022
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017023eval "$as_ac_Header=no"
17024fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000017026fi
17027echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17028echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17029if test `eval echo '${'$as_ac_Header'}'` = yes; then
17030 cat >>confdefs.h <<_ACEOF
17031#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17032_ACEOF
17033
17034fi
17035
17036done
17037
17038
17039
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017040echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
17041echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
17042if test "${ac_cv_c_ipx_gnu+set}" = set; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17044else
17045 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017046/* confdefs.h. */
17047_ACEOF
17048cat confdefs.h >>conftest.$ac_ext
17049cat >>conftest.$ac_ext <<_ACEOF
17050/* end confdefs.h. */
17051#include <sys/types.h>
17052 #ifdef HAVE_SYS_SOCKET_H
17053 # include <sys/socket.h>
17054 #endif
17055 #include <netipx/ipx.h>
17056int
17057main ()
17058{
17059((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17060 ;
17061 return 0;
17062}
17063_ACEOF
17064rm -f conftest.$ac_objext
17065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017066 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017067 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017068 grep -v '^ *+' conftest.er1 >conftest.err
17069 rm -f conftest.er1
17070 cat conftest.err >&5
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 ac_cv_c_ipx_gnu="yes"
17086else
17087 echo "$as_me: failed program was:" >&5
17088sed 's/^/| /' conftest.$ac_ext >&5
17089
17090ac_cv_c_ipx_gnu="no"
17091fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017093
17094fi
17095echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
17096echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
17097if test "$ac_cv_c_ipx_gnu" = "yes"
17098then
17099
17100cat >>confdefs.h <<\_ACEOF
17101#define HAVE_IPX_GNU 1
17102_ACEOF
17103
17104fi
17105
17106if test "$ac_cv_c_ipx_gnu" = "no"
17107then
17108 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
17109echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
17110if test "${ac_cv_c_ipx_linux+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17112else
17113 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017114/* confdefs.h. */
17115_ACEOF
17116cat confdefs.h >>conftest.$ac_ext
17117cat >>conftest.$ac_ext <<_ACEOF
17118/* end confdefs.h. */
17119#include <sys/types.h>
17120 #ifdef HAVE_SYS_SOCKET_H
17121 # include <sys/socket.h>
17122 #endif
17123 #include <asm/types.h>
17124 #include <linux/ipx.h>
17125int
17126main ()
17127{
17128((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17129 ;
17130 return 0;
17131}
17132_ACEOF
17133rm -f conftest.$ac_objext
17134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017135 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017136 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017137 grep -v '^ *+' conftest.er1 >conftest.err
17138 rm -f conftest.er1
17139 cat conftest.err >&5
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17145 ac_status=$?
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; } &&
17148 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17154 ac_cv_c_ipx_linux="yes"
17155else
17156 echo "$as_me: failed program was:" >&5
17157sed 's/^/| /' conftest.$ac_ext >&5
17158
17159ac_cv_c_ipx_linux="no"
17160fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000017162
17163fi
17164echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17165echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17166 if test "$ac_cv_c_ipx_linux" = "yes"
17167 then
17168
17169cat >>confdefs.h <<\_ACEOF
17170#define HAVE_IPX_LINUX 1
17171_ACEOF
17172
17173 fi
17174fi
17175
17176
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017177echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017178echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17179if test "${ac_cv_c_const+set}" = set; then
17180 echo $ECHO_N "(cached) $ECHO_C" >&6
17181else
17182 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017183/* confdefs.h. */
17184_ACEOF
17185cat confdefs.h >>conftest.$ac_ext
17186cat >>conftest.$ac_ext <<_ACEOF
17187/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017188
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017189int
17190main ()
17191{
17192/* FIXME: Include the comments suggested by Paul. */
17193#ifndef __cplusplus
17194 /* Ultrix mips cc rejects this. */
17195 typedef int charset[2];
17196 const charset x;
17197 /* SunOS 4.1.1 cc rejects this. */
17198 char const *const *ccp;
17199 char **p;
17200 /* NEC SVR4.0.2 mips cc rejects this. */
17201 struct point {int x, y;};
17202 static struct point const zero = {0,0};
17203 /* AIX XL C 1.02.0.0 rejects this.
17204 It does not let you subtract one const X* pointer from another in
17205 an arm of an if-expression whose if-part is not a constant
17206 expression */
17207 const char *g = "string";
17208 ccp = &g + (g ? g-g : 0);
17209 /* HPUX 7.0 cc rejects these. */
17210 ++ccp;
17211 p = (char**) ccp;
17212 ccp = (char const *const *) p;
17213 { /* SCO 3.2v4 cc rejects this. */
17214 char *t;
17215 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017216
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017217 *t++ = 0;
17218 }
17219 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17220 int x[] = {25, 17};
17221 const int *foo = &x[0];
17222 ++foo;
17223 }
17224 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17225 typedef const int *iptr;
17226 iptr p = 0;
17227 ++p;
17228 }
17229 { /* AIX XL C 1.02.0.0 rejects this saying
17230 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17231 struct s { int j; const int *ap[3]; };
17232 struct s *b; b->j = 5;
17233 }
17234 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17235 const int foo = 10;
17236 }
17237#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017238
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017239 ;
17240 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017241}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017242_ACEOF
17243rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017245 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017246 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017247 grep -v '^ *+' conftest.er1 >conftest.err
17248 rm -f conftest.er1
17249 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017251 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017260 (eval $ac_try) 2>&5
17261 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017263 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017264 ac_cv_c_const=yes
17265else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017266 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017267sed 's/^/| /' conftest.$ac_ext >&5
17268
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017269ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017270fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017272fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017273echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017274echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017275if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017276
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017277cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017278#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017279_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017280
17281fi
17282
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017283echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017284echo $ECHO_N "checking for inline... $ECHO_C" >&6
17285if test "${ac_cv_c_inline+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017287else
17288 ac_cv_c_inline=no
17289for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017290 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017291/* confdefs.h. */
17292_ACEOF
17293cat confdefs.h >>conftest.$ac_ext
17294cat >>conftest.$ac_ext <<_ACEOF
17295/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017296#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017297typedef int foo_t;
17298static $ac_kw foo_t static_foo () {return 0; }
17299$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017300#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017301
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017302_ACEOF
17303rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017305 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017306 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017307 grep -v '^ *+' conftest.er1 >conftest.err
17308 rm -f conftest.er1
17309 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017311 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314 (eval $ac_try) 2>&5
17315 ac_status=$?
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; } &&
17318 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017320 (eval $ac_try) 2>&5
17321 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017323 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017324 ac_cv_c_inline=$ac_kw; break
17325else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017326 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017327sed 's/^/| /' conftest.$ac_ext >&5
17328
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017329fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017331done
17332
17333fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017334echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017335echo "${ECHO_T}$ac_cv_c_inline" >&6
Alexandre Julliard875927f2004-01-02 01:55:29 +000017336
17337
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017338case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017339 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000017340 *)
17341 case $ac_cv_c_inline in
17342 no) ac_val=;;
17343 *) ac_val=$ac_cv_c_inline;;
17344 esac
17345 cat >>confdefs.h <<_ACEOF
17346#ifndef __cplusplus
17347#define inline $ac_val
17348#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017349_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000017350 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017351esac
17352
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017353echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017354echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17355if test "${ac_cv_type_mode_t+set}" = set; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17357else
17358 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017359/* confdefs.h. */
17360_ACEOF
17361cat confdefs.h >>conftest.$ac_ext
17362cat >>conftest.$ac_ext <<_ACEOF
17363/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017364$ac_includes_default
17365int
17366main ()
17367{
17368if ((mode_t *) 0)
17369 return 0;
17370if (sizeof (mode_t))
17371 return 0;
17372 ;
17373 return 0;
17374}
17375_ACEOF
17376rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017378 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017379 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017380 grep -v '^ *+' conftest.er1 >conftest.err
17381 rm -f conftest.er1
17382 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017384 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17388 ac_status=$?
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; } &&
17391 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017393 (eval $ac_try) 2>&5
17394 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017396 (exit $ac_status); }; }; then
17397 ac_cv_type_mode_t=yes
17398else
17399 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017400sed 's/^/| /' conftest.$ac_ext >&5
17401
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017402ac_cv_type_mode_t=no
17403fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017405fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017406echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017407echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17408if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017409
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017410cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017411#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017412_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017413
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017414
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017415fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017416echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017417echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17418if test "${ac_cv_type_off_t+set}" = set; then
17419 echo $ECHO_N "(cached) $ECHO_C" >&6
17420else
17421 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017422/* confdefs.h. */
17423_ACEOF
17424cat confdefs.h >>conftest.$ac_ext
17425cat >>conftest.$ac_ext <<_ACEOF
17426/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017427$ac_includes_default
17428int
17429main ()
17430{
17431if ((off_t *) 0)
17432 return 0;
17433if (sizeof (off_t))
17434 return 0;
17435 ;
17436 return 0;
17437}
17438_ACEOF
17439rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017441 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017442 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017443 grep -v '^ *+' conftest.er1 >conftest.err
17444 rm -f conftest.er1
17445 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017447 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; } &&
17454 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017456 (eval $ac_try) 2>&5
17457 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017459 (exit $ac_status); }; }; then
17460 ac_cv_type_off_t=yes
17461else
17462 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017463sed 's/^/| /' conftest.$ac_ext >&5
17464
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017465ac_cv_type_off_t=no
17466fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017468fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017469echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017470echo "${ECHO_T}$ac_cv_type_off_t" >&6
17471if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017472
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017473cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017474#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017475_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017476
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017477
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017478fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017479echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017480echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17481if test "${ac_cv_type_pid_t+set}" = set; then
17482 echo $ECHO_N "(cached) $ECHO_C" >&6
17483else
17484 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017485/* confdefs.h. */
17486_ACEOF
17487cat confdefs.h >>conftest.$ac_ext
17488cat >>conftest.$ac_ext <<_ACEOF
17489/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017490$ac_includes_default
17491int
17492main ()
17493{
17494if ((pid_t *) 0)
17495 return 0;
17496if (sizeof (pid_t))
17497 return 0;
17498 ;
17499 return 0;
17500}
17501_ACEOF
17502rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017504 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017505 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017506 grep -v '^ *+' conftest.er1 >conftest.err
17507 rm -f conftest.er1
17508 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017510 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513 (eval $ac_try) 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; } &&
17517 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017519 (eval $ac_try) 2>&5
17520 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017522 (exit $ac_status); }; }; then
17523 ac_cv_type_pid_t=yes
17524else
17525 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017526sed 's/^/| /' conftest.$ac_ext >&5
17527
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017528ac_cv_type_pid_t=no
17529fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017531fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017532echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017533echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17534if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017535
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017536cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017537#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017538_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017539
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017540
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017541fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017542echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017543echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17544if test "${ac_cv_type_size_t+set}" = set; then
17545 echo $ECHO_N "(cached) $ECHO_C" >&6
17546else
17547 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017548/* confdefs.h. */
17549_ACEOF
17550cat confdefs.h >>conftest.$ac_ext
17551cat >>conftest.$ac_ext <<_ACEOF
17552/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017553$ac_includes_default
17554int
17555main ()
17556{
17557if ((size_t *) 0)
17558 return 0;
17559if (sizeof (size_t))
17560 return 0;
17561 ;
17562 return 0;
17563}
17564_ACEOF
17565rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017567 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017568 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017573 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017582 (eval $ac_try) 2>&5
17583 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017585 (exit $ac_status); }; }; then
17586 ac_cv_type_size_t=yes
17587else
17588 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017589sed 's/^/| /' conftest.$ac_ext >&5
17590
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017591ac_cv_type_size_t=no
17592fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017594fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017595echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017596echo "${ECHO_T}$ac_cv_type_size_t" >&6
17597if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017598
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017599cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017600#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017601_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017602
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017603
17604fi
17605echo "$as_me:$LINENO: checking for ssize_t" >&5
17606echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17607if test "${ac_cv_type_ssize_t+set}" = set; then
17608 echo $ECHO_N "(cached) $ECHO_C" >&6
17609else
17610 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017611/* confdefs.h. */
17612_ACEOF
17613cat confdefs.h >>conftest.$ac_ext
17614cat >>conftest.$ac_ext <<_ACEOF
17615/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017616$ac_includes_default
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017617int
17618main ()
17619{
17620if ((ssize_t *) 0)
17621 return 0;
17622if (sizeof (ssize_t))
17623 return 0;
17624 ;
17625 return 0;
17626}
17627_ACEOF
17628rm -f conftest.$ac_objext
17629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017630 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017631 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017632 grep -v '^ *+' conftest.er1 >conftest.err
17633 rm -f conftest.er1
17634 cat conftest.err >&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17640 ac_status=$?
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; } &&
17643 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649 ac_cv_type_ssize_t=yes
17650else
17651 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017652sed 's/^/| /' conftest.$ac_ext >&5
17653
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017654ac_cv_type_ssize_t=no
17655fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017657fi
17658echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17659echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17660if test $ac_cv_type_ssize_t = yes; then
17661
17662cat >>confdefs.h <<_ACEOF
17663#define HAVE_SSIZE_T 1
17664_ACEOF
17665
17666
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017667fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017668echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017669echo $ECHO_N "checking for long long... $ECHO_C" >&6
17670if test "${ac_cv_type_long_long+set}" = set; then
17671 echo $ECHO_N "(cached) $ECHO_C" >&6
17672else
17673 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017674/* confdefs.h. */
17675_ACEOF
17676cat confdefs.h >>conftest.$ac_ext
17677cat >>conftest.$ac_ext <<_ACEOF
17678/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017679$ac_includes_default
17680int
17681main ()
17682{
17683if ((long long *) 0)
17684 return 0;
17685if (sizeof (long long))
17686 return 0;
17687 ;
17688 return 0;
17689}
17690_ACEOF
17691rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017693 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017694 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017699 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; } &&
17706 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017708 (eval $ac_try) 2>&5
17709 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017711 (exit $ac_status); }; }; then
17712 ac_cv_type_long_long=yes
17713else
17714 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017715sed 's/^/| /' conftest.$ac_ext >&5
17716
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017717ac_cv_type_long_long=no
17718fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017720fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017721echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017722echo "${ECHO_T}$ac_cv_type_long_long" >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017723if test $ac_cv_type_long_long = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017724
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017725cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017726#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017727_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000017728
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017729
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017730fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000017731echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17732echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17733if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17734 echo $ECHO_N "(cached) $ECHO_C" >&6
17735else
17736 cat >conftest.$ac_ext <<_ACEOF
17737/* confdefs.h. */
17738_ACEOF
17739cat confdefs.h >>conftest.$ac_ext
17740cat >>conftest.$ac_ext <<_ACEOF
17741/* end confdefs.h. */
17742$ac_includes_default
17743int
17744main ()
17745{
17746if ((fsblkcnt_t *) 0)
17747 return 0;
17748if (sizeof (fsblkcnt_t))
17749 return 0;
17750 ;
17751 return 0;
17752}
17753_ACEOF
17754rm -f conftest.$ac_objext
17755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17756 (eval $ac_compile) 2>conftest.er1
17757 ac_status=$?
17758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try='test -s conftest.$ac_objext'
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_cv_type_fsblkcnt_t=yes
17776else
17777 echo "$as_me: failed program was:" >&5
17778sed 's/^/| /' conftest.$ac_ext >&5
17779
17780ac_cv_type_fsblkcnt_t=no
17781fi
17782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17783fi
17784echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17785echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17786if test $ac_cv_type_fsblkcnt_t = yes; then
17787
17788cat >>confdefs.h <<_ACEOF
17789#define HAVE_FSBLKCNT_T 1
17790_ACEOF
17791
17792
17793fi
17794echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17795echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17796if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17798else
17799 cat >conftest.$ac_ext <<_ACEOF
17800/* confdefs.h. */
17801_ACEOF
17802cat confdefs.h >>conftest.$ac_ext
17803cat >>conftest.$ac_ext <<_ACEOF
17804/* end confdefs.h. */
17805$ac_includes_default
17806int
17807main ()
17808{
17809if ((fsfilcnt_t *) 0)
17810 return 0;
17811if (sizeof (fsfilcnt_t))
17812 return 0;
17813 ;
17814 return 0;
17815}
17816_ACEOF
17817rm -f conftest.$ac_objext
17818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17819 (eval $ac_compile) 2>conftest.er1
17820 ac_status=$?
17821 grep -v '^ *+' conftest.er1 >conftest.err
17822 rm -f conftest.er1
17823 cat conftest.err >&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
17826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest.$ac_objext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 ac_cv_type_fsfilcnt_t=yes
17839else
17840 echo "$as_me: failed program was:" >&5
17841sed 's/^/| /' conftest.$ac_ext >&5
17842
17843ac_cv_type_fsfilcnt_t=no
17844fi
17845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17846fi
17847echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17848echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17849if test $ac_cv_type_fsfilcnt_t = yes; then
17850
17851cat >>confdefs.h <<_ACEOF
17852#define HAVE_FSFILCNT_T 1
17853_ACEOF
17854
17855
17856fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017857
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017858
17859echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017860echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17861if test "${wine_cv_linux_input_h+set}" = set; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017863else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017864 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017865/* confdefs.h. */
17866_ACEOF
17867cat confdefs.h >>conftest.$ac_ext
17868cat >>conftest.$ac_ext <<_ACEOF
17869/* end confdefs.h. */
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017870
17871 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017872
17873int
17874main ()
17875{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017876
17877 int foo = EVIOCGBIT(EV_ABS,42);
17878 int bar = BTN_PINKIE;
17879 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017880
17881 ;
17882 return 0;
17883}
17884_ACEOF
17885rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017887 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017888 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017889 grep -v '^ *+' conftest.er1 >conftest.err
17890 rm -f conftest.er1
17891 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017893 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; } &&
17900 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017902 (eval $ac_try) 2>&5
17903 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017905 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017906 wine_cv_linux_input_h=yes
17907else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017908 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017909sed 's/^/| /' conftest.$ac_ext >&5
17910
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017911wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017912fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017914
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017915fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017916echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017917echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017918 if test "$wine_cv_linux_input_h" = "yes"
17919 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017920
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017921cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017922#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017923_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017924
17925 fi
17926
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017927
17928echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017929echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17930if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17931 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000017932else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017933 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017934/* confdefs.h. */
17935_ACEOF
17936cat confdefs.h >>conftest.$ac_ext
17937cat >>conftest.$ac_ext <<_ACEOF
17938/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000017939
17940#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017941
17942int
17943main ()
17944{
Rein Klazesff7a61f2000-09-24 19:41:57 +000017945
17946 char *name=NULL;
17947 struct hostent he;
17948 struct hostent *result;
17949 char *buf=NULL;
17950 int bufsize=0;
17951 int res,errnr;
17952 char *addr=NULL;
17953 int addrlen=0;
17954 int addrtype=0;
17955 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17956 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017957
17958 ;
17959 return 0;
17960}
17961_ACEOF
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000017962rm -f conftest.$ac_objext conftest$ac_exeext
17963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17964 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017965 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017966 grep -v '^ *+' conftest.er1 >conftest.err
17967 rm -f conftest.er1
17968 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017970 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; } &&
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000017977 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017979 (eval $ac_try) 2>&5
17980 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017982 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000017983 wine_cv_linux_gethostbyname_r_6=yes
17984else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017985 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017986sed 's/^/| /' conftest.$ac_ext >&5
17987
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017988wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000017989
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017990fi
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000017991rm -f conftest.err conftest.$ac_objext \
17992 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017993
17994fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017995echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017996echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000017997 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17998 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017999
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018000cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000018001#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018002_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000018003
18004 fi
18005
Marcus Meissner028e9a11999-08-04 15:07:56 +000018006if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018007then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018008 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018009echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
18010if test "${wine_cv_linux_joystick_22_api+set}" = set; then
18011 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018012else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018013 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018014/* confdefs.h. */
18015_ACEOF
18016cat confdefs.h >>conftest.$ac_ext
18017cat >>conftest.$ac_ext <<_ACEOF
18018/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018019
Marcus Meissner028e9a11999-08-04 15:07:56 +000018020 #include <sys/ioctl.h>
18021 #include <linux/joystick.h>
18022
18023 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000018024 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
18025 #error "no 2.2 header"
18026 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018027
18028int
18029main ()
18030{
Marcus Meissner028e9a11999-08-04 15:07:56 +000018031/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018032 ;
18033 return 0;
18034}
18035_ACEOF
18036rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018038 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018039 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018040 grep -v '^ *+' conftest.er1 >conftest.err
18041 rm -f conftest.er1
18042 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018044 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047 (eval $ac_try) 2>&5
18048 ac_status=$?
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050 (exit $ac_status); }; } &&
18051 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018053 (eval $ac_try) 2>&5
18054 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018056 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000018057 wine_cv_linux_joystick_22_api=yes
18058else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018059 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018060sed 's/^/| /' conftest.$ac_ext >&5
18061
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018062wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000018063fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000018065
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018066fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018067echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018068echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000018069 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000018070 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018071
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018072cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000018073#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018074_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000018075
18076 fi
18077fi
18078
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018079
Marcus Meissner028e9a11999-08-04 15:07:56 +000018080if test "$ac_cv_header_sys_vfs_h" = "yes"
18081then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018082 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018083echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
18084if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000018086else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018087 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018088/* confdefs.h. */
18089_ACEOF
18090cat confdefs.h >>conftest.$ac_ext
18091cat >>conftest.$ac_ext <<_ACEOF
18092/* end confdefs.h. */
Marcus Meissner028e9a11999-08-04 15:07:56 +000018093
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018094 #include <sys/types.h>
18095 #ifdef HAVE_SYS_PARAM_H
18096 # include <sys/param.h>
18097 #endif
18098 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018099
18100int
18101main ()
18102{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018103
18104 struct statfs stfs;
18105
18106 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018107
18108 ;
18109 return 0;
18110}
18111_ACEOF
18112rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018114 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018115 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018116 grep -v '^ *+' conftest.er1 >conftest.err
18117 rm -f conftest.er1
18118 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018120 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18123 (eval $ac_try) 2>&5
18124 ac_status=$?
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); }; } &&
18127 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018129 (eval $ac_try) 2>&5
18130 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018132 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018133 wine_cv_sys_vfs_has_statfs=yes
18134else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018135 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018136sed 's/^/| /' conftest.$ac_ext >&5
18137
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018138wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018139
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018140fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018142
18143fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018144echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018145echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018146 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18147 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018148
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018149cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018150#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018151_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018152
18153 fi
18154fi
18155
18156if test "$ac_cv_header_sys_statfs_h" = "yes"
18157then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018158 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018159echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18160if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18161 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018162else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018163 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018164/* confdefs.h. */
18165_ACEOF
18166cat confdefs.h >>conftest.$ac_ext
18167cat >>conftest.$ac_ext <<_ACEOF
18168/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018169
18170 #include <sys/types.h>
18171 #ifdef HAVE_SYS_PARAM_H
18172 # include <sys/param.h>
18173 #endif
18174 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018175
18176int
18177main ()
18178{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018179
18180 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018181
18182 ;
18183 return 0;
18184}
18185_ACEOF
18186rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018188 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018189 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018190 grep -v '^ *+' conftest.er1 >conftest.err
18191 rm -f conftest.er1
18192 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018194 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18198 ac_status=$?
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018203 (eval $ac_try) 2>&5
18204 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018206 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018207 wine_cv_sys_statfs_has_statfs=yes
18208else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018209 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018210sed 's/^/| /' conftest.$ac_ext >&5
18211
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018212wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018213
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018214fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018216
18217fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018218echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018219echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018220 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18221 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018222
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018223cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018224#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018225_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018226
18227 fi
18228fi
18229
18230if test "$ac_cv_header_sys_mount_h" = "yes"
18231then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018232 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018233echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18234if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18235 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018236else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018237 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018238/* confdefs.h. */
18239_ACEOF
18240cat confdefs.h >>conftest.$ac_ext
18241cat >>conftest.$ac_ext <<_ACEOF
18242/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018243
18244 #include <sys/types.h>
18245 #ifdef HAVE_SYS_PARAM_H
18246 # include <sys/param.h>
18247 #endif
18248 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018249
18250int
18251main ()
18252{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018253
18254 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018255
18256 ;
18257 return 0;
18258}
18259_ACEOF
18260rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018262 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018263 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018264 grep -v '^ *+' conftest.er1 >conftest.err
18265 rm -f conftest.er1
18266 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018268 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18271 (eval $ac_try) 2>&5
18272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018277 (eval $ac_try) 2>&5
18278 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018280 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018281 wine_cv_sys_mount_has_statfs=yes
18282else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018283 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018284sed 's/^/| /' conftest.$ac_ext >&5
18285
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018286wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018287
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018288fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018290
18291fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018292echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018293echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018294 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18295 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018296
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018297cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018298#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018299_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018300
18301 fi
18302fi
18303
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018304
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018305echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18306echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18307if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018308 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018309else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018310 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018311/* confdefs.h. */
18312_ACEOF
18313cat confdefs.h >>conftest.$ac_ext
18314cat >>conftest.$ac_ext <<_ACEOF
18315/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018316#include <sys/types.h>
18317#ifdef HAVE_SYS_PARAM_H
18318# include <sys/param.h>
18319#endif
18320#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18321# include <sys/mount.h>
18322#else
18323# ifdef STATFS_DEFINED_BY_SYS_VFS
18324# include <sys/vfs.h>
18325# else
18326# ifdef STATFS_DEFINED_BY_SYS_STATFS
18327# include <sys/statfs.h>
18328# endif
18329# endif
18330#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018331
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018332int
18333main ()
18334{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018335static struct statfs ac_aggr;
18336if (ac_aggr.f_bfree)
18337return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018338 ;
18339 return 0;
18340}
18341_ACEOF
18342rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018344 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018345 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018346 grep -v '^ *+' conftest.er1 >conftest.err
18347 rm -f conftest.er1
18348 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018350 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018359 (eval $ac_try) 2>&5
18360 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018362 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018363 ac_cv_member_struct_statfs_f_bfree=yes
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018364else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018365 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018366sed 's/^/| /' conftest.$ac_ext >&5
18367
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018368cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018369/* confdefs.h. */
18370_ACEOF
18371cat confdefs.h >>conftest.$ac_ext
18372cat >>conftest.$ac_ext <<_ACEOF
18373/* end confdefs.h. */
18374#include <sys/types.h>
18375#ifdef HAVE_SYS_PARAM_H
18376# include <sys/param.h>
18377#endif
18378#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18379# include <sys/mount.h>
18380#else
18381# ifdef STATFS_DEFINED_BY_SYS_VFS
18382# include <sys/vfs.h>
18383# else
18384# ifdef STATFS_DEFINED_BY_SYS_STATFS
18385# include <sys/statfs.h>
18386# endif
18387# endif
18388#endif
18389
18390int
18391main ()
18392{
18393static struct statfs ac_aggr;
18394if (sizeof ac_aggr.f_bfree)
18395return 0;
18396 ;
18397 return 0;
18398}
18399_ACEOF
18400rm -f conftest.$ac_objext
18401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018402 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018403 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018404 grep -v '^ *+' conftest.er1 >conftest.err
18405 rm -f conftest.er1
18406 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411 (eval $ac_try) 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; } &&
18415 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; }; then
18421 ac_cv_member_struct_statfs_f_bfree=yes
18422else
18423 echo "$as_me: failed program was:" >&5
18424sed 's/^/| /' conftest.$ac_ext >&5
18425
18426ac_cv_member_struct_statfs_f_bfree=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018427fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018429fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018431fi
18432echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18433echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18434if test $ac_cv_member_struct_statfs_f_bfree = yes; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018435
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018436cat >>confdefs.h <<_ACEOF
18437#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018438_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018439
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018440
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018441fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018442echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18443echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18444if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018445 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000018446else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018447 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018448/* confdefs.h. */
18449_ACEOF
18450cat confdefs.h >>conftest.$ac_ext
18451cat >>conftest.$ac_ext <<_ACEOF
18452/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018453#include <sys/types.h>
18454#ifdef HAVE_SYS_PARAM_H
18455# include <sys/param.h>
18456#endif
18457#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18458# include <sys/mount.h>
18459#else
18460# ifdef STATFS_DEFINED_BY_SYS_VFS
18461# include <sys/vfs.h>
18462# else
18463# ifdef STATFS_DEFINED_BY_SYS_STATFS
18464# include <sys/statfs.h>
18465# endif
18466# endif
18467#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018468
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018469int
18470main ()
18471{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018472static struct statfs ac_aggr;
18473if (ac_aggr.f_bavail)
18474return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018475 ;
18476 return 0;
18477}
18478_ACEOF
18479rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018481 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018482 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018483 grep -v '^ *+' conftest.er1 >conftest.err
18484 rm -f conftest.er1
18485 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018487 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18490 (eval $ac_try) 2>&5
18491 ac_status=$?
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }; } &&
18494 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018496 (eval $ac_try) 2>&5
18497 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018499 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018500 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000018501else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018502 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018503sed 's/^/| /' conftest.$ac_ext >&5
18504
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018505cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018506/* confdefs.h. */
18507_ACEOF
18508cat confdefs.h >>conftest.$ac_ext
18509cat >>conftest.$ac_ext <<_ACEOF
18510/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000018511#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018512#ifdef HAVE_SYS_PARAM_H
18513# include <sys/param.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000018514#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018515#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18516# include <sys/mount.h>
18517#else
18518# ifdef STATFS_DEFINED_BY_SYS_VFS
18519# include <sys/vfs.h>
18520# else
18521# ifdef STATFS_DEFINED_BY_SYS_STATFS
18522# include <sys/statfs.h>
18523# endif
18524# endif
18525#endif
18526
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018527int
18528main ()
18529{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018530static struct statfs ac_aggr;
18531if (sizeof ac_aggr.f_bavail)
18532return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018533 ;
18534 return 0;
18535}
18536_ACEOF
18537rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018539 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018540 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018541 grep -v '^ *+' conftest.er1 >conftest.err
18542 rm -f conftest.er1
18543 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018545 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18548 (eval $ac_try) 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; } &&
18552 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018554 (eval $ac_try) 2>&5
18555 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018557 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018558 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliard829fe321998-07-26 14:27:39 +000018559else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018560 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018561sed 's/^/| /' conftest.$ac_ext >&5
18562
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018563ac_cv_member_struct_statfs_f_bavail=no
Alexandre Julliard829fe321998-07-26 14:27:39 +000018564fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000018566fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000018568fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018569echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18570echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18571if test $ac_cv_member_struct_statfs_f_bavail = yes; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000018572
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018573cat >>confdefs.h <<_ACEOF
18574#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018575_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000018576
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018577
Patrik Stridvall09da9662001-07-08 22:30:50 +000018578fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000018579echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18580echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18581if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18583else
18584 cat >conftest.$ac_ext <<_ACEOF
18585/* confdefs.h. */
18586_ACEOF
18587cat confdefs.h >>conftest.$ac_ext
18588cat >>conftest.$ac_ext <<_ACEOF
18589/* end confdefs.h. */
18590#include <sys/types.h>
18591#ifdef HAVE_SYS_PARAM_H
18592# include <sys/param.h>
18593#endif
18594#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18595# include <sys/mount.h>
18596#else
18597# ifdef STATFS_DEFINED_BY_SYS_VFS
18598# include <sys/vfs.h>
18599# else
18600# ifdef STATFS_DEFINED_BY_SYS_STATFS
18601# include <sys/statfs.h>
18602# endif
18603# endif
18604#endif
18605
18606int
18607main ()
18608{
18609static struct statfs ac_aggr;
18610if (ac_aggr.f_frsize)
18611return 0;
18612 ;
18613 return 0;
18614}
18615_ACEOF
18616rm -f conftest.$ac_objext
18617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18618 (eval $ac_compile) 2>conftest.er1
18619 ac_status=$?
18620 grep -v '^ *+' conftest.er1 >conftest.err
18621 rm -f conftest.er1
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } &&
18625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627 (eval $ac_try) 2>&5
18628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; } &&
18631 { ac_try='test -s conftest.$ac_objext'
18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18633 (eval $ac_try) 2>&5
18634 ac_status=$?
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; }; then
18637 ac_cv_member_struct_statfs_f_frsize=yes
18638else
18639 echo "$as_me: failed program was:" >&5
18640sed 's/^/| /' conftest.$ac_ext >&5
18641
18642cat >conftest.$ac_ext <<_ACEOF
18643/* confdefs.h. */
18644_ACEOF
18645cat confdefs.h >>conftest.$ac_ext
18646cat >>conftest.$ac_ext <<_ACEOF
18647/* end confdefs.h. */
18648#include <sys/types.h>
18649#ifdef HAVE_SYS_PARAM_H
18650# include <sys/param.h>
18651#endif
18652#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18653# include <sys/mount.h>
18654#else
18655# ifdef STATFS_DEFINED_BY_SYS_VFS
18656# include <sys/vfs.h>
18657# else
18658# ifdef STATFS_DEFINED_BY_SYS_STATFS
18659# include <sys/statfs.h>
18660# endif
18661# endif
18662#endif
18663
18664int
18665main ()
18666{
18667static struct statfs ac_aggr;
18668if (sizeof ac_aggr.f_frsize)
18669return 0;
18670 ;
18671 return 0;
18672}
18673_ACEOF
18674rm -f conftest.$ac_objext
18675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18676 (eval $ac_compile) 2>conftest.er1
18677 ac_status=$?
18678 grep -v '^ *+' conftest.er1 >conftest.err
18679 rm -f conftest.er1
18680 cat conftest.err >&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } &&
18683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; } &&
18689 { ac_try='test -s conftest.$ac_objext'
18690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691 (eval $ac_try) 2>&5
18692 ac_status=$?
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; }; then
18695 ac_cv_member_struct_statfs_f_frsize=yes
18696else
18697 echo "$as_me: failed program was:" >&5
18698sed 's/^/| /' conftest.$ac_ext >&5
18699
18700ac_cv_member_struct_statfs_f_frsize=no
18701fi
18702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18703fi
18704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18705fi
18706echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18707echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18708if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18709
18710cat >>confdefs.h <<_ACEOF
18711#define HAVE_STRUCT_STATFS_F_FRSIZE 1
18712_ACEOF
18713
18714
18715fi
18716echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18717echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18718if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18720else
18721 cat >conftest.$ac_ext <<_ACEOF
18722/* confdefs.h. */
18723_ACEOF
18724cat confdefs.h >>conftest.$ac_ext
18725cat >>conftest.$ac_ext <<_ACEOF
18726/* end confdefs.h. */
18727#include <sys/types.h>
18728#ifdef HAVE_SYS_PARAM_H
18729# include <sys/param.h>
18730#endif
18731#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18732# include <sys/mount.h>
18733#else
18734# ifdef STATFS_DEFINED_BY_SYS_VFS
18735# include <sys/vfs.h>
18736# else
18737# ifdef STATFS_DEFINED_BY_SYS_STATFS
18738# include <sys/statfs.h>
18739# endif
18740# endif
18741#endif
18742
18743int
18744main ()
18745{
18746static struct statfs ac_aggr;
18747if (ac_aggr.f_ffree)
18748return 0;
18749 ;
18750 return 0;
18751}
18752_ACEOF
18753rm -f conftest.$ac_objext
18754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18755 (eval $ac_compile) 2>conftest.er1
18756 ac_status=$?
18757 grep -v '^ *+' conftest.er1 >conftest.err
18758 rm -f conftest.er1
18759 cat conftest.err >&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } &&
18762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18764 (eval $ac_try) 2>&5
18765 ac_status=$?
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); }; } &&
18768 { ac_try='test -s conftest.$ac_objext'
18769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18770 (eval $ac_try) 2>&5
18771 ac_status=$?
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); }; }; then
18774 ac_cv_member_struct_statfs_f_ffree=yes
18775else
18776 echo "$as_me: failed program was:" >&5
18777sed 's/^/| /' conftest.$ac_ext >&5
18778
18779cat >conftest.$ac_ext <<_ACEOF
18780/* confdefs.h. */
18781_ACEOF
18782cat confdefs.h >>conftest.$ac_ext
18783cat >>conftest.$ac_ext <<_ACEOF
18784/* end confdefs.h. */
18785#include <sys/types.h>
18786#ifdef HAVE_SYS_PARAM_H
18787# include <sys/param.h>
18788#endif
18789#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18790# include <sys/mount.h>
18791#else
18792# ifdef STATFS_DEFINED_BY_SYS_VFS
18793# include <sys/vfs.h>
18794# else
18795# ifdef STATFS_DEFINED_BY_SYS_STATFS
18796# include <sys/statfs.h>
18797# endif
18798# endif
18799#endif
18800
18801int
18802main ()
18803{
18804static struct statfs ac_aggr;
18805if (sizeof ac_aggr.f_ffree)
18806return 0;
18807 ;
18808 return 0;
18809}
18810_ACEOF
18811rm -f conftest.$ac_objext
18812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18813 (eval $ac_compile) 2>conftest.er1
18814 ac_status=$?
18815 grep -v '^ *+' conftest.er1 >conftest.err
18816 rm -f conftest.er1
18817 cat conftest.err >&5
18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819 (exit $ac_status); } &&
18820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 ac_cv_member_struct_statfs_f_ffree=yes
18833else
18834 echo "$as_me: failed program was:" >&5
18835sed 's/^/| /' conftest.$ac_ext >&5
18836
18837ac_cv_member_struct_statfs_f_ffree=no
18838fi
18839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18840fi
18841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18842fi
18843echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18844echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18845if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18846
18847cat >>confdefs.h <<_ACEOF
18848#define HAVE_STRUCT_STATFS_F_FFREE 1
18849_ACEOF
18850
18851
18852fi
18853echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18854echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18855if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18856 echo $ECHO_N "(cached) $ECHO_C" >&6
18857else
18858 cat >conftest.$ac_ext <<_ACEOF
18859/* confdefs.h. */
18860_ACEOF
18861cat confdefs.h >>conftest.$ac_ext
18862cat >>conftest.$ac_ext <<_ACEOF
18863/* end confdefs.h. */
18864#include <sys/types.h>
18865#ifdef HAVE_SYS_PARAM_H
18866# include <sys/param.h>
18867#endif
18868#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18869# include <sys/mount.h>
18870#else
18871# ifdef STATFS_DEFINED_BY_SYS_VFS
18872# include <sys/vfs.h>
18873# else
18874# ifdef STATFS_DEFINED_BY_SYS_STATFS
18875# include <sys/statfs.h>
18876# endif
18877# endif
18878#endif
18879
18880int
18881main ()
18882{
18883static struct statfs ac_aggr;
18884if (ac_aggr.f_favail)
18885return 0;
18886 ;
18887 return 0;
18888}
18889_ACEOF
18890rm -f conftest.$ac_objext
18891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18892 (eval $ac_compile) 2>conftest.er1
18893 ac_status=$?
18894 grep -v '^ *+' conftest.er1 >conftest.err
18895 rm -f conftest.er1
18896 cat conftest.err >&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); } &&
18899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901 (eval $ac_try) 2>&5
18902 ac_status=$?
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; } &&
18905 { ac_try='test -s conftest.$ac_objext'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18908 ac_status=$?
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; }; then
18911 ac_cv_member_struct_statfs_f_favail=yes
18912else
18913 echo "$as_me: failed program was:" >&5
18914sed 's/^/| /' conftest.$ac_ext >&5
18915
18916cat >conftest.$ac_ext <<_ACEOF
18917/* confdefs.h. */
18918_ACEOF
18919cat confdefs.h >>conftest.$ac_ext
18920cat >>conftest.$ac_ext <<_ACEOF
18921/* end confdefs.h. */
18922#include <sys/types.h>
18923#ifdef HAVE_SYS_PARAM_H
18924# include <sys/param.h>
18925#endif
18926#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18927# include <sys/mount.h>
18928#else
18929# ifdef STATFS_DEFINED_BY_SYS_VFS
18930# include <sys/vfs.h>
18931# else
18932# ifdef STATFS_DEFINED_BY_SYS_STATFS
18933# include <sys/statfs.h>
18934# endif
18935# endif
18936#endif
18937
18938int
18939main ()
18940{
18941static struct statfs ac_aggr;
18942if (sizeof ac_aggr.f_favail)
18943return 0;
18944 ;
18945 return 0;
18946}
18947_ACEOF
18948rm -f conftest.$ac_objext
18949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18950 (eval $ac_compile) 2>conftest.er1
18951 ac_status=$?
18952 grep -v '^ *+' conftest.er1 >conftest.err
18953 rm -f conftest.er1
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; } &&
18963 { ac_try='test -s conftest.$ac_objext'
18964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18966 ac_status=$?
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; }; then
18969 ac_cv_member_struct_statfs_f_favail=yes
18970else
18971 echo "$as_me: failed program was:" >&5
18972sed 's/^/| /' conftest.$ac_ext >&5
18973
18974ac_cv_member_struct_statfs_f_favail=no
18975fi
18976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18977fi
18978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18979fi
18980echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18981echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18982if test $ac_cv_member_struct_statfs_f_favail = yes; then
18983
18984cat >>confdefs.h <<_ACEOF
18985#define HAVE_STRUCT_STATFS_F_FAVAIL 1
18986_ACEOF
18987
18988
18989fi
Alexandre Julliardb859a682004-03-07 03:16:43 +000018990echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18991echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18992if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18993 echo $ECHO_N "(cached) $ECHO_C" >&6
18994else
18995 cat >conftest.$ac_ext <<_ACEOF
18996/* confdefs.h. */
18997_ACEOF
18998cat confdefs.h >>conftest.$ac_ext
18999cat >>conftest.$ac_ext <<_ACEOF
19000/* end confdefs.h. */
19001#include <sys/types.h>
19002#ifdef HAVE_SYS_PARAM_H
19003# include <sys/param.h>
19004#endif
19005#ifdef STATFS_DEFINED_BY_SYS_MOUNT
19006# include <sys/mount.h>
19007#else
19008# ifdef STATFS_DEFINED_BY_SYS_VFS
19009# include <sys/vfs.h>
19010# else
19011# ifdef STATFS_DEFINED_BY_SYS_STATFS
19012# include <sys/statfs.h>
19013# endif
19014# endif
19015#endif
19016
19017int
19018main ()
19019{
19020static struct statfs ac_aggr;
19021if (ac_aggr.f_namelen)
19022return 0;
19023 ;
19024 return 0;
19025}
19026_ACEOF
19027rm -f conftest.$ac_objext
19028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19029 (eval $ac_compile) 2>conftest.er1
19030 ac_status=$?
19031 grep -v '^ *+' conftest.er1 >conftest.err
19032 rm -f conftest.er1
19033 cat conftest.err >&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } &&
19036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19039 ac_status=$?
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; } &&
19042 { ac_try='test -s conftest.$ac_objext'
19043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044 (eval $ac_try) 2>&5
19045 ac_status=$?
19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047 (exit $ac_status); }; }; then
19048 ac_cv_member_struct_statfs_f_namelen=yes
19049else
19050 echo "$as_me: failed program was:" >&5
19051sed 's/^/| /' conftest.$ac_ext >&5
19052
19053cat >conftest.$ac_ext <<_ACEOF
19054/* confdefs.h. */
19055_ACEOF
19056cat confdefs.h >>conftest.$ac_ext
19057cat >>conftest.$ac_ext <<_ACEOF
19058/* end confdefs.h. */
19059#include <sys/types.h>
19060#ifdef HAVE_SYS_PARAM_H
19061# include <sys/param.h>
19062#endif
19063#ifdef STATFS_DEFINED_BY_SYS_MOUNT
19064# include <sys/mount.h>
19065#else
19066# ifdef STATFS_DEFINED_BY_SYS_VFS
19067# include <sys/vfs.h>
19068# else
19069# ifdef STATFS_DEFINED_BY_SYS_STATFS
19070# include <sys/statfs.h>
19071# endif
19072# endif
19073#endif
19074
19075int
19076main ()
19077{
19078static struct statfs ac_aggr;
19079if (sizeof ac_aggr.f_namelen)
19080return 0;
19081 ;
19082 return 0;
19083}
19084_ACEOF
19085rm -f conftest.$ac_objext
19086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19087 (eval $ac_compile) 2>conftest.er1
19088 ac_status=$?
19089 grep -v '^ *+' conftest.er1 >conftest.err
19090 rm -f conftest.er1
19091 cat conftest.err >&5
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); } &&
19094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096 (eval $ac_try) 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; } &&
19100 { ac_try='test -s conftest.$ac_objext'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19106 ac_cv_member_struct_statfs_f_namelen=yes
19107else
19108 echo "$as_me: failed program was:" >&5
19109sed 's/^/| /' conftest.$ac_ext >&5
19110
19111ac_cv_member_struct_statfs_f_namelen=no
19112fi
19113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19114fi
19115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19116fi
19117echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19118echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
19119if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19120
19121cat >>confdefs.h <<_ACEOF
19122#define HAVE_STRUCT_STATFS_F_NAMELEN 1
19123_ACEOF
19124
19125
19126fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000019127
19128
19129echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19130echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19131if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19132 echo $ECHO_N "(cached) $ECHO_C" >&6
19133else
19134 cat >conftest.$ac_ext <<_ACEOF
19135/* confdefs.h. */
19136_ACEOF
19137cat confdefs.h >>conftest.$ac_ext
19138cat >>conftest.$ac_ext <<_ACEOF
19139/* end confdefs.h. */
19140#ifdef HAVE_SYS_STATVFS_H
19141#include <sys/statvfs.h>
19142#endif
19143
19144int
19145main ()
19146{
19147static struct statvfs ac_aggr;
19148if (ac_aggr.f_blocks)
19149return 0;
19150 ;
19151 return 0;
19152}
19153_ACEOF
19154rm -f conftest.$ac_objext
19155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19156 (eval $ac_compile) 2>conftest.er1
19157 ac_status=$?
19158 grep -v '^ *+' conftest.er1 >conftest.err
19159 rm -f conftest.er1
19160 cat conftest.err >&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } &&
19163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19166 ac_status=$?
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } &&
19169 { ac_try='test -s conftest.$ac_objext'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; }; then
19175 ac_cv_member_struct_statvfs_f_blocks=yes
19176else
19177 echo "$as_me: failed program was:" >&5
19178sed 's/^/| /' conftest.$ac_ext >&5
19179
19180cat >conftest.$ac_ext <<_ACEOF
19181/* confdefs.h. */
19182_ACEOF
19183cat confdefs.h >>conftest.$ac_ext
19184cat >>conftest.$ac_ext <<_ACEOF
19185/* end confdefs.h. */
19186#ifdef HAVE_SYS_STATVFS_H
19187#include <sys/statvfs.h>
19188#endif
19189
19190int
19191main ()
19192{
19193static struct statvfs ac_aggr;
19194if (sizeof ac_aggr.f_blocks)
19195return 0;
19196 ;
19197 return 0;
19198}
19199_ACEOF
19200rm -f conftest.$ac_objext
19201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19202 (eval $ac_compile) 2>conftest.er1
19203 ac_status=$?
19204 grep -v '^ *+' conftest.er1 >conftest.err
19205 rm -f conftest.er1
19206 cat conftest.err >&5
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); } &&
19209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19211 (eval $ac_try) 2>&5
19212 ac_status=$?
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); }; } &&
19215 { ac_try='test -s conftest.$ac_objext'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; }; then
19221 ac_cv_member_struct_statvfs_f_blocks=yes
19222else
19223 echo "$as_me: failed program was:" >&5
19224sed 's/^/| /' conftest.$ac_ext >&5
19225
19226ac_cv_member_struct_statvfs_f_blocks=no
19227fi
19228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19229fi
19230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19231fi
19232echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19233echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19234if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19235
19236cat >>confdefs.h <<_ACEOF
19237#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19238_ACEOF
19239
19240
19241fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000019242
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019243
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019244echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19245echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19246if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019247 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000019248else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019249 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019250/* confdefs.h. */
19251_ACEOF
19252cat confdefs.h >>conftest.$ac_ext
19253cat >>conftest.$ac_ext <<_ACEOF
19254/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000019255#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000019256#ifdef HAVE_SYS_SOCKET_H
19257# include <sys/socket.h>
19258#endif
19259#ifdef HAVE_SYS_UN_H
19260# include <sys/un.h>
19261#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019262
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019263int
19264main ()
19265{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019266static struct msghdr ac_aggr;
19267if (ac_aggr.msg_accrights)
19268return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019269 ;
19270 return 0;
19271}
19272_ACEOF
19273rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019275 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019276 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019277 grep -v '^ *+' conftest.er1 >conftest.err
19278 rm -f conftest.er1
19279 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019281 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; } &&
19288 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019290 (eval $ac_try) 2>&5
19291 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019293 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019294 ac_cv_member_struct_msghdr_msg_accrights=yes
Juergen Lock2d33ab92000-02-13 16:03:29 +000019295else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019296 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019297sed 's/^/| /' conftest.$ac_ext >&5
19298
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019299cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019300/* confdefs.h. */
19301_ACEOF
19302cat confdefs.h >>conftest.$ac_ext
19303cat >>conftest.$ac_ext <<_ACEOF
19304/* end confdefs.h. */
19305#include <sys/types.h>
19306#ifdef HAVE_SYS_SOCKET_H
19307# include <sys/socket.h>
19308#endif
19309#ifdef HAVE_SYS_UN_H
19310# include <sys/un.h>
19311#endif
19312
19313int
19314main ()
19315{
19316static struct msghdr ac_aggr;
19317if (sizeof ac_aggr.msg_accrights)
19318return 0;
19319 ;
19320 return 0;
19321}
19322_ACEOF
19323rm -f conftest.$ac_objext
19324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019325 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019326 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019327 grep -v '^ *+' conftest.er1 >conftest.err
19328 rm -f conftest.er1
19329 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_cv_member_struct_msghdr_msg_accrights=yes
19345else
19346 echo "$as_me: failed program was:" >&5
19347sed 's/^/| /' conftest.$ac_ext >&5
19348
19349ac_cv_member_struct_msghdr_msg_accrights=no
Juergen Lock2d33ab92000-02-13 16:03:29 +000019350fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000019352fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019354fi
19355echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19356echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19357if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000019358
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019359cat >>confdefs.h <<_ACEOF
19360#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019361_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000019362
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019363
19364fi
19365echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19366echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19367if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19368 echo $ECHO_N "(cached) $ECHO_C" >&6
19369else
19370 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019371/* confdefs.h. */
19372_ACEOF
19373cat confdefs.h >>conftest.$ac_ext
19374cat >>conftest.$ac_ext <<_ACEOF
19375/* end confdefs.h. */
19376#include <sys/types.h>
19377#ifdef HAVE_SYS_SOCKET_H
19378# include <sys/socket.h>
19379#endif
19380#ifdef HAVE_SYS_UN_H
19381# include <sys/un.h>
19382#endif
19383
19384int
19385main ()
19386{
19387static struct sockaddr ac_aggr;
19388if (ac_aggr.sa_len)
19389return 0;
19390 ;
19391 return 0;
19392}
19393_ACEOF
19394rm -f conftest.$ac_objext
19395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019396 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019397 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019398 grep -v '^ *+' conftest.er1 >conftest.err
19399 rm -f conftest.er1
19400 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19406 ac_status=$?
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; } &&
19409 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19412 ac_status=$?
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; }; then
19415 ac_cv_member_struct_sockaddr_sa_len=yes
19416else
19417 echo "$as_me: failed program was:" >&5
19418sed 's/^/| /' conftest.$ac_ext >&5
19419
19420cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019421/* confdefs.h. */
19422_ACEOF
19423cat confdefs.h >>conftest.$ac_ext
19424cat >>conftest.$ac_ext <<_ACEOF
19425/* end confdefs.h. */
19426#include <sys/types.h>
19427#ifdef HAVE_SYS_SOCKET_H
19428# include <sys/socket.h>
19429#endif
19430#ifdef HAVE_SYS_UN_H
19431# include <sys/un.h>
19432#endif
19433
19434int
19435main ()
19436{
19437static struct sockaddr ac_aggr;
19438if (sizeof ac_aggr.sa_len)
19439return 0;
19440 ;
19441 return 0;
19442}
19443_ACEOF
19444rm -f conftest.$ac_objext
19445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019446 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019447 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455 (eval $ac_try) 2>&5
19456 ac_status=$?
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; } &&
19459 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19461 (eval $ac_try) 2>&5
19462 ac_status=$?
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); }; }; then
19465 ac_cv_member_struct_sockaddr_sa_len=yes
19466else
19467 echo "$as_me: failed program was:" >&5
19468sed 's/^/| /' conftest.$ac_ext >&5
19469
19470ac_cv_member_struct_sockaddr_sa_len=no
19471fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019473fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019475fi
19476echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19477echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19478if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19479
19480cat >>confdefs.h <<_ACEOF
19481#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19482_ACEOF
19483
19484
19485fi
19486echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19487echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19488if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19490else
19491 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019492/* confdefs.h. */
19493_ACEOF
19494cat confdefs.h >>conftest.$ac_ext
19495cat >>conftest.$ac_ext <<_ACEOF
19496/* end confdefs.h. */
19497#include <sys/types.h>
19498#ifdef HAVE_SYS_SOCKET_H
19499# include <sys/socket.h>
19500#endif
19501#ifdef HAVE_SYS_UN_H
19502# include <sys/un.h>
19503#endif
19504
19505int
19506main ()
19507{
19508static struct sockaddr_un ac_aggr;
19509if (ac_aggr.sun_len)
19510return 0;
19511 ;
19512 return 0;
19513}
19514_ACEOF
19515rm -f conftest.$ac_objext
19516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019517 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019518 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526 (eval $ac_try) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; } &&
19530 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19532 (eval $ac_try) 2>&5
19533 ac_status=$?
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; }; then
19536 ac_cv_member_struct_sockaddr_un_sun_len=yes
19537else
19538 echo "$as_me: failed program was:" >&5
19539sed 's/^/| /' conftest.$ac_ext >&5
19540
19541cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019542/* confdefs.h. */
19543_ACEOF
19544cat confdefs.h >>conftest.$ac_ext
19545cat >>conftest.$ac_ext <<_ACEOF
19546/* end confdefs.h. */
19547#include <sys/types.h>
19548#ifdef HAVE_SYS_SOCKET_H
19549# include <sys/socket.h>
19550#endif
19551#ifdef HAVE_SYS_UN_H
19552# include <sys/un.h>
19553#endif
19554
19555int
19556main ()
19557{
19558static struct sockaddr_un ac_aggr;
19559if (sizeof ac_aggr.sun_len)
19560return 0;
19561 ;
19562 return 0;
19563}
19564_ACEOF
19565rm -f conftest.$ac_objext
19566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019567 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019568 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019569 grep -v '^ *+' conftest.er1 >conftest.err
19570 rm -f conftest.er1
19571 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; } &&
19580 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19583 ac_status=$?
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; }; then
19586 ac_cv_member_struct_sockaddr_un_sun_len=yes
19587else
19588 echo "$as_me: failed program was:" >&5
19589sed 's/^/| /' conftest.$ac_ext >&5
19590
19591ac_cv_member_struct_sockaddr_un_sun_len=no
19592fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019594fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019596fi
19597echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19598echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19599if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19600
19601cat >>confdefs.h <<_ACEOF
19602#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19603_ACEOF
19604
19605
Juergen Lock2d33ab92000-02-13 16:03:29 +000019606fi
19607
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019608
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019609echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19610echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19611if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19613else
19614 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019615/* confdefs.h. */
19616_ACEOF
19617cat confdefs.h >>conftest.$ac_ext
19618cat >>conftest.$ac_ext <<_ACEOF
19619/* end confdefs.h. */
19620#include <signal.h>
19621
19622int
19623main ()
19624{
19625static siginfo_t ac_aggr;
19626if (ac_aggr.si_fd)
19627return 0;
19628 ;
19629 return 0;
19630}
19631_ACEOF
19632rm -f conftest.$ac_objext
19633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019634 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019635 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019636 grep -v '^ *+' conftest.er1 >conftest.err
19637 rm -f conftest.er1
19638 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19643 (eval $ac_try) 2>&5
19644 ac_status=$?
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; } &&
19647 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
19653 ac_cv_member_siginfo_t_si_fd=yes
19654else
19655 echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
19658cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019659/* confdefs.h. */
19660_ACEOF
19661cat confdefs.h >>conftest.$ac_ext
19662cat >>conftest.$ac_ext <<_ACEOF
19663/* end confdefs.h. */
19664#include <signal.h>
19665
19666int
19667main ()
19668{
19669static siginfo_t ac_aggr;
19670if (sizeof ac_aggr.si_fd)
19671return 0;
19672 ;
19673 return 0;
19674}
19675_ACEOF
19676rm -f conftest.$ac_objext
19677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019678 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019679 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019680 grep -v '^ *+' conftest.er1 >conftest.err
19681 rm -f conftest.er1
19682 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19688 ac_status=$?
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; } &&
19691 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; }; then
19697 ac_cv_member_siginfo_t_si_fd=yes
19698else
19699 echo "$as_me: failed program was:" >&5
19700sed 's/^/| /' conftest.$ac_ext >&5
19701
19702ac_cv_member_siginfo_t_si_fd=no
19703fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019705fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019707fi
19708echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19709echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19710if test $ac_cv_member_siginfo_t_si_fd = yes; then
19711
19712cat >>confdefs.h <<_ACEOF
19713#define HAVE_SIGINFO_T_SI_FD 1
19714_ACEOF
19715
19716
19717fi
19718
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019719
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019720echo "$as_me:$LINENO: checking for struct option.name" >&5
19721echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19722if test "${ac_cv_member_struct_option_name+set}" = set; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19724else
19725 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019726/* confdefs.h. */
19727_ACEOF
19728cat confdefs.h >>conftest.$ac_ext
19729cat >>conftest.$ac_ext <<_ACEOF
19730/* end confdefs.h. */
19731#ifdef HAVE_GETOPT_H
19732#include <getopt.h>
19733#endif
19734
19735int
19736main ()
19737{
19738static struct option ac_aggr;
19739if (ac_aggr.name)
19740return 0;
19741 ;
19742 return 0;
19743}
19744_ACEOF
19745rm -f conftest.$ac_objext
19746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019747 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019748 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019749 grep -v '^ *+' conftest.er1 >conftest.err
19750 rm -f conftest.er1
19751 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19757 ac_status=$?
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; } &&
19760 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19762 (eval $ac_try) 2>&5
19763 ac_status=$?
19764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); }; }; then
19766 ac_cv_member_struct_option_name=yes
19767else
19768 echo "$as_me: failed program was:" >&5
19769sed 's/^/| /' conftest.$ac_ext >&5
19770
19771cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019772/* confdefs.h. */
19773_ACEOF
19774cat confdefs.h >>conftest.$ac_ext
19775cat >>conftest.$ac_ext <<_ACEOF
19776/* end confdefs.h. */
19777#ifdef HAVE_GETOPT_H
19778#include <getopt.h>
19779#endif
19780
19781int
19782main ()
19783{
19784static struct option ac_aggr;
19785if (sizeof ac_aggr.name)
19786return 0;
19787 ;
19788 return 0;
19789}
19790_ACEOF
19791rm -f conftest.$ac_objext
19792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019793 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019794 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019795 grep -v '^ *+' conftest.er1 >conftest.err
19796 rm -f conftest.er1
19797 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802 (eval $ac_try) 2>&5
19803 ac_status=$?
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; } &&
19806 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808 (eval $ac_try) 2>&5
19809 ac_status=$?
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; }; then
19812 ac_cv_member_struct_option_name=yes
19813else
19814 echo "$as_me: failed program was:" >&5
19815sed 's/^/| /' conftest.$ac_ext >&5
19816
19817ac_cv_member_struct_option_name=no
19818fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019820fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019822fi
19823echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19824echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19825if test $ac_cv_member_struct_option_name = yes; then
19826
19827cat >>confdefs.h <<_ACEOF
19828#define HAVE_STRUCT_OPTION_NAME 1
19829_ACEOF
19830
19831
19832fi
19833
19834
Pavel Roskind6507192003-10-03 03:28:40 +000019835echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19836echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19837if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19838 echo $ECHO_N "(cached) $ECHO_C" >&6
19839else
19840 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000019841/* confdefs.h. */
19842_ACEOF
19843cat confdefs.h >>conftest.$ac_ext
19844cat >>conftest.$ac_ext <<_ACEOF
19845/* end confdefs.h. */
19846$ac_includes_default
19847int
19848main ()
19849{
19850static struct stat ac_aggr;
19851if (ac_aggr.st_blocks)
19852return 0;
19853 ;
19854 return 0;
19855}
19856_ACEOF
19857rm -f conftest.$ac_objext
19858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019859 (eval $ac_compile) 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000019860 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019861 grep -v '^ *+' conftest.er1 >conftest.err
19862 rm -f conftest.er1
19863 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000019864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19869 ac_status=$?
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; } &&
19872 { ac_try='test -s conftest.$ac_objext'
Pavel Roskind6507192003-10-03 03:28:40 +000019873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19875 ac_status=$?
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; }; then
19878 ac_cv_member_struct_stat_st_blocks=yes
19879else
19880 echo "$as_me: failed program was:" >&5
19881sed 's/^/| /' conftest.$ac_ext >&5
19882
19883cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000019884/* confdefs.h. */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h. */
19889$ac_includes_default
19890int
19891main ()
19892{
19893static struct stat ac_aggr;
19894if (sizeof ac_aggr.st_blocks)
19895return 0;
19896 ;
19897 return 0;
19898}
19899_ACEOF
19900rm -f conftest.$ac_objext
19901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019902 (eval $ac_compile) 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000019903 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019904 grep -v '^ *+' conftest.er1 >conftest.err
19905 rm -f conftest.er1
19906 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000019907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911 (eval $ac_try) 2>&5
19912 ac_status=$?
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; } &&
19915 { ac_try='test -s conftest.$ac_objext'
Pavel Roskind6507192003-10-03 03:28:40 +000019916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
19921 ac_cv_member_struct_stat_st_blocks=yes
19922else
19923 echo "$as_me: failed program was:" >&5
19924sed 's/^/| /' conftest.$ac_ext >&5
19925
19926ac_cv_member_struct_stat_st_blocks=no
19927fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000019929fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000019931fi
19932echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19933echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19934if test $ac_cv_member_struct_stat_st_blocks = yes; then
19935
19936cat >>confdefs.h <<_ACEOF
19937#define HAVE_STRUCT_STAT_ST_BLOCKS 1
19938_ACEOF
19939
19940
19941fi
19942
19943
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019944
Alexandre Julliardfc01b722002-05-12 03:16:39 +000019945case $host_cpu in
Alexandre Julliard05783b52002-12-11 00:21:55 +000019946 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019947echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000019948if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019949 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000019950else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019951 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019952/* confdefs.h. */
19953_ACEOF
19954cat confdefs.h >>conftest.$ac_ext
19955cat >>conftest.$ac_ext <<_ACEOF
19956/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019957#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019958yes
19959#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019960_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019962 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000019963 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019964else
Alexandre Julliard05783b52002-12-11 00:21:55 +000019965 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019966fi
19967rm -f conftest*
19968
19969fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019970echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
19971echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
19972if test $ac_cv_cpp_def___i386__ = yes; then
19973 CFLAGS="$CFLAGS -D__i386__"
19974 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000019975fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000019976 ;;
19977 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
Steven Edwards69b67862002-12-10 22:48:48 +000019978echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000019979if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000019980 echo $ECHO_N "(cached) $ECHO_C" >&6
19981else
19982 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019983/* confdefs.h. */
19984_ACEOF
19985cat confdefs.h >>conftest.$ac_ext
19986cat >>conftest.$ac_ext <<_ACEOF
19987/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000019988#ifndef __ALPHA__
19989yes
19990#endif
19991_ACEOF
19992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19993 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000019994 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000019995else
Alexandre Julliard05783b52002-12-11 00:21:55 +000019996 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000019997fi
19998rm -f conftest*
19999
20000fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020001echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20002echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
20003if test $ac_cv_cpp_def___ALPHA__ = yes; then
20004 CFLAGS="$CFLAGS -D__ALPHA__"
20005 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000020006fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020007 ;;
20008 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020009echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000020010if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020011 echo $ECHO_N "(cached) $ECHO_C" >&6
20012else
20013 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020014/* confdefs.h. */
20015_ACEOF
20016cat confdefs.h >>conftest.$ac_ext
20017cat >>conftest.$ac_ext <<_ACEOF
20018/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020019#ifndef __sparc__
20020yes
20021#endif
20022_ACEOF
20023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020024 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000020025 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020026else
Alexandre Julliard05783b52002-12-11 00:21:55 +000020027 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020028fi
20029rm -f conftest*
20030
20031fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020032echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20033echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
20034if test $ac_cv_cpp_def___sparc__ = yes; then
20035 CFLAGS="$CFLAGS -D__sparc__"
20036 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020037fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020038 ;;
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000020039 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20040echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
20041if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043else
20044 cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000020045/* confdefs.h. */
20046_ACEOF
20047cat confdefs.h >>conftest.$ac_ext
20048cat >>conftest.$ac_ext <<_ACEOF
20049/* end confdefs.h. */
20050#ifndef __powerpc__
20051yes
20052#endif
20053_ACEOF
20054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20055 $EGREP "yes" >/dev/null 2>&1; then
20056 ac_cv_cpp_def___powerpc__=yes
20057else
20058 ac_cv_cpp_def___powerpc__=no
20059fi
20060rm -f conftest*
20061
20062fi
20063echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20064echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
20065if test $ac_cv_cpp_def___powerpc__ = yes; then
20066 CFLAGS="$CFLAGS -D__powerpc__"
20067 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20068fi
20069 ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000020070esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020071
20072case $host_vendor in
Alexandre Julliard05783b52002-12-11 00:21:55 +000020073 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020074echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000020075if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020076 echo $ECHO_N "(cached) $ECHO_C" >&6
20077else
20078 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020079/* confdefs.h. */
20080_ACEOF
20081cat confdefs.h >>conftest.$ac_ext
20082cat >>conftest.$ac_ext <<_ACEOF
20083/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020084#ifndef __sun__
20085yes
20086#endif
20087_ACEOF
20088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020089 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000020090 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020091else
Alexandre Julliard05783b52002-12-11 00:21:55 +000020092 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020093fi
20094rm -f conftest*
20095
20096fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020097echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20098echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20099if test $ac_cv_cpp_def___sun__ = yes; then
20100 CFLAGS="$CFLAGS -D__sun__"
20101 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020102fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020103 ;;
20104esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020105
20106
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020107
20108
20109
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020110 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000020111
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020112 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000020113
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020114 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000020115
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020116 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000020117
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020118 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000020119
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020120 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000020121
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020122 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000020123
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020124 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000020125
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020126 ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020127
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020128 ac_config_commands="$ac_config_commands dlls/user/dde"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020129
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020130 ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020131
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020132 ac_config_commands="$ac_config_commands dlls/wineps/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020133
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020134 ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020135
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020136 ac_config_commands="$ac_config_commands misc"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020137
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020138 ac_config_commands="$ac_config_commands programs/regedit/tests"
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000020139
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020140 ac_config_commands="$ac_config_commands windows"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020141
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000020142
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000020143MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020144
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020145
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000020146MAKE_DLL_RULES=dlls/Makedll.rules
20147
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020148
Alexandre Julliardedeee892002-08-09 01:22:40 +000020149MAKE_TEST_RULES=dlls/Maketest.rules
20150
20151
Alexandre Julliard117436e2003-05-01 00:39:29 +000020152MAKE_LIB_RULES=libs/Makelib.rules
20153
20154
Alexandre Julliard626f4252000-11-10 23:35:20 +000020155MAKE_PROG_RULES=programs/Makeprog.rules
20156
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020157
Hans Leidekker081b2502004-10-07 19:12:41 +000020158 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/mscms/Makefile dlls/mscms/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/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/secur32/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020159
Alexandre Julliard626f4252000-11-10 23:35:20 +000020160
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020161cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020162# This file is a shell script that caches the results of configure
20163# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020164# scripts and configure runs, see configure's option --config-cache.
20165# It is not useful on other systems. If it contains results you don't
20166# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020167#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020168# config.status only pays attention to the cache file if you give it
20169# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020170#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020171# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020172# loading this file, other *unset* `ac_cv_foo' will be assigned the
20173# following values.
20174
20175_ACEOF
20176
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000020177# The following way of writing the cache mishandles newlines in values,
20178# but we know of no workaround that is simple, portable, and efficient.
20179# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020180# Ultrix sh set writes to stderr and can't be redirected directly,
20181# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020182{
20183 (set) 2>&1 |
20184 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20185 *ac_space=\ *)
20186 # `set' does not quote correctly, so add quotes (double-quote
20187 # substitution turns \\\\ into \\, and sed turns \\ into \).
20188 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000020189 "s/'/'\\\\''/g;
20190 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020191 ;;
20192 *)
20193 # `set' quotes correctly as required by POSIX, so do not add quotes.
20194 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000020195 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020196 ;;
20197 esac;
20198} |
20199 sed '
20200 t clear
20201 : clear
20202 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20203 t end
20204 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20205 : end' >>confcache
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020206if diff $cache_file confcache >/dev/null 2>&1; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020207 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020208 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20209 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020210 else
20211 echo "not updating unwritable cache $cache_file"
20212 fi
20213fi
20214rm -f confcache
20215
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020216test "x$prefix" = xNONE && prefix=$ac_default_prefix
20217# Let make expand exec_prefix.
20218test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20219
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020220# VPATH may cause trouble with some makes, so we remove $(srcdir),
20221# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20222# trailing colons and then remove the whole line if VPATH becomes empty
20223# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020224if test "x$srcdir" = x.; then
Alexandre Julliard875927f2004-01-02 01:55:29 +000020225 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020226s/:*\$(srcdir):*/:/;
20227s/:*\${srcdir}:*/:/;
20228s/:*@srcdir@:*/:/;
Alexandre Julliard875927f2004-01-02 01:55:29 +000020229s/^\([^=]*=[ ]*\):*/\1/;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020230s/:*$//;
Alexandre Julliard875927f2004-01-02 01:55:29 +000020231s/^[^=]*=[ ]*$//;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020232}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020233fi
20234
Alexandre Julliard18f92e71996-07-17 20:02:21 +000020235DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020236
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020237ac_libobjs=
20238ac_ltlibobjs=
20239for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20240 # 1. Remove the extension, and $U if already installed.
20241 ac_i=`echo "$ac_i" |
Alexandre Julliard875927f2004-01-02 01:55:29 +000020242 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020243 # 2. Add them.
20244 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20245 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20246done
20247LIBOBJS=$ac_libobjs
20248
20249LTLIBOBJS=$ac_ltlibobjs
20250
20251
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020252
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020253: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020254ac_clean_files_save=$ac_clean_files
20255ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020256{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020257echo "$as_me: creating $CONFIG_STATUS" >&6;}
20258cat >$CONFIG_STATUS <<_ACEOF
20259#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020260# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020261# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020262# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020263# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020264
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020265debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020266ac_cs_recheck=false
20267ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020268SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020269_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020270
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020271cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020272## --------------------- ##
20273## M4sh Initialization. ##
20274## --------------------- ##
20275
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020276# Be Bourne compatible
20277if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20278 emulate sh
20279 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020280 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20281 # is contrary to our usage. Disable this feature.
20282 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020283elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20284 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000020285fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000020286DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020287
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020288# Support unset when possible.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020289if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020290 as_unset=unset
20291else
20292 as_unset=false
20293fi
20294
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020295
20296# Work around bugs in pre-3.0 UWIN ksh.
20297$as_unset ENV MAIL MAILPATH
20298PS1='$ '
20299PS2='> '
20300PS4='+ '
20301
20302# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020303for as_var in \
20304 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20305 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20306 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020307do
Alexandre Julliard875927f2004-01-02 01:55:29 +000020308 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020309 eval $as_var=C; export $as_var
20310 else
20311 $as_unset $as_var
20312 fi
20313done
20314
20315# Required to use basename.
20316if expr a : '\(a\)' >/dev/null 2>&1; then
20317 as_expr=expr
20318else
20319 as_expr=false
20320fi
20321
20322if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20323 as_basename=basename
20324else
20325 as_basename=false
20326fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020327
20328
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020329# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020330as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020331$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20332 X"$0" : 'X\(//\)$' \| \
20333 X"$0" : 'X\(/\)$' \| \
20334 . : '\(.\)' 2>/dev/null ||
20335echo X/"$0" |
20336 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20337 /^X\/\(\/\/\)$/{ s//\1/; q; }
20338 /^X\/\(\/\).*/{ s//\1/; q; }
20339 s/.*/./; q'`
20340
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020341
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020342# PATH needs CR, and LINENO needs CR and PATH.
20343# Avoid depending upon Character Ranges.
20344as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20345as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20346as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20347as_cr_digits='0123456789'
20348as_cr_alnum=$as_cr_Letters$as_cr_digits
20349
20350# The user is always right.
20351if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020352 echo "#! /bin/sh" >conf$$.sh
20353 echo "exit 0" >>conf$$.sh
20354 chmod +x conf$$.sh
20355 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020356 PATH_SEPARATOR=';'
20357 else
20358 PATH_SEPARATOR=:
20359 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020360 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020361fi
20362
20363
20364 as_lineno_1=$LINENO
20365 as_lineno_2=$LINENO
20366 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20367 test "x$as_lineno_1" != "x$as_lineno_2" &&
20368 test "x$as_lineno_3" = "x$as_lineno_2" || {
20369 # Find who we are. Look in the path if we contain no path at all
20370 # relative or not.
20371 case $0 in
20372 *[\\/]* ) as_myself=$0 ;;
20373 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20374for as_dir in $PATH
20375do
20376 IFS=$as_save_IFS
20377 test -z "$as_dir" && as_dir=.
20378 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20379done
20380
20381 ;;
20382 esac
20383 # We did not find ourselves, most probably we were run as `sh COMMAND'
20384 # in which case we are not to be found in the path.
20385 if test "x$as_myself" = x; then
20386 as_myself=$0
20387 fi
20388 if test ! -f "$as_myself"; then
20389 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20390echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20391 { (exit 1); exit 1; }; }
20392 fi
20393 case $CONFIG_SHELL in
20394 '')
20395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20396for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20397do
20398 IFS=$as_save_IFS
20399 test -z "$as_dir" && as_dir=.
20400 for as_base in sh bash ksh sh5; do
20401 case $as_dir in
20402 /*)
20403 if ("$as_dir/$as_base" -c '
20404 as_lineno_1=$LINENO
20405 as_lineno_2=$LINENO
20406 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20407 test "x$as_lineno_1" != "x$as_lineno_2" &&
20408 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020409 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20410 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020411 CONFIG_SHELL=$as_dir/$as_base
20412 export CONFIG_SHELL
20413 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20414 fi;;
20415 esac
20416 done
20417done
20418;;
20419 esac
20420
20421 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20422 # uniformly replaced by the line number. The first 'sed' inserts a
20423 # line-number line before each line; the second 'sed' does the real
20424 # work. The second script uses 'N' to pair each line-number line
20425 # with the numbered line, and appends trailing '-' during
20426 # substitution so that $LINENO is not a special case at line end.
20427 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20428 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20429 sed '=' <$as_myself |
20430 sed '
20431 N
20432 s,$,-,
20433 : loop
20434 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20435 t loop
20436 s,-$,,
20437 s,^['$as_cr_digits']*\n,,
20438 ' >$as_me.lineno &&
20439 chmod +x $as_me.lineno ||
20440 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20441echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20442 { (exit 1); exit 1; }; }
20443
20444 # Don't try to exec as it changes $[0], causing all sort of problems
20445 # (the dirname of $[0] is not the place where we might find the
20446 # original and so on. Autoconf is especially sensible to this).
20447 . ./$as_me.lineno
20448 # Exit status is that of the last command.
20449 exit
20450}
20451
20452
20453case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20454 *c*,-n*) ECHO_N= ECHO_C='
20455' ECHO_T=' ' ;;
20456 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20457 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20458esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020459
20460if expr a : '\(a\)' >/dev/null 2>&1; then
20461 as_expr=expr
20462else
20463 as_expr=false
20464fi
20465
20466rm -f conf$$ conf$$.exe conf$$.file
20467echo >conf$$.file
20468if ln -s conf$$.file conf$$ 2>/dev/null; then
20469 # We could just check for DJGPP; but this test a) works b) is more generic
20470 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20471 if test -f conf$$.exe; then
20472 # Don't use ln at all; we don't have any links
20473 as_ln_s='cp -p'
20474 else
20475 as_ln_s='ln -s'
20476 fi
20477elif ln conf$$.file conf$$ 2>/dev/null; then
20478 as_ln_s=ln
20479else
20480 as_ln_s='cp -p'
20481fi
20482rm -f conf$$ conf$$.exe conf$$.file
20483
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020484if mkdir -p . 2>/dev/null; then
20485 as_mkdir_p=:
20486else
Alexandre Julliard875927f2004-01-02 01:55:29 +000020487 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020488 as_mkdir_p=false
20489fi
20490
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020491as_executable_p="test -f"
20492
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020493# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020494as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020495
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020496# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020497as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020498
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020499
20500# IFS
20501# We need space, tab and new line, in precisely that order.
20502as_nl='
20503'
20504IFS=" $as_nl"
20505
20506# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020507$as_unset CDPATH
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020508
20509exec 6>&1
20510
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020511# Open the log real soon, to keep \$[0] and so on meaningful, and to
20512# report actual input values of CONFIG_FILES etc. instead of their
20513# values after options handling. Logging --version etc. is OK.
20514exec 5>>config.log
20515{
20516 echo
20517 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20518## Running $as_me. ##
20519_ASBOX
20520} >&5
20521cat >&5 <<_CSEOF
20522
Alexandre Julliard8087fca2004-09-14 22:11:36 +000020523This file was extended by Wine $as_me 20040914, which was
Eric Pouech53fa0d52004-02-05 01:27:38 +000020524generated by GNU Autoconf 2.59. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020525
20526 CONFIG_FILES = $CONFIG_FILES
20527 CONFIG_HEADERS = $CONFIG_HEADERS
20528 CONFIG_LINKS = $CONFIG_LINKS
20529 CONFIG_COMMANDS = $CONFIG_COMMANDS
20530 $ $0 $@
20531
20532_CSEOF
20533echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20534echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020535_ACEOF
20536
20537# Files that config.status was made for.
20538if test -n "$ac_config_files"; then
20539 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20540fi
20541
20542if test -n "$ac_config_headers"; then
20543 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20544fi
20545
20546if test -n "$ac_config_links"; then
20547 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20548fi
20549
20550if test -n "$ac_config_commands"; then
20551 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20552fi
20553
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020554cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020555
20556ac_cs_usage="\
20557\`$as_me' instantiates files from templates according to the
20558current configuration.
20559
20560Usage: $0 [OPTIONS] [FILE]...
20561
20562 -h, --help print this help, then exit
20563 -V, --version print version number, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020564 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020565 -d, --debug don't remove temporary files
20566 --recheck update $as_me by reconfiguring in the same conditions
20567 --file=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000020568 instantiate the configuration file FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020569 --header=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000020570 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020571
20572Configuration files:
20573$config_files
20574
20575Configuration headers:
20576$config_headers
20577
20578Configuration commands:
20579$config_commands
20580
20581Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020582_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000020583
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020584cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020585ac_cs_version="\\
Alexandre Julliard8087fca2004-09-14 22:11:36 +000020586Wine config.status 20040914
Eric Pouech53fa0d52004-02-05 01:27:38 +000020587configured by $0, generated by GNU Autoconf 2.59,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020588 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020589
Alexandre Julliard875927f2004-01-02 01:55:29 +000020590Copyright (C) 2003 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020591This config.status script is free software; the Free Software Foundation
20592gives unlimited permission to copy, distribute and modify it."
20593srcdir=$srcdir
20594INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020595_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020596
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020597cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020598# If no file are specified by the user, then we need to provide default
20599# value. By we need to know if files were specified by the user.
20600ac_need_defaults=:
20601while test $# != 0
20602do
20603 case $1 in
20604 --*=*)
20605 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20606 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020607 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020608 ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020609 -*)
20610 ac_option=$1
20611 ac_optarg=$2
20612 ac_shift=shift
20613 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020614 *) # This is not an option, so the user has probably given explicit
20615 # arguments.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020616 ac_option=$1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020617 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020618 esac
20619
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020620 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020621 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020622_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020623cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020624 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20625 ac_cs_recheck=: ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020626 --version | --vers* | -V )
20627 echo "$ac_cs_version"; exit 0 ;;
20628 --he | --h)
20629 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020630 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020631Try \`$0 --help' for more information." >&5
20632echo "$as_me: error: ambiguous option: $1
20633Try \`$0 --help' for more information." >&2;}
20634 { (exit 1); exit 1; }; };;
20635 --help | --hel | -h )
20636 echo "$ac_cs_usage"; exit 0 ;;
20637 --debug | --d* | -d )
20638 debug=: ;;
20639 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020640 $ac_shift
20641 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020642 ac_need_defaults=false;;
20643 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020644 $ac_shift
20645 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020646 ac_need_defaults=false;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20648 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20649 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020650
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020651 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020652 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020653Try \`$0 --help' for more information." >&5
20654echo "$as_me: error: unrecognized option: $1
20655Try \`$0 --help' for more information." >&2;}
20656 { (exit 1); exit 1; }; } ;;
20657
20658 *) ac_config_targets="$ac_config_targets $1" ;;
20659
20660 esac
20661 shift
20662done
20663
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020664ac_configure_extra_args=
20665
20666if $ac_cs_silent; then
20667 exec 6>/dev/null
20668 ac_configure_extra_args="$ac_configure_extra_args --silent"
20669fi
20670
20671_ACEOF
20672cat >>$CONFIG_STATUS <<_ACEOF
20673if \$ac_cs_recheck; then
20674 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20675 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20676fi
20677
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020678_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020679
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020680
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020681
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020682
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020683
20684cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020685for ac_config_target in $ac_config_targets
20686do
20687 case "$ac_config_target" in
20688 # Handling of arguments.
20689 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20690 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020691 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliard117436e2003-05-01 00:39:29 +000020692 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020693 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20694 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020695 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20696 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020697 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
Huw Davies20313b82004-09-27 20:39:40 +000020698 "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
Christian Costa76b77872004-03-09 01:29:56 +000020699 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
Aric Stewart4bd374f2004-07-06 21:01:18 +000020700 "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020701 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20702 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
Patrik Stridvalld1447fa2002-11-19 00:47:12 +000020703 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000020704 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
Sami Nopanen9063cef2004-03-15 20:26:42 +000020705 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
Mike McCormackb107b922003-10-31 03:38:07 +000020706 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000020707 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020708 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
Uwe Bonnes2c4fd422003-05-15 23:58:48 +000020709 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020710 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20711 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20712 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
Dmitry Timoshkov5a23a002003-01-02 19:34:14 +000020713 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
Sylvain Petreolle3a99d8b2002-06-25 23:23:03 +000020714 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
Alexandre Julliardaa1bdc42003-07-01 01:11:13 +000020715 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
Enrico Horneaae7052003-01-24 01:08:15 +000020716 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
Ivan Leo Murray-Smith8f14eb02004-05-18 00:54:12 +000020717 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
Raphael Junqueirae31ae922002-12-17 01:15:15 +000020718 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
Christian Costa7590fe52004-06-03 00:03:23 +000020719 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
Eric Pouech800864a2004-04-05 22:21:27 +000020720 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020721 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20722 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
Sami Aariof22a4722003-11-18 00:12:00 +000020723 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020724 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20725 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
Ove Kaavend2d08f02002-06-14 00:39:44 +000020726 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020727 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20728 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20729 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20730 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20731 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20732 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20733 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
Rok Mandeljc2d04be72003-03-21 00:42:38 +000020734 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020735 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020736 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20737 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
Raphael Junqueira5f3f2142004-04-07 20:39:00 +000020738 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020739 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020740 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
Francois Gougetd523a452002-12-05 19:19:41 +000020741 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
Rok Mandeljc0382ea12004-01-20 00:21:40 +000020742 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
Raphael Junqueira033ae922004-04-16 00:26:14 +000020743 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
Robert Reifcc02d952004-03-09 23:25:57 +000020744 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20745 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020746 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020747 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
Patrik Stridvall928ecb42002-10-02 19:58:27 +000020748 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020749 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
Jacek Cabanef799c42003-12-02 04:11:09 +000020750 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
Krzysztof Foltman9bca6902004-04-22 03:45:00 +000020751 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
Alexandre Julliard0a106bf2004-01-15 04:56:18 +000020752 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020753 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020754 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020755 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20756 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
Juan Lang38fa5ad2003-05-13 03:32:20 +000020757 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
Juan Lange6f491a2004-01-07 01:08:55 +000020758 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
Alexandre Julliard5f6e3c82004-08-24 21:00:15 +000020759 "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020760 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020761 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020762 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20763 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
Jon Griffiths4ec0d3b2004-04-23 23:30:00 +000020764 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
Alexandre Julliard94a9d332004-08-04 18:33:06 +000020765 "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20766 "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020767 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20768 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020769 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20770 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000020771 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000020772 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000020773 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Eric Pouechb706b232002-06-04 17:53:46 +000020774 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
Robert Reif00cd2b22004-05-03 20:17:43 +000020775 "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
Hans Leidekker51647572004-09-22 04:08:38 +000020776 "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
Hans Leidekker081b2502004-10-07 19:12:41 +000020777 "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020778 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
Mike McCormackaa1c2a32003-09-08 19:32:14 +000020779 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
Mike McCormack6386edc2003-08-13 01:27:48 +000020780 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020781 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000020782 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020783 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
Alexandre Julliard7ba8fba2004-02-27 21:51:12 +000020784 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020785 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
Uwe Bonnesa768fa32002-10-30 23:49:03 +000020786 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020787 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
Mike McCormackd0779462004-01-12 22:12:27 +000020788 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
Adam Gundy19a15132003-04-04 19:37:57 +000020789 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
Patrik Stridvall5c4420f2004-05-18 01:05:36 +000020790 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
Mike McCormack4cc64c82004-01-23 05:00:37 +000020791 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020792 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
André Johansen2123c132003-08-02 00:52:02 +000020793 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020794 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
Andriy Palamarchukb812c902002-09-11 02:35:17 +000020795 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
Ulrich Czekalla9655a5f2003-12-30 22:19:30 +000020796 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020797 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
Jon Griffiths1da29712002-08-15 22:08:40 +000020798 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020799 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20800 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
Mike McCormack06b80462004-08-11 00:17:52 +000020801 "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
Eric Pouech5caccaf2003-06-23 03:43:00 +000020802 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020803 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020804 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020805 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20806 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20807 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20808 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20809 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20810 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
Stefan Leichter0d4fff42004-06-15 20:23:47 +000020811 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020812 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20813 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
Christian Costae3a288f2004-08-16 21:14:28 +000020814 "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020815 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20816 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20817 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
Greg Turnerac89cc22002-10-07 21:54:07 +000020818 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
Mike McCormackb6de3042004-02-13 20:47:07 +000020819 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
Michael Jungb4b0c242004-07-30 00:06:54 +000020820 "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
Juan Lang3ed89c32004-03-02 04:57:35 +000020821 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020822 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20823 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20824 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20825 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
Andriy Palamarchuk5b5bea02002-08-27 01:34:33 +000020826 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020827 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20828 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020829 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000020830 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020831 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
Francois Gougeta8963892004-08-19 19:31:20 +000020832 "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020833 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20834 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000020835 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliard46321f42003-11-27 01:10:26 +000020836 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020837 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20838 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
Patrik Stridvall9398d9c2002-11-12 01:13:10 +000020839 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020840 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020841 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020842 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
Kevin Koltzau0af4fb92003-10-04 03:48:11 +000020843 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020844 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
Sami Aario78f12242004-04-07 19:41:21 +000020845 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020846 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
Stefan Leichter09733db2004-04-05 22:54:03 +000020847 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
Alexandre Julliard6c8147b2004-02-21 04:13:56 +000020848 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
Juan Lange9ed2f32004-03-01 23:35:25 +000020849 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020850 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20851 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20852 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020853 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20854 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020855 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020856 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20857 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20858 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020859 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020860 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20861 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20862 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20863 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20864 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20865 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20866 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20867 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
Francois Gouget4ce28372002-11-04 23:47:49 +000020868 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020869 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Eric Pouecha120ce02002-06-28 17:40:16 +000020870 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000020871 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000020872 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
Chris Morgan4691b182002-12-13 02:26:18 +000020873 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020874 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020875 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20876 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20877 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020878 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020879 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
Stefan Leichter88b11062003-01-15 00:50:48 +000020880 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
Patrik Stridvall5caddc72002-12-17 01:49:16 +000020881 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020882 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20883 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20884 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20885 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20886 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Huw Davies00acb5f2004-08-17 22:33:14 +000020887 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020888 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
Alexandre Julliard6a9fe362003-03-19 22:09:16 +000020889 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20890 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000020891 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
Alexandre Julliard2d1c7902003-03-22 20:40:48 +000020892 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
Alexandre Julliarde1a9b102003-05-01 03:16:21 +000020893 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
Alexandre Julliard357c7402003-11-06 01:17:56 +000020894 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020895 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20896 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20897 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20898 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20899 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000020900 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Vincent BĂ©ron34966892004-07-19 19:44:07 +000020901 "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020902 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020903 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000020904 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000020905 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardd77294a2002-12-02 21:17:04 +000020906 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
Alberto Massari15e8e0a2002-11-15 01:41:20 +000020907 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
Dan Kegelba02ae42003-01-21 20:14:36 +000020908 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
Eric Pouechd6b348f2004-03-23 01:19:54 +000020909 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020910 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20911 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20912 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
Shachar Shemesh175d0592003-01-04 02:52:05 +000020913 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
Chris Morgand888d362004-01-06 20:49:58 +000020914 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
Dimitrie O. Paun82ce2cc2003-03-31 19:41:55 +000020915 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020916 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
Alexandre Julliardf264bd32002-09-13 17:54:27 +000020917 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
Alexandre Julliard65a42162002-06-04 21:29:40 +000020918 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
Mike McCormack88090b42003-05-21 18:50:53 +000020919 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020920 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000020921 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliard9f71bd92003-12-04 02:01:39 +000020922 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
Alexandre Julliardfedc4112003-04-27 00:47:58 +000020923 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020924 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20925 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020926 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20927 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000020928 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020929 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20930 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20931 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
Alexandre Julliard280661c2003-09-11 21:27:58 +000020932 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020933 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
20934 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020935 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
20936 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
20937 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
20938 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
20939 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
20940 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000020941 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
20942 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020943 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
20944 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
20945 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
20946 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
20947 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020948 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000020949 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000020950 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020951 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020952 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020953echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20954 { (exit 1); exit 1; }; };;
20955 esac
20956done
20957
20958# If the user did not use the arguments to specify the items to instantiate,
20959# then the envvar interface is used. Set only those that are not.
20960# We use the long form for the default assignment because of an extremely
20961# bizarre bug on SunOS 4.1.3.
20962if $ac_need_defaults; then
20963 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20964 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20965 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20966fi
20967
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020968# Have a temporary directory for convenience. Make it in the build tree
20969# simply because there is no reason to put it here, and in addition,
20970# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020971# Create a temporary directory, and hook for its removal unless debugging.
20972$debug ||
20973{
20974 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20975 trap '{ (exit 1); exit 1; }' 1 2 13 15
20976}
20977
20978# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020979
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020980{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020981 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020982 test -n "$tmp" && test -d "$tmp"
20983} ||
20984{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020985 tmp=./confstat$$-$RANDOM
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020986 (umask 077 && mkdir $tmp)
20987} ||
20988{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020989 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020990 { (exit 1); exit 1; }
20991}
20992
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020993_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020994
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020995cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020996
20997#
20998# CONFIG_FILES section.
20999#
21000
21001# No need to generate the scripts if there are no CONFIG_FILES.
21002# This happens for instance when ./config.status config.h
21003if test -n "\$CONFIG_FILES"; then
21004 # Protect against being on the right side of a sed subst in config.status.
21005 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21006 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21007s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021008s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21009s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21010s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21011s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21012s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21013s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021014s,@exec_prefix@,$exec_prefix,;t t
21015s,@prefix@,$prefix,;t t
21016s,@program_transform_name@,$program_transform_name,;t t
21017s,@bindir@,$bindir,;t t
21018s,@sbindir@,$sbindir,;t t
21019s,@libexecdir@,$libexecdir,;t t
21020s,@datadir@,$datadir,;t t
21021s,@sysconfdir@,$sysconfdir,;t t
21022s,@sharedstatedir@,$sharedstatedir,;t t
21023s,@localstatedir@,$localstatedir,;t t
21024s,@libdir@,$libdir,;t t
21025s,@includedir@,$includedir,;t t
21026s,@oldincludedir@,$oldincludedir,;t t
21027s,@infodir@,$infodir,;t t
21028s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021029s,@build_alias@,$build_alias,;t t
21030s,@host_alias@,$host_alias,;t t
21031s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021032s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021033s,@ECHO_C@,$ECHO_C,;t t
21034s,@ECHO_N@,$ECHO_N,;t t
21035s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021036s,@LIBS@,$LIBS,;t t
Alexandre Julliardc728efc2002-10-02 02:34:09 +000021037s,@WIN16_FILES@,$WIN16_FILES,;t t
21038s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021039s,@build@,$build,;t t
21040s,@build_cpu@,$build_cpu,;t t
21041s,@build_vendor@,$build_vendor,;t t
21042s,@build_os@,$build_os,;t t
21043s,@host@,$host,;t t
21044s,@host_cpu@,$host_cpu,;t t
21045s,@host_vendor@,$host_vendor,;t t
21046s,@host_os@,$host_os,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021047s,@SET_MAKE@,$SET_MAKE,;t t
21048s,@CC@,$CC,;t t
21049s,@CFLAGS@,$CFLAGS,;t t
21050s,@LDFLAGS@,$LDFLAGS,;t t
21051s,@CPPFLAGS@,$CPPFLAGS,;t t
21052s,@ac_ct_CC@,$ac_ct_CC,;t t
21053s,@EXEEXT@,$EXEEXT,;t t
21054s,@OBJEXT@,$OBJEXT,;t t
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000021055s,@CXX@,$CXX,;t t
21056s,@CXXFLAGS@,$CXXFLAGS,;t t
21057s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Alexandre Julliarda631ef62004-03-03 20:30:46 +000021058s,@CPPBIN@,$CPPBIN,;t t
21059s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021060s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliarda631ef62004-03-03 20:30:46 +000021061s,@CPP@,$CPP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021062s,@X_CFLAGS@,$X_CFLAGS,;t t
21063s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21064s,@X_LIBS@,$X_LIBS,;t t
21065s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021066s,@LEX@,$LEX,;t t
21067s,@LEXLIB@,$LEXLIB,;t t
21068s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021069s,@XLEX@,$XLEX,;t t
Mike McCormackc068f672004-03-16 03:11:39 +000021070s,@BISON@,$BISON,;t t
Marcus Meissner1d4db782003-01-09 00:46:54 +000021071s,@AS@,$AS,;t t
21072s,@ac_ct_AS@,$ac_ct_AS,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000021073s,@LD@,$LD,;t t
21074s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021075s,@AR@,$AR,;t t
21076s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021077s,@RANLIB@,$RANLIB,;t t
21078s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021079s,@STRIP@,$STRIP,;t t
21080s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21081s,@WINDRES@,$WINDRES,;t t
21082s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021083s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000021084s,@LN@,$LN,;t t
Alexandre Julliardc6264912004-08-16 20:09:37 +000021085s,@EGREP@,$EGREP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021086s,@LDCONFIG@,$LDCONFIG,;t t
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021087s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21088s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21089s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021090s,@LINT@,$LINT,;t t
21091s,@LINTFLAGS@,$LINTFLAGS,;t t
Vincent BĂ©ron1d8cb6e2002-11-23 01:20:02 +000021092s,@DB2HTML@,$DB2HTML,;t t
21093s,@DB2PDF@,$DB2PDF,;t t
21094s,@DB2PS@,$DB2PS,;t t
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +000021095s,@DB2TXT@,$DB2TXT,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000021096s,@FONTFORGE@,$FONTFORGE,;t t
Alexandre Julliardf45325e2003-11-06 23:05:41 +000021097s,@LIBPTHREAD@,$LIBPTHREAD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021098s,@XLIB@,$XLIB,;t t
21099s,@XFILES@,$XFILES,;t t
21100s,@OPENGLFILES@,$OPENGLFILES,;t t
21101s,@GLU32FILES@,$GLU32FILES,;t t
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000021102s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
Jacek Cabanef799c42003-12-02 04:11:09 +000021103s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21104s,@GLUT32FILES@,$GLUT32FILES,;t t
Francois Gouget6f670b12002-10-10 17:54:27 +000021105s,@NASLIBS@,$NASLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021106s,@CURSESLIBS@,$CURSESLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000021107s,@sane_devel@,$sane_devel,;t t
21108s,@SANELIBS@,$SANELIBS,;t t
21109s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliard4ee82902003-06-20 21:38:10 +000021110s,@ICULIBS@,$ICULIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021111s,@ft_devel@,$ft_devel,;t t
21112s,@ft_devel2@,$ft_devel2,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000021113s,@FREETYPELIBS@,$FREETYPELIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021114s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000021115s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000021116s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21117s,@ARTSLIBS@,$ARTSLIBS,;t t
21118s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000021119s,@ALSALIBS@,$ALSALIBS,;t t
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000021120s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000021121s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
Alexandre Julliardfc094232003-04-14 21:46:41 +000021122s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000021123s,@DLLEXT@,$DLLEXT,;t t
21124s,@DLLFLAGS@,$DLLFLAGS,;t t
21125s,@DLLIBS@,$DLLIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000021126s,@LDSHARED@,$LDSHARED,;t t
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000021127s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
Alexandre Julliardada5e652002-12-12 22:03:14 +000021128s,@LIBEXT@,$LIBEXT,;t t
21129s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21130s,@DLLTOOL@,$DLLTOOL,;t t
21131s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021132s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021133s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliard4d52d372003-03-24 19:33:20 +000021134s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
Emmanuel Maillard46718f82004-07-22 19:48:41 +000021135s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
Emmanuel Maillard2300ce62004-08-19 01:20:45 +000021136s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
21137s,@IOKITLIB@,$IOKITLIB,;t t
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000021138s,@CROSSTEST@,$CROSSTEST,;t t
21139s,@CROSSCC@,$CROSSCC,;t t
Alexandre Julliard21ee3292003-04-21 22:52:31 +000021140s,@CROSSWINDRES@,$CROSSWINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021141s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000021142s,@CRTLIBS@,$CRTLIBS,;t t
Steven Edwardsc91ae452004-09-03 18:57:19 +000021143s,@SOCKETLIBS@,$SOCKETLIBS,;t t
Alexandre Julliard546839f2003-11-11 00:48:21 +000021144s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21145s,@MAIN_BINARY@,$MAIN_BINARY,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000021146s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021147s,@ALLOCA@,$ALLOCA,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021148s,@LIBOBJS@,$LIBOBJS,;t t
21149s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021150/@MAKE_RULES@/r $MAKE_RULES
21151s,@MAKE_RULES@,,;t t
21152/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21153s,@MAKE_DLL_RULES@,,;t t
Alexandre Julliardedeee892002-08-09 01:22:40 +000021154/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21155s,@MAKE_TEST_RULES@,,;t t
Alexandre Julliard117436e2003-05-01 00:39:29 +000021156/@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21157s,@MAKE_LIB_RULES@,,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021158/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21159s,@MAKE_PROG_RULES@,,;t t
21160CEOF
21161
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021162_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021163
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021164 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021165 # Split the substitutions into bite-sized pieces for seds with
21166 # small command number limits, like on Digital OSF/1 and HP-UX.
21167 ac_max_sed_lines=48
21168 ac_sed_frag=1 # Number of current file.
21169 ac_beg=1 # First line for current file.
21170 ac_end=$ac_max_sed_lines # Line after last line for current file.
21171 ac_more_lines=:
21172 ac_sed_cmds=
21173 while $ac_more_lines; do
21174 if test $ac_beg -gt 1; then
21175 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21176 else
21177 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21178 fi
21179 if test ! -s $tmp/subs.frag; then
21180 ac_more_lines=false
21181 else
21182 # The purpose of the label and of the branching condition is to
21183 # speed up the sed processing (if there are no `@' at all, there
21184 # is no need to browse any of the substitutions).
21185 # These are the two extra sed commands mentioned above.
21186 (echo ':t
21187 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21188 if test -z "$ac_sed_cmds"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +000021189 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021190 else
Alexandre Julliard875927f2004-01-02 01:55:29 +000021191 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021192 fi
21193 ac_sed_frag=`expr $ac_sed_frag + 1`
21194 ac_beg=$ac_end
21195 ac_end=`expr $ac_end + $ac_max_sed_lines`
21196 fi
21197 done
21198 if test -z "$ac_sed_cmds"; then
21199 ac_sed_cmds=cat
21200 fi
21201fi # test -n "$CONFIG_FILES"
21202
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021203_ACEOF
21204cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021205for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21206 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21207 case $ac_file in
21208 - | *:- | *:-:* ) # input from stdin
Alexandre Julliard875927f2004-01-02 01:55:29 +000021209 cat >$tmp/stdin
21210 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21211 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021212 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021213 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021214 * ) ac_file_in=$ac_file.in ;;
21215 esac
21216
21217 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021218 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21219$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021220 X"$ac_file" : 'X\(//\)[^/]' \| \
21221 X"$ac_file" : 'X\(//\)$' \| \
21222 X"$ac_file" : 'X\(/\)' \| \
21223 . : '\(.\)' 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021224echo X"$ac_file" |
21225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21227 /^X\(\/\/\)$/{ s//\1/; q; }
21228 /^X\(\/\).*/{ s//\1/; q; }
21229 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021230 { if $as_mkdir_p; then
21231 mkdir -p "$ac_dir"
21232 else
21233 as_dir="$ac_dir"
21234 as_dirs=
21235 while test ! -d "$as_dir"; do
21236 as_dirs="$as_dir $as_dirs"
21237 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21238$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021239 X"$as_dir" : 'X\(//\)[^/]' \| \
21240 X"$as_dir" : 'X\(//\)$' \| \
21241 X"$as_dir" : 'X\(/\)' \| \
21242 . : '\(.\)' 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021243echo X"$as_dir" |
21244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21246 /^X\(\/\/\)$/{ s//\1/; q; }
21247 /^X\(\/\).*/{ s//\1/; q; }
21248 s/.*/./; q'`
21249 done
21250 test ! -n "$as_dirs" || mkdir $as_dirs
21251 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21252echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21253 { (exit 1); exit 1; }; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021254
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021255 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021256
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021257if test "$ac_dir" != .; then
21258 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21259 # A "../" for each directory in $ac_dir_suffix.
21260 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21261else
21262 ac_dir_suffix= ac_top_builddir=
21263fi
21264
21265case $srcdir in
21266 .) # No --srcdir option. We are building in place.
21267 ac_srcdir=.
21268 if test -z "$ac_top_builddir"; then
21269 ac_top_srcdir=.
21270 else
21271 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21272 fi ;;
21273 [\\/]* | ?:[\\/]* ) # Absolute path.
21274 ac_srcdir=$srcdir$ac_dir_suffix;
21275 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021276 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021277 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21278 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21279esac
Alexandre Julliard875927f2004-01-02 01:55:29 +000021280
21281# Do not use `cd foo && pwd` to compute absolute paths, because
21282# the directories may not exist.
21283case `pwd` in
21284.) ac_abs_builddir="$ac_dir";;
21285*)
21286 case "$ac_dir" in
21287 .) ac_abs_builddir=`pwd`;;
21288 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21289 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21290 esac;;
21291esac
21292case $ac_abs_builddir in
21293.) ac_abs_top_builddir=${ac_top_builddir}.;;
21294*)
21295 case ${ac_top_builddir}. in
21296 .) ac_abs_top_builddir=$ac_abs_builddir;;
21297 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21298 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21299 esac;;
21300esac
21301case $ac_abs_builddir in
21302.) ac_abs_srcdir=$ac_srcdir;;
21303*)
21304 case $ac_srcdir in
21305 .) ac_abs_srcdir=$ac_abs_builddir;;
21306 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21307 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21308 esac;;
21309esac
21310case $ac_abs_builddir in
21311.) ac_abs_top_srcdir=$ac_top_srcdir;;
21312*)
21313 case $ac_top_srcdir in
21314 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21315 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21316 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21317 esac;;
21318esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021319
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021320
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021321 case $INSTALL in
21322 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021323 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000021324 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000021325
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021326 # Let's still pretend it is `configure' which instantiates (i.e., don't
21327 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021328 # /* config.h. Generated by config.status. */
21329 if test x"$ac_file" = x-; then
21330 configure_input=
21331 else
21332 configure_input="$ac_file. "
21333 fi
21334 configure_input=$configure_input"Generated from `echo $ac_file_in |
Alexandre Julliard875927f2004-01-02 01:55:29 +000021335 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000021336
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021337 # First look for the input files in the build tree, otherwise in the
21338 # src tree.
21339 ac_file_inputs=`IFS=:
21340 for f in $ac_file_in; do
21341 case $f in
21342 -) echo $tmp/stdin ;;
21343 [\\/$]*)
Alexandre Julliard875927f2004-01-02 01:55:29 +000021344 # Absolute (can't be DOS-style, as IFS=:)
21345 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021346echo "$as_me: error: cannot find input file: $f" >&2;}
21347 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021348 echo "$f";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021349 *) # Relative
Alexandre Julliard875927f2004-01-02 01:55:29 +000021350 if test -f "$f"; then
21351 # Build tree
21352 echo "$f"
21353 elif test -f "$srcdir/$f"; then
21354 # Source tree
21355 echo "$srcdir/$f"
21356 else
21357 # /dev/null tree
21358 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021359echo "$as_me: error: cannot find input file: $f" >&2;}
21360 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021361 fi;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021362 esac
21363 done` || { (exit 1); exit 1; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021364
21365 if test x"$ac_file" != x-; then
21366 { echo "$as_me:$LINENO: creating $ac_file" >&5
21367echo "$as_me: creating $ac_file" >&6;}
21368 rm -f "$ac_file"
21369 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021370_ACEOF
21371cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021372 sed "$ac_vpsub
21373$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021374_ACEOF
21375cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021376:t
21377/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21378s,@configure_input@,$configure_input,;t t
21379s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021380s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021381s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021382s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21383s,@builddir@,$ac_builddir,;t t
21384s,@abs_builddir@,$ac_abs_builddir,;t t
21385s,@top_builddir@,$ac_top_builddir,;t t
21386s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021387s,@INSTALL@,$ac_INSTALL,;t t
21388" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21389 rm -f $tmp/stdin
21390 if test x"$ac_file" != x-; then
21391 mv $tmp/out $ac_file
21392 else
21393 cat $tmp/out
21394 rm -f $tmp/out
21395 fi
21396
21397done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021398_ACEOF
21399cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021400
21401#
21402# CONFIG_HEADER section.
21403#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021404
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021405# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21406# NAME is the cpp macro being defined and VALUE is the value it is being given.
21407#
21408# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021409ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21410ac_dB='[ ].*$,\1#\2'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021411ac_dC=' '
21412ac_dD=',;t'
21413# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Alexandre Julliard875927f2004-01-02 01:55:29 +000021414ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021415ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021416ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021417ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021418
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021419for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000021420 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021421 case $ac_file in
21422 - | *:- | *:-:* ) # input from stdin
Alexandre Julliard875927f2004-01-02 01:55:29 +000021423 cat >$tmp/stdin
21424 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21425 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021426 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021427 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021428 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021429 esac
21430
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021431 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021432echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021433
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021434 # First look for the input files in the build tree, otherwise in the
21435 # src tree.
21436 ac_file_inputs=`IFS=:
21437 for f in $ac_file_in; do
21438 case $f in
21439 -) echo $tmp/stdin ;;
21440 [\\/$]*)
Alexandre Julliard875927f2004-01-02 01:55:29 +000021441 # Absolute (can't be DOS-style, as IFS=:)
21442 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021443echo "$as_me: error: cannot find input file: $f" >&2;}
21444 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021445 # Do quote $f, to prevent DOS paths from being IFS'd.
21446 echo "$f";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021447 *) # Relative
Alexandre Julliard875927f2004-01-02 01:55:29 +000021448 if test -f "$f"; then
21449 # Build tree
21450 echo "$f"
21451 elif test -f "$srcdir/$f"; then
21452 # Source tree
21453 echo "$srcdir/$f"
21454 else
21455 # /dev/null tree
21456 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021457echo "$as_me: error: cannot find input file: $f" >&2;}
21458 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021459 fi;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021460 esac
21461 done` || { (exit 1); exit 1; }
21462 # Remove the trailing spaces.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021463 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021464
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021465_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021466
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021467# Transform confdefs.h into two sed scripts, `conftest.defines' and
21468# `conftest.undefs', that substitutes the proper values into
21469# config.h.in to produce config.h. The first handles `#define'
21470# templates, and the second `#undef' templates.
21471# And first: Protect against being on the right side of a sed subst in
21472# config.status. Protect against being in an unquoted here document
21473# in config.status.
21474rm -f conftest.defines conftest.undefs
21475# Using a here document instead of a string reduces the quoting nightmare.
21476# Putting comments in sed scripts is not portable.
21477#
21478# `end' is used to avoid that the second main sed command (meant for
21479# 0-ary CPP macros) applies to n-ary macro definitions.
21480# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021481cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021482s/[\\&,]/\\&/g
21483s,[\\$`],\\&,g
21484t clear
21485: clear
Alexandre Julliard875927f2004-01-02 01:55:29 +000021486s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021487t end
Alexandre Julliard875927f2004-01-02 01:55:29 +000021488s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021489: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021490_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021491# If some macros were called several times there might be several times
21492# the same #defines, which is useless. Nevertheless, we may not want to
21493# sort them, since we want the *last* AC-DEFINE to be honored.
21494uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21495sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21496rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021497
21498# This sed command replaces #undef with comments. This is necessary, for
21499# example, in the case of _POSIX_SOURCE, which is predefined and required
21500# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021501cat >>conftest.undefs <<\_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000021502s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021503_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021504
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021505# Break up conftest.defines because some shells have a limit on the size
21506# of here documents, and old seds have small limits too (100 cmds).
21507echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Alexandre Julliard875927f2004-01-02 01:55:29 +000021508echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021509echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21510echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021511rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021512while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021513do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021514 # Write a limited-size here document to $tmp/defines.sed.
21515 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21516 # Speed up: don't consider the non `#define' lines.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021517 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021518 # Work around the forget-to-reset-the-flag bug.
21519 echo 't clr' >>$CONFIG_STATUS
21520 echo ': clr' >>$CONFIG_STATUS
21521 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021522 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021523 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21524 rm -f $tmp/in
21525 mv $tmp/out $tmp/in
21526' >>$CONFIG_STATUS
21527 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21528 rm -f conftest.defines
21529 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021530done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021531rm -f conftest.defines
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021532echo ' fi # grep' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021533echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021534
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021535# Break up conftest.undefs because some shells have a limit on the size
21536# of here documents, and old seds have small limits too (100 cmds).
21537echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21538rm -f conftest.tail
21539while grep . conftest.undefs >/dev/null
21540do
21541 # Write a limited-size here document to $tmp/undefs.sed.
21542 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21543 # Speed up: don't consider the non `#undef'
Alexandre Julliard875927f2004-01-02 01:55:29 +000021544 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021545 # Work around the forget-to-reset-the-flag bug.
21546 echo 't clr' >>$CONFIG_STATUS
21547 echo ': clr' >>$CONFIG_STATUS
21548 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21549 echo 'CEOF
21550 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21551 rm -f $tmp/in
21552 mv $tmp/out $tmp/in
21553' >>$CONFIG_STATUS
21554 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21555 rm -f conftest.undefs
21556 mv conftest.tail conftest.undefs
21557done
21558rm -f conftest.undefs
21559
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021560cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021561 # Let's still pretend it is `configure' which instantiates (i.e., don't
21562 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021563 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021564 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021565 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021566 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021567 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021568 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021569 cat $tmp/in >>$tmp/config.h
21570 rm -f $tmp/in
21571 if test x"$ac_file" != x-; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021572 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021573 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021574echo "$as_me: $ac_file is unchanged" >&6;}
21575 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021576 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21577$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021578 X"$ac_file" : 'X\(//\)[^/]' \| \
21579 X"$ac_file" : 'X\(//\)$' \| \
21580 X"$ac_file" : 'X\(/\)' \| \
21581 . : '\(.\)' 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021582echo X"$ac_file" |
21583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21585 /^X\(\/\/\)$/{ s//\1/; q; }
21586 /^X\(\/\).*/{ s//\1/; q; }
21587 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021588 { if $as_mkdir_p; then
21589 mkdir -p "$ac_dir"
21590 else
21591 as_dir="$ac_dir"
21592 as_dirs=
21593 while test ! -d "$as_dir"; do
21594 as_dirs="$as_dir $as_dirs"
21595 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21596$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021597 X"$as_dir" : 'X\(//\)[^/]' \| \
21598 X"$as_dir" : 'X\(//\)$' \| \
21599 X"$as_dir" : 'X\(/\)' \| \
21600 . : '\(.\)' 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021601echo X"$as_dir" |
21602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21604 /^X\(\/\/\)$/{ s//\1/; q; }
21605 /^X\(\/\).*/{ s//\1/; q; }
21606 s/.*/./; q'`
21607 done
21608 test ! -n "$as_dirs" || mkdir $as_dirs
21609 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21610echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21611 { (exit 1); exit 1; }; }; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021612
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021613 rm -f $ac_file
21614 mv $tmp/config.h $ac_file
21615 fi
21616 else
21617 cat $tmp/config.h
21618 rm -f $tmp/config.h
21619 fi
21620done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021621_ACEOF
21622cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021623
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021624#
21625# CONFIG_COMMANDS section.
21626#
21627for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21628 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21629 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021630 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21631$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021632 X"$ac_dest" : 'X\(//\)[^/]' \| \
21633 X"$ac_dest" : 'X\(//\)$' \| \
21634 X"$ac_dest" : 'X\(/\)' \| \
21635 . : '\(.\)' 2>/dev/null ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021636echo X"$ac_dest" |
21637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21638 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21639 /^X\(\/\/\)$/{ s//\1/; q; }
21640 /^X\(\/\).*/{ s//\1/; q; }
21641 s/.*/./; q'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021642 { if $as_mkdir_p; then
21643 mkdir -p "$ac_dir"
21644 else
21645 as_dir="$ac_dir"
21646 as_dirs=
21647 while test ! -d "$as_dir"; do
21648 as_dirs="$as_dir $as_dirs"
21649 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21650$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21651 X"$as_dir" : 'X\(//\)[^/]' \| \
21652 X"$as_dir" : 'X\(//\)$' \| \
21653 X"$as_dir" : 'X\(/\)' \| \
21654 . : '\(.\)' 2>/dev/null ||
21655echo X"$as_dir" |
21656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21657 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21658 /^X\(\/\/\)$/{ s//\1/; q; }
21659 /^X\(\/\).*/{ s//\1/; q; }
21660 s/.*/./; q'`
21661 done
21662 test ! -n "$as_dirs" || mkdir $as_dirs
21663 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21664echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21665 { (exit 1); exit 1; }; }; }
21666
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021667 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000021668
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021669if test "$ac_dir" != .; then
21670 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21671 # A "../" for each directory in $ac_dir_suffix.
21672 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021673else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021674 ac_dir_suffix= ac_top_builddir=
21675fi
21676
21677case $srcdir in
21678 .) # No --srcdir option. We are building in place.
21679 ac_srcdir=.
21680 if test -z "$ac_top_builddir"; then
21681 ac_top_srcdir=.
21682 else
21683 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21684 fi ;;
21685 [\\/]* | ?:[\\/]* ) # Absolute path.
21686 ac_srcdir=$srcdir$ac_dir_suffix;
21687 ac_top_srcdir=$srcdir ;;
21688 *) # Relative path.
21689 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21690 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21691esac
Alexandre Julliard875927f2004-01-02 01:55:29 +000021692
21693# Do not use `cd foo && pwd` to compute absolute paths, because
21694# the directories may not exist.
21695case `pwd` in
21696.) ac_abs_builddir="$ac_dir";;
21697*)
21698 case "$ac_dir" in
21699 .) ac_abs_builddir=`pwd`;;
21700 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21701 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21702 esac;;
21703esac
21704case $ac_abs_builddir in
21705.) ac_abs_top_builddir=${ac_top_builddir}.;;
21706*)
21707 case ${ac_top_builddir}. in
21708 .) ac_abs_top_builddir=$ac_abs_builddir;;
21709 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21710 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21711 esac;;
21712esac
21713case $ac_abs_builddir in
21714.) ac_abs_srcdir=$ac_srcdir;;
21715*)
21716 case $ac_srcdir in
21717 .) ac_abs_srcdir=$ac_abs_builddir;;
21718 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21719 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21720 esac;;
21721esac
21722case $ac_abs_builddir in
21723.) ac_abs_top_srcdir=$ac_top_srcdir;;
21724*)
21725 case $ac_top_srcdir in
21726 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21727 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21728 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21729 esac;;
21730esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021731
21732
21733 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21734echo "$as_me: executing $ac_dest commands" >&6;}
21735 case $ac_dest in
21736 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21737echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21738 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21739echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21740 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21741echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21742 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21743echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21744 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21745echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21746 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21747echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021748 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21749echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21750 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21751echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021752 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21753echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021754 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21755echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21756 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21757echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021758 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21759echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21760 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21761echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000021762 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21763echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000021764 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21765echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000021766 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21767echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021768 esac
21769done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021770_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021771
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021772cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000021773
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021774{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021775_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021776chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021777ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021778
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021779
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021780# configure is writing to config.log, and then calls config.status.
21781# config.status does its own redirection, appending to config.log.
21782# Unfortunately, on DOS this fails, as config.log is still kept open
21783# by configure, so config.status won't be able to write to it; its
21784# output is simply discarded. So we exec the FD to /dev/null,
21785# effectively closing config.log, so it can be properly (re)opened and
21786# appended to by config.status. When coming back to configure, we
21787# need to make the FD available again.
21788if test "$no_create" != yes; then
21789 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021790 ac_config_status_args=
21791 test "$silent" = yes &&
21792 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021793 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021794 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021795 exec 5>>config.log
21796 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21797 # would make configure fail if this is the last instruction.
21798 $ac_cs_success || { (exit 1); exit 1; }
21799fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021800
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021801
Ove Kaaven8b4431f1999-01-23 13:59:11 +000021802if test "$have_x" = "no"
21803then
21804 echo
21805 echo "*** Warning: X development files not found. Wine will be built without"
21806 echo "*** X support, which currently does not work, and would probably not be"
21807 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000021808 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000021809fi
21810
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000021811if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000021812then
21813 echo
21814 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000021815 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21816fi
21817
Ian Pilcher563598d2001-05-16 20:56:05 +000021818if test "$wine_cv_msg_freetype" = "yes"
21819then
21820 echo
21821 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021822 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21823 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21824 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000021825fi
21826
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021827echo
Vincent BĂ©ron5606d102004-08-19 00:03:45 +000021828echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021829echo
21830